package o; import android.content.Context; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import o.C7231ckQ; import o.Vsa; import o.qmH; @fZH /* loaded from: classes.dex */ public class SnM implements InterfaceC0561Jkq { public static volatile kYm c; private final InterfaceC6203cLt a; private final nws b; private final InterfaceC6203cLt d; public final C8228dEv e; /* JADX INFO: Access modifiers changed from: package-private */ @InterfaceC13391fZD public SnM(InterfaceC6203cLt interfaceC6203cLt, InterfaceC6203cLt interfaceC6203cLt2, nws nwsVar, C8228dEv c8228dEv, final jSU jsu) { this.d = interfaceC6203cLt; this.a = interfaceC6203cLt2; this.b = nwsVar; this.e = c8228dEv; jsu.c.execute(new Runnable(jsu) { // from class: o.uub private final jSU a; @Override // java.lang.Runnable public final void run() { jSU jsu2 = this.a; jsu2.a.d(new qmH.LWm(jsu2) { // from class: o.URP private final jSU d; @Override // o.qmH.LWm public final Object a() { jSU jsu3 = this.d; Iterator it = jsu3.b.b().iterator(); while (it.hasNext()) { jsu3.e.a(it.next(), 1); } return null; } /* JADX INFO: Access modifiers changed from: package-private */ { this.d = jsu2; } }); } { this.a = jsu; } }); } public static void b(Context context) { if (c == null) { synchronized (SnM.class) { if (c == null) { c = new C7231ckQ.IeS((byte) 0).a(context).c(); } } } } public final FsM a(KPf kPf) { return new nlv(c(kPf), AbstractC3038apv.e().c(kPf.c()).a(kPf.d()).d(), this); } public static Set c(KPf kPf) { if (kPf instanceof SWV) { return Collections.unmodifiableSet(((SWV) kPf).b()); } return Collections.singleton(new C1332aAy("proto")); } @Override // o.InterfaceC0561Jkq public final void a(uNr unr, mUN mun) { nws nwsVar = this.b; AbstractC3038apv c2 = unr.c(); AbstractC3038apv d = AbstractC3038apv.e().c(c2.a()).d(unr.d().d()).a(c2.d()).d(); Vsa.Sts sts = new Vsa.Sts(); sts.c = new HashMap(); nwsVar.c(d, sts.e(this.d.a()).d(this.a.a()).e(unr.a()).c(new sNO(unr.e(), unr.b().apply(unr.d().c()))).a(unr.d().e()).b(), mun); } }