package s1; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import s1.h; import w1.m; /* loaded from: classes.dex */ final class g { /* renamed from: a, reason: collision with root package name */ private final List f13795a = new ArrayList(); /* renamed from: b, reason: collision with root package name */ private final List f13796b = new ArrayList(); /* renamed from: c, reason: collision with root package name */ private com.bumptech.glide.d f13797c; /* renamed from: d, reason: collision with root package name */ private Object f13798d; /* renamed from: e, reason: collision with root package name */ private int f13799e; /* renamed from: f, reason: collision with root package name */ private int f13800f; /* renamed from: g, reason: collision with root package name */ private Class f13801g; /* renamed from: h, reason: collision with root package name */ private h.e f13802h; /* renamed from: i, reason: collision with root package name */ private q1.h f13803i; /* renamed from: j, reason: collision with root package name */ private Map f13804j; /* renamed from: k, reason: collision with root package name */ private Class f13805k; /* renamed from: l, reason: collision with root package name */ private boolean f13806l; /* renamed from: m, reason: collision with root package name */ private boolean f13807m; /* renamed from: n, reason: collision with root package name */ private q1.f f13808n; /* renamed from: o, reason: collision with root package name */ private com.bumptech.glide.g f13809o; /* renamed from: p, reason: collision with root package name */ private j f13810p; /* renamed from: q, reason: collision with root package name */ private boolean f13811q; /* renamed from: r, reason: collision with root package name */ private boolean f13812r; g() { } void a() { this.f13797c = null; this.f13798d = null; this.f13808n = null; this.f13801g = null; this.f13805k = null; this.f13803i = null; this.f13809o = null; this.f13804j = null; this.f13810p = null; this.f13795a.clear(); this.f13806l = false; this.f13796b.clear(); this.f13807m = false; } t1.b b() { return this.f13797c.b(); } List c() { if (!this.f13807m) { this.f13807m = true; this.f13796b.clear(); List g10 = g(); int size = g10.size(); for (int i10 = 0; i10 < size; i10++) { m.a aVar = (m.a) g10.get(i10); if (!this.f13796b.contains(aVar.f15056a)) { this.f13796b.add(aVar.f15056a); } for (int i11 = 0; i11 < aVar.f15057b.size(); i11++) { if (!this.f13796b.contains(aVar.f15057b.get(i11))) { this.f13796b.add(aVar.f15057b.get(i11)); } } } } return this.f13796b; } u1.a d() { return this.f13802h.a(); } j e() { return this.f13810p; } int f() { return this.f13800f; } List g() { if (!this.f13806l) { this.f13806l = true; this.f13795a.clear(); List i10 = this.f13797c.i().i(this.f13798d); int size = i10.size(); for (int i11 = 0; i11 < size; i11++) { m.a b10 = ((w1.m) i10.get(i11)).b(this.f13798d, this.f13799e, this.f13800f, this.f13803i); if (b10 != null) { this.f13795a.add(b10); } } } return this.f13795a; } t h(Class cls) { return this.f13797c.i().h(cls, this.f13801g, this.f13805k); } Class i() { return this.f13798d.getClass(); } List j(File file) { return this.f13797c.i().i(file); } q1.h k() { return this.f13803i; } com.bumptech.glide.g l() { return this.f13809o; } List m() { return this.f13797c.i().j(this.f13798d.getClass(), this.f13801g, this.f13805k); } q1.k n(v vVar) { return this.f13797c.i().k(vVar); } q1.f o() { return this.f13808n; } q1.d p(Object obj) { return this.f13797c.i().m(obj); } Class q() { return this.f13805k; } q1.l r(Class cls) { q1.l lVar = (q1.l) this.f13804j.get(cls); if (lVar == null) { Iterator it = this.f13804j.entrySet().iterator(); while (true) { if (!it.hasNext()) { break; } Map.Entry entry = (Map.Entry) it.next(); if (((Class) entry.getKey()).isAssignableFrom(cls)) { lVar = (q1.l) entry.getValue(); break; } } } if (lVar != null) { return lVar; } if (!this.f13804j.isEmpty() || !this.f13811q) { return y1.o.c(); } throw new IllegalArgumentException("Missing transformation for " + cls + ". If you wish to ignore unknown resource types, use the optional transformation methods."); } int s() { return this.f13799e; } boolean t(Class cls) { return h(cls) != null; } void u(com.bumptech.glide.d dVar, Object obj, q1.f fVar, int i10, int i11, j jVar, Class cls, Class cls2, com.bumptech.glide.g gVar, q1.h hVar, Map map, boolean z10, boolean z11, h.e eVar) { this.f13797c = dVar; this.f13798d = obj; this.f13808n = fVar; this.f13799e = i10; this.f13800f = i11; this.f13810p = jVar; this.f13801g = cls; this.f13802h = eVar; this.f13805k = cls2; this.f13809o = gVar; this.f13803i = hVar; this.f13804j = map; this.f13811q = z10; this.f13812r = z11; } boolean v(v vVar) { return this.f13797c.i().n(vVar); } boolean w() { return this.f13812r; } boolean x(q1.f fVar) { List g10 = g(); int size = g10.size(); for (int i10 = 0; i10 < size; i10++) { if (((m.a) g10.get(i10)).f15056a.equals(fVar)) { return true; } } return false; } }