package b4; import java.util.Collections; import java.util.HashSet; import java.util.Set; /* loaded from: classes2.dex */ final class f0 implements e { /* renamed from: a, reason: collision with root package name */ private final Set f3097a; /* renamed from: b, reason: collision with root package name */ private final Set f3098b; /* renamed from: c, reason: collision with root package name */ private final Set f3099c; /* renamed from: d, reason: collision with root package name */ private final Set f3100d; /* renamed from: e, reason: collision with root package name */ private final Set f3101e; /* renamed from: f, reason: collision with root package name */ private final Set f3102f; /* renamed from: g, reason: collision with root package name */ private final e f3103g; private static class a implements l4.c { /* renamed from: a, reason: collision with root package name */ private final Set f3104a; /* renamed from: b, reason: collision with root package name */ private final l4.c f3105b; public a(Set set, l4.c cVar) { this.f3104a = set; this.f3105b = cVar; } } f0(c cVar, e eVar) { HashSet hashSet = new HashSet(); HashSet hashSet2 = new HashSet(); HashSet hashSet3 = new HashSet(); HashSet hashSet4 = new HashSet(); HashSet hashSet5 = new HashSet(); for (r rVar : cVar.g()) { if (rVar.d()) { if (rVar.f()) { hashSet4.add(rVar.b()); } else { hashSet.add(rVar.b()); } } else if (rVar.c()) { hashSet3.add(rVar.b()); } else if (rVar.f()) { hashSet5.add(rVar.b()); } else { hashSet2.add(rVar.b()); } } if (!cVar.k().isEmpty()) { hashSet.add(e0.b(l4.c.class)); } this.f3097a = Collections.unmodifiableSet(hashSet); this.f3098b = Collections.unmodifiableSet(hashSet2); this.f3099c = Collections.unmodifiableSet(hashSet3); this.f3100d = Collections.unmodifiableSet(hashSet4); this.f3101e = Collections.unmodifiableSet(hashSet5); this.f3102f = cVar.k(); this.f3103g = eVar; } @Override // b4.e public Object a(Class cls) { if (!this.f3097a.contains(e0.b(cls))) { throw new t(String.format("Attempting to request an undeclared dependency %s.", cls)); } Object a10 = this.f3103g.a(cls); return !cls.equals(l4.c.class) ? a10 : new a(this.f3102f, (l4.c) a10); } @Override // b4.e public o4.b b(Class cls) { return f(e0.b(cls)); } @Override // b4.e public o4.b c(e0 e0Var) { if (this.f3101e.contains(e0Var)) { return this.f3103g.c(e0Var); } throw new t(String.format("Attempting to request an undeclared dependency Provider>.", e0Var)); } @Override // b4.e public Set d(e0 e0Var) { if (this.f3100d.contains(e0Var)) { return this.f3103g.d(e0Var); } throw new t(String.format("Attempting to request an undeclared dependency Set<%s>.", e0Var)); } @Override // b4.e public Object e(e0 e0Var) { if (this.f3097a.contains(e0Var)) { return this.f3103g.e(e0Var); } throw new t(String.format("Attempting to request an undeclared dependency %s.", e0Var)); } @Override // b4.e public o4.b f(e0 e0Var) { if (this.f3098b.contains(e0Var)) { return this.f3103g.f(e0Var); } throw new t(String.format("Attempting to request an undeclared dependency Provider<%s>.", e0Var)); } @Override // b4.e public /* synthetic */ Set g(Class cls) { return d.e(this, cls); } }