package z2;

import B0.RunnableC0014a;
import android.content.Context;
import java.nio.charset.Charset;
import java.util.Collections;
import java.util.Set;
import w2.C1699b;
import x2.C1711a;

/* JADX INFO: loaded from: classes.dex */
public final class o {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static volatile j f19276e;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final I2.a f19277a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final I2.a f19278b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final E2.d f19279c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final F2.i f19280d;

    public o(I2.a aVar, I2.a aVar2, E2.d dVar, F2.i iVar, F2.k kVar) {
        this.f19277a = aVar;
        this.f19278b = aVar2;
        this.f19279c = dVar;
        this.f19280d = iVar;
        kVar.getClass();
        kVar.f2479a.execute(new RunnableC0014a(10, kVar));
    }

    public static o a() {
        j jVar = f19276e;
        if (jVar != null) {
            return (o) jVar.f19268v.get();
        }
        throw new IllegalStateException("Not initialized!");
    }

    public static void b(Context context) {
        if (f19276e == null) {
            synchronized (o.class) {
                try {
                    if (f19276e == null) {
                        I0.j jVar = new I0.j();
                        context.getClass();
                        jVar.f3229q = context;
                        f19276e = jVar.b();
                    }
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
    }

    public final n c(C1711a c1711a) {
        Set setSingleton;
        byte[] bytes;
        if (c1711a != null) {
            c1711a.getClass();
            setSingleton = Collections.unmodifiableSet(C1711a.f18572d);
        } else {
            setSingleton = Collections.singleton(new C1699b("proto"));
        }
        com.google.android.material.datepicker.c cVarA = i.a();
        c1711a.getClass();
        cVarA.f10219r = "cct";
        String str = c1711a.f18575a;
        String str2 = c1711a.f18576b;
        if (str2 == null && str == null) {
            bytes = null;
        } else {
            if (str2 == null) {
                str2 = "";
            }
            bytes = ("1$" + str + "\\" + str2).getBytes(Charset.forName("UTF-8"));
        }
        cVarA.f10220s = bytes;
        return new n(setSingleton, cVarA.o(), this);
    }
}
