package fo;

import hp.e0;
import hp.f0;
import hp.m0;
import hp.o1;
import hp.t1;
import io.y;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.t;
import sm.v;
import tn.z0;

/* loaded from: classes3.dex */
public final class n extends vn.b {
    private final y A;

    /* renamed from: z, reason: collision with root package name */
    private final eo.g f18742z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public n(eo.g c10, y javaTypeParameter, int i10, tn.m containingDeclaration) {
        super(c10.e(), containingDeclaration, new eo.d(c10, javaTypeParameter, false, 4, null), javaTypeParameter.getName(), t1.INVARIANT, false, i10, z0.f36441a, c10.a().v());
        t.g(c10, "c");
        t.g(javaTypeParameter, "javaTypeParameter");
        t.g(containingDeclaration, "containingDeclaration");
        this.f18742z = c10;
        this.A = javaTypeParameter;
    }

    private final List J0() {
        int v10;
        List e10;
        Collection upperBounds = this.A.getUpperBounds();
        if (upperBounds.isEmpty()) {
            m0 i10 = this.f18742z.d().m().i();
            t.f(i10, "getAnyType(...)");
            m0 I = this.f18742z.d().m().I();
            t.f(I, "getNullableAnyType(...)");
            e10 = sm.t.e(f0.d(i10, I));
            return e10;
        }
        Collection collection = upperBounds;
        v10 = v.v(collection, 10);
        ArrayList arrayList = new ArrayList(v10);
        Iterator it = collection.iterator();
        while (it.hasNext()) {
            arrayList.add(this.f18742z.g().o((io.j) it.next(), go.b.b(o1.COMMON, false, false, this, 3, null)));
        }
        return arrayList;
    }

    @Override // vn.e
    protected List D0(List bounds) {
        t.g(bounds, "bounds");
        return this.f18742z.a().r().i(this, bounds, this.f18742z);
    }

    @Override // vn.e
    protected void H0(e0 type) {
        t.g(type, "type");
    }

    @Override // vn.e
    protected List I0() {
        return J0();
    }
}
