package o; import java.util.ArrayList; import java.util.List; import o.InterfaceC9261dgR; import o.ZI; import o.gBS; /* renamed from: o.bpk, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C5264bpk extends ZI { public final zWC a; public boolean b; public String c; public String d; public boolean e; private boolean g; private fSC h; private final gBS i; private List k; private String m; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C5264bpk(C16903sI c16903sI, gBS gbs, zWC zwc) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(gbs, ""); C14957gcv.e(zwc, ""); this.i = gbs; this.a = zwc; this.h = new fSC(); this.g = true; } /* renamed from: o.bpk$Sts */ /* loaded from: classes4.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bpk$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C5264bpk b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C5264bpk.a(this.b, th2); this.b.b = true; return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(C5264bpk c5264bpk) { super(1); this.b = c5264bpk; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bpk$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private C5264bpk c; private boolean e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C5335brB c5335brB) { C5335brB c5335brB2 = c5335brB; C14957gcv.e(c5335brB2, ""); this.c.b = false; C5264bpk.b(this.c); if (!(!c5335brB2.d.isEmpty())) { if (!((C5264bpk) this.c).g && this.e && c5335brB2.d.isEmpty()) { C5264bpk c5264bpk = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.bpt @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9261dgR) obj).b(true); } }; if (c5264bpk.f != 0) { ieS.e(c5264bpk.f); } } } else { C5264bpk c5264bpk2 = this.c; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bpu @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9261dgR) obj).b(false); } }; if (c5264bpk2.f != 0) { ieS2.e(c5264bpk2.f); } C5264bpk.b(this.c, c5335brB2); } ((C5264bpk) this.c).g = false; return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(C5264bpk c5264bpk, boolean z) { super(1); this.c = c5264bpk; this.e = z; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bpk$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { public static final HBt b = new HBt(); @Override // o.InterfaceC14894gbR public final /* synthetic */ Boolean invoke(InterfaceC0727Nd interfaceC0727Nd) { InterfaceC0727Nd interfaceC0727Nd2 = interfaceC0727Nd; C14957gcv.e(interfaceC0727Nd2, ""); return Boolean.valueOf(interfaceC0727Nd2 instanceof C0736Nj); } HBt() { super(1); } } @Override // o.ZI public final void w_() { this.h.dispose(); super.w_(); } public static /* synthetic */ void b(C5264bpk c5264bpk, String str, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(c5264bpk, ""); C14957gcv.e(str, ""); interfaceC9261dgR.a(c5264bpk.e); interfaceC9261dgR.c(str.length() > 0); } public static /* synthetic */ void b(bTI bti, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(bti, ""); interfaceC9261dgR.a(bti); } public static /* synthetic */ void e(C5264bpk c5264bpk, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(c5264bpk, ""); interfaceC9261dgR.c(c5264bpk.a.a.f()); } public static /* synthetic */ void c(MQ mq, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(mq, ""); interfaceC9261dgR.e(mq); } public static /* synthetic */ void e(String str, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(str, ""); interfaceC9261dgR.e(new MQ("MANUAL", str, false)); } public static /* synthetic */ void c(List list, InterfaceC9261dgR interfaceC9261dgR) { C14957gcv.e(list, ""); interfaceC9261dgR.e((List) list); } public static final /* synthetic */ void b(C5264bpk c5264bpk) { if (c5264bpk.f != 0) { c5264bpk.f.ar_(); } } public static final /* synthetic */ void a(C5264bpk c5264bpk, Throwable th) { if (c5264bpk.b(th)) { c5264bpk.d(c5264bpk.j.e(th)); } } public static final /* synthetic */ void b(C5264bpk c5264bpk, C5335brB c5335brB) { C0723Na c0723Na = C0723Na.a; C0729Nf a = C0723Na.a(c5335brB); if (a.a) { c5264bpk.m = String.valueOf(a.c); } List list = c5264bpk.k; if (list != null) { HBt hBt = HBt.b; C14957gcv.e(list, ""); C14957gcv.e(hBt, ""); gaE.c(list, hBt); } if (c5264bpk.k == null) { c5264bpk.k = new ArrayList(); } final List list2 = c5264bpk.k; if (list2 != null) { list2.addAll(a.b); if (c5264bpk.g) { list2.add(0, C0728Ne.d); list2.add(C0726Nc.d); } if (a.a) { list2.add(C0736Nj.d); } ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.bpo private List d; @Override // o.ZI.IeS public final void e(Object obj) { C5264bpk.c(this.d, (InterfaceC9261dgR) obj); } { this.d = list2; } }; if (c5264bpk.f != 0) { ieS.e(c5264bpk.f); } } } public final void b(String str, boolean z) { if (z) { this.m = null; this.k = null; this.b = false; if (this.f != 0) { this.f.y(); } } this.h.dispose(); this.h = new fSC(); this.i.e(new LWm(this, z), new IeS(this), new gBS.LWm(str, this.m), this.h); } static { new Sts((byte) 0); } }