package h5; import com.google.android.gms.ads.RequestConfiguration; import com.google.android.gms.common.api.Api; import java.util.concurrent.TimeUnit; /* loaded from: classes2.dex */ public final class h { /* renamed from: n, reason: collision with root package name */ public static final h f10083n = new a().c().a(); /* renamed from: o, reason: collision with root package name */ public static final h f10084o = new a().d().b(Api.BaseClientBuilder.API_PRIORITY_OTHER, TimeUnit.SECONDS).a(); /* renamed from: a, reason: collision with root package name */ private final boolean f10085a; /* renamed from: b, reason: collision with root package name */ private final boolean f10086b; /* renamed from: c, reason: collision with root package name */ private final int f10087c; /* renamed from: d, reason: collision with root package name */ private final int f10088d; /* renamed from: e, reason: collision with root package name */ private final boolean f10089e; /* renamed from: f, reason: collision with root package name */ private final boolean f10090f; /* renamed from: g, reason: collision with root package name */ private final boolean f10091g; /* renamed from: h, reason: collision with root package name */ private final int f10092h; /* renamed from: i, reason: collision with root package name */ private final int f10093i; /* renamed from: j, reason: collision with root package name */ private final boolean f10094j; /* renamed from: k, reason: collision with root package name */ private final boolean f10095k; /* renamed from: l, reason: collision with root package name */ private final boolean f10096l; /* renamed from: m, reason: collision with root package name */ String f10097m; public static final class a { /* renamed from: a, reason: collision with root package name */ boolean f10098a; /* renamed from: b, reason: collision with root package name */ boolean f10099b; /* renamed from: c, reason: collision with root package name */ int f10100c = -1; /* renamed from: d, reason: collision with root package name */ int f10101d = -1; /* renamed from: e, reason: collision with root package name */ int f10102e = -1; /* renamed from: f, reason: collision with root package name */ boolean f10103f; /* renamed from: g, reason: collision with root package name */ boolean f10104g; /* renamed from: h, reason: collision with root package name */ boolean f10105h; public h a() { return new h(this); } public a b(int i10, TimeUnit timeUnit) { if (i10 >= 0) { long seconds = timeUnit.toSeconds(i10); this.f10101d = seconds > 2147483647L ? Api.BaseClientBuilder.API_PRIORITY_OTHER : (int) seconds; return this; } throw new IllegalArgumentException("maxStale < 0: " + i10); } public a c() { this.f10098a = true; return this; } public a d() { this.f10103f = true; return this; } } h(a aVar) { this.f10085a = aVar.f10098a; this.f10086b = aVar.f10099b; this.f10087c = aVar.f10100c; this.f10088d = -1; this.f10089e = false; this.f10090f = false; this.f10091g = false; this.f10092h = aVar.f10101d; this.f10093i = aVar.f10102e; this.f10094j = aVar.f10103f; this.f10095k = aVar.f10104g; this.f10096l = aVar.f10105h; } private String a() { StringBuilder sb = new StringBuilder(); if (this.f10085a) { sb.append("no-cache, "); } if (this.f10086b) { sb.append("no-store, "); } if (this.f10087c != -1) { sb.append("max-age="); sb.append(this.f10087c); sb.append(", "); } if (this.f10088d != -1) { sb.append("s-maxage="); sb.append(this.f10088d); sb.append(", "); } if (this.f10089e) { sb.append("private, "); } if (this.f10090f) { sb.append("public, "); } if (this.f10091g) { sb.append("must-revalidate, "); } if (this.f10092h != -1) { sb.append("max-stale="); sb.append(this.f10092h); sb.append(", "); } if (this.f10093i != -1) { sb.append("min-fresh="); sb.append(this.f10093i); sb.append(", "); } if (this.f10094j) { sb.append("only-if-cached, "); } if (this.f10095k) { sb.append("no-transform, "); } if (this.f10096l) { sb.append("immutable, "); } if (sb.length() == 0) { return RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; } sb.delete(sb.length() - 2, sb.length()); return sb.toString(); } /* JADX WARN: Removed duplicated region for block: B:10:0x0041 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ public static h5.h l(h5.a0 r22) { /* Method dump skipped, instructions count: 333 To view this dump change 'Code comments level' option to 'DEBUG' */ throw new UnsupportedOperationException("Method not decompiled: h5.h.l(h5.a0):h5.h"); } public boolean b() { return this.f10096l; } public boolean c() { return this.f10089e; } public boolean d() { return this.f10090f; } public int e() { return this.f10087c; } public int f() { return this.f10092h; } public int g() { return this.f10093i; } public boolean h() { return this.f10091g; } public boolean i() { return this.f10085a; } public boolean j() { return this.f10086b; } public boolean k() { return this.f10094j; } public String toString() { String str = this.f10097m; if (str != null) { return str; } String a10 = a(); this.f10097m = a10; return a10; } private h(boolean z10, boolean z11, int i10, int i11, boolean z12, boolean z13, boolean z14, int i12, int i13, boolean z15, boolean z16, boolean z17, String str) { this.f10085a = z10; this.f10086b = z11; this.f10087c = i10; this.f10088d = i11; this.f10089e = z12; this.f10090f = z13; this.f10091g = z14; this.f10092h = i12; this.f10093i = i13; this.f10094j = z15; this.f10095k = z16; this.f10096l = z17; this.f10097m = str; } }