package com.mbridge.msdk.tracker.network; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.TreeMap; /* loaded from: classes4.dex */ public final class r { public final int a; public final byte[] b; public final Map c; public final List d; public final boolean e; public final long f; public r(int i, byte[] bArr, boolean z, long j, List list) { this(i, bArr, a(list), list, z, j); } private r(int i, byte[] bArr, Map map, List list, boolean z, long j) { this.a = i; this.b = bArr; this.c = map; if (list == null) { this.d = null; } else { this.d = Collections.unmodifiableList(list); } this.e = z; this.f = j; } private static Map a(List list) { if (list == null) { return null; } if (list.isEmpty()) { return Collections.emptyMap(); } TreeMap treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER); for (h hVar : list) { treeMap.put(hVar.a(), hVar.b()); } return treeMap; } }