package N2;

import e4.AbstractC0566j;
import java.util.Collections;
import java.util.HashSet;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public String f2182a = null;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final HashSet f2183b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final HashSet f2184c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f2185d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f2186e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public f f2187f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final HashSet f2188g;

    public b(Class cls, Class[] clsArr) {
        HashSet hashSet = new HashSet();
        this.f2183b = hashSet;
        this.f2184c = new HashSet();
        this.f2185d = 0;
        this.f2186e = 0;
        this.f2188g = new HashSet();
        hashSet.add(s.a(cls));
        for (Class cls2 : clsArr) {
            AbstractC0566j.f("Null interface", cls2);
            this.f2183b.add(s.a(cls2));
        }
    }

    public final void a(k kVar) {
        if (this.f2183b.contains(kVar.f2212a)) {
            throw new IllegalArgumentException("Components are not allowed to depend on interfaces they themselves provide.");
        }
        this.f2184c.add(kVar);
    }

    public final c b() {
        if (this.f2187f != null) {
            return new c(this.f2182a, new HashSet(this.f2183b), new HashSet(this.f2184c), this.f2185d, this.f2186e, this.f2187f, this.f2188g);
        }
        throw new IllegalStateException("Missing required property: factory.");
    }

    public b(s sVar, s[] sVarArr) {
        HashSet hashSet = new HashSet();
        this.f2183b = hashSet;
        this.f2184c = new HashSet();
        this.f2185d = 0;
        this.f2186e = 0;
        this.f2188g = new HashSet();
        hashSet.add(sVar);
        for (s sVar2 : sVarArr) {
            AbstractC0566j.f("Null interface", sVar2);
        }
        Collections.addAll(this.f2183b, sVarArr);
    }
}
