package t5; import android.webkit.WebView; import androidx.appcompat.app.m; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.UUID; /* loaded from: classes2.dex */ public final class c { /* renamed from: a, reason: collision with root package name */ private final h f14359a; /* renamed from: b, reason: collision with root package name */ private final WebView f14360b; /* renamed from: c, reason: collision with root package name */ private final List f14361c; /* renamed from: d, reason: collision with root package name */ private final Map f14362d; /* renamed from: e, reason: collision with root package name */ private final String f14363e; /* renamed from: f, reason: collision with root package name */ private final String f14364f; /* renamed from: g, reason: collision with root package name */ private final String f14365g; /* renamed from: h, reason: collision with root package name */ private final d f14366h; private c(h hVar, WebView webView, String str, List list, String str2, String str3, d dVar) { ArrayList arrayList = new ArrayList(); this.f14361c = arrayList; this.f14362d = new HashMap(); this.f14359a = hVar; this.f14360b = webView; this.f14363e = str; this.f14366h = dVar; if (list != null) { arrayList.addAll(list); Iterator it = list.iterator(); while (it.hasNext()) { m.a(it.next()); this.f14362d.put(UUID.randomUUID().toString(), null); } } this.f14365g = str2; this.f14364f = str3; } public static c a(h hVar, WebView webView, String str, String str2) { w5.e.b(hVar, "Partner is null"); w5.e.b(webView, "WebView is null"); if (str2 != null) { w5.e.c(str2, 256, "CustomReferenceData is greater than 256 characters"); } return new c(hVar, webView, null, null, str, str2, d.HTML); } public d b() { return this.f14366h; } public String c() { return this.f14365g; } public String d() { return this.f14364f; } public Map e() { return Collections.unmodifiableMap(this.f14362d); } public String f() { return this.f14363e; } public h g() { return this.f14359a; } public List h() { return Collections.unmodifiableList(this.f14361c); } public WebView i() { return this.f14360b; } }