package o; import o.C1168Xb; import o.C5951cEM; import o.InterfaceC8929daC; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.cEM, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5951cEM extends ZI { private final BI a; public final qwQ b; public C1189Xo c; public final String d; public boolean e; @InterfaceC13391fZD public C5951cEM(String str, C16903sI c16903sI, BI bi, qwQ qwq) { super(c16903sI); this.d = str; this.b = qwq; this.a = bi; } @Override // o.ZI public final void w_() { super.w_(); qwQ qwq = this.b; if (qwq.h.isDisposed()) { return; } qwq.h.dispose(); } /* renamed from: o.cEM$HBt */ /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private C5951cEM e; private HBt(C5951cEM c5951cEM) { this.e = c5951cEM; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final osO oso = (osO) obj; C5951cEM c5951cEM = this.e; ZI.IeS ieS = new ZI.IeS(this, oso) { // from class: o.cEI private osO a; private C5951cEM.HBt e; @Override // o.ZI.IeS public final void e(Object obj2) { C5951cEM.HBt.c(this.e, this.a, (InterfaceC8929daC.LWm) obj2); } { this.e = this; this.a = oso; } }; if (c5951cEM.f != 0) { ieS.e(c5951cEM.f); } C5951cEM.e(this.e); this.e.e = false; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { if (this.e.i(th)) { return; } C5951cEM c5951cEM = this.e; c5951cEM.d(c5951cEM.j.e(th)); C5951cEM c5951cEM2 = this.e; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.cEL private C5951cEM.HBt b; private Throwable d; @Override // o.ZI.IeS public final void e(Object obj) { C5951cEM.HBt.c(this.b, this.d, (InterfaceC8929daC.LWm) obj); } { this.b = this; this.d = th; } }; if (c5951cEM2.f != 0) { ieS.e(c5951cEM2.f); } this.e.e = false; } public static /* synthetic */ void c(HBt hBt, osO oso, InterfaceC8929daC.LWm lWm) { String str; BI bi = hBt.e.a; C1189Xo c1189Xo = hBt.e.c; C14957gcv.e(oso, ""); C14957gcv.e(c1189Xo, ""); C1189Xo d = C1189Xo.h().d(oso.f9235o); d.T = oso.f; d.ac = oso.i; d.Z = BI.d(oso.n, oso.m); d.U = BI.d(oso.h, oso.g); d.ab = oso.n; d.Y = oso.h; C1168Xb.LWm lWm2 = new C1168Xb.LWm(); lWm2.b = BI.c(Double.valueOf(oso.b)); d.j = new C1168Xb(lWm2, (byte) 0); OffsetDateTime offsetDateTime = oso.c; YC yc = null; String a = offsetDateTime != null ? bi.a(offsetDateTime) : null; if (a == null) { a = ""; } d.w = a; d.O = oso.j; C1189Xo h = d.h(BI.c(Double.valueOf(oso.a))); h.k = BI.c(Double.valueOf(oso.d)); h.aj = c1189Xo.aj; h.aF = oso.k; String str2 = oso.l; String str3 = oso.t; C16178lw c16178lw = bi.d; String str4 = str2; if (str4 != null && str4.length() != 0 && (str = str3) != null && str.length() != 0) { yc = new YC(str2, str3); } h.aL = yc; C14957gcv.c(h, ""); lWm.e(h); } public static /* synthetic */ void c(HBt hBt, Throwable th, InterfaceC8929daC.LWm lWm) { hBt.e.j.e(th); lWm.E_(); } public /* synthetic */ HBt(C5951cEM c5951cEM, byte b) { this(c5951cEM); } } static /* synthetic */ void e(C5951cEM c5951cEM) { if (c5951cEM.f != 0) { c5951cEM.f.ar_(); } } }