package o; /* loaded from: classes3.dex */ public final class tma extends Tve { private final InterfaceC0773Ogw c; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public tma(yRw yrw, yRw yrw2, YpF ypF, InterfaceC0773Ogw interfaceC0773Ogw) { super(ypF, yrw, yrw2); C14957gcv.e(yrw, ""); C14957gcv.e(yrw2, ""); C14957gcv.e(ypF, ""); C14957gcv.e(interfaceC0773Ogw, ""); this.c = interfaceC0773Ogw; } public final AbstractC13163fSk a(String str) { C14957gcv.e(str, ""); if (((Tve) this).a.b() != null) { xWw b = ((Tve) this).a.b(); String str2 = b != null ? b.c : null; return e(str, str2 != null ? str2 : ""); } AbstractC13163fSk e = ((Tve) this).a.e(new C3412ax("10XMB")); final RVV rvv = new RVV(this, str); AbstractC13163fSk flatMap = e.flatMap(new fSS(rvv) { // from class: o.haZ private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (InterfaceC13169fSq) interfaceC14894gbR.invoke(obj); } { this.b = rvv; } }); C14957gcv.c(flatMap, ""); return flatMap; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes3.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR> { private String a; private tma c; @Override // o.InterfaceC14894gbR public final /* synthetic */ InterfaceC13169fSq invoke(xWw xww) { tma tmaVar = this.c; String str = this.a; String str2 = xww.c; C14957gcv.c((Object) str2, ""); return tmaVar.e(str, str2); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(tma tmaVar, String str) { super(1); this.c = tmaVar; this.a = str; } } /* JADX INFO: Access modifiers changed from: private */ public final AbstractC13163fSk e(String str, String str2) { AbstractC13163fSk c13243fUv; InterfaceC0773Ogw interfaceC0773Ogw = this.c; String d = Tve.d(this, str); if (d == null) { d = ""; } fRZ e = interfaceC0773Ogw.e(new B(str2, d)); if (e instanceof InterfaceC13204fTr) { c13243fUv = ((InterfaceC13204fTr) e).b(); } else { c13243fUv = new C13243fUv(e); } e(c13243fUv); C14957gcv.c(c13243fUv, ""); return c13243fUv; } }