package com.ironsource;

import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.ironsource.p7;
/* loaded from: classes4.dex */
public class li extends p7 {
    private static li R;
    private String P;
    private final zg Q = jl.P().k();

    private li() {
        this.H = "ironbeast";
        this.G = 2;
        this.I = IronSourceConstants.INTERSTITIAL_EVENT_TYPE;
        this.P = "";
    }

    public static synchronized li i() {
        li liVar;
        synchronized (li.class) {
            if (R == null) {
                li liVar2 = new li();
                R = liVar2;
                liVar2.e();
            }
            liVar = R;
        }
        return liVar;
    }

    @Override // com.ironsource.p7
    protected int c(ob obVar) {
        zg zgVar;
        IronSource.AD_UNIT ad_unit;
        int f = f(obVar.c());
        if (f == p7.e.BANNER.a()) {
            zgVar = this.Q;
            ad_unit = IronSource.AD_UNIT.BANNER;
        } else if (f == p7.e.NATIVE_AD.a()) {
            zgVar = this.Q;
            ad_unit = IronSource.AD_UNIT.NATIVE_AD;
        } else {
            zgVar = this.Q;
            ad_unit = IronSource.AD_UNIT.INTERSTITIAL;
        }
        return zgVar.a(ad_unit);
    }

    @Override // com.ironsource.p7
    protected 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((int) IronSourceConstants.BN_CALLBACK_LOAD_ERROR));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_RELOAD));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_CALLBACK_RELOAD_ERROR));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_CALLBACK_RELOAD_SUCCESS));
        this.J.add(3002);
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_INSTANCE_RELOAD));
        this.J.add(3005);
        this.J.add(3300);
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_INSTANCE_RELOAD_SUCCESS));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_INSTANCE_RELOAD_ERROR));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_INSTANCE_UNEXPECTED_LOAD_SUCCESS));
        this.J.add(Integer.valueOf((int) IronSourceConstants.BN_INSTANCE_UNEXPECTED_RELOAD_SUCCESS));
        this.J.add(3009);
        this.J.add(4001);
        this.J.add(Integer.valueOf((int) IronSourceConstants.NT_CALLBACK_LOAD_ERROR));
        this.J.add(4002);
        this.J.add(4005);
        this.J.add(Integer.valueOf((int) IronSourceConstants.NT_INSTANCE_LOAD_ERROR));
        this.J.add(Integer.valueOf((int) IronSourceConstants.NT_INSTANCE_SHOW));
    }

    @Override // com.ironsource.p7
    protected boolean d(ob obVar) {
        int c = obVar.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.p7
    protected String e(int i) {
        return this.P;
    }

    @Override // com.ironsource.p7
    protected void f(ob obVar) {
        this.P = obVar.b().optString("placement");
    }

    @Override // com.ironsource.p7
    protected boolean j(ob obVar) {
        return false;
    }
}
