导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - C0035c.java 源代码

正在查看: Perplexity v2.48.1 应用的 C0035c.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package B4;

import Hc.C0387m;
import Lf.C0756l;
import Lf.O;
import Lf.P;
import Pm.AbstractC1167t;
import Pm.InterfaceC1153e;
import Pm.InterfaceC1166s;
import Se.C1402a0;
import V3.C1751i;
import V3.C1753k;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.res.Resources;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import c4.N;
import c4.S;
import c4.n0;
import c8.InterfaceC2654e;
import com.google.android.gms.internal.measurement.AbstractC2814v1;
import com.google.firebase.crashlytics.CrashlyticsRegistrar;
import com.mapbox.common.location.GoogleDeviceLocationProvider;
import e4.InterfaceC3190a0;
import e4.Z;
import f9.U;
import g.AbstractC3687w;
import ha.C3919b;
import hf.C3960d;
import i.AbstractC3996e;
import i4.InterfaceC4126a;
import java.io.File;
import java.lang.Thread;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import jf.InterfaceC4482a;
import kf.InterfaceC4797e;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.Charsets;
import m4.C5104b;
import nd.InterfaceC5292c;
import re.C6087J;
import t9.InterfaceC6610a;
import t9.InterfaceC6611b;
import u2.AbstractC6698a;
import u8.AbstractC6799b;
import u9.C6810g;
import wb.x0;

public final class C0035c implements InterfaceC4126a, F6.j, nd.i, Je.f, kc.e, InterfaceC4482a, InterfaceC6610a, InterfaceC5292c, InterfaceC1166s, InterfaceC2654e, Z, nd.f {

    public final int f1030w;

    public final Object f1031x;

    public C0035c(Object obj, int i10) {
        this.f1030w = i10;
        this.f1031x = obj;
    }

    @Override
    public InterfaceC6611b a(Ob.A a4) {
        Context context = (Context) this.f1031x;
        Bd.d callback = (Bd.d) a4.f17000e;
        Intrinsics.h(callback, "callback");
        String str = a4.f16996a;
        if (str == null || str.length() == 0) {
            throw new IllegalArgumentException("Must set a non-null database name to a configuration that uses the no backup directory.");
        }
        return new C6810g(context, str, callback, true, true);
    }

    @Override
    public void accept(Object obj) {
        R8.a aVar = (R8.a) obj;
        switch (this.f1030w) {
            case 19:
                R8.g gVar = (R8.g) this.f1031x;
                gVar.getClass();
                R8.f fVar = new R8.f(aVar.f20928b, ha.g.m(aVar.f20927a, aVar.f20929c));
                gVar.f20942c.add(fVar);
                long j10 = gVar.f20949j;
                if (j10 == -9223372036854775807L || aVar.f20928b >= j10) {
                    gVar.a(fVar);
                    break;
                }
                break;
            default:
                ((C6087J) this.f1031x).a(aVar);
                break;
        }
    }

    @Override
    public Object apply(Object obj) {
        O o10 = (O) obj;
        ((C0756l) this.f1031x).getClass();
        String o11 = P.f13400b.o(o10);
        Intrinsics.g(o11, "SessionEvents.SESSION_EVENT_ENCODER.encode(value)");
        o10.getClass();
        Log.d("EventGDTLogger", "Session Event Type: SESSION_START");
        byte[] bytes = o11.getBytes(Charsets.f55836b);
        Intrinsics.g(bytes, "getBytes(...)");
        return bytes;
    }

    public void b(long j10, c8.q qVar) {
        switch (this.f1030w) {
            case 12:
                AbstractC6799b.d(j10, qVar, ((O8.n) this.f1031x).f16712H);
                break;
            default:
                AbstractC6799b.d(j10, qVar, (u8.E[]) ((U) this.f1031x).f44662y);
                break;
        }
    }

    @Override
    public Object c(x0 x0Var) {
        Qe.d dVar;
        long j10;
        String str;
        Qe.d dVar2;
        String str2;
        int i10;
        Throwable th2;
        Iterator it;
        String str3;
        long currentTimeMillis;
        String num;
        String str4;
        String l4;
        nd.s sVar;
        nd.j onSuccessTask;
        boolean z10;
        Aa.i iVar;
        boolean exists;
        NetworkInfo activeNetworkInfo;
        Resources resources;
        Xe.a c10;
        long longVersionCode;
        int i11 = CrashlyticsRegistrar.f39733d;
        CrashlyticsRegistrar crashlyticsRegistrar = (CrashlyticsRegistrar) this.f1031x;
        crashlyticsRegistrar.getClass();
        long currentTimeMillis2 = System.currentTimeMillis();
        Ce.g gVar = (Ce.g) x0Var.a(Ce.g.class);
        InterfaceC4797e interfaceC4797e = (InterfaceC4797e) x0Var.a(InterfaceC4797e.class);
        Je.n I10 = x0Var.I(Me.a.class);
        Je.n I11 = x0Var.I(Ge.b.class);
        Je.n I12 = x0Var.I(Jf.a.class);
        ExecutorService executorService = (ExecutorService) x0Var.e(crashlyticsRegistrar.f39734a);
        ExecutorService executorService2 = (ExecutorService) x0Var.e(crashlyticsRegistrar.f39735b);
        ExecutorService executorService3 = (ExecutorService) x0Var.e(crashlyticsRegistrar.f39736c);
        gVar.a();
        Context context = gVar.f2022a;
        String packageName = context.getPackageName();
        Log.i("FirebaseCrashlytics", "Initializing Firebase Crashlytics 19.4.3 for " + packageName, null);
        Qe.d dVar3 = new Qe.d(executorService, executorService2);
        Ve.c cVar = new Ve.c();
        String str5 = ((C1402a0) Me.c.f14982b.e(context)).f23143a;
        cVar.f26919a = str5;
        File filesDir = context.getFilesDir();
        cVar.f26920b = filesDir;
        if (str5.isEmpty()) {
            dVar = dVar3;
            j10 = currentTimeMillis2;
            str = ".com.google.firebase.crashlytics.files.v1";
        } else {
            dVar = dVar3;
            StringBuilder sb2 = new StringBuilder(".crashlytics.v3");
            sb2.append(File.separator);
            j10 = currentTimeMillis2;
            sb2.append(str5.length() > 40 ? Pe.f.h(str5) : str5.replaceAll("[^a-zA-Z0-9.]", "_"));
            str = sb2.toString();
        }
        File file = new File(filesDir, str);
        Ve.c.k(file);
        cVar.f26921c = file;
        File file2 = new File(file, "open-sessions");
        Ve.c.k(file2);
        cVar.f26922d = file2;
        File file3 = new File(file, "reports");
        Ve.c.k(file3);
        cVar.f26923e = file3;
        File file4 = new File(file, "priority-reports");
        Ve.c.k(file4);
        cVar.f26924f = file4;
        File file5 = new File(file, "native-reports");
        Ve.c.k(file5);
        cVar.f26925g = file5;
        Hc.x xVar = new Hc.x(gVar);
        Pe.u uVar = new Pe.u(context, packageName, interfaceC4797e, xVar);
        Me.a aVar = new Me.a(I10);
        C0387m c0387m = new C0387m(I11);
        Pe.i iVar2 = new Pe.i(xVar, cVar);
        Mf.c cVar2 = Mf.c.f14994a;
        Mf.d dVar4 = Mf.d.f14996w;
        Mf.c cVar3 = Mf.c.f14994a;
        Mf.a a4 = Mf.c.a(dVar4);
        if (a4.f14984b != null) {
            Log.d("SessionsDependencies", "Subscriber " + dVar4 + " already registered.");
        } else {
            a4.f14984b = iVar2;
            Log.d("SessionsDependencies", "Subscriber " + dVar4 + " registered.");
            a4.f14983a.g(null);
        }
        Pe.p pVar = new Pe.p(gVar, uVar, aVar, xVar, new Le.a(c0387m), new Le.a(c0387m), cVar, iVar2, new Ec.i(I12), dVar);
        Qe.d dVar5 = dVar;
        Qe.d dVar6 = pVar.f18261o;
        gVar.a();
        String str6 = gVar.f2024c.f2038b;
        int d7 = Pe.f.d(context, "com.google.firebase.crashlytics.mapping_file_id", "string");
        if (d7 == 0) {
            d7 = Pe.f.d(context, "com.crashlytics.android.build_id", "string");
        }
        String string = d7 != 0 ? context.getResources().getString(d7) : null;
        ArrayList arrayList = new ArrayList();
        int d9 = Pe.f.d(context, "com.google.firebase.crashlytics.build_ids_lib", "array");
        int d10 = Pe.f.d(context, "com.google.firebase.crashlytics.build_ids_arch", "array");
        int d11 = Pe.f.d(context, "com.google.firebase.crashlytics.build_ids_build_id", "array");
        if (d9 == 0 || d10 == 0 || d11 == 0) {
            dVar2 = dVar6;
            str2 = str6;
            String format = String.format("Could not find resources: %d %d %d", Integer.valueOf(d9), Integer.valueOf(d10), Integer.valueOf(d11));
            i10 = 3;
            if (Log.isLoggable("FirebaseCrashlytics", 3)) {
                th2 = null;
                Log.d("FirebaseCrashlytics", format, null);
                String k9 = e.q.k("Mapping file ID is: ", string);
                if (Log.isLoggable("FirebaseCrashlytics", i10)) {
                    Log.d("FirebaseCrashlytics", k9, th2);
                }
                it = arrayList.iterator();
                while (it.hasNext()) {
                    Pe.c cVar4 = (Pe.c) it.next();
                    StringBuilder p10 = AbstractC3996e.p("Build id for ", cVar4.f18195a, " on ");
                    p10.append(cVar4.f18196b);
                    p10.append(": ");
                    p10.append(cVar4.f18197c);
                    String sb3 = p10.toString();
                    if (Log.isLoggable("FirebaseCrashlytics", 3)) {
                        Log.d("FirebaseCrashlytics", sb3, null);
                    }
                }
                W9.e eVar = new W9.e(context);
                String packageName2 = context.getPackageName();
                String d12 = uVar.d();
                PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName2, 0);
                if (Build.VERSION.SDK_INT < 28) {
                    longVersionCode = packageInfo.getLongVersionCode();
                    num = Long.toString(longVersionCode);
                } else {
                    num = Integer.toString(packageInfo.versionCode);
                }
                String str7 = num;
                str4 = packageInfo.versionName;
                if (str4 == null) {
                    str4 = "0.0";
                }
                String str8 = str4;
                Aa.i iVar3 = new Aa.i(str2, string, arrayList, d12, packageName2, str7, str8, eVar);
                String str9 = str2;
                String k10 = e.q.k("Installer package name is: ", d12);
                if (Log.isLoggable("FirebaseCrashlytics", 2)) {
                    Log.v("FirebaseCrashlytics", k10, null);
                }
                new Qd.e(17);
                String d13 = uVar.d();
                C3960d c3960d = new C3960d(8);
                Ok.j jVar = new Ok.j(c3960d, 26);
                Ok.j jVar2 = new Ok.j(cVar);
                Locale locale = Locale.US;
                l4 = e.q.l("https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/", str9, "/settings");
                Nm.u uVar2 = new Nm.u();
                if (l4 != null) {
                    throw new IllegalArgumentException("url must not be null.");
                }
                uVar2.f15934w = l4;
                String str10 = Build.MANUFACTURER;
                String str11 = Pe.u.f18279h;
                String g10 = AbstractC6698a.g(str10.replaceAll(str11, ""), "/", Build.MODEL.replaceAll(str11, ""));
                String replaceAll = Build.VERSION.INCREMENTAL.replaceAll(str11, "");
                String replaceAll2 = Build.VERSION.RELEASE.replaceAll(str11, "");
                int d14 = Pe.f.d(context, "com.google.firebase.crashlytics.mapping_file_id", "string");
                if (d14 == 0) {
                    d14 = Pe.f.d(context, "com.crashlytics.android.build_id", "string");
                }
                String[] strArr = {d14 != 0 ? context.getResources().getString(d14) : null, str9, str8, str7};
                ArrayList arrayList2 = new ArrayList();
                int i12 = 0;
                while (true) {
                    String[] strArr2 = strArr;
                    if (i12 >= 4) {
                        break;
                    }
                    String str12 = strArr2[i12];
                    String str13 = str9;
                    if (str12 != null) {
                        arrayList2.add(str12.replace("-", "").toLowerCase(Locale.US));
                    }
                    i12++;
                    strArr = strArr2;
                    str9 = str13;
                }
                String str14 = str9;
                Collections.sort(arrayList2);
                StringBuilder sb4 = new StringBuilder();
                Iterator it2 = arrayList2.iterator();
                while (it2.hasNext()) {
                    sb4.append((String) it2.next());
                }
                String sb5 = sb4.toString();
                Xe.d dVar7 = new Xe.d(str14, g10, replaceAll, replaceAll2, uVar, sb5.length() > 0 ? Pe.f.h(sb5) : null, str8, str7, O6.c.a(d13 == null ? 1 : 4));
                Xe.b bVar = new Xe.b();
                AtomicReference atomicReference = new AtomicReference();
                bVar.f28623h = atomicReference;
                bVar.f28624i = new AtomicReference(new nd.k());
                bVar.f28616a = context;
                bVar.f28617b = dVar7;
                bVar.f28619d = c3960d;
                bVar.f28618c = jVar;
                bVar.f28620e = jVar2;
                bVar.f28621f = uVar2;
                bVar.f28622g = xVar;
                atomicReference.set(C3919b.i(c3960d));
                boolean equals = ((Context) bVar.f28616a).getSharedPreferences("com.google.firebase.crashlytics", 0).getString("existing_instance_identifier", "").equals(((Xe.d) bVar.f28617b).f28630f);
                AtomicReference atomicReference2 = (AtomicReference) bVar.f28624i;
                AtomicReference atomicReference3 = (AtomicReference) bVar.f28623h;
                if (!equals || (c10 = bVar.c(1)) == null) {
                    Xe.a c11 = bVar.c(3);
                    if (c11 != null) {
                        atomicReference3.set(c11);
                        ((nd.k) atomicReference2.get()).d(c11);
                    }
                    Hc.x xVar2 = (Hc.x) bVar.f28622g;
                    nd.s sVar2 = ((nd.k) xVar2.f7633Y).f58821a;
                    synchronized (xVar2.f7636y) {
                        sVar = ((nd.k) xVar2.f7637z).f58821a;
                    }
                    onSuccessTask = Qe.a.a(sVar2, sVar).onSuccessTask(dVar5.f20409a, new W9.c(bVar, false, dVar5, 13));
                } else {
                    atomicReference3.set(c10);
                    ((nd.k) atomicReference2.get()).d(c10);
                    onSuccessTask = AbstractC3687w.n(null);
                }
                onSuccessTask.addOnFailureListener(executorService3, new A8.b(18));
                Ve.c cVar5 = pVar.f18255i;
                Context context2 = pVar.f18247a;
                if (context2 != null && (resources = context2.getResources()) != null) {
                    int d15 = Pe.f.d(context2, "com.crashlytics.RequireBuildId", "bool");
                    if (d15 > 0) {
                        z10 = resources.getBoolean(d15);
                    } else {
                        int d16 = Pe.f.d(context2, "com.crashlytics.RequireBuildId", "string");
                        if (d16 > 0) {
                            z10 = Boolean.parseBoolean(context2.getString(d16));
                        }
                    }
                    if (z10) {
                        str3 = "FirebaseCrashlytics";
                        if (Log.isLoggable(str3, 2)) {
                            Log.v(str3, "Configured not to require a build ID.", null);
                        }
                        iVar = iVar3;
                    } else {
                        str3 = "FirebaseCrashlytics";
                        iVar = iVar3;
                        if (TextUtils.isEmpty((String) iVar.f303b)) {
                            Log.e(str3, ".");
                            Log.e(str3, ".     |  | ");
                            Log.e(str3, ".     |  |");
                            Log.e(str3, ".     |  |");
                            Log.e(str3, ".   \\ |  | /");
                            Log.e(str3, ".    \\    /");
                            Log.e(str3, ".     \\  /");
                            Log.e(str3, ".      \\/");
                            Log.e(str3, ".");
                            Log.e(str3, "The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
                            Log.e(str3, ".");
                            Log.e(str3, ".      /\\");
                            Log.e(str3, ".     /  \\");
                            Log.e(str3, ".    /    \\");
                            Log.e(str3, ".   / |  | \\");
                            Log.e(str3, ".     |  |");
                            Log.e(str3, ".     |  |");
                            Log.e(str3, ".     |  |");
                            Log.e(str3, ".");
                            throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin");
                        }
                    }
                    String str15 = new Pe.d().f18200a;
                    int i13 = 10;
                    pVar.f18252f = new Vc.e(i13, "crash_marker", cVar5);
                    pVar.f18251e = new Vc.e(i13, "initialization_marker", cVar5);
                    Qe.d dVar8 = dVar2;
                    Ve.c cVar6 = new Ve.c(str15, cVar5, dVar8);
                    Re.f fVar = new Re.f(cVar5);
                    Vc.e eVar2 = new Vc.e(new Ye.a[]{new Qd.e(20)});
                    Ec.i iVar4 = pVar.f18260n;
                    iVar4.getClass();
                    ((Je.n) iVar4.f4405w).a(new C0035c(new Me.b(cVar6), 11));
                    Aa.i iVar5 = iVar;
                    pVar.f18253g = new Pe.l(pVar.f18247a, pVar.f18254h, pVar.f18248b, pVar.f18255i, pVar.f18252f, iVar5, cVar6, fVar, Ve.c.e(pVar.f18247a, pVar.f18254h, pVar.f18255i, iVar5, fVar, cVar6, eVar2, bVar, pVar.f18249c, pVar.f18258l, pVar.f18261o), pVar.f18259m, pVar.f18257k, pVar.f18258l, pVar.f18261o);
                    Vc.e eVar3 = pVar.f18251e;
                    String str16 = (String) eVar3.f26900x;
                    Ve.c cVar7 = (Ve.c) eVar3.f26901y;
                    cVar7.getClass();
                    exists = new File((File) cVar7.f26921c, str16).exists();
                    Boolean.TRUE.equals((Boolean) dVar8.f20409a.f20405w.submit(new Gf.e(pVar, 2)).get(3L, TimeUnit.SECONDS));
                    Pe.l lVar = pVar.f18253g;
                    Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
                    lVar.f18226e.f20409a.a(new o(14, lVar, str15));
                    Pe.r rVar = new Pe.r(new O8.h(lVar, 3), bVar, defaultUncaughtExceptionHandler, lVar.f18231j);
                    lVar.f18235n = rVar;
                    Thread.setDefaultUncaughtExceptionHandler(rVar);
                    if (exists || (context2.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0 && ((activeNetworkInfo = ((ConnectivityManager) context2.getSystemService("connectivity")).getActiveNetworkInfo()) == null || !activeNetworkInfo.isConnectedOrConnecting()))) {
                        if (Log.isLoggable(str3, 3)) {
                            Log.d(str3, "Successfully configured exception handler.", null);
                        }
                        dVar8.f20409a.a(new Pe.m(pVar, bVar, 0));
                        Le.b bVar2 = new Le.b(pVar);
                        currentTimeMillis = System.currentTimeMillis() - j10;
                        if (currentTimeMillis > 16) {
                            String str17 = "Initializing Crashlytics blocked main for " + currentTimeMillis + " ms";
                            if (Log.isLoggable(str3, 3)) {
                                Log.d(str3, str17, null);
                            }
                        }
                        return bVar2;
                    }
                    if (Log.isLoggable(str3, 3)) {
                        Log.d(str3, "Crashlytics did not finish previous background initialization. Initializing synchronously.", null);
                    }
                    pVar.b(bVar);
                    Le.b bVar22 = new Le.b(pVar);
                    currentTimeMillis = System.currentTimeMillis() - j10;
                    if (currentTimeMillis > 16) {
                    }
                    return bVar22;
                }
                z10 = true;
                if (z10) {
                }
                String str152 = new Pe.d().f18200a;
                int i132 = 10;
                pVar.f18252f = new Vc.e(i132, "crash_marker", cVar5);
                pVar.f18251e = new Vc.e(i132, "initialization_marker", cVar5);
                Qe.d dVar82 = dVar2;
                Ve.c cVar62 = new Ve.c(str152, cVar5, dVar82);
                Re.f fVar2 = new Re.f(cVar5);
                Vc.e eVar22 = new Vc.e(new Ye.a[]{new Qd.e(20)});
                Ec.i iVar42 = pVar.f18260n;
                iVar42.getClass();
                ((Je.n) iVar42.f4405w).a(new C0035c(new Me.b(cVar62), 11));
                Aa.i iVar52 = iVar;
                pVar.f18253g = new Pe.l(pVar.f18247a, pVar.f18254h, pVar.f18248b, pVar.f18255i, pVar.f18252f, iVar52, cVar62, fVar2, Ve.c.e(pVar.f18247a, pVar.f18254h, pVar.f18255i, iVar52, fVar2, cVar62, eVar22, bVar, pVar.f18249c, pVar.f18258l, pVar.f18261o), pVar.f18259m, pVar.f18257k, pVar.f18258l, pVar.f18261o);
                Vc.e eVar32 = pVar.f18251e;
                String str162 = (String) eVar32.f26900x;
                Ve.c cVar72 = (Ve.c) eVar32.f26901y;
                cVar72.getClass();
                exists = new File((File) cVar72.f26921c, str162).exists();
                Boolean.TRUE.equals((Boolean) dVar82.f20409a.f20405w.submit(new Gf.e(pVar, 2)).get(3L, TimeUnit.SECONDS));
                Pe.l lVar2 = pVar.f18253g;
                Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler2 = Thread.getDefaultUncaughtExceptionHandler();
                lVar2.f18226e.f20409a.a(new o(14, lVar2, str152));
                Pe.r rVar2 = new Pe.r(new O8.h(lVar2, 3), bVar, defaultUncaughtExceptionHandler2, lVar2.f18231j);
                lVar2.f18235n = rVar2;
                Thread.setDefaultUncaughtExceptionHandler(rVar2);
                if (exists) {
                }
                if (Log.isLoggable(str3, 3)) {
                }
                dVar82.f20409a.a(new Pe.m(pVar, bVar, 0));
                Le.b bVar222 = new Le.b(pVar);
                currentTimeMillis = System.currentTimeMillis() - j10;
                if (currentTimeMillis > 16) {
                }
                return bVar222;
            }
        } else {
            String[] stringArray = context.getResources().getStringArray(d9);
            String[] stringArray2 = context.getResources().getStringArray(d10);
            String[] stringArray3 = context.getResources().getStringArray(d11);
            if (stringArray.length == stringArray3.length && stringArray2.length == stringArray3.length) {
                int i14 = 0;
                while (i14 < stringArray3.length) {
                    int i15 = i14;
                    arrayList.add(new Pe.c(stringArray[i14], stringArray2[i15], stringArray3[i15]));
                    i14 = i15 + 1;
                    dVar6 = dVar6;
                    str6 = str6;
                }
                dVar2 = dVar6;
                str2 = str6;
            } else {
                dVar2 = dVar6;
                str2 = str6;
                String format2 = String.format("Lengths did not match: %d %d %d", Integer.valueOf(stringArray.length), Integer.valueOf(stringArray2.length), Integer.valueOf(stringArray3.length));
                if (Log.isLoggable("FirebaseCrashlytics", 3)) {
                    Log.d("FirebaseCrashlytics", format2, null);
                }
            }
            i10 = 3;
        }
        th2 = null;
        String k92 = e.q.k("Mapping file ID is: ", string);
        if (Log.isLoggable("FirebaseCrashlytics", i10)) {
        }
        it = arrayList.iterator();
        while (it.hasNext()) {
        }
        W9.e eVar4 = new W9.e(context);
        String packageName22 = context.getPackageName();
        String d122 = uVar.d();
        PackageInfo packageInfo2 = context.getPackageManager().getPackageInfo(packageName22, 0);
        if (Build.VERSION.SDK_INT < 28) {
        }
        String str72 = num;
        str4 = packageInfo2.versionName;
        if (str4 == null) {
        }
        String str82 = str4;
        Aa.i iVar32 = new Aa.i(str2, string, arrayList, d122, packageName22, str72, str82, eVar4);
        String str92 = str2;
        String k102 = e.q.k("Installer package name is: ", d122);
        if (Log.isLoggable("FirebaseCrashlytics", 2)) {
        }
        new Qd.e(17);
        String d132 = uVar.d();
        C3960d c3960d2 = new C3960d(8);
        Ok.j jVar3 = new Ok.j(c3960d2, 26);
        Ok.j jVar22 = new Ok.j(cVar);
        Locale locale2 = Locale.US;
        l4 = e.q.l("https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/", str92, "/settings");
        Nm.u uVar22 = new Nm.u();
        if (l4 != null) {
        }
    }

    @Override
    public AbstractC1167t create(InterfaceC1153e interfaceC1153e) {
        AbstractC1167t this_asFactory = (AbstractC1167t) this.f1031x;
        Intrinsics.h(this_asFactory, "$this_asFactory");
        return this_asFactory;
    }

    @Override
    public void d(InterfaceC3190a0 interfaceC3190a0) {
        switch (this.f1030w) {
            case 25:
                Dc.b bVar = (Dc.b) this.f1031x;
                bVar.getClass();
                try {
                    N a4 = interfaceC3190a0.a();
                    if (a4 != null) {
                        ((C5104b) bVar.f3485e).z(a4);
                        return;
                    }
                    return;
                } catch (IllegalStateException e10) {
                    AbstractC2814v1.z("ZslControlImpl", "Failed to acquire latest image IllegalStateException = " + e10.getMessage());
                    return;
                }
            default:
                S s7 = (S) this.f1031x;
                synchronized (s7.f36939w) {
                    s7.f36942y++;
                }
                s7.f(interfaceC3190a0);
                return;
        }
    }

    public void e() {
        switch (this.f1030w) {
            case 4:
                Lambda lambda = (Lambda) this.f1031x;
                synchronized (D5.q.f3202b) {
                    D5.q.f3207g = bl.f.T0((List) D5.q.f3207g, lambda);
                    Unit unit = Unit.f52701a;
                }
                return;
            default:
                D6.c cVar = (D6.c) this.f1031x;
                synchronized (D5.q.f3202b) {
                    D5.q.f3208h = bl.f.T0((List) D5.q.f3208h, cVar);
                    Unit unit2 = Unit.f52701a;
                }
                D5.q.a();
                return;
        }
    }

    public void f(android.support.v4.media.session.b bVar) {
        AbstractC0037e abstractC0037e;
        t tVar = (t) this.f1031x;
        tVar.getClass();
        if (!(bVar instanceof C4.b) || (abstractC0037e = tVar.f1111u0) == null) {
            return;
        }
        C4.b bVar2 = (C4.b) bVar;
        if (!abstractC0037e.h()) {
            AbstractC2814v1.N("CameraController", "Use cases not attached to camera.");
            return;
        }
        if (!abstractC0037e.f1049q) {
            AbstractC2814v1.y("CameraController", "Pinch to zoom disabled.");
            return;
        }
        StringBuilder sb2 = new StringBuilder("Pinch to zoom with scale: ");
        float f4 = bVar2.f1749d;
        sb2.append(f4);
        AbstractC2814v1.y("CameraController", sb2.toString());
        g4.h.o();
        n0 n0Var = (n0) abstractC0037e.f1051s.d();
        if (n0Var == null) {
            return;
        }
        abstractC0037e.i(Math.min(Math.max(n0Var.c() * (f4 > 1.0f ? e.q.a(f4, 1.0f, 2.0f, 1.0f) : 1.0f - ((1.0f - f4) * 2.0f)), n0Var.b()), n0Var.a()));
    }

    public float g(float f4) {
        return ((G6.r) this.f1031x).f6782k.b() * f4;
    }

    @Override
    public void h(jf.b bVar) {
        switch (this.f1030w) {
            case 10:
                Me.a aVar = (Me.a) this.f1031x;
                aVar.getClass();
                if (Log.isLoggable("FirebaseCrashlytics", 3)) {
                    Log.d("FirebaseCrashlytics", "Crashlytics native component now available.", null);
                }
                aVar.f14979b.set((Me.a) bVar.get());
                break;
            default:
                W9.i iVar = ((Gf.g) ((Jf.a) bVar.get())).b("firebase").f7036i;
                Set set = (Set) iVar.f27446X;
                Me.b bVar2 = (Me.b) this.f1031x;
                set.add(bVar2);
                nd.j b6 = ((Hf.e) iVar.f27448x).b();
                b6.addOnSuccessListener((Executor) iVar.f27450z, new C0042j(iVar, b6, bVar2, 5));
                if (Log.isLoggable("FirebaseCrashlytics", 3)) {
                    Log.d("FirebaseCrashlytics", "Registering RemoteConfig Rollouts subscriber", null);
                    break;
                }
                break;
        }
    }

    @Override
    public Object n(F6.i iVar) {
        switch (this.f1030w) {
            case 3:
                ((K) this.f1031x).f1025k.set(iVar);
                return "textureViewImpl_waitForNextFrame";
            case 23:
                C1753k c1753k = (C1753k) this.f1031x;
                c1753k.getClass();
                c1753k.f26389c.execute(new o(21, c1753k, iVar));
                return "updateSessionConfigAsync";
            default:
                C1751i c1751i = (C1751i) this.f1031x;
                c1751i.f26378c = iVar;
                return "RequestCompleteListener[" + c1751i + "]";
        }
    }

    @Override
    public void onFailure(Exception exc) {
        GoogleDeviceLocationProvider.doStop$lambda$3((GoogleDeviceLocationProvider) this.f1031x, exc);
    }

    @Override
    public Object then(nd.j jVar) {
        boolean z10;
        switch (this.f1030w) {
            case 14:
                ((Ve.c) this.f1031x).getClass();
                if (jVar.isSuccessful()) {
                    Pe.a aVar = (Pe.a) jVar.getResult();
                    Me.c cVar = Me.c.f14981a;
                    cVar.c("Crashlytics report successfully enqueued to DataTransport: " + aVar.f18190b);
                    File file = aVar.f18191c;
                    if (file.delete()) {
                        cVar.c("Deleted report file: " + file.getPath());
                    } else {
                        cVar.g("Crashlytics could not delete report file: " + file.getPath(), null);
                    }
                    z10 = true;
                } else {
                    Log.w("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", jVar.getException());
                    z10 = false;
                }
                return Boolean.valueOf(z10);
            case 15:
                ((CountDownLatch) this.f1031x).countDown();
                return null;
            case 16:
                return (nd.j) ((Pe.j) this.f1031x).call();
            default:
                ((Runnable) this.f1031x).run();
                return AbstractC3687w.n(null);
        }
    }

    public C0035c(Function2 function2) {
        this.f1030w = 4;
        this.f1031x = (Lambda) function2;
    }

    @Override
    public com.google.common.util.concurrent.I apply(Object obj) {
        return ((l) this.f1031x).f1076d.k();
    }

    @Override
    public nd.j then(Object obj) {
        return AbstractC3687w.n((Hf.j) this.f1031x);
    }
}