正在查看: Empower MX v1.29.4.340 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.networking;
import Gf.s;
import Nb.zqp.QxNxM;
import Rf.i;
import android.content.Context;
import android.net.http.HttpResponseCache;
import b9.e;
import b9.l;
import b9.m;
import com.stripe.android.core.exception.APIException;
import com.stripe.android.core.exception.AuthenticationException;
import com.stripe.android.core.exception.InvalidRequestException;
import com.stripe.android.core.exception.PermissionException;
import com.stripe.android.core.exception.RateLimitException;
import com.stripe.android.exception.CardException;
import com.stripe.android.model.c;
import com.stripe.android.model.r;
import com.stripe.android.model.v;
import com.stripe.android.model.y;
import java.io.File;
import java.security.Security;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import k8.InterfaceC2099i;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.jvm.internal.d;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import n8.InterfaceC2776b;
import r8.C2879c;
import r8.C2882f;
import r8.InterfaceC2880d;
import sf.s;
import sf.t;
import sf.x;
import t8.AbstractC2906a;
import vf.b;
import w8.C3023b;
import w8.InterfaceC3022a;
import x8.AbstractC3059u;
import x8.C3038A;
import x8.C3040b;
import x8.C3044f;
import x8.C3058t;
import x8.InterfaceC3041c;
import x8.InterfaceC3063y;
public final class a implements m {
public static final C1460b n = new C1460b(null);
public static final int o = 8;
private final Context a;
private final Function0 b;
private final C2879c c;
private final InterfaceC2880d d;
private final CoroutineContext e;
private final Set f;
private final InterfaceC3063y g;
private final InterfaceC3041c h;
private final InterfaceC2099i i;
private final InterfaceC2776b.a j;
private final PaymentAnalyticsRequestFactory k;
private final e l;
private final C3044f.b m;
static final class A extends s implements Function1 {
public static final A d = new A();
A() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class B extends d {
Object d;
int i;
B(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object u = a.this.u(null, null, this);
return u == wf.b.f() ? u : sf.s.a(u);
}
}
static final class C extends s implements Function1 {
final Y8.E e;
C(Y8.E e) {
super(1);
this.e = e;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(aVar.k.x(this.e.a(), this.e.b()));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class D extends d {
Object d;
int i;
D(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object r = a.this.r(null, null, null, this);
return r == wf.b.f() ? r : sf.s.a(r);
}
}
static final class E extends s implements Function1 {
final Set e;
E(Set set) {
super(1);
this.e = set;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(aVar.k.q(this.e));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class F extends d {
Object d;
Object e;
int v;
F(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.e = obj;
this.v |= Integer.MIN_VALUE;
Object R = a.this.R(null, null, null, this);
return R == wf.b.f() ? R : sf.s.a(R);
}
}
static final class G extends s implements Function1 {
public static final G d = new G();
G() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class H extends d {
Object d;
Object e;
int v;
H(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.e = obj;
this.v |= Integer.MIN_VALUE;
Object b = a.this.b(null, null, this);
return b == wf.b.f() ? b : sf.s.a(b);
}
}
static final class I extends d {
Object d;
int i;
I(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object m = a.this.m(null, this);
return m == wf.b.f() ? m : sf.s.a(m);
}
}
static final class J extends s implements Function1 {
J() {
super(1);
}
public final void a(Object obj) {
a.this.T(PaymentAnalyticsEvent.p0);
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class K extends d {
Object d;
int i;
K(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object C = a.this.C(null, null, null, this);
return C == wf.b.f() ? C : sf.s.a(C);
}
}
static final class L extends s implements Function1 {
final Set e;
L(Set set) {
super(1);
this.e = set;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.G, this.e, null, null, null, null, 60, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class M extends d {
Object d;
int i;
M(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object p = a.this.p(null, null, null, this);
return p == wf.b.f() ? p : sf.s.a(p);
}
}
static final class N extends d {
int G;
Object d;
Object e;
Object i;
Object v;
Object w;
N(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.w = obj;
this.G |= Integer.MIN_VALUE;
return a.this.c0(null, null, this);
}
}
static final class O extends d {
Object d;
Object e;
int v;
O(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.e = obj;
this.v |= Integer.MIN_VALUE;
Object f0 = a.this.f0(null, null, this);
return f0 == wf.b.f() ? f0 : sf.s.a(f0);
}
}
static final class P extends d {
Object d;
int i;
P(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object j = a.this.j(null, null, this);
return j == wf.b.f() ? j : sf.s.a(j);
}
}
static final class Q extends s implements Function1 {
Q() {
super(1);
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.V, null, null, null, null, null, 62, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class R extends d {
Object d;
int i;
R(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object z = a.this.z(null, null, this);
return z == wf.b.f() ? z : sf.s.a(z);
}
}
static final class S extends d {
Object d;
int i;
S(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object D = a.this.D(null, null, null, this);
return D == wf.b.f() ? D : sf.s.a(D);
}
}
static final class T extends s implements Function1 {
final Set e;
T(Set set) {
super(1);
this.e = set;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.F, this.e, null, null, null, null, 60, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class U extends d {
Object d;
int i;
U(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object A = a.this.A(null, null, this);
return A == wf.b.f() ? A : sf.s.a(A);
}
}
static final class V extends d {
Object d;
int i;
V(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object h0 = a.this.h0(null, null, null, this);
return h0 == wf.b.f() ? h0 : sf.s.a(h0);
}
}
static final class W extends s implements Function1 {
final PaymentAnalyticsEvent d;
final a e;
W(PaymentAnalyticsEvent paymentAnalyticsEvent, a aVar) {
super(1);
this.d = paymentAnalyticsEvent;
this.e = aVar;
}
public final void a(Object obj) {
PaymentAnalyticsEvent paymentAnalyticsEvent = this.d;
if (paymentAnalyticsEvent != null) {
a aVar = this.e;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, paymentAnalyticsEvent, null, null, null, null, null, 62, null));
}
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class X extends d {
Object d;
int i;
X(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object i = a.this.i(null, null, null, this);
return i == wf.b.f() ? i : sf.s.a(i);
}
}
static final class Y extends s implements Function1 {
Y() {
super(1);
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.S, null, null, null, null, null, 62, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class Z extends d {
Object d;
int i;
Z(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object l = a.this.l(null, null, null, this);
return l == wf.b.f() ? l : sf.s.a(l);
}
}
static final class C0372a extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
C0372a(b bVar) {
super(2, bVar);
}
public final b create(Object obj, b bVar) {
return a.this.new C0372a(bVar);
}
public final Object invoke(Rf.N n, b bVar) {
return create(n, bVar).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
wf.b.f();
if (this.d != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
HttpResponseCache.install(new File(a.this.a.getCacheDir(), "stripe_api_repository_cache"), 10485760L);
return Unit.a;
}
}
static final class a0 extends s implements Function1 {
a0() {
super(1);
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.X, null, null, null, null, null, 62, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
public static final class C1460b {
public C1460b(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Map e(List list) {
if (list.isEmpty()) {
list = null;
}
Map g = list != null ? kotlin.collections.P.g(x.a("expand", list)) : null;
return g == null ? kotlin.collections.P.i() : g;
}
public final String f(String str) {
return "https://api.stripe.com/v1/" + str;
}
public final String g(String str, Object... objArr) {
Gf.Q q = Gf.Q.a;
Locale locale = Locale.ENGLISH;
Object[] copyOf = Arrays.copyOf(objArr, objArr.length);
String format = String.format(locale, str, Arrays.copyOf(copyOf, copyOf.length));
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
return f(format);
}
public final String q(String str) {
return "https://api.stripe.com/edge-internal/" + str;
}
private final String s(String str) {
return "https://merchant-ui-api.stripe.com/elements/" + str;
}
public final String A() {
return f("consumers/payment_details/share");
}
public final String B() {
return f("tokens");
}
public final String i(String str, String str2) {
Intrinsics.checkNotNullParameter(str, "setupIntentId");
Intrinsics.checkNotNullParameter(str2, "financialConnectionsSessionId");
return g("setup_intents/%s/link_account_sessions/%s/attach", str, str2);
}
public final String j(String str) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
return g("payment_intents/%s/source_cancel", str);
}
public final String k(String str) {
Intrinsics.checkNotNullParameter(str, "setupIntentId");
return g("setup_intents/%s/source_cancel", str);
}
public final String l(String str) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
return g("payment_intents/%s/confirm", str);
}
public final String m(String str) {
Intrinsics.checkNotNullParameter(str, "setupIntentId");
return g("setup_intents/%s/confirm", str);
}
public final String n() {
return f("consumers/payment_details");
}
public final String o() {
return f("consumers/accounts/sign_up");
}
public final String p() {
return f("connections/link_account_sessions_for_deferred_payment");
}
public final String r() {
return f("consumers/sessions/log_out");
}
public final String t() {
return s("mobile-card-element-config");
}
public final String u(String str) {
Intrinsics.checkNotNullParameter(str, "paymentMethodId");
return f("payment_methods/" + str);
}
public final String v() {
return f("payment_methods");
}
public final String w(String str) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
return g("payment_intents/%s/refresh", str);
}
public final String x(String str) {
Intrinsics.checkNotNullParameter(str, "customerId");
return g("customers/%s", str);
}
public final String y(String str) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
return g("payment_intents/%s", str);
}
public final String z(String str) {
Intrinsics.checkNotNullParameter(str, "setupIntentId");
return g("setup_intents/%s", str);
}
private C1460b() {
}
public final String h(String str, String str2) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
Intrinsics.checkNotNullParameter(str2, "financialConnectionsSessionId");
return g(QxNxM.SBadentlZV, str, str2);
}
}
static final class b0 extends d {
Object d;
int i;
b0(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object B = a.this.B(null, null, null, this);
return B == wf.b.f() ? B : sf.s.a(B);
}
}
private static abstract class AbstractC1461c {
public static final class C0373a extends AbstractC1461c {
public static final C0373a a = new C0373a();
private C0373a() {
super(null);
}
public boolean equals(Object obj) {
return this == obj || (obj instanceof C0373a);
}
public int hashCode() {
return 2054089437;
}
public String toString() {
return "Failure";
}
}
public static final class b extends AbstractC1461c {
private final String a;
public b(String str) {
super(null);
this.a = str;
}
public final String a() {
return this.a;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof b) && Intrinsics.d(this.a, ((b) obj).a);
}
public int hashCode() {
String str = this.a;
if (str == null) {
return 0;
}
return str.hashCode();
}
public String toString() {
return "Success(originalDnsCacheTtl=" + this.a + ")";
}
}
public AbstractC1461c(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private AbstractC1461c() {
}
}
static final class c0 extends d {
Object d;
int i;
c0(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object x = a.this.x(null, null, null, this);
return x == wf.b.f() ? x : sf.s.a(x);
}
}
static final class C1462d extends d {
Object d;
int i;
C1462d(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object h = a.this.h(null, null, null, null, null, this);
return h == wf.b.f() ? h : sf.s.a(h);
}
}
static final class d0 extends d {
Object d;
int i;
d0(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object g = a.this.g(null, null, this);
return g == wf.b.f() ? g : sf.s.a(g);
}
}
static final class C1463e extends s implements Function1 {
public static final C1463e d = new C1463e();
C1463e() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class e0 extends s implements Function1 {
e0() {
super(1);
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(PaymentAnalyticsRequestFactory.v(aVar.k, PaymentAnalyticsEvent.t0, null, null, null, null, null, 62, null));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1464f extends d {
Object d;
int i;
C1464f(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object o = a.this.o(null, null, null, null, null, this);
return o == wf.b.f() ? o : sf.s.a(o);
}
}
static final class f0 extends d {
Object d;
int i;
f0(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object y = a.this.y(null, null, null, this);
return y == wf.b.f() ? y : sf.s.a(y);
}
}
static final class C1465g extends s implements Function1 {
public static final C1465g d = new C1465g();
C1465g() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class g0 extends s implements Function1 {
final v e;
g0(v vVar) {
super(1);
this.e = vVar;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(aVar.k.t(this.e.d().d, this.e.c()));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1466h extends d {
Object d;
int i;
C1466h(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object s = a.this.s(null, null, null, this);
return s == wf.b.f() ? s : sf.s.a(s);
}
}
static final class C1467i extends s implements Function1 {
C1467i() {
super(1);
}
public final void a(Object obj) {
a.this.T(PaymentAnalyticsEvent.U);
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1468j extends d {
Object d;
int i;
C1468j(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object n = a.this.n(null, null, null, this);
return n == wf.b.f() ? n : sf.s.a(n);
}
}
static final class C1469k extends s implements Function1 {
C1469k() {
super(1);
}
public final void a(Object obj) {
a.this.T(PaymentAnalyticsEvent.Z);
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1470l extends d {
Object d;
int i;
C1470l(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object a = a.this.a(null, null, this);
return a == wf.b.f() ? a : sf.s.a(a);
}
}
static final class C1471m extends d {
int F;
Object d;
Object e;
Object i;
Object v;
C1471m(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.v = obj;
this.F |= Integer.MIN_VALUE;
Object c = a.this.c(null, null, null, this);
return c == wf.b.f() ? c : sf.s.a(c);
}
}
static final class C1472n extends d {
Object d;
int i;
C1472n(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object O = a.this.O(null, null, null, this);
return O == wf.b.f() ? O : sf.s.a(O);
}
}
static final class C1473o extends s implements Function1 {
final com.stripe.android.model.b d;
final a e;
C1473o(com.stripe.android.model.b bVar, a aVar) {
super(1);
this.d = bVar;
this.e = aVar;
}
public final void a(Object obj) {
String type;
r d = this.d.d();
if (d == null || (type = d.k()) == null) {
y i = this.d.i();
type = i != null ? i.getType() : null;
}
a aVar = this.e;
aVar.U(aVar.k.r(type, this.e.X(obj)));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1474p extends d {
Object d;
int i;
C1474p(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object w = a.this.w(null, null, null, this);
return w == wf.b.f() ? w : sf.s.a(w);
}
}
static final class C1475q extends s implements Function1 {
final c e;
C1475q(c cVar) {
super(1);
this.e = cVar;
}
public final void a(Object obj) {
a aVar = a.this;
PaymentAnalyticsRequestFactory paymentAnalyticsRequestFactory = aVar.k;
r d = this.e.d();
aVar.U(paymentAnalyticsRequestFactory.w(d != null ? d.k() : null, a.this.X(obj)));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1476r extends d {
Object d;
int i;
C1476r(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object t = a.this.t(null, null, null, null, null, null, null, this);
return t == wf.b.f() ? t : sf.s.a(t);
}
}
static final class C1477s extends d {
Object d;
int i;
C1477s(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object q = a.this.q(null, null, this);
return q == wf.b.f() ? q : sf.s.a(q);
}
}
static final class C1478t extends s implements Function1 {
public static final C1478t d = new C1478t();
C1478t() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1479u extends d {
Object d;
int i;
C1479u(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object e = a.this.e(null, null, null, false, this);
return e == wf.b.f() ? e : sf.s.a(e);
}
}
static final class C1480v extends d {
Object d;
int i;
C1480v(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object v = a.this.v(null, null, null, this);
return v == wf.b.f() ? v : sf.s.a(v);
}
}
static final class C1481w extends s implements Function1 {
public static final C1481w d = new C1481w();
C1481w() {
super(1);
}
public final void a(Object obj) {
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1482x extends d {
Object d;
int i;
C1482x(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object k = a.this.k(null, null, this);
return k == wf.b.f() ? k : sf.s.a(k);
}
}
static final class C1483y extends s implements Function1 {
final r e;
C1483y(r rVar) {
super(1);
this.e = rVar;
}
public final void a(Object obj) {
a aVar = a.this;
aVar.U(aVar.k.s(this.e.i(), this.e.e()));
}
public Object invoke(Object obj) {
a(((sf.s) obj).j());
return Unit.a;
}
}
static final class C1484z extends d {
Object d;
int i;
C1484z(b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.d = obj;
this.i |= Integer.MIN_VALUE;
Object d = a.this.d(null, null, null, this);
return d == wf.b.f() ? d : sf.s.a(d);
}
}
public a(Context context, Function0 function0, C2879c c2879c, InterfaceC2880d interfaceC2880d, CoroutineContext coroutineContext, Set set, InterfaceC3063y interfaceC3063y, InterfaceC3041c interfaceC3041c, InterfaceC2099i interfaceC2099i, InterfaceC2776b.a aVar, PaymentAnalyticsRequestFactory paymentAnalyticsRequestFactory, e eVar, Set set2, String str, String str2) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(function0, "publishableKeyProvider");
Intrinsics.checkNotNullParameter(interfaceC2880d, "logger");
Intrinsics.checkNotNullParameter(coroutineContext, "workContext");
Intrinsics.checkNotNullParameter(set, "productUsageTokens");
Intrinsics.checkNotNullParameter(interfaceC3063y, "stripeNetworkClient");
Intrinsics.checkNotNullParameter(interfaceC3041c, "analyticsRequestExecutor");
Intrinsics.checkNotNullParameter(interfaceC2099i, "fraudDetectionDataRepository");
Intrinsics.checkNotNullParameter(aVar, "cardAccountRangeRepositoryFactory");
Intrinsics.checkNotNullParameter(paymentAnalyticsRequestFactory, "paymentAnalyticsRequestFactory");
Intrinsics.checkNotNullParameter(eVar, "fraudDetectionDataParamsUtils");
Intrinsics.checkNotNullParameter(set2, "betas");
Intrinsics.checkNotNullParameter(str, "apiVersion");
Intrinsics.checkNotNullParameter(str2, "sdkVersion");
this.a = context;
this.b = function0;
this.c = c2879c;
this.d = interfaceC2880d;
this.e = coroutineContext;
this.f = set;
this.g = interfaceC3063y;
this.h = interfaceC3041c;
this.i = interfaceC2099i;
this.j = aVar;
this.k = paymentAnalyticsRequestFactory;
this.l = eVar;
this.m = new C3044f.b(c2879c, str, str2);
V();
i.d(Rf.O.a(coroutineContext), (CoroutineContext) null, (Rf.P) null, new C0372a(null), 3, (Object) null);
}
private final Pair M(Set set) {
return x.a("payment_user_agent", f(set));
}
static Pair N(a aVar, Set set, int i, Object obj) {
if ((i & 1) != 0) {
set = kotlin.collections.X.d();
}
return aVar.M(set);
}
public final java.lang.Object O(com.stripe.android.model.b r12, x8.C3044f.c r13, java.util.List r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.O(com.stripe.android.model.b, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
private final Map P(String str, List list) {
return kotlin.collections.P.q(kotlin.collections.P.g(x.a("client_secret", str)), n.e(list));
}
private final AbstractC1461c Q() {
Object b;
try {
s.a aVar = sf.s.e;
String property = Security.getProperty("networkaddress.cache.ttl");
Security.setProperty("networkaddress.cache.ttl", "0");
b = sf.s.b(new AbstractC1461c.b(property));
} catch (Throwable th) {
s.a aVar2 = sf.s.e;
b = sf.s.b(t.a(th));
}
AbstractC1461c.C0373a c0373a = AbstractC1461c.C0373a.a;
if (sf.s.g(b)) {
b = c0373a;
}
return (AbstractC1461c) b;
}
public final java.lang.Object R(x8.C3044f r9, w8.InterfaceC3022a r10, kotlin.jvm.functions.Function1 r11, vf.b r12) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.R(x8.f, w8.a, kotlin.jvm.functions.Function1, vf.b):java.lang.Object");
}
static Object S(a aVar, C3044f c3044f, InterfaceC3022a interfaceC3022a, Function1 function1, b bVar, int i, Object obj) {
if ((i & 4) != 0) {
function1 = G.d;
}
return aVar.R(c3044f, interfaceC3022a, function1, bVar);
}
public final void T(PaymentAnalyticsEvent paymentAnalyticsEvent) {
U(PaymentAnalyticsRequestFactory.v(this.k, paymentAnalyticsEvent, null, null, null, null, null, 62, null));
}
private final void V() {
this.i.b();
}
public final String X(Object obj) {
Object b;
C3038A c3038a = (C3038A) (sf.s.g(obj) ? null : obj);
Throwable e = sf.s.e(obj);
if (e != null) {
return AbstractC2906a.a(e);
}
if (c3038a == null || !c3038a.e()) {
return null;
}
try {
b0(c3038a);
b = sf.s.b(Unit.a);
} catch (Throwable th) {
s.a aVar = sf.s.e;
b = sf.s.b(t.a(th));
}
Throwable e2 = sf.s.e(b);
if (e2 != null) {
return AbstractC2906a.a(e2);
}
return null;
}
private final b9.d Y() {
return this.i.a();
}
private final void b0(C3038A c3038a) {
C3058t d = c3038a.d();
String a = d != null ? d.a() : null;
int b = c3038a.b();
C2882f e = l.e(new C3023b().a(AbstractC3059u.a(c3038a)), this.a);
if (b == 429) {
throw new RateLimitException(e, a, null, null, 12, null);
}
switch (b) {
case 400:
case 404:
throw new InvalidRequestException(e, a, b, null, null, 24, null);
case 401:
throw new AuthenticationException(e, a);
case 402:
throw new CardException(e, a);
case 403:
throw new PermissionException(e, a);
default:
throw new APIException(e, a, b, null, null, 24, null);
}
}
private final Map d0(Map map, r rVar, y yVar) {
Set d;
Set d2;
Object obj = map.get("payment_method_data");
Map map2 = obj instanceof Map ? (Map) obj : null;
if (map2 != null) {
if (rVar == null || (d2 = rVar.e()) == null) {
d2 = kotlin.collections.X.d();
}
Map r = kotlin.collections.P.r(map, x.a("payment_method_data", kotlin.collections.P.r(map2, M(d2))));
if (r != null) {
return r;
}
}
Object obj2 = map.get("source_data");
Map map3 = obj2 instanceof Map ? (Map) obj2 : null;
if (map3 == null) {
return map;
}
if (yVar == null || (d = yVar.a()) == null) {
d = kotlin.collections.X.d();
}
return kotlin.collections.P.r(map, x.a("source_data", kotlin.collections.P.r(map3, M(d))));
}
static Map e0(a aVar, Map map, r rVar, y yVar, int i, Object obj) {
if ((i & 4) != 0) {
yVar = null;
}
return aVar.d0(map, rVar, yVar);
}
public final java.lang.Object f0(com.stripe.android.model.b r5, x8.C3044f.c r6, vf.b r7) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.f0(com.stripe.android.model.b, x8.f$c, vf.b):java.lang.Object");
}
private final void g0(AbstractC1461c abstractC1461c) {
if (abstractC1461c instanceof AbstractC1461c.b) {
String a = ((AbstractC1461c.b) abstractC1461c).a();
if (a == null) {
a = "-1";
}
Security.setProperty("networkaddress.cache.ttl", a);
}
}
public final java.lang.Object h0(Y8.r r12, x8.C3044f.c r13, com.stripe.android.networking.PaymentAnalyticsEvent r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.h0(Y8.r, x8.f$c, com.stripe.android.networking.PaymentAnalyticsEvent, vf.b):java.lang.Object");
}
@Override
public java.lang.Object A(Y8.r r5, x8.C3044f.c r6, vf.b r7) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.A(Y8.r, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object B(java.lang.String r6, x8.C3044f.c r7, java.util.List r8, vf.b r9) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.B(java.lang.String, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object C(com.stripe.android.model.n r12, java.util.Set r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.C(com.stripe.android.model.n, java.util.Set, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object D(java.lang.String r12, java.util.Set r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.D(java.lang.String, java.util.Set, x8.f$c, vf.b):java.lang.Object");
}
public final void U(C3040b c3040b) {
Intrinsics.checkNotNullParameter(c3040b, "params");
this.h.a(c3040b);
}
public final String W(String str) {
Intrinsics.checkNotNullParameter(str, "paymentMethodId");
return n.g("payment_methods/%s/detach", str);
}
public final String Z(String str) {
Intrinsics.checkNotNullParameter(str, "paymentIntentId");
return n.g("payment_intents/%s/link_account_sessions", str);
}
@Override
public java.lang.Object a(java.lang.String r17, x8.C3044f.c r18, vf.b r19) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.a(java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
public final String a0(String str) {
Intrinsics.checkNotNullParameter(str, "setupIntentId");
return n.g("setup_intents/%s/link_account_sessions", str);
}
@Override
public java.lang.Object b(n8.C2775a r18, x8.C3044f.c r19, vf.b r20) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.b(n8.a, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object c(com.stripe.android.model.b r6, x8.C3044f.c r7, java.util.List r8, vf.b r9) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.c(com.stripe.android.model.b, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
public final java.lang.Object c0(x8.C3044f r6, kotlin.jvm.functions.Function1 r7, vf.b r8) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.c0(x8.f, kotlin.jvm.functions.Function1, vf.b):java.lang.Object");
}
@Override
public java.lang.Object d(java.lang.String r12, com.stripe.android.model.f r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.d(java.lang.String, com.stripe.android.model.f, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object e(java.lang.String r17, com.stripe.android.model.e r18, x8.C3044f.c r19, boolean r20, vf.b r21) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.e(java.lang.String, com.stripe.android.model.e, x8.f$c, boolean, vf.b):java.lang.Object");
}
@Override
public String f(Set set) {
Intrinsics.checkNotNullParameter(set, "attribution");
return CollectionsKt.q0(kotlin.collections.X.l(kotlin.collections.X.l(kotlin.collections.X.c("stripe-android/20.48.0"), this.f), set), ";", (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 62, (Object) null);
}
@Override
public java.lang.Object g(Y8.A r12, x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.g(Y8.A, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object h(java.lang.String r14, java.lang.String r15, java.lang.String r16, x8.C3044f.c r17, java.util.List r18, vf.b r19) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.h(java.lang.String, java.lang.String, java.lang.String, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object i(java.lang.String r12, x8.C3044f.c r13, java.util.List r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.i(java.lang.String, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object j(java.lang.String r12, x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.j(java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object k(com.stripe.android.model.r r12, x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.k(com.stripe.android.model.r, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object l(java.lang.String r12, x8.C3044f.c r13, java.util.List r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.l(java.lang.String, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object m(x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.m(x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object o(java.lang.String r14, java.lang.String r15, java.lang.String r16, x8.C3044f.c r17, java.util.List r18, vf.b r19) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.o(java.lang.String, java.lang.String, java.lang.String, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object p(java.lang.String r17, java.lang.String r18, x8.C3044f.c r19, vf.b r20) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.p(java.lang.String, java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object q(Y8.o r12, x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.q(Y8.o, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object r(java.util.Set r12, java.lang.String r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.r(java.util.Set, java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object s(java.lang.String r12, java.lang.String r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.s(java.lang.String, java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object t(java.lang.String r16, java.lang.String r17, java.lang.String r18, java.lang.String r19, java.util.Locale r20, Y8.n r21, x8.C3044f.c r22, vf.b r23) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.t(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Locale, Y8.n, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object u(Y8.E r12, x8.C3044f.c r13, vf.b r14) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.u(Y8.E, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object v(java.lang.String r12, com.stripe.android.model.f r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.v(java.lang.String, com.stripe.android.model.f, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object w(com.stripe.android.model.c r19, x8.C3044f.c r20, java.util.List r21, vf.b r22) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.w(com.stripe.android.model.c, x8.f$c, java.util.List, vf.b):java.lang.Object");
}
@Override
public java.lang.Object x(java.lang.String r17, java.lang.String r18, x8.C3044f.c r19, vf.b r20) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.x(java.lang.String, java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object y(java.lang.String r12, com.stripe.android.model.v r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.y(java.lang.String, com.stripe.android.model.v, x8.f$c, vf.b):java.lang.Object");
}
@Override
public java.lang.Object z(x8.C3044f.c r17, java.util.Map r18, vf.b r19) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.z(x8.f$c, java.util.Map, vf.b):java.lang.Object");
}
@Override
public java.lang.Object n(java.lang.String r12, java.lang.String r13, x8.C3044f.c r14, vf.b r15) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.n(java.lang.String, java.lang.String, x8.f$c, vf.b):java.lang.Object");
}
public a(android.content.Context r20, kotlin.jvm.functions.Function0 r21, r8.C2879c r22, r8.InterfaceC2880d r23, kotlin.coroutines.CoroutineContext r24, java.util.Set r25, x8.InterfaceC3063y r26, x8.InterfaceC3041c r27, k8.InterfaceC2099i r28, n8.InterfaceC2776b.a r29, com.stripe.android.networking.PaymentAnalyticsRequestFactory r30, b9.e r31, java.util.Set r32, java.lang.String r33, java.lang.String r34, int r35, kotlin.jvm.internal.DefaultConstructorMarker r36) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.networking.a.<init>(android.content.Context, kotlin.jvm.functions.Function0, r8.c, r8.d, kotlin.coroutines.CoroutineContext, java.util.Set, x8.y, x8.c, k8.i, n8.b$a, com.stripe.android.networking.PaymentAnalyticsRequestFactory, b9.e, java.util.Set, java.lang.String, java.lang.String, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
public a(Context context, Function0 function0, CoroutineContext coroutineContext, Set set, PaymentAnalyticsRequestFactory paymentAnalyticsRequestFactory, InterfaceC3041c interfaceC3041c, InterfaceC2880d interfaceC2880d) {
this(context, function0, null, interfaceC2880d, coroutineContext, set, null, interfaceC3041c, null, null, paymentAnalyticsRequestFactory, null, null, null, null, 31556, null);
Intrinsics.checkNotNullParameter(context, "appContext");
Intrinsics.checkNotNullParameter(function0, "publishableKeyProvider");
Intrinsics.checkNotNullParameter(coroutineContext, "workContext");
Intrinsics.checkNotNullParameter(set, "productUsageTokens");
Intrinsics.checkNotNullParameter(paymentAnalyticsRequestFactory, "paymentAnalyticsRequestFactory");
Intrinsics.checkNotNullParameter(interfaceC3041c, "analyticsRequestExecutor");
Intrinsics.checkNotNullParameter(interfaceC2880d, "logger");
}
}