package com.bumptech.glide;

import android.content.Context;
import com.bumptech.glide.b;
import com.bumptech.glide.e;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import nh.a;
import nh.i;
import yh.r;

/* loaded from: classes4.dex */
public final class c {

    /* renamed from: c, reason: collision with root package name */
    private lh.k f12497c;

    /* renamed from: d, reason: collision with root package name */
    private mh.d f12498d;

    /* renamed from: e, reason: collision with root package name */
    private mh.b f12499e;

    /* renamed from: f, reason: collision with root package name */
    private nh.h f12500f;

    /* renamed from: g, reason: collision with root package name */
    private oh.a f12501g;

    /* renamed from: h, reason: collision with root package name */
    private oh.a f12502h;

    /* renamed from: i, reason: collision with root package name */
    private a.InterfaceC0688a f12503i;

    /* renamed from: j, reason: collision with root package name */
    private nh.i f12504j;

    /* renamed from: k, reason: collision with root package name */
    private yh.d f12505k;

    /* renamed from: n, reason: collision with root package name */
    private r.b f12508n;

    /* renamed from: o, reason: collision with root package name */
    private oh.a f12509o;

    /* renamed from: p, reason: collision with root package name */
    private boolean f12510p;

    /* renamed from: q, reason: collision with root package name */
    private List f12511q;

    /* renamed from: a, reason: collision with root package name */
    private final Map f12495a = new androidx.collection.a();

    /* renamed from: b, reason: collision with root package name */
    private final e.a f12496b = new e.a();

    /* renamed from: l, reason: collision with root package name */
    private int f12506l = 4;

    /* renamed from: m, reason: collision with root package name */
    private b.a f12507m = new a();

    /* loaded from: classes4.dex */
    class a implements b.a {
        a() {
        }

        @Override // com.bumptech.glide.b.a
        public com.bumptech.glide.request.f build() {
            return new com.bumptech.glide.request.f();
        }
    }

    /* loaded from: classes4.dex */
    static final class b {
    }

    /* renamed from: com.bumptech.glide.c$c, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static final class C0289c {
    }

    /* loaded from: classes4.dex */
    public static final class d {
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public com.bumptech.glide.b a(Context context, List list, zh.a aVar) {
        if (this.f12501g == null) {
            this.f12501g = oh.a.i();
        }
        if (this.f12502h == null) {
            this.f12502h = oh.a.g();
        }
        if (this.f12509o == null) {
            this.f12509o = oh.a.d();
        }
        if (this.f12504j == null) {
            this.f12504j = new i.a(context).a();
        }
        if (this.f12505k == null) {
            this.f12505k = new yh.f();
        }
        if (this.f12498d == null) {
            int b10 = this.f12504j.b();
            if (b10 > 0) {
                this.f12498d = new mh.j(b10);
            } else {
                this.f12498d = new mh.e();
            }
        }
        if (this.f12499e == null) {
            this.f12499e = new mh.i(this.f12504j.a());
        }
        if (this.f12500f == null) {
            this.f12500f = new nh.g(this.f12504j.d());
        }
        if (this.f12503i == null) {
            this.f12503i = new nh.f(context);
        }
        if (this.f12497c == null) {
            this.f12497c = new lh.k(this.f12500f, this.f12503i, this.f12502h, this.f12501g, oh.a.j(), this.f12509o, this.f12510p);
        }
        List list2 = this.f12511q;
        if (list2 == null) {
            this.f12511q = Collections.emptyList();
        } else {
            this.f12511q = Collections.unmodifiableList(list2);
        }
        e b11 = this.f12496b.b();
        return new com.bumptech.glide.b(context, this.f12497c, this.f12500f, this.f12498d, this.f12499e, new r(this.f12508n, b11), this.f12505k, this.f12506l, this.f12507m, this.f12495a, this.f12511q, list, aVar, b11);
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public void b(r.b bVar) {
        this.f12508n = bVar;
    }
}
