package com.ironsource; import com.ironsource.m7; import com.ironsource.mediationsdk.IronSource; import com.ironsource.mediationsdk.utils.IronSourceConstants; /* loaded from: classes2.dex */ public class ji extends m7 { private static ji R; private String P; private final mg Q = el.N().k(); private ji() { this.H = "ironbeast"; this.G = 2; this.I = IronSourceConstants.INTERSTITIAL_EVENT_TYPE; this.P = ""; } public static synchronized ji i() { ji jiVar; synchronized (ji.class) { try { if (R == null) { ji jiVar2 = new ji(); R = jiVar2; jiVar2.e(); } jiVar = R; } catch (Throwable th) { throw th; } } return jiVar; } @Override // com.ironsource.m7 public int c(kb kbVar) { mg mgVar; IronSource.AD_UNIT ad_unit; int f = f(kbVar.c()); if (f == m7.e.BANNER.a()) { mgVar = this.Q; ad_unit = IronSource.AD_UNIT.BANNER; } else if (f == m7.e.NATIVE_AD.a()) { mgVar = this.Q; ad_unit = IronSource.AD_UNIT.NATIVE_AD; } else { mgVar = this.Q; ad_unit = IronSource.AD_UNIT.INTERSTITIAL; } return mgVar.a(ad_unit); } @Override // com.ironsource.m7 public void d() { this.J.add(2001); this.J.add(2002); this.J.add(2003); this.J.add(2004); this.J.add(2200); this.J.add(2213); this.J.add(2211); this.J.add(2212); this.J.add(3001); this.J.add(Integer.valueOf(IronSourceConstants.BN_CALLBACK_LOAD_ERROR)); this.J.add(Integer.valueOf(IronSourceConstants.BN_RELOAD)); this.J.add(Integer.valueOf(IronSourceConstants.BN_CALLBACK_RELOAD_ERROR)); this.J.add(Integer.valueOf(IronSourceConstants.BN_CALLBACK_RELOAD_SUCCESS)); this.J.add(3002); this.J.add(Integer.valueOf(IronSourceConstants.BN_INSTANCE_RELOAD)); this.J.add(3005); this.J.add(3300); this.J.add(Integer.valueOf(IronSourceConstants.BN_INSTANCE_RELOAD_SUCCESS)); this.J.add(Integer.valueOf(IronSourceConstants.BN_INSTANCE_RELOAD_ERROR)); this.J.add(Integer.valueOf(IronSourceConstants.BN_INSTANCE_UNEXPECTED_LOAD_SUCCESS)); this.J.add(Integer.valueOf(IronSourceConstants.BN_INSTANCE_UNEXPECTED_RELOAD_SUCCESS)); this.J.add(3009); this.J.add(Integer.valueOf(IronSourceConstants.NT_LOAD)); this.J.add(Integer.valueOf(IronSourceConstants.NT_CALLBACK_LOAD_ERROR)); this.J.add(Integer.valueOf(IronSourceConstants.NT_INSTANCE_LOAD)); this.J.add(Integer.valueOf(IronSourceConstants.NT_INSTANCE_LOAD_SUCCESS)); this.J.add(Integer.valueOf(IronSourceConstants.NT_INSTANCE_LOAD_ERROR)); this.J.add(Integer.valueOf(IronSourceConstants.NT_INSTANCE_SHOW)); } @Override // com.ironsource.m7 public boolean d(kb kbVar) { int c = kbVar.c(); return c == 2004 || c == 2005 || c == 2204 || c == 2301 || c == 2300 || c == 3009 || c == 3502 || c == 3501 || c == 4005 || c == 4009 || c == 4502 || c == 4501; } @Override // com.ironsource.m7 public String e(int i) { return this.P; } @Override // com.ironsource.m7 public void f(kb kbVar) { this.P = kbVar.b().optString("placement"); } @Override // com.ironsource.m7 public boolean j(kb kbVar) { return false; } }