package o; import o.C0690Mh; import o.C15715hv; import o.C4677beg; import o.InterfaceC6621cYR; import o.ZI; import o.wRi; /* renamed from: o.beg, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4677beg extends ZI { public final C16962sl b; public final fKT c; private final CQ e; @InterfaceC13391fZD public C4677beg(fKT fkt, C16962sl c16962sl, C16903sI c16903sI, CQ cq) { super(c16903sI); this.c = fkt; this.b = c16962sl; this.e = cq; } /* renamed from: o.beg$HBt */ /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private final LS c; private C4677beg e; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C16387nrD c16387nrD = (C16387nrD) obj; super.onNext(c16387nrD); C4677beg.d(this.e); final String str = this.c.c; C4677beg c4677beg = this.e; ZI.IeS ieS = new ZI.IeS(this, str, c16387nrD) { // from class: o.bei private String b; private C16387nrD d; private C4677beg.HBt e; @Override // o.ZI.IeS public final void e(Object obj2) { C4677beg.HBt.d(this.e, this.b, this.d, (InterfaceC6621cYR.qPj) obj2); } { this.e = this; this.b = str; this.d = c16387nrD; } }; if (c4677beg.f != 0) { ieS.e(c4677beg.f); } } public HBt(C4677beg c4677beg, LS ls) { this.e = c4677beg; this.c = ls; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C4677beg.a(this.e, th, C0690Mh.IeS.JUST_DISMISS); } public static /* synthetic */ void d(HBt hBt, String str, C16387nrD c16387nrD, InterfaceC6621cYR.qPj qpj) { C0371Fd e = hBt.e.e.e(str, c16387nrD, false, false, null, false, null, null, C15715hv.LWm.transparent); if (c16387nrD.e == Dae.PDF) { qpj.d(e); } else if (e.k != null && e.k.contains(".pdf")) { qpj.e(e.j, e.k); } else { qpj.a(e); } } } static /* synthetic */ void a(C4677beg c4677beg, Throwable th, C0690Mh.IeS ieS) { if (c4677beg.b(th)) { c4677beg.d(c4677beg.j.d(th, ieS)); } } static /* synthetic */ void d(C4677beg c4677beg) { if (c4677beg.f != 0) { c4677beg.f.ar_(); } } }