package u6;

import A1.H;
import C3.AbstractC0055q;
import C3.b0;
import O6.l;
import androidx.lifecycle.P;
import androidx.lifecycle.W;
import androidx.lifecycle.Y;
import com.google.android.gms.internal.measurement.C1;
import d.m;
import e0.C0853a;
import l6.C1139a;
import n4.u0;
import r0.C1484c;
import r5.C1498c;
import r5.C1501f;
import r5.C1503h;
import s0.C1516b;
import v0.AbstractC1664c;
import z6.InterfaceC1796a;

/* JADX INFO: renamed from: u6.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1660d implements Y {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f17840a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f17841b;

    public /* synthetic */ C1660d(int i, Object obj) {
        this.f17840a = i;
        this.f17841b = obj;
    }

    @Override // androidx.lifecycle.Y
    public final W a(Class cls) {
        switch (this.f17840a) {
            case u0.f15495q /* 0 */:
                throw new UnsupportedOperationException("`Factory.create(String, CreationExtras)` is not implemented. You may need to override the method and provide a custom implementation. Note that using `Factory.create(String)` is not supported and considered an error.");
            default:
                throw new UnsupportedOperationException("`Factory.create(String, CreationExtras)` is not implemented. You may need to override the method and provide a custom implementation. Note that using `Factory.create(String)` is not supported and considered an error.");
        }
    }

    @Override // androidx.lifecycle.Y
    public final W b(Class cls, C1484c c1484c) {
        W w4;
        switch (this.f17840a) {
            case u0.f15495q /* 0 */:
                g gVar = new g();
                C0853a c0853a = (C0853a) this.f17841b;
                P.d(c1484c);
                C1503h c1503h = new C1503h((C1501f) c0853a.f12397r, (C1498c) c0853a.f12398s);
                C1503h c1503h2 = (C1503h) ((e) C1.u(e.class, c1503h));
                c1503h2.getClass();
                AbstractC0055q.c(27, "expectedSize");
                H h8 = new H(27);
                h8.l("a6.u", c1503h2.f16546b);
                h8.l("x5.k", c1503h2.f16547c);
                h8.l("A5.l", c1503h2.f16548d);
                h8.l("I5.m", c1503h2.f16549e);
                h8.l("B5.j", c1503h2.f16550f);
                h8.l("C5.q", c1503h2.f16551g);
                h8.l("D5.s", c1503h2.f16552h);
                h8.l("E5.h", c1503h2.i);
                h8.l("F5.C", c1503h2.f16553j);
                h8.l("G5.q", c1503h2.f16554k);
                h8.l("H5.B", c1503h2.f16555l);
                h8.l("J5.k", c1503h2.f16556m);
                h8.l("K5.g", c1503h2.f16557n);
                h8.l("L5.m", c1503h2.f16558o);
                h8.l("M5.x", c1503h2.f16559p);
                h8.l("N5.u", c1503h2.f16560q);
                h8.l("O5.p", c1503h2.f16561r);
                h8.l("P5.d", c1503h2.f16562s);
                h8.l("Q5.o", c1503h2.f16563t);
                h8.l("R5.P", c1503h2.f16564u);
                h8.l("U5.k", c1503h2.f16565v);
                h8.l("V5.i", c1503h2.f16566w);
                h8.l("W5.A", c1503h2.f16567x);
                h8.l("Z5.o", c1503h2.f16568y);
                h8.l("X5.d", c1503h2.f16569z);
                h8.l("Y5.j", c1503h2.f16543A);
                h8.l("b6.d", c1503h2.f16544B);
                InterfaceC1796a interfaceC1796a = (InterfaceC1796a) h8.d().get(cls.getName());
                l lVar = (l) c1484c.f16348a.get(f.f17842d);
                ((e) C1.u(e.class, c1503h)).getClass();
                Object obj = b0.f1243w.get(cls);
                if (obj == null) {
                    if (lVar != null) {
                        throw new IllegalStateException("Found creation callback but class " + cls.getName() + " does not have an assisted factory specified in @HiltViewModel.");
                    }
                    if (interfaceC1796a == null) {
                        throw new IllegalStateException("Expected the @HiltViewModel-annotated class " + cls.getName() + " to be available in the multi-binding of @HiltViewModelMap but none was found.");
                    }
                    w4 = (W) interfaceC1796a.get();
                } else {
                    if (interfaceC1796a != null) {
                        throw new AssertionError("Found the @HiltViewModel-annotated class " + cls.getName() + " in both the multi-bindings of @HiltViewModelMap and @HiltViewModelAssistedMap.");
                    }
                    if (lVar == null) {
                        throw new IllegalStateException("Found @HiltViewModel-annotated class " + cls.getName() + " using @AssistedInject but no creation callback was provided in CreationExtras.");
                    }
                    w4 = (W) lVar.b(obj);
                }
                C1659c c1659c = new C1659c(gVar);
                w4.getClass();
                C1516b c1516b = w4.f8817a;
                if (c1516b != null) {
                    if (c1516b.f16743d) {
                        C1516b.a(c1659c);
                    } else {
                        synchronized (c1516b.f16740a) {
                            c1516b.f16742c.add(c1659c);
                        }
                    }
                }
                return w4;
            default:
                C1139a c1139a = new C1139a();
                c1139a.f14409q = c1484c;
                return new v6.d(new C1498c(((C1501f) ((v6.c) C1.u(v6.c.class, AbstractC1664c.p(((m) this.f17841b).getApplicationContext())))).f16492b), c1139a);
        }
    }

    @Override // androidx.lifecycle.Y
    public final /* synthetic */ W c(P6.d dVar, C1484c c1484c) {
        int i = this.f17840a;
        return I1.a.a(this, dVar, c1484c);
    }
}
