package com.google.android.gms.internal.measurement; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Map; /* loaded from: classes.dex */ public final class zzax { final Map zza = new HashMap(); final zzbj zzb = new zzbj(); public zzax() { zzb(new zzav()); zzb(new zzay()); zzb(new zzaz()); zzb(new zzbc()); zzb(new zzbh()); zzb(new zzbi()); zzb(new zzbk()); } public final zzap zza(zzg zzgVar, zzap zzapVar) { zzh.zzc(zzgVar); if (!(zzapVar instanceof zzaq)) { return zzapVar; } zzaq zzaqVar = (zzaq) zzapVar; ArrayList zzc = zzaqVar.zzc(); String zzb = zzaqVar.zzb(); return (this.zza.containsKey(zzb) ? this.zza.get(zzb) : this.zzb).zza(zzb, zzgVar, zzc); } final void zzb(zzaw zzawVar) { Iterator it = zzawVar.zza.iterator(); while (it.hasNext()) { this.zza.put(it.next().zzb().toString(), zzawVar); } } }