package vn;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import tn.o0;

/* loaded from: classes3.dex */
public final class i implements o0 {

    /* renamed from: a, reason: collision with root package name */
    private final List f40266a;

    /* renamed from: b, reason: collision with root package name */
    private final String f40267b;

    public i(List providers, String debugName) {
        Set X0;
        kotlin.jvm.internal.t.g(providers, "providers");
        kotlin.jvm.internal.t.g(debugName, "debugName");
        this.f40266a = providers;
        this.f40267b = debugName;
        providers.size();
        X0 = sm.c0.X0(providers);
        X0.size();
    }

    @Override // tn.l0
    public List a(ro.c fqName) {
        List S0;
        kotlin.jvm.internal.t.g(fqName, "fqName");
        ArrayList arrayList = new ArrayList();
        Iterator it = this.f40266a.iterator();
        while (it.hasNext()) {
            tn.n0.a((tn.l0) it.next(), fqName, arrayList);
        }
        S0 = sm.c0.S0(arrayList);
        return S0;
    }

    @Override // tn.o0
    public boolean b(ro.c fqName) {
        kotlin.jvm.internal.t.g(fqName, "fqName");
        List list = this.f40266a;
        if ((list instanceof Collection) && list.isEmpty()) {
            return true;
        }
        Iterator it = list.iterator();
        while (it.hasNext()) {
            if (!tn.n0.b((tn.l0) it.next(), fqName)) {
                return false;
            }
        }
        return true;
    }

    @Override // tn.o0
    public void c(ro.c fqName, Collection packageFragments) {
        kotlin.jvm.internal.t.g(fqName, "fqName");
        kotlin.jvm.internal.t.g(packageFragments, "packageFragments");
        Iterator it = this.f40266a.iterator();
        while (it.hasNext()) {
            tn.n0.a((tn.l0) it.next(), fqName, packageFragments);
        }
    }

    @Override // tn.l0
    public Collection n(ro.c fqName, dn.l nameFilter) {
        kotlin.jvm.internal.t.g(fqName, "fqName");
        kotlin.jvm.internal.t.g(nameFilter, "nameFilter");
        HashSet hashSet = new HashSet();
        Iterator it = this.f40266a.iterator();
        while (it.hasNext()) {
            hashSet.addAll(((tn.l0) it.next()).n(fqName, nameFilter));
        }
        return hashSet;
    }

    public String toString() {
        return this.f40267b;
    }
}
