导航菜单

页面标题

页面副标题

Baubap v3.9.7 - f0.java 源代码

正在查看: Baubap v3.9.7 应用的 f0.java JAVA 源代码文件

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


package w9;

import android.app.ActivityManager;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.location.LocationManager;
import android.os.Build;
import android.provider.Settings;
import android.util.LongSparseArray;
import android.view.View;
import androidx.datastore.preferences.protobuf.r1;
import androidx.work.impl.WorkDatabase;
import b2.b1;
import b2.n3;
import b2.s1;
import b50.h1;
import b50.p1;
import b50.x0;
import b50.x1;
import com.baubap.data.api.EncryptionInterceptor;
import com.baubap.presentation.main.loan.ongoing.extension.ExtensionViewModelV2;
import e1.c2;
import f6.o1;
import g3.o0;
import g50.l0;
import g50.m0;
import i.z0;
import j3.a1;
import j3.q1;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collection;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import m40.k0;
import m40.m1;
import m40.n0;
import m40.n2;
import m40.o2;
import m40.p0;
import m40.r2;
import n1.a2;
import ny.k1;
import q1.j4;
import q1.k4;
import r40.i0;
import v.m2;
import w3.j0;
import y0.u0;
import y1.l2;
import y1.l7;
import y1.m7;
import y1.nc;
import y1.s0;
import y1.u6;
import y1.w6;
import y1.x2;
import z0.w1;

public abstract class f0 {

    public static Field f32963a = null;

    public static boolean f32964b = false;

    public static Class f32965c = null;

    public static boolean f32966d = false;

    public static Field f32967e = null;

    public static boolean f32968f = false;

    public static Field f32969g = null;

    public static boolean f32970h = false;

    public static volatile boolean f32971i = true;

    public static final boolean A(int i10, int i11) {
        return i10 == i11;
    }

    public static void B(Object obj) {
        LongSparseArray longSparseArray;
        if (!f32966d) {
            try {
                f32965c = Class.forName("android.content.res.ThemedResourceCache");
            } catch (ClassNotFoundException e10) {
                io.sentry.android.core.c.d("ResourcesFlusher", "Could not find ThemedResourceCache class", e10);
            }
            f32966d = true;
        }
        Class cls = f32965c;
        if (cls == null) {
            return;
        }
        if (!f32968f) {
            try {
                Field declaredField = cls.getDeclaredField("mUnthemedEntries");
                f32967e = declaredField;
                declaredField.setAccessible(true);
            } catch (NoSuchFieldException e11) {
                io.sentry.android.core.c.d("ResourcesFlusher", "Could not retrieve ThemedResourceCache#mUnthemedEntries field", e11);
            }
            f32968f = true;
        }
        Field field = f32967e;
        if (field == null) {
            return;
        }
        try {
            longSparseArray = (LongSparseArray) field.get(obj);
        } catch (IllegalAccessException e12) {
            io.sentry.android.core.c.d("ResourcesFlusher", "Could not retrieve value from ThemedResourceCache#mUnthemedEntries", e12);
            longSparseArray = null;
        }
        if (longSparseArray != null) {
            z0.a(longSparseArray);
        }
    }

    public static final n0 C(q30.j jVar) {
        n0 n0Var = jVar.get(q30.f.b);
        n0 n0Var2 = n0Var instanceof n0 ? n0Var : null;
        return n0Var2 == null ? k0.a : n0Var2;
    }

    public static Drawable D(Context context, Context context2, int i10, Resources.Theme theme) {
        try {
            if (f32971i) {
                return K(context2, i10, theme);
            }
        } catch (Resources.NotFoundException unused) {
        } catch (IllegalStateException e10) {
            if (context.getPackageName().equals(context2.getPackageName())) {
                throw e10;
            }
            return v4.l.getDrawable(context2, i10);
        } catch (NoClassDefFoundError unused2) {
            f32971i = false;
        }
        if (theme == null) {
            theme = context2.getTheme();
        }
        Resources resources = context2.getResources();
        ThreadLocal threadLocal = x4.p.f34033a;
        return x4.i.a(resources, i10, theme);
    }

    public static final String E(int i10) {
        tx.b.u(16);
        String num = Integer.toString(i10, 16);
        xu.b.x(num, "toString(...)");
        return "0x".concat(num);
    }

    public static final b1 F(q30.j jVar) {
        b1 b1Var = (b1) jVar.get(b2.m.f4555c);
        if (b1Var != null) {
            return b1Var;
        }
        throw new IllegalStateException("A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.".toString());
    }

    public static int G(int i10) {
        if (i10 < 0) {
            return -1;
        }
        return i10 > 0 ? 1 : 0;
    }

    public static v10.g H(androidx.activity.o oVar, o1 o1Var) {
        xu.b.y(o1Var, "delegateFactory");
        lc.e eVar = (lc.e) ((ra.a) xu.b.N(ra.a.class, oVar));
        ea.l lVar = new ea.l(eVar.b(), new ea.i(eVar.f19337a, eVar.f19338b));
        return new v10.g((Set) lVar.f11912c, o1Var, (u10.a) lVar.f11913d);
    }

    public static final boolean I(int i10) {
        return i10 == 1 || i10 == 2;
    }

    public static final boolean J(Context context) {
        boolean isLocationEnabled;
        if (Build.VERSION.SDK_INT < 28) {
            return Settings.Secure.getInt(context.getContentResolver(), "location_mode", 0) != 0;
        }
        LocationManager locationManager = (LocationManager) v4.l.getSystemService(context, LocationManager.class);
        if (locationManager == null) {
            return false;
        }
        isLocationEnabled = locationManager.isLocationEnabled();
        return isLocationEnabled;
    }

    public static Drawable K(Context context, int i10, Resources.Theme theme) {
        if (theme != null) {
            m.e eVar = new m.e(context, theme);
            eVar.a(theme.getResources().getConfiguration());
            context = eVar;
        }
        return ea.f.h0(context, i10);
    }

    public static final void L(Runnable runnable, Throwable th, cq.c cVar) {
        xu.b.y(cVar, "logger");
        if (th == null && (runnable instanceof Future) && ((Future) runnable).isDone()) {
            try {
                try {
                    ((Future) runnable).get();
                } catch (SecurityException e10) {
                    ea.f.r0(cVar, 5, cq.b.c, ar.c.i, e10, false, 48);
                }
            } catch (InterruptedException unused) {
                Thread.currentThread().interrupt();
            } catch (CancellationException e11) {
                th = e11;
            } catch (ExecutionException e12) {
                th = e12.getCause();
            }
        }
        Throwable th2 = th;
        if (th2 != null) {
            ea.f.s0(cVar, 5, g0.i.d0(cq.b.b, cq.b.d), ar.c.j, th2, 48);
        }
    }

    public static m0 M(he.d dVar, ke.a aVar, ld.a aVar2, Context context) {
        l0 l0Var = new l0();
        xu.b.y(context, "context");
        new b2.d0().f4444a = true;
        new a5.c(context, 1);
        xp.a aVar3 = new xp.a();
        ArrayList arrayList = l0Var.c;
        arrayList.add(aVar3);
        arrayList.add(new rr.g());
        l0Var.d.add(new tr.d((String) null, new az.e(), (String) null, new fr.c(20.0f), tr.b.h));
        arrayList.add(new he.g(aVar, aVar2));
        arrayList.add(new EncryptionInterceptor(aVar2));
        arrayList.add(dVar);
        io.sentry.android.okhttp.d dVar2 = new io.sentry.android.okhttp.d((wn.d) null);
        byte[] bArr = h50.c.a;
        l0Var.e = new h50.b(dVar2);
        TimeUnit timeUnit = TimeUnit.SECONDS;
        l0Var.a(15L, timeUnit);
        l0Var.d(200L, timeUnit);
        l0Var.f(50L, timeUnit);
        l0Var.e = new rr.b();
        return new m0(l0Var);
    }

    public static d60.z0 N(ke.a aVar, ld.a aVar2, Context context) {
        xu.b.y(aVar, "cache");
        xu.b.y(aVar2, "logger");
        xu.b.y(context, "context");
        m2 m2Var = new m2();
        m2Var.b("https://api.baubap.com/api/v2/");
        he.d dVar = new he.d();
        dVar.f15308f = he.b.f15299b;
        m2Var.f31356d = M(dVar, aVar, aVar2, context);
        f00.o oVar = new f00.o();
        oVar.k = true;
        m2Var.a(e60.a.c(oVar.a()));
        return m2Var.c();
    }

    public static final void O(Context context) {
        n30.v vVar;
        File file;
        xu.b.y(context, "context");
        File databasePath = context.getDatabasePath("androidx.work.workdb");
        xu.b.x(databasePath, "context.getDatabasePath(WORK_DATABASE_NAME)");
        int i10 = Build.VERSION.SDK_INT;
        if (i10 < 23 || !databasePath.exists()) {
            return;
        }
        v9.v.d().a(y.f33046a, "Migrating WorkDatabase to the no-backup directory");
        if (i10 >= 23) {
            File databasePath2 = context.getDatabasePath("androidx.work.workdb");
            xu.b.x(databasePath2, "context.getDatabasePath(WORK_DATABASE_NAME)");
            if (i10 < 23) {
                file = context.getDatabasePath("androidx.work.workdb");
                xu.b.x(file, "context.getDatabasePath(WORK_DATABASE_NAME)");
            } else {
                file = new File(a.f32940a.a(context), "androidx.work.workdb");
            }
            String[] strArr = y.f33047b;
            int Z = tx.b.Z(strArr.length);
            if (Z < 16) {
                Z = 16;
            }
            LinkedHashMap linkedHashMap = new LinkedHashMap(Z);
            for (String str : strArr) {
                linkedHashMap.put(new File(databasePath2.getPath() + str), new File(file.getPath() + str));
            }
            m30.i iVar = new m30.i(databasePath2, file);
            if (linkedHashMap.isEmpty()) {
                vVar = tx.b.a0(iVar);
            } else {
                n30.v linkedHashMap2 = new LinkedHashMap(linkedHashMap);
                linkedHashMap2.put(databasePath2, file);
                vVar = linkedHashMap2;
            }
        } else {
            vVar = n30.v.b;
        }
        for (Map.Entry entry : vVar.entrySet()) {
            File file2 = (File) entry.getKey();
            File file3 = (File) entry.getValue();
            if (file2.exists()) {
                if (file3.exists()) {
                    v9.v.d().g(y.f33046a, "Over-writing contents of " + file3);
                }
                v9.v.d().a(y.f33046a, file2.renameTo(file3) ? "Migrated " + file2 + "to " + file3 : "Renaming " + file2 + " to " + file3 + " failed");
            }
        }
    }

    public static final void P(androidx.fragment.app.c0 c0Var, String str) {
        m30.x xVar;
        xu.b.y(c0Var, "<this>");
        if (str != null) {
            w4.g.b0(c0Var, str);
            xVar = m30.x.a;
        } else {
            xVar = null;
        }
        if (xVar == null) {
            k1.I(c0Var, "Contacta a soporte por favor.");
        }
    }

    public static final Class Q(Type type) {
        if (type instanceof Class) {
            return (Class) type;
        }
        if (type instanceof ParameterizedType) {
            Type rawType = ((ParameterizedType) type).getRawType();
            xu.b.x(rawType, "getRawType(...)");
            return Q(rawType);
        }
        if (type instanceof WildcardType) {
            Type[] upperBounds = ((WildcardType) type).getUpperBounds();
            xu.b.x(upperBounds, "getUpperBounds(...)");
            Object C0 = a40.a.C0(upperBounds);
            xu.b.x(C0, "first(...)");
            return Q((Type) C0);
        }
        if (type instanceof GenericArrayType) {
            Type genericComponentType = ((GenericArrayType) type).getGenericComponentType();
            xu.b.x(genericComponentType, "getGenericComponentType(...)");
            return Q(genericComponentType);
        }
        throw new IllegalArgumentException("type should be an instance of Class<?>, GenericArrayType, ParametrizedType or WildcardType, but actual argument " + type + " has type " + kotlin.jvm.internal.y.a(type.getClass()));
    }

    public static final v50.g R(u50.c0 c0Var) {
        Long valueOf;
        int i10;
        long j10;
        int i02 = c0Var.i0();
        if (i02 != 33639248) {
            throw new IOException("bad zip: expected " + E(33639248) + " but was " + E(i02));
        }
        c0Var.h(4L);
        short c6 = c0Var.c();
        int i11 = c6 & 65535;
        if ((c6 & 1) != 0) {
            throw new IOException("unsupported zip: general purpose bit flag=" + E(i11));
        }
        int c10 = c0Var.c() & 65535;
        short c11 = c0Var.c();
        int i12 = c11 & 65535;
        short c12 = c0Var.c();
        int i13 = c12 & 65535;
        if (i12 == -1) {
            valueOf = null;
        } else {
            GregorianCalendar gregorianCalendar = new GregorianCalendar();
            gregorianCalendar.set(14, 0);
            gregorianCalendar.set(((i13 >> 9) & 127) + 1980, ((i13 >> 5) & 15) - 1, c12 & 31, (i12 >> 11) & 31, (i12 >> 5) & 63, (c11 & 31) << 1);
            valueOf = Long.valueOf(gregorianCalendar.getTime().getTime());
        }
        Long l10 = valueOf;
        c0Var.i0();
        kotlin.jvm.internal.w wVar = new kotlin.jvm.internal.w();
        wVar.b = c0Var.i0() & 4294967295L;
        kotlin.jvm.internal.w wVar2 = new kotlin.jvm.internal.w();
        wVar2.b = c0Var.i0() & 4294967295L;
        int c13 = c0Var.c() & 65535;
        int c14 = c0Var.c() & 65535;
        int c15 = c0Var.c() & 65535;
        c0Var.h(8L);
        kotlin.jvm.internal.w wVar3 = new kotlin.jvm.internal.w();
        wVar3.b = c0Var.i0() & 4294967295L;
        String g10 = c0Var.g(c13);
        if (h40.q.F(g10, (char) 0)) {
            throw new IOException("bad zip: filename contains 0x00");
        }
        if (wVar2.b == 4294967295L) {
            j10 = 8;
            i10 = c10;
        } else {
            i10 = c10;
            j10 = 0;
        }
        if (wVar.b == 4294967295L) {
            j10 += 8;
        }
        if (wVar3.b == 4294967295L) {
            j10 += 8;
        }
        long j11 = j10;
        kotlin.jvm.internal.t tVar = new kotlin.jvm.internal.t();
        S(c0Var, c14, new v50.h(tVar, j11, wVar2, c0Var, wVar, wVar3));
        if (j11 > 0 && !tVar.b) {
            throw new IOException("bad zip: zip64 extra required but absent");
        }
        String g11 = c0Var.g(c15);
        String str = u50.z.c;
        return new v50.g(b50.a0.b("/", false).d(g10), h40.q.H(g10, "/", false), g11, wVar.b, wVar2.b, i10, l10, wVar3.b);
    }

    public static final void S(u50.c0 c0Var, int i10, y30.e eVar) {
        long j10 = i10;
        while (j10 != 0) {
            if (j10 < 4) {
                throw new IOException("bad zip: truncated header in extra field");
            }
            int c6 = c0Var.c() & 65535;
            long c10 = c0Var.c() & 65535;
            long j11 = j10 - 4;
            if (j11 < c10) {
                throw new IOException("bad zip: truncated value in extra field");
            }
            c0Var.v0(c10);
            u50.i iVar = c0Var.c;
            long j12 = iVar.c;
            eVar.invoke(Integer.valueOf(c6), Long.valueOf(c10));
            long j13 = (iVar.c + c10) - j12;
            if (j13 < 0) {
                throw new IOException(a0.a.k("unsupported zip: too many bytes processed for ", c6));
            }
            if (j13 > 0) {
                iVar.h(j13);
            }
            j10 = j11 - c10;
        }
    }

    public static final b0.c T(u50.c0 c0Var, b0.c cVar) {
        kotlin.jvm.internal.x xVar = new kotlin.jvm.internal.x();
        xVar.b = cVar != null ? (Long) cVar.f3992g : null;
        kotlin.jvm.internal.x xVar2 = new kotlin.jvm.internal.x();
        kotlin.jvm.internal.x xVar3 = new kotlin.jvm.internal.x();
        int i02 = c0Var.i0();
        if (i02 != 67324752) {
            throw new IOException("bad zip: expected " + E(67324752) + " but was " + E(i02));
        }
        c0Var.h(2L);
        short c6 = c0Var.c();
        int i10 = c6 & 65535;
        if ((c6 & 1) != 0) {
            throw new IOException("unsupported zip: general purpose bit flag=" + E(i10));
        }
        c0Var.h(18L);
        int c10 = c0Var.c() & 65535;
        c0Var.h(c0Var.c() & 65535);
        if (cVar == null) {
            c0Var.h(c10);
            return null;
        }
        S(c0Var, c10, new u0(c0Var, xVar, xVar2, xVar3, 8));
        return new b0.c(cVar.f3988c, cVar.f3989d, null, (Long) cVar.f3991f, (Long) xVar3.b, (Long) xVar.b, (Long) xVar2.b);
    }

    public static final y40.b U(e50.e eVar, Class cls, List list) {
        y40.b[] bVarArr = (y40.b[]) list.toArray(new y40.b[0]);
        y40.b j10 = tv.f.j(cls, (y40.b[]) Arrays.copyOf(bVarArr, bVarArr.length));
        if (j10 != null) {
            return j10;
        }
        kotlin.jvm.internal.e a10 = kotlin.jvm.internal.y.a(cls);
        Map map = b50.o1.a;
        y40.b bVar = (y40.b) b50.o1.a.get(a10);
        return bVar == null ? eVar.a(a10, list) : bVar;
    }

    public static final void V(p0 p0Var, q30.e eVar, boolean z10) {
        Object h10 = p0Var.h();
        Throwable e10 = p0Var.e(h10);
        Object l10 = e10 != null ? lu.n.l(e10) : p0Var.f(h10);
        if (!z10) {
            eVar.resumeWith(l10);
            return;
        }
        xu.b.w(eVar, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation<T of kotlinx.coroutines.DispatchedTaskKt.resume>");
        r40.j jVar = (r40.j) eVar;
        q30.e eVar2 = jVar.f;
        q30.j context = eVar2.getContext();
        Object c6 = i0.c(context, jVar.h);
        r2 x10 = c6 != i0.a ? kotlin.jvm.internal.a0.x(eVar2, context, c6) : null;
        try {
            eVar2.resumeWith(l10);
        } finally {
            if (x10 == null || x10.p0()) {
                i0.a(context, c6);
            }
        }
    }

    public static int W(double d10) {
        if (Double.isNaN(d10)) {
            throw new IllegalArgumentException("Cannot round NaN value.");
        }
        if (d10 > 2.147483647E9d) {
            return Integer.MAX_VALUE;
        }
        if (d10 < -2.147483648E9d) {
            return Integer.MIN_VALUE;
        }
        return (int) Math.round(d10);
    }

    public static int X(float f10) {
        if (Float.isNaN(f10)) {
            throw new IllegalArgumentException("Cannot round NaN value.");
        }
        return Math.round(f10);
    }

    public static long Y(double d10) {
        if (Double.isNaN(d10)) {
            throw new IllegalArgumentException("Cannot round NaN value.");
        }
        return Math.round(d10);
    }

    public static final int Z(u50.f0 f0Var, int i10) {
        int i11;
        xu.b.y(f0Var, "<this>");
        int i12 = i10 + 1;
        int length = f0Var.f.length;
        int[] iArr = f0Var.g;
        xu.b.y(iArr, "<this>");
        int i13 = length - 1;
        int i14 = 0;
        while (true) {
            if (i14 <= i13) {
                i11 = (i14 + i13) >>> 1;
                int i15 = iArr[i11];
                if (i15 >= i12) {
                    if (i15 <= i12) {
                        break;
                    }
                    i13 = i11 - 1;
                } else {
                    i14 = i11 + 1;
                }
            } else {
                i11 = (-i14) - 1;
                break;
            }
        }
        return i11 >= 0 ? i11 : ~i11;
    }

    public static final void a(q3.e r25, n2.r r26, q3.d0 r27, boolean r28, int r29, int r30, y30.c r31, y30.c r32, b2.n r33, int r34, int r35) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.a(q3.e, n2.r, q3.d0, boolean, int, int, y30.c, y30.c, b2.n, int, int):void");
    }

    public static final y40.b a0(e50.e eVar, Type type, boolean z10) {
        ArrayList<y40.b> arrayList;
        y40.b a02;
        y40.b a03;
        kotlin.jvm.internal.e eVar2;
        if (type instanceof GenericArrayType) {
            Type genericComponentType = ((GenericArrayType) type).getGenericComponentType();
            if (genericComponentType instanceof WildcardType) {
                Type[] upperBounds = ((WildcardType) genericComponentType).getUpperBounds();
                xu.b.x(upperBounds, "getUpperBounds(...)");
                genericComponentType = (Type) a40.a.C0(upperBounds);
            }
            xu.b.v(genericComponentType);
            if (z10) {
                a03 = kotlin.jvm.internal.a0.o(eVar, genericComponentType);
            } else {
                xu.b.y(eVar, "<this>");
                a03 = a0(eVar, genericComponentType, false);
                if (a03 == null) {
                    return null;
                }
            }
            if (genericComponentType instanceof ParameterizedType) {
                Type rawType = ((ParameterizedType) genericComponentType).getRawType();
                xu.b.w(rawType, "null cannot be cast to non-null type java.lang.Class<*>");
                eVar2 = kotlin.jvm.internal.y.a((Class) rawType);
            } else {
                if (!(genericComponentType instanceof f40.c)) {
                    throw new IllegalStateException("unsupported type in GenericArray: " + kotlin.jvm.internal.y.a(genericComponentType.getClass()));
                }
                eVar2 = (f40.c) genericComponentType;
            }
            xu.b.w(eVar2, "null cannot be cast to non-null type kotlin.reflect.KClass<kotlin.Any>");
            return new p1(eVar2, a03);
        }
        if (type instanceof Class) {
            Class cls = (Class) type;
            if (!cls.isArray() || cls.getComponentType().isPrimitive()) {
                return U(eVar, cls, n30.u.b);
            }
            Class<?> componentType = cls.getComponentType();
            xu.b.x(componentType, "getComponentType(...)");
            if (z10) {
                a02 = kotlin.jvm.internal.a0.o(eVar, componentType);
            } else {
                xu.b.y(eVar, "<this>");
                a02 = a0(eVar, componentType, false);
                if (a02 == null) {
                    return null;
                }
            }
            return new p1(kotlin.jvm.internal.y.a(componentType), a02);
        }
        if (!(type instanceof ParameterizedType)) {
            if (type instanceof WildcardType) {
                Type[] upperBounds2 = ((WildcardType) type).getUpperBounds();
                xu.b.x(upperBounds2, "getUpperBounds(...)");
                Object C0 = a40.a.C0(upperBounds2);
                xu.b.x(C0, "first(...)");
                return a0(eVar, (Type) C0, true);
            }
            throw new IllegalArgumentException("type should be an instance of Class<?>, GenericArrayType, ParametrizedType or WildcardType, but actual argument " + type + " has type " + kotlin.jvm.internal.y.a(type.getClass()));
        }
        ParameterizedType parameterizedType = (ParameterizedType) type;
        Type rawType2 = parameterizedType.getRawType();
        xu.b.w(rawType2, "null cannot be cast to non-null type java.lang.Class<*>");
        Class cls2 = (Class) rawType2;
        Type[] actualTypeArguments = parameterizedType.getActualTypeArguments();
        xu.b.v(actualTypeArguments);
        if (z10) {
            arrayList = new ArrayList(actualTypeArguments.length);
            for (Type type2 : actualTypeArguments) {
                xu.b.v(type2);
                arrayList.add(kotlin.jvm.internal.a0.o(eVar, type2));
            }
        } else {
            arrayList = new ArrayList(actualTypeArguments.length);
            for (Type type3 : actualTypeArguments) {
                xu.b.v(type3);
                xu.b.y(eVar, "<this>");
                y40.b a04 = a0(eVar, type3, false);
                if (a04 == null) {
                    return null;
                }
                arrayList.add(a04);
            }
        }
        if (Set.class.isAssignableFrom(cls2)) {
            y40.b bVar = (y40.b) arrayList.get(0);
            xu.b.y(bVar, "elementSerializer");
            return new b50.d(bVar, 2);
        }
        if (List.class.isAssignableFrom(cls2) || Collection.class.isAssignableFrom(cls2)) {
            return tv.f.c((y40.b) arrayList.get(0));
        }
        if (Map.class.isAssignableFrom(cls2)) {
            return tv.f.d((y40.b) arrayList.get(0), (y40.b) arrayList.get(1));
        }
        if (Map.Entry.class.isAssignableFrom(cls2)) {
            y40.b bVar2 = (y40.b) arrayList.get(0);
            y40.b bVar3 = (y40.b) arrayList.get(1);
            xu.b.y(bVar2, "keySerializer");
            xu.b.y(bVar3, "valueSerializer");
            return new x0(bVar2, bVar3, 0);
        }
        if (m30.i.class.isAssignableFrom(cls2)) {
            y40.b bVar4 = (y40.b) arrayList.get(0);
            y40.b bVar5 = (y40.b) arrayList.get(1);
            xu.b.y(bVar4, "keySerializer");
            xu.b.y(bVar5, "valueSerializer");
            return new x0(bVar4, bVar5, 1);
        }
        if (m30.n.class.isAssignableFrom(cls2)) {
            y40.b bVar6 = (y40.b) arrayList.get(0);
            y40.b bVar7 = (y40.b) arrayList.get(1);
            y40.b bVar8 = (y40.b) arrayList.get(2);
            xu.b.y(bVar6, "aSerializer");
            xu.b.y(bVar7, "bSerializer");
            xu.b.y(bVar8, "cSerializer");
            return new x1(bVar6, bVar7, bVar8);
        }
        ArrayList arrayList2 = new ArrayList(n30.p.H0(arrayList, 10));
        for (y40.b bVar9 : arrayList) {
            xu.b.w(bVar9, "null cannot be cast to non-null type kotlinx.serialization.KSerializer<kotlin.Any?>");
            arrayList2.add(bVar9);
        }
        return U(eVar, cls2, arrayList2);
    }

    public static final void b(int r21, int r22, b2.n r23, n2.r r24, y30.a r25, y30.a r26) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.b(int, int, b2.n, n2.r, y30.a, y30.a):void");
    }

    public static final y40.b b0(e50.e eVar, f40.l lVar, boolean z10) {
        y40.b bVar;
        y40.b a10;
        f40.c c6 = h1.c(lVar);
        boolean c10 = lVar.c();
        List a11 = lVar.a();
        ArrayList arrayList = new ArrayList(n30.p.H0(a11, 10));
        Iterator it = a11.iterator();
        if (it.hasNext()) {
            a0.a.z(it.next());
            xu.b.y((Object) null, "<this>");
            throw null;
        }
        if (arrayList.isEmpty()) {
            b50.r rVar = y40.o.a;
            xu.b.y(c6, "clazz");
            if (c10) {
                bVar = y40.o.b.a(c6);
            } else {
                bVar = y40.o.a.a(c6);
                if (bVar == null) {
                    bVar = null;
                }
            }
        } else {
            b50.r rVar2 = y40.o.a;
            xu.b.y(c6, "clazz");
            Object a12 = !c10 ? y40.o.c.a(c6, arrayList) : y40.o.d.a(c6, arrayList);
            if (a12 instanceof m30.j) {
                a12 = null;
            }
            bVar = (y40.b) a12;
        }
        if (bVar != null) {
            return bVar;
        }
        if (arrayList.isEmpty()) {
            a10 = eVar.a(c6, n30.u.b);
        } else {
            ArrayList r10 = kotlin.jvm.internal.a0.r(eVar, arrayList, z10);
            if (r10 == null) {
                return null;
            }
            y40.b l10 = kotlin.jvm.internal.a0.l(c6, r10, new j1.k0(5, arrayList));
            a10 = l10 == null ? eVar.a(c6, r10) : l10;
        }
        if (a10 == null) {
            return null;
        }
        if (c10) {
            a10 = tv.f.y(a10);
        }
        return a10;
    }

    public static final void c(y30.a aVar, ExtensionViewModelV2 extensionViewModelV2, n2.r rVar, y30.a aVar2, b2.n nVar, int i10, int i11) {
        xu.b.y(aVar, "onBackClicked");
        xu.b.y(extensionViewModelV2, "viewModelV2");
        xu.b.y(aVar2, "onExtendedClicked");
        b2.s sVar = (b2.s) nVar;
        sVar.W(-460065708);
        if ((i11 & 4) != 0) {
            rVar = n2.o.f22696b;
        }
        sVar.V(-2139859628);
        int i12 = i10 & 14;
        int i13 = 1;
        boolean z10 = ((i12 ^ 6) > 4 && sVar.i(aVar)) || (i10 & 6) == 4;
        Object K = sVar.K();
        if (z10 || K == b2.m.f4554b) {
            K = new bm.a(aVar, 23);
            sVar.g0(K);
        }
        sVar.t(false);
        m40.i0.b(true, (y30.a) K, sVar, 6, 0);
        b2.t.d(m30.x.a, new qm.a(extensionViewModelV2, null), sVar);
        b((i10 & 896) | i12, 0, sVar, rVar, aVar, new pm.c(extensionViewModelV2, aVar2, i13));
        b2.x1 v10 = sVar.v();
        if (v10 != null) {
            v10.f4707d = new h1.b0((Object) aVar, (Object) extensionViewModelV2, rVar, (Object) aVar2, i10, i11, 28);
        }
    }

    public static final Object c0(o2 o2Var, y30.e eVar) {
        Object wVar;
        Object a02;
        o2Var.e0(new m40.u0(C(((r40.d0) o2Var).e.getContext()).g(o2Var.f, o2Var, ((m40.a) o2Var).d), 0));
        try {
            if (eVar instanceof s30.a) {
                kotlin.jvm.internal.a0.e(2, eVar);
                wVar = eVar.invoke(o2Var, o2Var);
            } else {
                wVar = xu.b.H0(o2Var, o2Var, eVar);
            }
        } catch (Throwable th) {
            wVar = new m40.w(th, false);
        }
        r30.a aVar = r30.a.b;
        if (wVar == aVar || (a02 = o2Var.a0(wVar)) == m40.x1.b) {
            return aVar;
        }
        if (a02 instanceof m40.w) {
            n2 n2Var = ((m40.w) a02).a;
            if (!(n2Var instanceof n2)) {
                throw n2Var;
            }
            if (n2Var.b != o2Var) {
                throw n2Var;
            }
            if (wVar instanceof m40.w) {
                throw ((m40.w) wVar).a;
            }
        } else {
            wVar = m40.x1.a(a02);
        }
        return wVar;
    }

    public static final b50.k0 d(String str, y40.b bVar) {
        return new b50.k0(str, new b50.l0(bVar));
    }

    public static final c4.j e(long j10, long j11) {
        int i10 = c4.i.f7544c;
        int i11 = (int) (j10 >> 32);
        int i12 = (int) (j10 & 4294967295L);
        return new c4.j(i11, i12, ((int) (j11 >> 32)) + i11, ((int) (j11 & 4294967295L)) + i12);
    }

    public static final n2.r e0(n2.r rVar, String str) {
        xu.b.y(rVar, "<this>");
        xu.b.y(str, "tag");
        return o3.m.b(f0.q.z0(rVar, str), false, yn.g.f37895l);
    }

    public static final void f(n2.r r38, y30.a r39, java.lang.String r40, java.lang.String r41, y30.c r42, y30.c r43, y30.a r44, boolean r45, boolean r46, y30.a r47, y30.a r48, boolean r49, boolean r50, int r51, int r52, b2.n r53, int r54, int r55, int r56) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.f(n2.r, y30.a, java.lang.String, java.lang.String, y30.c, y30.c, y30.a, boolean, boolean, y30.a, y30.a, boolean, boolean, int, int, b2.n, int, int, int):void");
    }

    public static final cl.c f0(bl.j jVar) {
        float f10 = jVar.f5363c;
        String N0 = c0.d.N0(f10);
        String N02 = c0.d.N0(jVar.f5368h);
        float f11 = jVar.f5369i;
        String N03 = c0.d.N0(f11);
        boolean z10 = f11 > 0.0f;
        float f12 = jVar.f5370j;
        String N04 = c0.d.N0(f12);
        float f13 = f10 - f12;
        String N05 = c0.d.N0(f13);
        float f14 = jVar.f5372l;
        return new cl.c(N0, N02, N03, z10, N04, N05, c0.d.N0(f14), c0.d.N0(f13 + f14), c0.d.N0(jVar.f5374n));
    }

    public static final void g(y30.a r44, n2.r r45, y1.x9 r46, float r47, t2.w0 r48, long r49, long r51, float r53, long r54, y30.e r56, e1.c2 r57, y1.u6 r58, y30.f r59, b2.n r60, int r61, int r62, int r63) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.g(y30.a, n2.r, y1.x9, float, t2.w0, long, long, float, long, y30.e, e1.c2, y1.u6, y30.f, b2.n, int, int, int):void");
    }

    public static final cl.j g0(bl.g gVar) {
        cl.i iVar;
        xu.b.y(gVar, "<this>");
        int i10 = gVar.f5343a;
        int i11 = gVar.f5344b;
        String str = gVar.f5345c;
        String str2 = gVar.f5346d;
        String o02 = c0.d.o0("$%,.2f MXN", Float.valueOf(gVar.f5347e));
        bl.e eVar = gVar.f5349g;
        xu.b.y(eVar, "referenceType");
        int ordinal = eVar.ordinal();
        if (ordinal != 0) {
            if (ordinal != 1 && ordinal != 2) {
                if (ordinal != 3) {
                    if (ordinal != 4) {
                        throw new r1();
                    }
                }
            }
            iVar = cl.i.f8501c;
            return new cl.j(i10, i11, str, str2, o02, iVar, 2131099685, 2131100542, gVar.f5350h);
        }
        int i12 = gVar.f5351i;
        iVar = (10 > i12 || i12 >= 12) ? cl.i.f8500b : cl.i.f8502d;
        return new cl.j(i10, i11, str, str2, o02, iVar, 2131099685, 2131100542, gVar.f5350h);
    }

    public static final void h(u6 u6Var, y30.a aVar, c2 c2Var, y30.e eVar, b2.n nVar, int i10) {
        int i11;
        b2.s sVar = (b2.s) nVar;
        sVar.W(738805080);
        int i12 = 4;
        if ((i10 & 6) == 0) {
            i11 = (sVar.g(u6Var) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i10 & 48) == 0) {
            i11 |= sVar.i(aVar) ? 32 : 16;
        }
        if ((i10 & 384) == 0) {
            i11 |= sVar.g(c2Var) ? 256 : 128;
        }
        if ((i10 & 3072) == 0) {
            i11 |= sVar.i(eVar) ? 2048 : 1024;
        }
        if ((i11 & 1171) == 1170 && sVar.B()) {
            sVar.P();
        } else {
            View view = (View) sVar.m(a1.f17164f);
            UUID uuid = (UUID) w00.c.l(new Object[0], (k2.q) null, (String) null, l2.f36012s, sVar, 6);
            b2.q I0 = c0.d.I0(sVar);
            b2.h1 g02 = f40.q.g0(eVar, sVar);
            c4.l lVar = (c4.l) sVar.m(q1.f17385k);
            sVar.V(173201889);
            Object K = sVar.K();
            bx.e eVar2 = b2.m.f4554b;
            Object obj = K;
            if (K == eVar2) {
                w6 w6Var = new w6(u6Var, aVar, view, uuid);
                j2.c cVar = new j2.c(new y1.k(7, c2Var, g02), true, -114385661);
                w6Var.setParentCompositionContext(I0);
                w6Var.f36837h.setValue(cVar);
                w6Var.f36838i = true;
                sVar.g0(w6Var);
                obj = w6Var;
            }
            w6 w6Var2 = (w6) obj;
            sVar.t(false);
            sVar.V(173202877);
            boolean i13 = sVar.i(w6Var2) | sVar.g(lVar);
            Object K2 = sVar.K();
            if (i13 || K2 == eVar2) {
                K2 = new x2(i12, w6Var2, lVar);
                sVar.g0(K2);
            }
            sVar.t(false);
            b2.t.b(w6Var2, (y30.c) K2, sVar);
        }
        b2.x1 v10 = sVar.v();
        if (v10 != null) {
            v10.f4707d = new l7(u6Var, aVar, c2Var, eVar, i10);
        }
    }

    public static final jj.c h0(zi.q qVar) {
        String str;
        boolean z10 = qVar.f38593b;
        boolean z11 = qVar.f38594c;
        Boolean bool = qVar.f38595d;
        String str2 = qVar.f38596e;
        String str3 = qVar.f38597f;
        String str4 = qVar.f38598g;
        String str5 = qVar.f38599h;
        String str6 = qVar.f38600i;
        if (z11) {
            Long l10 = qVar.f38602k;
            str = b2.o.p("Vigente hasta el ", l10 != null ? com.bumptech.glide.e.a0(l10.longValue(), "dd 'de' MMMM 'de' yyyy") : null);
        } else {
            str = "¡Próximamente!";
        }
        return new jj.c(z10, z11, bool, str2, str3, str4, str5, str6, str);
    }

    public static final void i(java.lang.String r142, y30.c r143, boolean r144, java.lang.String r145, n2.r r146, zn.a r147, java.lang.Integer r148, java.lang.String r149, java.lang.Integer r150, n1.o1 r151, n1.n1 r152, boolean r153, zn.y0 r154, w3.l0 r155, b2.n r156, int r157, int r158, int r159) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.i(java.lang.String, y30.c, boolean, java.lang.String, n2.r, zn.a, java.lang.Integer, java.lang.String, java.lang.Integer, n1.o1, n1.n1, boolean, zn.y0, w3.l0, b2.n, int, int, int):void");
    }

    public static final n2.r i0(n2.r rVar, boolean z10) {
        xu.b.y(rVar, "<this>");
        return rVar.b(new yn.k(z10));
    }

    public static final s2.d j(long j10, long j11) {
        return new s2.d(s2.c.d(j10), s2.c.e(j10), s2.f.e(j11) + s2.c.d(j10), s2.f.c(j11) + s2.c.e(j10));
    }

    public static final Object j0(long j10, y30.e eVar, q30.e eVar2) {
        if (j10 <= 0) {
            throw new n2("Timed out immediately", (m1) null);
        }
        Object c02 = c0(new o2(j10, eVar2), eVar);
        r30.a aVar = r30.a.b;
        return c02;
    }

    public static final void k(n2.r rVar, b2.n nVar, int i10, int i11) {
        n2.r rVar2;
        int i12;
        n2.r rVar3;
        b2.s sVar = (b2.s) nVar;
        sVar.W(1732788704);
        int i13 = i11 & 1;
        if (i13 != 0) {
            i12 = i10 | 6;
            rVar2 = rVar;
        } else if ((i10 & 14) == 0) {
            rVar2 = rVar;
            i12 = (sVar.g(rVar2) ? 4 : 2) | i10;
        } else {
            rVar2 = rVar;
            i12 = i10;
        }
        if ((i12 & 11) == 2 && sVar.B()) {
            sVar.P();
            rVar3 = rVar2;
        } else {
            n2.o oVar = n2.o.f22696b;
            rVar3 = i13 != 0 ? oVar : rVar2;
            n2.r b6 = androidx.compose.foundation.layout.a.t(rVar3, 16).b(androidx.compose.foundation.layout.c.f2458c);
            sVar.V(733328855);
            g3.m0 c6 = e1.t.c(n2.b.f22669b, false, sVar);
            sVar.V(-1323940314);
            int i14 = sVar.P;
            s1 p10 = sVar.p();
            i3.l.S0.getClass();
            i3.j jVar = i3.k.f16050b;
            j2.c j10 = androidx.compose.ui.layout.a.j(b6);
            boolean z10 = sVar.f4638a instanceof b2.e;
            if (!z10) {
                c0.d.z0();
                throw null;
            }
            sVar.Y();
            if (sVar.O) {
                sVar.o(jVar);
            } else {
                sVar.j0();
            }
            i3.i iVar = i3.k.f16054f;
            f0.q.w0(sVar, c6, iVar);
            i3.i iVar2 = i3.k.f16053e;
            f0.q.w0(sVar, p10, iVar2);
            i3.i iVar3 = i3.k.f16057i;
            if (sVar.O || !xu.b.n(sVar.K(), Integer.valueOf(i14))) {
                a0.a.u(i14, sVar, i14, iVar3);
            }
            a0.a.v(0, j10, new b2.m2(sVar), sVar, 2058660585);
            n2.r a10 = androidx.compose.foundation.layout.b.f2455a.a(oVar, n2.b.f22673f);
            sVar.V(-483455358);
            g3.m0 a11 = e1.b0.a(e1.o.f11545c, n2.b.f22681n, sVar);
            sVar.V(-1323940314);
            int i15 = sVar.P;
            s1 p11 = sVar.p();
            j2.c j11 = androidx.compose.ui.layout.a.j(a10);
            if (!z10) {
                c0.d.z0();
                throw null;
            }
            sVar.Y();
            if (sVar.O) {
                sVar.o(jVar);
            } else {
                sVar.j0();
            }
            f0.q.w0(sVar, a11, iVar);
            f0.q.w0(sVar, p11, iVar2);
            if (sVar.O || !xu.b.n(sVar.K(), Integer.valueOf(i15))) {
                a0.a.u(i15, sVar, i15, iVar3);
            }
            a0.a.v(0, j11, new b2.m2(sVar), sVar, 2058660585);
            androidx.compose.foundation.a.c(rv.a.Y0(2131231339, sVar), null, androidx.compose.foundation.layout.c.e(androidx.compose.foundation.layout.c.d(oVar, 1.0f), 150), null, g3.k.f13641b, 0.0f, null, sVar, 25016, 104);
            ea.f.w(2132017666, f40.q.l0(2132017665, sVar), null, sVar, 6, 4);
            a0.a.x(sVar, false, true, false, false);
            a0.a.x(sVar, false, true, false, false);
        }
        b2.x1 v10 = sVar.v();
        if (v10 != null) {
            v10.f4707d = new jc.a(rVar3, i10, i11, 5);
        }
    }

    public static final java.lang.Object k0(long r7, v3.h r9, q30.e r10) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.k0(long, v3.h, q30.e):java.lang.Object");
    }

    public static final void l(long j10, y30.a aVar, boolean z10, b2.n nVar, int i10) {
        int i11;
        b2.s sVar = (b2.s) nVar;
        sVar.W(1053897700);
        if ((i10 & 6) == 0) {
            i11 = (sVar.f(j10) ? 4 : 2) | i10;
        } else {
            i11 = i10;
        }
        if ((i10 & 48) == 0) {
            i11 |= sVar.i(aVar) ? 32 : 16;
        }
        if ((i10 & 384) == 0) {
            i11 |= sVar.h(z10) ? 256 : 128;
        }
        int i12 = i11;
        if ((i12 & 147) == 146 && sVar.B()) {
            sVar.P();
        } else if (j10 != t2.s.f28950j) {
            n3 b6 = z0.i.b(z10 ? 1.0f : 0.0f, new w1(0, (z0.z) null, 7), null, sVar, 48, 28);
            sVar.V(-1858718943);
            bx.e eVar = b2.m.f4554b;
            n2.r rVar = n2.o.f22696b;
            int i13 = 1;
            if (z10) {
                sVar.V(-1858718859);
                boolean z11 = (i12 & 112) == 32;
                Object K = sVar.K();
                if (z11 || K == eVar) {
                    K = new m7(aVar, null);
                    sVar.g0(K);
                }
                sVar.t(false);
                rVar = o3.m.a(d3.i0.a(rVar, aVar, (y30.e) K), s0.f36548v);
            }
            sVar.t(false);
            n2.r b10 = androidx.compose.foundation.layout.c.f2458c.b(rVar);
            sVar.V(-1858718531);
            boolean g10 = ((i12 & 14) == 4) | sVar.g(b6);
            Object K2 = sVar.K();
            if (g10 || K2 == eVar) {
                K2 = new j4(j10, b6, i13);
                sVar.g0(K2);
            }
            sVar.t(false);
            androidx.compose.foundation.a.b(b10, (y30.c) K2, sVar, 0);
        }
        b2.x1 v10 = sVar.v();
        if (v10 != null) {
            v10.f4707d = new k4(j10, aVar, z10, i10, 1);
        }
    }

    public static final java.lang.Object l0(s30.c r7) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.l0(s30.c):java.lang.Object");
    }

    public static final s2.d m(o0 o0Var, int i10, j0 j0Var, q3.b0 b0Var, boolean z10, int i11) {
        s2.d c6 = b0Var != null ? b0Var.c(j0Var.f32736b.b(i10)) : s2.d.f28102e;
        int a02 = o0Var.a0(a2.f22184b);
        float f10 = c6.f28103a;
        return new s2.d(z10 ? (i11 - f10) - a02 : f10, c6.f28104b, z10 ? i11 - f10 : a02 + f10, c6.f28106d);
    }

    public static final a1.s0 n(j3.a aVar, f6.u uVar) {
        if (uVar.b().compareTo(f6.t.f12771b) > 0) {
            nc ncVar = new nc(aVar, 1);
            uVar.a(ncVar);
            return new a1.s0(19, uVar, ncVar);
        }
        throw new IllegalStateException(("Cannot configure " + aVar + " to disposeComposition at Lifecycle ON_DESTROY: " + uVar + "is already destroyed").toString());
    }

    public static void o(n4.f r37, i4.d r38, java.util.ArrayList r39, int r40) {
        throw new UnsupportedOperationException("Method not decompiled: w9.f0.o(n4.f, i4.d, java.util.ArrayList, int):void");
    }

    public static final String p(Number number, Number number2) {
        xu.b.y(number, "from");
        xu.b.y(number2, "until");
        return "Random range is empty: [" + number + ", " + number2 + ").";
    }

    public static final LinkedHashMap q(ArrayList arrayList) {
        String str = u50.z.c;
        u50.z b6 = b50.a0.b("/", false);
        LinkedHashMap u02 = n30.c0.u0(new m30.i[]{new m30.i(b6, new v50.g(b6))});
        for (v50.g gVar : n30.s.t1(arrayList, new i3.p(25))) {
            if (((v50.g) u02.put(gVar.a, gVar)) == null) {
                while (true) {
                    u50.z zVar = gVar.a;
                    u50.z b10 = zVar.b();
                    if (b10 != null) {
                        v50.g gVar2 = (v50.g) u02.get(b10);
                        if (gVar2 != null) {
                            gVar2.h.add(zVar);
                            break;
                        }
                        v50.g gVar3 = new v50.g(b10);
                        u02.put(b10, gVar3);
                        gVar3.h.add(zVar);
                        gVar = gVar3;
                    }
                }
            }
        }
        return u02;
    }

    public static final void r(int i10) {
        if (i10 < 1) {
            throw new IllegalArgumentException(a0.a.k("Expected positive parallelism level, but got ", i10).toString());
        }
    }

    public static final String s(z40.g gVar, c50.c cVar) {
        xu.b.y(gVar, "<this>");
        xu.b.y(cVar, "json");
        for (c50.i iVar : gVar.getAnnotations()) {
            if (iVar instanceof c50.i) {
                return iVar.discriminator();
            }
        }
        return cVar.a.j;
    }

    public static final void t(int i10, int i11) {
        if (i10 > i11) {
            throw new IndexOutOfBoundsException(x1.y.j("toIndex (", i10, ") is greater than size (", i11, ")."));
        }
    }

    public static void u(Context context, String str) {
        xu.b.y(context, "<this>");
        xu.b.y(str, "value");
        Object systemService = v4.l.getSystemService(context, ClipboardManager.class);
        xu.b.w(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
        ((ClipboardManager) systemService).setPrimaryClip(ClipData.newPlainText("text", str));
        k1.G(context, "Copiado");
    }

    public static final d0 v(Context context, v9.c cVar) {
        b9.u uVar;
        int i10;
        xu.b.y(context, "context");
        ha.b bVar = new ha.b(cVar.f32027b);
        Context applicationContext = context.getApplicationContext();
        xu.b.x(applicationContext, "context.applicationContext");
        fa.p pVar = bVar.f15256a;
        xu.b.x(pVar, "workTaskExecutor.serialTaskExecutor");
        boolean z10 = context.getResources().getBoolean(2131034118);
        v9.e0 e0Var = cVar.f32028c;
        xu.b.y(e0Var, "clock");
        if (z10) {
            uVar = new b9.u(applicationContext, null);
            uVar.f4929j = true;
        } else {
            if (!(!h40.q.R("androidx.work.workdb"))) {
                throw new IllegalArgumentException("Cannot build a database with null or empty name. If you are trying to create an in memory database, use Room.inMemoryDatabaseBuilder".toString());
            }
            b9.u uVar2 = new b9.u(applicationContext, "androidx.work.workdb");
            uVar2.f4928i = new q0.d(applicationContext);
            uVar = uVar2;
        }
        uVar.f4926g = pVar;
        b bVar2 = new b(e0Var);
        ArrayList arrayList = uVar.f4923d;
        arrayList.add(bVar2);
        uVar.a(i.f33002c);
        uVar.a(new r(applicationContext, 2, 3));
        uVar.a(j.f33003c);
        uVar.a(k.f33004c);
        uVar.a(new r(applicationContext, 5, 6));
        uVar.a(l.f33005c);
        uVar.a(m.f33006c);
        uVar.a(n.f33007c);
        uVar.a(new r(applicationContext));
        uVar.a(new r(applicationContext, 10, 11));
        uVar.a(e.f32960c);
        uVar.a(f.f32962c);
        uVar.a(g.f32972c);
        uVar.a(h.f32982c);
        uVar.f4931l = false;
        uVar.f4932m = true;
        Executor executor = uVar.f4926g;
        if (executor == null && uVar.f4927h == null) {
            o.a aVar = o.b.f23489c;
            uVar.f4927h = aVar;
            uVar.f4926g = aVar;
        } else if (executor != null && uVar.f4927h == null) {
            uVar.f4927h = executor;
        } else if (executor == null) {
            uVar.f4926g = uVar.f4927h;
        }
        HashSet hashSet = uVar.f4936q;
        LinkedHashSet linkedHashSet = uVar.f4935p;
        if (hashSet != null) {
            Iterator it = hashSet.iterator();
            while (it.hasNext()) {
                int intValue = ((Number) it.next()).intValue();
                if (!(!linkedHashSet.contains(Integer.valueOf(intValue)))) {
                    throw new IllegalArgumentException(a0.a.k("Inconsistency detected. A Migration was supplied to addMigration(Migration... migrations) that has a start or end version equal to a start version supplied to fallbackToDestructiveMigrationFrom(int... startVersions). Start version: ", intValue).toString());
                }
            }
        }
        az.e eVar = uVar.f4928i;
        if (eVar == null) {
            eVar = new az.e();
        }
        if (uVar.f4933n > 0) {
            if (uVar.f4922c != null) {
                throw new IllegalArgumentException("Required value was null.".toString());
            }
            throw new IllegalArgumentException("Cannot create auto-closing database for an in-memory database.".toString());
        }
        String str = uVar.f4922c;
        w00.d dVar = uVar.f4934o;
        boolean z11 = uVar.f4929j;
        int i11 = uVar.f4930k;
        if (i11 == 0) {
            throw null;
        }
        Context context2 = uVar.f4920a;
        xu.b.y(context2, "context");
        if (i11 != 1) {
            i10 = i11;
        } else {
            Object systemService = context2.getSystemService("activity");
            xu.b.w(systemService, "null cannot be cast to non-null type android.app.ActivityManager");
            i10 = !((ActivityManager) systemService).isLowRamDevice() ? 3 : 2;
        }
        Executor executor2 = uVar.f4926g;
        if (executor2 == null) {
            throw new IllegalArgumentException("Required value was null.".toString());
        }
        Executor executor3 = uVar.f4927h;
        if (executor3 == null) {
            throw new IllegalArgumentException("Required value was null.".toString());
        }
        b9.b bVar3 = new b9.b(context2, str, eVar, dVar, arrayList, z11, i10, executor2, executor3, uVar.f4931l, uVar.f4932m, linkedHashSet, uVar.f4924e, uVar.f4925f);
        Class cls = uVar.f4921b;
        xu.b.y(cls, "klass");
        Package r22 = cls.getPackage();
        xu.b.v(r22);
        String name = r22.getName();
        String canonicalName = cls.getCanonicalName();
        xu.b.v(canonicalName);
        xu.b.x(name, "fullPackage");
        if (name.length() != 0) {
            canonicalName = canonicalName.substring(name.length() + 1);
            xu.b.x(canonicalName, "this as java.lang.String).substring(startIndex)");
        }
        String concat = h40.q.e0(canonicalName, '.', '_').concat("_Impl");
        try {
            Class<?> cls2 = Class.forName(name.length() == 0 ? concat : name + '.' + concat, true, cls.getClassLoader());
            xu.b.w(cls2, "null cannot be cast to non-null type java.lang.Class<T of androidx.room.Room.getGeneratedImplementation>");
            b9.v vVar = (b9.v) cls2.newInstance();
            vVar.getClass();
            vVar.f4939c = vVar.e(bVar3);
            Set h10 = vVar.h();
            BitSet bitSet = new BitSet();
            Iterator it2 = h10.iterator();
            while (true) {
                boolean hasNext = it2.hasNext();
                LinkedHashMap linkedHashMap = vVar.f4943g;
                int i12 = -1;
                List list = bVar3.f4872o;
                if (hasNext) {
                    Class cls3 = (Class) it2.next();
                    int size = list.size() - 1;
                    if (size >= 0) {
                        while (true) {
                            int i13 = size - 1;
                            if (cls3.isAssignableFrom(list.get(size).getClass())) {
                                bitSet.set(size);
                                i12 = size;
                                break;
                            }
                            if (i13 < 0) {
                                break;
                            }
                            size = i13;
                        }
                    }
                    if (i12 < 0) {
                        throw new IllegalArgumentException(("A required auto migration spec (" + cls3.getCanonicalName() + ") is missing in the database configuration.").toString());
                    }
                    linkedHashMap.put(cls3, list.get(i12));
                } else {
                    int size2 = list.size() - 1;
                    if (size2 >= 0) {
                        while (true) {
                            int i14 = size2 - 1;
                            if (!bitSet.get(size2)) {
                                throw new IllegalArgumentException("Unexpected auto migration specs found. Annotate AutoMigrationSpec implementation with @ProvidedAutoMigrationSpec annotation or remove this spec from the builder.".toString());
                            }
                            if (i14 < 0) {
                                break;
                            }
                            size2 = i14;
                        }
                    }
                    for (c9.b bVar4 : vVar.f(linkedHashMap)) {
                        int i15 = bVar4.f7617a;
                        w00.d dVar2 = bVar3.f4861d;
                        HashMap hashMap = dVar2.a;
                        if (hashMap.containsKey(Integer.valueOf(i15))) {
                            n30.v vVar2 = (Map) hashMap.get(Integer.valueOf(i15));
                            if (vVar2 == null) {
                                vVar2 = n30.v.b;
                            }
                            if (!vVar2.containsKey(Integer.valueOf(bVar4.f7618b))) {
                            }
                        }
                        dVar2.a(new c9.b[]{bVar4});
                    }
                    b9.k kVar = vVar.f4940d;
                    vVar.g().setWriteAheadLoggingEnabled(bVar3.f4864g == 3);
                    vVar.f4942f = bVar3.f4862e;
                    vVar.f4938b = bVar3.f4865h;
                    new i.x0(bVar3.f4866i, 1);
                    vVar.f4941e = bVar3.f4863f;
                    Intent intent = bVar3.f4867j;
                    if (intent != null) {
                        String str2 = bVar3.f4859b;
                        if (str2 == null) {
                            throw new IllegalArgumentException("Required value was null.".toString());
                        }
                        kVar.getClass();
                        Context context3 = bVar3.f4858a;
                        xu.b.y(context3, "context");
                        Executor executor4 = kVar.f4884a.f4938b;
                        if (executor4 == null) {
                            xu.b.r0("internalQueryExecutor");
                            throw null;
                        }
                        new b9.p(context3, str2, intent, kVar, executor4);
                    }
                    Map i16 = vVar.i();
                    BitSet bitSet2 = new BitSet();
                    Iterator it3 = i16.entrySet().iterator();
                    while (true) {
                        boolean hasNext2 = it3.hasNext();
                        List list2 = bVar3.f4871n;
                        if (!hasNext2) {
                            int size3 = list2.size() - 1;
                            if (size3 >= 0) {
                                while (true) {
                                    int i17 = size3 - 1;
                                    if (!bitSet2.get(size3)) {
                                        throw new IllegalArgumentException("Unexpected type converter " + list2.get(size3) + ". Annotate TypeConverter class with @ProvidedTypeConverter annotation or remove this converter from the builder.");
                                    }
                                    if (i17 < 0) {
                                        break;
                                    }
                                    size3 = i17;
                                }
                            }
                            WorkDatabase workDatabase = (WorkDatabase) vVar;
                            Context applicationContext2 = context.getApplicationContext();
                            xu.b.x(applicationContext2, "context.applicationContext");
                            ca.m mVar = new ca.m(applicationContext2, bVar);
                            q qVar = new q(context.getApplicationContext(), cVar, bVar, workDatabase);
                            return new d0(context.getApplicationContext(), cVar, bVar, workDatabase, (List) e0.f32961b.f(context, cVar, bVar, workDatabase, mVar, qVar), qVar, mVar);
                        }
                        Map.Entry entry = (Map.Entry) it3.next();
                        Class cls4 = (Class) entry.getKey();
                        for (Class cls5 : (List) entry.getValue()) {
                            int size4 = list2.size() - 1;
                            if (size4 >= 0) {
                                while (true) {
                                    int i18 = size4 - 1;
                                    if (cls5.isAssignableFrom(list2.get(size4).getClass())) {
                                        bitSet2.set(size4);
                                        break;
                                    }
                                    if (i18 < 0) {
                                        break;
                                    }
                                    size4 = i18;
                                }
                            }
                            size4 = -1;
                            if (size4 < 0) {
                                throw new IllegalArgumentException(("A required type converter (" + cls5 + ") for " + cls4.getCanonicalName() + " is missing in the database configuration.").toString());
                            }
                            vVar.f4946j.put(cls5, list2.get(size4));
                        }
                    }
                }
            }
        } catch (ClassNotFoundException unused) {
            throw new RuntimeException("Cannot find implementation for " + cls.getCanonicalName() + ". " + concat + " does not exist");
        } catch (IllegalAccessException unused2) {
            throw new RuntimeException("Cannot access the constructor " + cls + ".canonicalName");
        } catch (InstantiationException unused3) {
            throw new RuntimeException("Failed to create an instance of " + cls + ".canonicalName");
        }
    }

    public static final Object w(c50.k kVar, y40.a aVar) {
        xu.b.y(kVar, "<this>");
        xu.b.y(aVar, "deserializer");
        if (!(aVar instanceof b50.b) || kVar.z().a.i) {
            return aVar.deserialize(kVar);
        }
        String s10 = s(aVar.getDescriptor(), kVar.z());
        c50.a0 n10 = kVar.n();
        z40.g descriptor = aVar.getDescriptor();
        if (!(n10 instanceof c50.a0)) {
            throw mr.b.g(-1, "Expected " + kotlin.jvm.internal.y.a(c50.a0.class) + " as the serialized body of " + descriptor.a() + ", but had " + kotlin.jvm.internal.y.a(n10.getClass()));
        }
        c50.a0 a0Var = n10;
        c50.e0 e0Var = (c50.m) a0Var.get(s10);
        String str = null;
        if (e0Var != null) {
            b50.k0 k0Var = c50.n.a;
            c50.e0 e0Var2 = e0Var instanceof c50.e0 ? e0Var : null;
            if (e0Var2 == null) {
                throw new IllegalArgumentException("Element " + kotlin.jvm.internal.y.a(e0Var.getClass()) + " is not a JsonPrimitive");
            }
            if (!(e0Var2 instanceof c50.x)) {
                str = e0Var2.h();
            }
        }
        try {
            y40.a I = mr.b.I((b50.b) aVar, kVar, str);
            c50.c z10 = kVar.z();
            xu.b.y(z10, "<this>");
            xu.b.y(s10, "discriminator");
            return w(new d50.t(z10, a0Var, s10, I.getDescriptor()), I);
        } catch (y40.k e10) {
            String message = e10.getMessage();
            xu.b.v(message);
            throw mr.b.h(message, a0Var.toString(), -1);
        }
    }

    public static final Object x(long j10, q30.e eVar) {
        m30.x xVar = m30.x.a;
        if (j10 <= 0) {
            return xVar;
        }
        m40.l lVar = new m40.l(1, xu.b.X(eVar));
        lVar.u();
        if (j10 < Long.MAX_VALUE) {
            C(lVar.f).H(j10, lVar);
        }
        Object t10 = lVar.t();
        return t10 == r30.a.b ? t10 : xVar;
    }

    public static final Object y(long j10, q30.e eVar) {
        int i10 = i40.a.e;
        long j11 = 0;
        boolean z10 = j10 > 0;
        if (z10) {
            long f10 = i40.a.f(j10, z50.a.j0(999999L, i40.c.c));
            j11 = ((((int) f10) & 1) == 1 && (i40.a.e(f10) ^ true)) ? f10 >> 1 : i40.a.g(f10, i40.c.d);
        } else if (z10) {
            throw new r1();
        }
        Object x10 = x(j11, eVar);
        return x10 == r30.a.b ? x10 : m30.x.a;
    }

    public static final void z(c50.c cVar, d50.s sVar, y40.l lVar, Object obj) {
        xu.b.y(cVar, "json");
        xu.b.y(lVar, "serializer");
        new d50.b0(cVar.a.e ? new d50.j(sVar, cVar) : new d50.g(sVar), cVar, d50.f0.d, new d50.b0[d50.f0.i.o()]).q(lVar, obj);
    }
}