package v6;

import android.content.Context;
import java.util.Collections;
import java.util.Set;
import xyz.stream.utils.f0;

/* JADX INFO: loaded from: classes2.dex */
public final class y implements x {

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final a7.b f33729c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final b7.h f33730d;

    public y(e7.a aVar, e7.a aVar2, a7.b bVar, b7.h hVar, b7.i iVar) {
        this.f33727a = aVar;
        this.f33728b = aVar2;
        this.f33729c = bVar;
        this.f33730d = hVar;
        iVar.getClass();
        iVar.f4763a.execute(new y.a(iVar, 9));
    }

    public static y a() {
        m mVar = f33726e;
        if (mVar != null) {
            return (y) mVar.f33716f.get();
        }
        throw new IllegalStateException("Not initialized!");
    }

    public static void b(Context context) {
        if (f33726e == null) {
            synchronized (y.class) {
                try {
                    if (f33726e == null) {
                        f0 f0Var = new f0();
                        context.getClass();
                        f0Var.f36136b = context;
                        f33726e = f0Var.b();
                    }
                } finally {
                }
            }
        }
    }

    public final w c(com.google.android.datatransport.cct.a aVar) {
        Set setSingleton;
        if (aVar instanceof o) {
            aVar.getClass();
            setSingleton = Collections.unmodifiableSet(com.google.android.datatransport.cct.a.f7719c);
        } else {
            setSingleton = Collections.singleton(new t6.c("proto"));
        }
        k kVarA = v.a();
        aVar.getClass();
        kVarA.b("cct");
        return new w(setSingleton, kVarA.setExtras(aVar.getExtras()).a(), this);
    }
}
