package o; import o.InterfaceC6618cYI; import o.ZI; import o.wRi; /* loaded from: classes4.dex */ public class aAR extends ZI { private final jtI c; private final C16450oV d; @InterfaceC13391fZD public aAR(C16450oV c16450oV, C16903sI c16903sI, jtI jti) { super(c16903sI); this.c = jti; this.d = c16450oV; } /* loaded from: classes4.dex */ final class IeS extends wRi.LWm { private aAR c; private IeS(aAR aar) { this.c = aar; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { HZs hZs = (HZs) obj; if (hZs.c.isEmpty()) { aAR aar = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.aAP @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6618cYI.LWm) obj2).e(); } }; if (aar.f != 0) { ieS.e(aar.f); return; } return; } final IA d = this.c.d.d(hZs); aAR aar2 = this.c; ZI.IeS ieS2 = new ZI.IeS(d) { // from class: o.aAT private IA b; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6618cYI.LWm) obj2).c(this.b); } { this.b = d; } }; if (aar2.f != 0) { ieS2.e(aar2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { aAR.e(this.c); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.c.i(th)) { return; } aAR.c(this.c); aAR aar = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.aAQ @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6618cYI.LWm) obj).a(); } }; if (aar.f != 0) { ieS.e(aar.f); } } /* synthetic */ IeS(aAR aar, byte b) { this(aar); } } @Override // o.ZI public final void w_() { super.w_(); jtI jti = this.c; if (!jti.h.isDisposed()) { jti.h.dispose(); } jti.a.c(); } static /* synthetic */ void e(aAR aar) { if (aar.f != 0) { aar.f.aq_(); } } static /* synthetic */ void c(aAR aar) { if (aar.f != 0) { aar.f.aq_(); } } public final void b(String str) { if (this.f != 0) { this.f.v(); } jtI jti = this.c; if (!jti.h.isDisposed()) { jti.h.dispose(); } jtI jti2 = this.c; oJJ e = oJJ.e(); e.a = str; jti2.c(e); jtI jti3 = this.c; jti3.d(jti3.i, new IeS(this, (byte) 0)); } }