Apk Done v1.0版本的 MD5 值为:44cfb8e1ce639995aa7f0de6a3a6388b
以下内容为反编译后的 l.java 源代码,内容仅作参考
package com.ironsource.mediationsdk.utils;
import android.content.Context;
import android.text.TextUtils;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.ironsource.mediationsdk.C;
import com.ironsource.mediationsdk.adunit.data.DataKeys;
import com.ironsource.mediationsdk.logger.IronSourceLogger;
import com.ironsource.mediationsdk.logger.IronSourceLoggerManager;
import com.ironsource.mediationsdk.model.InterstitialPlacement;
import com.ironsource.mediationsdk.model.NetworkSettings;
import com.ironsource.mediationsdk.model.Placement;
import com.ironsource.mediationsdk.model.k;
import com.ironsource.sdk.controller.u;
import com.yandex.metrica.YandexMetricaDefaultValues;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class l {
private final String A;
private final String B;
private final String C;
private final String D;
private final String E;
private final String F;
private final String G;
private final String H;
private final String I;
private final String J;
private final String K;
private final String L;
private final String M;
private final String N;
private final String O;
private final String P;
private final String Q;
private final String R;
private final String S;
private final String T;
private final String U;
private final String V;
private final String W;
private final String X;
private final String Y;
private final String Z;
public com.ironsource.mediationsdk.model.m a;
private final String aA;
private final String aB;
private final String aC;
private final String aD;
private final String aE;
private final String aF;
private final String aG;
private final String aH;
private final String aI;
private final String aJ;
private final String aK;
private final String aL;
private final String aM;
private final String aN;
private final String aO;
private final String aP;
private final String aQ;
private final String aR;
private final String aS;
private final String aT;
private final String aU;
private final String aV;
private final String aW;
private final String aX;
private final String aY;
private final String aZ;
private final String aa;
private final String ab;
private final String ac;
private final String ad;
private final String ae;
private final String af;
private final String ag;
private final String ah;
private final String ai;
private final String aj;
private final String ak;
private final String al;
private final String am;
private final String an;
private final String ao;
private final String ap;
private final String aq;
private final String ar;
private final String as;
private final String at;
private final String au;
private final String av;
private final String aw;
private final String ax;
private final String ay;
private final String az;
public com.ironsource.mediationsdk.model.n b;
private final String ba;
private final String bb;
private final String bc;
private final String bd;
private final String be;
private final String bf;
private final String bg;
private final String bh;
private final String bi;
private final String bj;
private final String bk;
private final String bl;
private final String bm;
private final String bn;
private final String bo;
private final String bp;
private final String bq;
private final String br;
private final String bs;
private final String bt;
private String bu;
private String bv;
private Context bw;
public com.ironsource.mediationsdk.model.g c;
public JSONObject d;
public int e;
private final String f;
private final int g;
private final int h;
private final int i;
private final int j;
private final int k;
private final int l;
private final int m;
private final int n;
private final int o;
private final int p;
private final int q;
private final long r;
private final int s;
private final boolean t;
private final int u;
private final int v;
private final int w;
private final int x;
private final String y;
private final String z;
public static final class a {
public static final int a = 1;
public static final int b = 2;
public static final int c = 3;
private static final int[] d = {1, 2, 3};
}
public l(Context context, String str, String str2, String str3) {
this.f = "error";
this.g = 3;
this.h = 2;
this.i = 60;
this.j = YandexMetricaDefaultValues.DEFAULT_MAX_REPORTS_COUNT_UPPER_BOUND;
this.k = 5000;
this.l = 300;
this.m = 3;
this.n = 3;
this.o = 3;
this.p = 2;
this.q = 15;
this.r = 10000L;
this.s = 0;
this.t = false;
this.u = 30000;
this.v = -1;
this.w = 5000;
this.x = 1;
this.y = "providerOrder";
this.z = "providerSettings";
this.A = "configurations";
this.B = IronSourceConstants.EVENTS_GENERIC_PARAMS;
this.C = "adUnits";
this.D = "providerLoadName";
this.E = "application";
this.F = "rewardedVideo";
this.G = "interstitial";
this.H = "offerwall";
this.I = "banner";
this.J = "integration";
this.K = "loggers";
this.L = "segment";
this.M = "events";
this.N = "crashReporter";
this.O = "token";
this.P = "external";
this.Q = "mediationTypes";
this.R = "providerDefaultInstance";
this.S = "settings";
this.T = "maxNumOfAdaptersToLoadOnStart";
this.U = "advancedLoading";
this.V = "adapterTimeOutInSeconds";
this.W = "atim";
this.X = "bannerInterval";
this.Y = "loadRVInterval";
this.Z = "expiredDurationInMinutes";
this.aa = "server";
this.ab = "publisher";
this.ac = "console";
this.ad = "sendUltraEvents";
this.ae = "sendEventsToggle";
this.af = "eventsCompression";
this.ag = "serverEventsURL";
this.ah = "serverEventsType";
this.ai = "backupThreshold";
this.aj = "maxNumberOfEvents";
this.ak = "maxEventsPerBatch";
this.al = "optOut";
this.am = "optIn";
this.an = "triggerEvents";
this.ao = "nonConnectivityEvents";
this.ap = "pixel";
this.aq = "pixelEventsUrl";
this.ar = "pixelEventsEnabled";
this.as = "placements";
this.at = "placementId";
this.au = "placementName";
this.av = "delivery";
this.aw = "isDefault";
this.ax = "capping";
this.ay = "pacing";
this.az = "enabled";
this.aA = "maxImpressions";
this.aB = "numOfSeconds";
this.aC = "unit";
this.aD = "virtualItemName";
this.aE = "virtualItemCount";
this.aF = "backFill";
this.aG = "premium";
this.aH = "uuidEnabled";
this.aI = "abt";
this.aJ = "delayLoadFailure";
this.aK = "keysToInclude";
this.aL = "reporterURL";
this.aM = "reporterKeyword";
this.aN = "includeANR";
this.aO = "timeout";
this.aP = "setIgnoreDebugger";
this.aQ = "adSourceName";
this.aR = "spId";
this.aS = "mpis";
this.aT = "auction";
this.aU = "auctionData";
this.aV = "auctioneerURL";
this.aW = IronSourceConstants.EVENTS_PROGRAMMATIC;
this.aX = "objectPerWaterfall";
this.aY = "minTimeBeforeFirstAuction";
this.aZ = "timeToWaitBeforeAuction";
this.ba = "timeToWaitBeforeLoad";
this.bb = "auctionRetryInterval";
this.bc = "isAuctionOnShowStart";
this.bd = "isLoadWhileShow";
this.be = IronSourceConstants.AUCTION_TRIALS;
this.bf = "auctionTimeout";
this.bg = "auctionSavedHistory";
this.bh = "disableLoadWhileShowSupportFor";
this.bi = "timeToDeleteOldWaterfallAfterAuction";
this.bj = "compressAuctionRequest";
this.bk = "compressAuctionResponse";
this.bl = "encryptionVersion";
this.bm = "shouldSendBannerBURLFromImpression";
this.bn = "optInKeys";
this.bo = "tokenGenericParams";
this.bp = "oneToken";
this.bq = "compressToken";
this.br = "isExternalArmEventsEnabled";
this.bs = "externalArmEventsUrl";
this.bt = "compressExternalToken";
this.e = a.a;
this.bw = context;
try {
this.d = TextUtils.isEmpty(str3) ? new JSONObject() : new JSONObject(str3);
h();
i();
g();
this.bu = TextUtils.isEmpty(str) ? "" : str;
this.bv = TextUtils.isEmpty(str2) ? "" : str2;
} catch (JSONException e) {
e.printStackTrace();
e();
}
}
public l(l lVar) {
this.f = "error";
this.g = 3;
this.h = 2;
this.i = 60;
this.j = YandexMetricaDefaultValues.DEFAULT_MAX_REPORTS_COUNT_UPPER_BOUND;
this.k = 5000;
this.l = 300;
this.m = 3;
this.n = 3;
this.o = 3;
this.p = 2;
this.q = 15;
this.r = 10000L;
this.s = 0;
this.t = false;
this.u = 30000;
this.v = -1;
this.w = 5000;
this.x = 1;
this.y = "providerOrder";
this.z = "providerSettings";
this.A = "configurations";
this.B = IronSourceConstants.EVENTS_GENERIC_PARAMS;
this.C = "adUnits";
this.D = "providerLoadName";
this.E = "application";
this.F = "rewardedVideo";
this.G = "interstitial";
this.H = "offerwall";
this.I = "banner";
this.J = "integration";
this.K = "loggers";
this.L = "segment";
this.M = "events";
this.N = "crashReporter";
this.O = "token";
this.P = "external";
this.Q = "mediationTypes";
this.R = "providerDefaultInstance";
this.S = "settings";
this.T = "maxNumOfAdaptersToLoadOnStart";
this.U = "advancedLoading";
this.V = "adapterTimeOutInSeconds";
this.W = "atim";
this.X = "bannerInterval";
this.Y = "loadRVInterval";
this.Z = "expiredDurationInMinutes";
this.aa = "server";
this.ab = "publisher";
this.ac = "console";
this.ad = "sendUltraEvents";
this.ae = "sendEventsToggle";
this.af = "eventsCompression";
this.ag = "serverEventsURL";
this.ah = "serverEventsType";
this.ai = "backupThreshold";
this.aj = "maxNumberOfEvents";
this.ak = "maxEventsPerBatch";
this.al = "optOut";
this.am = "optIn";
this.an = "triggerEvents";
this.ao = "nonConnectivityEvents";
this.ap = "pixel";
this.aq = "pixelEventsUrl";
this.ar = "pixelEventsEnabled";
this.as = "placements";
this.at = "placementId";
this.au = "placementName";
this.av = "delivery";
this.aw = "isDefault";
this.ax = "capping";
this.ay = "pacing";
this.az = "enabled";
this.aA = "maxImpressions";
this.aB = "numOfSeconds";
this.aC = "unit";
this.aD = "virtualItemName";
this.aE = "virtualItemCount";
this.aF = "backFill";
this.aG = "premium";
this.aH = "uuidEnabled";
this.aI = "abt";
this.aJ = "delayLoadFailure";
this.aK = "keysToInclude";
this.aL = "reporterURL";
this.aM = "reporterKeyword";
this.aN = "includeANR";
this.aO = "timeout";
this.aP = "setIgnoreDebugger";
this.aQ = "adSourceName";
this.aR = "spId";
this.aS = "mpis";
this.aT = "auction";
this.aU = "auctionData";
this.aV = "auctioneerURL";
this.aW = IronSourceConstants.EVENTS_PROGRAMMATIC;
this.aX = "objectPerWaterfall";
this.aY = "minTimeBeforeFirstAuction";
this.aZ = "timeToWaitBeforeAuction";
this.ba = "timeToWaitBeforeLoad";
this.bb = "auctionRetryInterval";
this.bc = "isAuctionOnShowStart";
this.bd = "isLoadWhileShow";
this.be = IronSourceConstants.AUCTION_TRIALS;
this.bf = "auctionTimeout";
this.bg = "auctionSavedHistory";
this.bh = "disableLoadWhileShowSupportFor";
this.bi = "timeToDeleteOldWaterfallAfterAuction";
this.bj = "compressAuctionRequest";
this.bk = "compressAuctionResponse";
this.bl = "encryptionVersion";
this.bm = "shouldSendBannerBURLFromImpression";
this.bn = "optInKeys";
this.bo = "tokenGenericParams";
this.bp = "oneToken";
this.bq = "compressToken";
this.br = "isExternalArmEventsEnabled";
this.bs = "externalArmEventsUrl";
this.bt = "compressExternalToken";
this.e = a.a;
try {
this.bw = lVar.bw;
this.d = new JSONObject(lVar.d.toString());
this.bu = lVar.bu;
this.bv = lVar.bv;
this.a = lVar.a;
this.b = lVar.b;
this.c = lVar.c;
this.e = lVar.e;
} catch (Exception unused) {
e();
}
}
private static int a(JSONObject jSONObject, JSONObject jSONObject2, String str, int i) {
int i2 = 0;
if (jSONObject.has(str)) {
i2 = jSONObject.optInt(str, 0);
} else if (jSONObject2.has(str)) {
i2 = jSONObject2.optInt(str, 0);
}
return i2 == 0 ? i : i2;
}
private static com.ironsource.mediationsdk.model.k a(JSONObject jSONObject) {
com.ironsource.mediationsdk.model.l lVar = null;
if (jSONObject == null) {
return null;
}
k.a aVar = new k.a();
boolean z = true;
aVar.a = jSONObject.optBoolean("delivery", true);
JSONObject optJSONObject = jSONObject.optJSONObject("capping");
if (optJSONObject != null) {
String optString = optJSONObject.optString("unit");
if (!TextUtils.isEmpty(optString)) {
if (com.ironsource.mediationsdk.model.l.PER_DAY.toString().equals(optString)) {
lVar = com.ironsource.mediationsdk.model.l.PER_DAY;
} else if (com.ironsource.mediationsdk.model.l.PER_HOUR.toString().equals(optString)) {
lVar = com.ironsource.mediationsdk.model.l.PER_HOUR;
}
}
int optInt = optJSONObject.optInt("maxImpressions", 0);
aVar.a(optJSONObject.optBoolean("enabled", false) && optInt > 0, lVar, optInt);
}
JSONObject optJSONObject2 = jSONObject.optJSONObject("pacing");
if (optJSONObject2 != null) {
int optInt2 = optJSONObject2.optInt("numOfSeconds", 0);
aVar.a((!optJSONObject2.optBoolean("enabled", false) || optInt2 <= 0) ? false : false, optInt2);
}
return aVar.a();
}
private static int[] a(JSONObject jSONObject, String str) {
JSONArray optJSONArray = jSONObject.optJSONArray(str);
if (optJSONArray != null) {
int[] iArr = new int[optJSONArray.length()];
for (int i = 0; i < optJSONArray.length(); i++) {
iArr[i] = optJSONArray.optInt(i);
}
return iArr;
}
return null;
}
private static JSONObject b(JSONObject jSONObject, String str) {
if (jSONObject != null) {
return jSONObject.optJSONObject(str);
}
return null;
}
private void e() {
this.d = new JSONObject();
this.bu = "";
this.bv = "";
this.a = new com.ironsource.mediationsdk.model.m();
this.b = com.ironsource.mediationsdk.model.n.a();
this.c = new com.ironsource.mediationsdk.model.g();
}
private boolean f() {
JSONArray names = b(this.d, "providerOrder").names();
if (names == null) {
return true;
}
JSONObject b = b(b(this.d, "configurations"), "adUnits");
for (int i = 0; i < names.length(); i++) {
JSONArray optJSONArray = b(b, names.optString(i)).optJSONArray("placements");
if (optJSONArray == null || optJSONArray.length() == 0) {
return false;
}
}
return true;
}
private void g() {
try {
JSONObject b = b(this.d, "providerOrder");
JSONArray optJSONArray = b.optJSONArray("rewardedVideo");
JSONArray optJSONArray2 = b.optJSONArray("interstitial");
JSONArray optJSONArray3 = b.optJSONArray("banner");
this.a = new com.ironsource.mediationsdk.model.m();
if (optJSONArray != null && this.c != null && this.c.a != null) {
String str = this.c.a.f;
String str2 = this.c.a.g;
for (int i = 0; i < optJSONArray.length(); i++) {
String optString = optJSONArray.optString(i);
if (optString.equals(str)) {
this.a.b = str;
} else {
if (optString.equals(str2)) {
this.a.c = str2;
}
com.ironsource.mediationsdk.model.m mVar = this.a;
if (!TextUtils.isEmpty(optString)) {
mVar.a.add(optString);
}
NetworkSettings a2 = com.ironsource.mediationsdk.model.n.a().a(optString);
if (a2 != null) {
a2.setRewardedVideoPriority(i);
}
}
}
}
if (optJSONArray2 != null && this.c != null && this.c.b != null) {
String str3 = this.c.b.g;
String str4 = this.c.b.h;
for (int i2 = 0; i2 < optJSONArray2.length(); i2++) {
String optString2 = optJSONArray2.optString(i2);
if (optString2.equals(str3)) {
this.a.f = str3;
} else {
if (optString2.equals(str4)) {
this.a.g = str4;
}
com.ironsource.mediationsdk.model.m mVar2 = this.a;
if (!TextUtils.isEmpty(optString2)) {
mVar2.d.add(optString2);
}
NetworkSettings a3 = com.ironsource.mediationsdk.model.n.a().a(optString2);
if (a3 != null) {
a3.setInterstitialPriority(i2);
}
}
}
}
if (optJSONArray3 != null) {
for (int i3 = 0; i3 < optJSONArray3.length(); i3++) {
String optString3 = optJSONArray3.optString(i3);
com.ironsource.mediationsdk.model.m mVar3 = this.a;
if (!TextUtils.isEmpty(optString3)) {
mVar3.e.add(optString3);
}
NetworkSettings a4 = com.ironsource.mediationsdk.model.n.a().a(optString3);
if (a4 != null) {
a4.setBannerPriority(i3);
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
private void h() {
String str;
JSONObject jSONObject;
boolean z;
NetworkSettings networkSettings;
com.ironsource.mediationsdk.model.n nVar;
String str2 = "Mediation";
try {
this.b = com.ironsource.mediationsdk.model.n.a();
JSONObject b = b(this.d, "providerSettings");
Iterator<String> keys = b.keys();
while (keys.hasNext()) {
String next = keys.next();
JSONObject optJSONObject = b.optJSONObject(next);
if (optJSONObject != null) {
boolean optBoolean = optJSONObject.optBoolean("mpis", false);
String optString = optJSONObject.optString("spId", "0");
String optString2 = optJSONObject.optString("adSourceName", null);
String optString3 = optJSONObject.optString("providerLoadName", next);
String optString4 = optJSONObject.optString("providerDefaultInstance", optString3);
JSONObject b2 = b(optJSONObject, "adUnits");
JSONObject b3 = b(optJSONObject, "application");
JSONObject b4 = b(b2, "rewardedVideo");
JSONObject b5 = b(b2, "interstitial");
JSONObject b6 = b(b2, "banner");
JSONObject mergeJsons = IronSourceUtils.mergeJsons(b4, b3);
JSONObject mergeJsons2 = IronSourceUtils.mergeJsons(b5, b3);
JSONObject mergeJsons3 = IronSourceUtils.mergeJsons(b6, b3);
if (this.b.b(next)) {
NetworkSettings a2 = this.b.a(next);
JSONObject rewardedVideoSettings = a2.getRewardedVideoSettings();
JSONObject interstitialSettings = a2.getInterstitialSettings();
JSONObject bannerSettings = a2.getBannerSettings();
a2.setRewardedVideoSettings(IronSourceUtils.mergeJsons(rewardedVideoSettings, mergeJsons));
a2.setInterstitialSettings(IronSourceUtils.mergeJsons(interstitialSettings, mergeJsons2));
a2.setBannerSettings(IronSourceUtils.mergeJsons(bannerSettings, mergeJsons3));
a2.setIsMultipleInstances(optBoolean);
a2.setSubProviderId(optString);
a2.setAdSourceNameForEvents(optString2);
} else {
String lowerCase = optString3.toLowerCase(Locale.ENGLISH);
if (this.b.b(str2)) {
jSONObject = b;
if (IronSourceConstants.SUPERSONIC_CONFIG_NAME.toLowerCase(Locale.ENGLISH).equals(lowerCase) || IronSourceConstants.IRONSOURCE_CONFIG_NAME.toLowerCase(Locale.ENGLISH).equals(lowerCase)) {
z = true;
if (z) {
str = str2;
networkSettings = new NetworkSettings(next, optString3, optString4, b3, mergeJsons, mergeJsons2, mergeJsons3);
networkSettings.setIsMultipleInstances(optBoolean);
networkSettings.setSubProviderId(optString);
networkSettings.setAdSourceNameForEvents(optString2);
nVar = this.b;
} else {
NetworkSettings a3 = this.b.a(str2);
JSONObject rewardedVideoSettings2 = a3.getRewardedVideoSettings();
JSONObject interstitialSettings2 = a3.getInterstitialSettings();
JSONObject bannerSettings2 = a3.getBannerSettings();
str = str2;
networkSettings = new NetworkSettings(next, optString3, optString4, b3, IronSourceUtils.mergeJsons(new JSONObject(rewardedVideoSettings2.toString()), mergeJsons), IronSourceUtils.mergeJsons(new JSONObject(interstitialSettings2.toString()), mergeJsons2), IronSourceUtils.mergeJsons(new JSONObject(bannerSettings2.toString()), mergeJsons3));
networkSettings.setIsMultipleInstances(optBoolean);
networkSettings.setSubProviderId(optString);
networkSettings.setAdSourceNameForEvents(optString2);
nVar = this.b;
}
nVar.a(networkSettings);
}
} else {
jSONObject = b;
}
z = false;
if (z) {
}
nVar.a(networkSettings);
}
} else {
str = str2;
jSONObject = b;
}
str2 = str;
b = jSONObject;
}
this.b.b();
} catch (Exception e) {
e.printStackTrace();
}
}
private void i() {
JSONObject jSONObject;
JSONObject jSONObject2;
String str;
String str2;
int i;
boolean z;
String str3;
String str4;
int[] iArr;
int[] iArr2;
int[] iArr3;
int[] iArr4;
String str5;
String str6;
String str7;
String str8;
c cVar;
l lVar;
com.ironsource.mediationsdk.model.o oVar;
Placement placement;
String str9;
String str10;
String str11;
String str12;
JSONObject jSONObject3;
com.ironsource.mediationsdk.model.h hVar;
String str13;
String str14;
JSONObject jSONObject4;
String str15;
String str16;
JSONObject jSONObject5;
com.ironsource.mediationsdk.model.e eVar;
String str17;
String str18;
com.ironsource.mediationsdk.model.i iVar;
boolean z2;
com.ironsource.mediationsdk.model.p pVar;
JSONObject b;
int[] iArr5;
int[] iArr6;
int[] iArr7;
int[] iArr8;
com.ironsource.mediationsdk.model.j jVar;
int[] iArr9;
int[] iArr10;
int[] iArr11;
int[] iArr12;
JSONObject jSONObject6;
c cVar2;
JSONObject jSONObject7;
JSONArray jSONArray;
String str19;
com.ironsource.mediationsdk.model.f fVar;
int i2;
boolean z3;
int[] iArr13;
int[] iArr14;
int[] iArr15;
int[] iArr16;
JSONObject jSONObject8;
c cVar3;
JSONArray jSONArray2;
JSONObject jSONObject9;
String str20;
InterstitialPlacement interstitialPlacement;
try {
JSONObject b2 = b(this.d, "configurations");
JSONObject b3 = b(b2, "adUnits");
JSONObject b4 = b(b2, "application");
JSONObject b5 = b(b3, "rewardedVideo");
JSONObject b6 = b(b3, "interstitial");
JSONObject b7 = b(b3, "offerwall");
JSONObject b8 = b(b3, "banner");
JSONObject b9 = b(b4, "events");
JSONObject b10 = b(b4, "loggers");
JSONObject b11 = b(b4, "token");
JSONObject b12 = b(b4, "segment");
JSONObject b13 = b(b4, "auction");
JSONObject b14 = b(b4, "crashReporter");
JSONObject b15 = b(b4, "settings");
JSONObject b16 = b(b4, "external");
JSONObject b17 = b(b9, "pixel");
if (b4 != null) {
jSONObject = b12;
jSONObject2 = b14;
IronSourceUtils.saveBooleanToSharedPrefs(this.bw, "uuidEnabled", b4.optBoolean("uuidEnabled", true));
} else {
jSONObject = b12;
jSONObject2 = b14;
}
if (b9 != null) {
String optString = b9.optString("abt");
if (!TextUtils.isEmpty(optString)) {
com.ironsource.mediationsdk.a.d.e().p = optString;
com.ironsource.mediationsdk.a.h.e().p = optString;
}
}
JSONObject jSONObject10 = b13;
String str21 = "triggerEvents";
String str22 = "";
String str23 = "optIn";
if (b5 != null) {
try {
JSONArray optJSONArray = b5.optJSONArray("placements");
str = "placements";
JSONObject b18 = b(b5, "events");
str2 = "events";
JSONArray jSONArray3 = optJSONArray;
int a2 = a(b5, b4, "maxNumOfAdaptersToLoadOnStart", 2);
int a3 = a(b5, b4, "advancedLoading", 0);
if (a3 > 0) {
i = a3;
z = true;
} else {
i = a2;
z = false;
}
int a4 = a(b5, b4, "adapterTimeOutInSeconds", 60);
int a5 = a(b5, b4, "loadRVInterval", 300);
int a6 = a(b5, b4, "expiredDurationInMinutes", -1);
int a7 = a(b5, b4, "delayLoadFailure", 3);
JSONObject mergeJsons = IronSourceUtils.mergeJsons(b18, b9);
boolean optBoolean = mergeJsons.optBoolean("sendUltraEvents", false);
boolean optBoolean2 = mergeJsons.optBoolean("sendEventsToggle", false);
boolean optBoolean3 = mergeJsons.optBoolean("eventsCompression", false);
String optString2 = mergeJsons.optString("serverEventsURL", "");
String optString3 = mergeJsons.optString("serverEventsType", "");
int optInt = mergeJsons.optInt("backupThreshold", -1);
int optInt2 = mergeJsons.optInt("maxNumberOfEvents", -1);
int optInt3 = mergeJsons.optInt("maxEventsPerBatch", 5000);
JSONArray optJSONArray2 = mergeJsons.optJSONArray("optOut");
if (optJSONArray2 != null) {
int[] iArr17 = new int[optJSONArray2.length()];
str3 = "optOut";
str4 = "maxEventsPerBatch";
for (int i3 = 0; i3 < optJSONArray2.length(); i3++) {
iArr17[i3] = optJSONArray2.optInt(i3);
}
iArr = iArr17;
} else {
str3 = "optOut";
str4 = "maxEventsPerBatch";
iArr = null;
}
JSONArray optJSONArray3 = mergeJsons.optJSONArray(str23);
if (optJSONArray3 != null) {
int[] iArr18 = new int[optJSONArray3.length()];
str23 = str23;
for (int i4 = 0; i4 < optJSONArray3.length(); i4++) {
iArr18[i4] = optJSONArray3.optInt(i4);
}
iArr2 = iArr18;
} else {
str23 = str23;
iArr2 = null;
}
JSONArray optJSONArray4 = mergeJsons.optJSONArray(str21);
if (optJSONArray4 != null) {
int[] iArr19 = new int[optJSONArray4.length()];
str21 = str21;
for (int i5 = 0; i5 < optJSONArray4.length(); i5++) {
iArr19[i5] = optJSONArray4.optInt(i5);
}
iArr3 = iArr19;
} else {
str21 = str21;
iArr3 = null;
}
JSONArray optJSONArray5 = mergeJsons.optJSONArray("nonConnectivityEvents");
if (optJSONArray5 != null) {
int[] iArr20 = new int[optJSONArray5.length()];
for (int i6 = 0; i6 < optJSONArray5.length(); i6++) {
iArr20[i6] = optJSONArray5.optInt(i6);
}
iArr4 = iArr20;
} else {
iArr4 = null;
}
com.ironsource.sdk.g.d dVar = new com.ironsource.sdk.g.d(optBoolean, optBoolean2, optBoolean3, optString2, optString3, optInt, optInt2, optInt3, iArr, iArr2, iArr3, iArr4);
if (jSONObject10 != null) {
JSONObject b19 = b(jSONObject10, "rewardedVideo");
String optString4 = jSONObject10.optString("auctionData", "");
String optString5 = jSONObject10.optString("auctioneerURL", "");
int optInt4 = jSONObject10.optInt(IronSourceConstants.AUCTION_TRIALS, 2);
long optLong = jSONObject10.optLong("auctionTimeout", 10000L);
int optInt5 = jSONObject10.optInt("auctionSavedHistory", 15);
boolean optBoolean4 = jSONObject10.optBoolean("compressAuctionRequest", false);
boolean optBoolean5 = jSONObject10.optBoolean("compressAuctionResponse", false);
int optInt6 = jSONObject10.optInt("encryptionVersion", 1);
jSONObject10 = jSONObject10;
str8 = "maxNumberOfEvents";
str7 = "backupThreshold";
str5 = "serverEventsType";
str6 = "serverEventsURL";
c cVar4 = new c(optString4, optString5, optInt4, optInt5, optLong, b19.optBoolean(IronSourceConstants.EVENTS_PROGRAMMATIC, false), b19.optInt("minTimeBeforeFirstAuction", 2000), b19.optInt("auctionRetryInterval", 30000), b19.optInt("timeToWaitBeforeAuction", 5000), b19.optInt("timeToWaitBeforeLoad", 50), b19.optBoolean("isAuctionOnShowStart", false), b19.optBoolean("isLoadWhileShow", false), b19.optInt("timeToDeleteOldWaterfallAfterAuction", 30000), optBoolean4, optBoolean5, b19.optBoolean("objectPerWaterfall", false), optInt6, false);
JSONArray optJSONArray6 = b19.optJSONArray("disableLoadWhileShowSupportFor");
if (optJSONArray6 != null) {
for (int i7 = 0; i7 < optJSONArray6.length(); i7++) {
String optString6 = optJSONArray6.optString(i7);
if (!TextUtils.isEmpty(optString6)) {
cVar4.o.add(optString6);
}
}
}
cVar = cVar4;
} else {
str5 = "serverEventsType";
str6 = "serverEventsURL";
str7 = "backupThreshold";
str8 = "maxNumberOfEvents";
cVar = new c();
}
com.ironsource.mediationsdk.model.o oVar2 = new com.ironsource.mediationsdk.model.o(i, z, a4, a5, a6, dVar, cVar, a7);
if (jSONArray3 != null) {
int i8 = 0;
while (i8 < jSONArray3.length()) {
JSONArray jSONArray4 = jSONArray3;
JSONObject optJSONObject = jSONArray4.optJSONObject(i8);
if (optJSONObject != null) {
int optInt7 = optJSONObject.optInt("placementId", -1);
String optString7 = optJSONObject.optString("placementName", "");
boolean optBoolean6 = optJSONObject.optBoolean("isDefault", false);
String optString8 = optJSONObject.optString("virtualItemName", "");
int optInt8 = optJSONObject.optInt("virtualItemCount", -1);
com.ironsource.mediationsdk.model.k a8 = a(optJSONObject);
if (optInt7 >= 0 && !TextUtils.isEmpty(optString7) && !TextUtils.isEmpty(optString8) && optInt8 > 0) {
placement = new Placement(optInt7, optString7, optBoolean6, optString8, optInt8, a8);
if (a8 != null) {
try {
k.a(this.bw, placement);
} catch (Exception e) {
e = e;
e.printStackTrace();
return;
}
}
if (placement != null && placement != null) {
oVar2.a.add(placement);
if (oVar2.k != null && placement.getPlacementId() != 0) {
}
oVar2.k = placement;
}
i8++;
jSONArray3 = jSONArray4;
}
}
placement = null;
if (placement != null) {
oVar2.a.add(placement);
if (oVar2.k != null) {
}
oVar2.k = placement;
}
i8++;
jSONArray3 = jSONArray4;
}
}
lVar = this;
String optString9 = b5.optString("backFill");
if (!TextUtils.isEmpty(optString9)) {
oVar2.f = optString9;
}
String optString10 = b5.optString("premium");
if (!TextUtils.isEmpty(optString10)) {
oVar2.g = optString10;
}
oVar = oVar2;
} catch (Exception e2) {
e = e2;
e.printStackTrace();
return;
}
} else {
str3 = "optOut";
str2 = "events";
str6 = "serverEventsURL";
str7 = "backupThreshold";
str = "placements";
str4 = "maxEventsPerBatch";
str8 = "maxNumberOfEvents";
str5 = "serverEventsType";
lVar = this;
oVar = null;
}
if (b6 != null) {
str10 = str;
JSONArray optJSONArray7 = b6.optJSONArray(str10);
str11 = str2;
JSONObject b20 = b(b6, str11);
int a9 = a(b6, b4, "maxNumOfAdaptersToLoadOnStart", 2);
int a10 = a(b6, b4, "advancedLoading", 0);
if (a10 > 0) {
i2 = a10;
z3 = true;
} else {
i2 = a9;
z3 = false;
}
int a11 = a(b6, b4, "adapterTimeOutInSeconds", 60);
int a12 = a(b6, b4, "delayLoadFailure", 3);
JSONObject mergeJsons2 = IronSourceUtils.mergeJsons(b20, b9);
boolean optBoolean7 = mergeJsons2.optBoolean("sendEventsToggle", false);
boolean optBoolean8 = mergeJsons2.optBoolean("eventsCompression", false);
String str24 = str6;
String optString11 = mergeJsons2.optString(str24, "");
String optString12 = mergeJsons2.optString(str5, "");
String str25 = str7;
int optInt9 = mergeJsons2.optInt(str25, -1);
str7 = str25;
String str26 = str8;
int optInt10 = mergeJsons2.optInt(str26, -1);
str8 = str26;
String str27 = str4;
int optInt11 = mergeJsons2.optInt(str27, 5000);
str4 = str27;
String str28 = str3;
JSONArray optJSONArray8 = mergeJsons2.optJSONArray(str28);
if (optJSONArray8 != null) {
str3 = str28;
int[] iArr21 = new int[optJSONArray8.length()];
str6 = str24;
str9 = str5;
for (int i9 = 0; i9 < optJSONArray8.length(); i9++) {
iArr21[i9] = optJSONArray8.optInt(i9);
}
iArr13 = iArr21;
} else {
str6 = str24;
str9 = str5;
str3 = str28;
iArr13 = null;
}
String str29 = str23;
JSONArray optJSONArray9 = mergeJsons2.optJSONArray(str29);
if (optJSONArray9 != null) {
int[] iArr22 = new int[optJSONArray9.length()];
str23 = str29;
for (int i10 = 0; i10 < optJSONArray9.length(); i10++) {
iArr22[i10] = optJSONArray9.optInt(i10);
}
iArr14 = iArr22;
} else {
str23 = str29;
iArr14 = null;
}
String str30 = str21;
JSONArray optJSONArray10 = mergeJsons2.optJSONArray(str30);
if (optJSONArray10 != null) {
int[] iArr23 = new int[optJSONArray10.length()];
str21 = str30;
for (int i11 = 0; i11 < optJSONArray10.length(); i11++) {
iArr23[i11] = optJSONArray10.optInt(i11);
}
iArr15 = iArr23;
} else {
str21 = str30;
iArr15 = null;
}
JSONArray optJSONArray11 = mergeJsons2.optJSONArray("nonConnectivityEvents");
if (optJSONArray11 != null) {
int[] iArr24 = new int[optJSONArray11.length()];
for (int i12 = 0; i12 < optJSONArray11.length(); i12++) {
iArr24[i12] = optJSONArray11.optInt(i12);
}
iArr16 = iArr24;
} else {
iArr16 = null;
}
com.ironsource.sdk.g.d dVar2 = new com.ironsource.sdk.g.d(false, optBoolean7, optBoolean8, optString11, optString12, optInt9, optInt10, optInt11, iArr13, iArr14, iArr15, iArr16);
if (jSONObject10 != null) {
jSONObject8 = jSONObject10;
JSONObject b21 = b(jSONObject8, "interstitial");
cVar3 = new c(jSONObject8.optString("auctionData", ""), jSONObject8.optString("auctioneerURL", ""), jSONObject8.optInt(IronSourceConstants.AUCTION_TRIALS, 2), jSONObject8.optInt("auctionSavedHistory", 15), jSONObject8.optLong("auctionTimeout", 10000L), b21.optBoolean(IronSourceConstants.EVENTS_PROGRAMMATIC, false), b21.optInt("minTimeBeforeFirstAuction", 2000), 0L, 0L, 0L, true, true, 0, jSONObject8.optBoolean("compressAuctionRequest", false), jSONObject8.optBoolean("compressAuctionResponse", false), b21.optBoolean("objectPerWaterfall", false), jSONObject8.optInt("encryptionVersion", 1), false);
} else {
jSONObject8 = jSONObject10;
cVar3 = new c();
}
com.ironsource.mediationsdk.model.h hVar2 = new com.ironsource.mediationsdk.model.h(i2, z3, a11, dVar2, cVar3, a12);
if (optJSONArray7 != null) {
int i13 = 0;
while (i13 < optJSONArray7.length()) {
JSONObject optJSONObject2 = optJSONArray7.optJSONObject(i13);
if (optJSONObject2 != null) {
jSONArray2 = optJSONArray7;
int optInt12 = optJSONObject2.optInt("placementId", -1);
String optString13 = optJSONObject2.optString("placementName", str22);
jSONObject9 = jSONObject8;
str20 = str22;
boolean optBoolean9 = optJSONObject2.optBoolean("isDefault", false);
com.ironsource.mediationsdk.model.k a13 = a(optJSONObject2);
if (optInt12 >= 0 && !TextUtils.isEmpty(optString13)) {
interstitialPlacement = new InterstitialPlacement(optInt12, optString13, optBoolean9, a13);
if (a13 != null) {
k.a(lVar.bw, interstitialPlacement);
}
if (interstitialPlacement != null && interstitialPlacement != null) {
hVar2.a.add(interstitialPlacement);
if (hVar2.j != null && interstitialPlacement.getPlacementId() != 0) {
}
hVar2.j = interstitialPlacement;
}
i13++;
optJSONArray7 = jSONArray2;
jSONObject8 = jSONObject9;
str22 = str20;
}
} else {
jSONArray2 = optJSONArray7;
jSONObject9 = jSONObject8;
str20 = str22;
}
interstitialPlacement = null;
if (interstitialPlacement != null) {
hVar2.a.add(interstitialPlacement);
if (hVar2.j != null) {
}
hVar2.j = interstitialPlacement;
}
i13++;
optJSONArray7 = jSONArray2;
jSONObject8 = jSONObject9;
str22 = str20;
}
}
jSONObject3 = jSONObject8;
str12 = str22;
String optString14 = b6.optString("backFill");
if (!TextUtils.isEmpty(optString14)) {
hVar2.g = optString14;
}
String optString15 = b6.optString("premium");
if (!TextUtils.isEmpty(optString15)) {
hVar2.h = optString15;
}
hVar = hVar2;
} else {
str9 = str5;
str10 = str;
str11 = str2;
str12 = "";
jSONObject3 = jSONObject10;
hVar = null;
}
if (b8 != null) {
JSONArray optJSONArray12 = b8.optJSONArray(str10);
JSONObject b22 = b(b8, str11);
int a14 = a(b8, b4, "maxNumOfAdaptersToLoadOnStart", 1);
long optLong2 = b8.has("atim") ? b8.optLong("atim", 0L) : b4.has("atim") ? b4.optLong("atim", 0L) : 0L;
long j = optLong2 == 0 ? 10000L : optLong2;
int a15 = a(b8, b4, "delayLoadFailure", 3);
int a16 = a(b8, b4, "bannerInterval", 60);
JSONObject mergeJsons3 = IronSourceUtils.mergeJsons(b22, b9);
boolean optBoolean10 = mergeJsons3.optBoolean("sendEventsToggle", false);
boolean optBoolean11 = mergeJsons3.optBoolean("eventsCompression", false);
str15 = str12;
str16 = str6;
String optString16 = mergeJsons3.optString(str16, str15);
str14 = str9;
String optString17 = mergeJsons3.optString(str14, str15);
String str31 = str7;
int optInt13 = mergeJsons3.optInt(str31, -1);
String str32 = str8;
int optInt14 = mergeJsons3.optInt(str32, -1);
jSONObject5 = b4;
String str33 = str4;
int optInt15 = mergeJsons3.optInt(str33, 5000);
str13 = str10;
String str34 = str3;
JSONArray optJSONArray13 = mergeJsons3.optJSONArray(str34);
if (optJSONArray13 != null) {
str3 = str34;
int[] iArr25 = new int[optJSONArray13.length()];
str4 = str33;
str8 = str32;
for (int i14 = 0; i14 < optJSONArray13.length(); i14++) {
iArr25[i14] = optJSONArray13.optInt(i14);
}
iArr9 = iArr25;
} else {
str3 = str34;
str4 = str33;
str8 = str32;
iArr9 = null;
}
String str35 = str23;
JSONArray optJSONArray14 = mergeJsons3.optJSONArray(str35);
if (optJSONArray14 != null) {
int[] iArr26 = new int[optJSONArray14.length()];
str23 = str35;
for (int i15 = 0; i15 < optJSONArray14.length(); i15++) {
iArr26[i15] = optJSONArray14.optInt(i15);
}
iArr10 = iArr26;
} else {
str23 = str35;
iArr10 = null;
}
String str36 = str21;
JSONArray optJSONArray15 = mergeJsons3.optJSONArray(str36);
if (optJSONArray15 != null) {
int[] iArr27 = new int[optJSONArray15.length()];
str21 = str36;
for (int i16 = 0; i16 < optJSONArray15.length(); i16++) {
iArr27[i16] = optJSONArray15.optInt(i16);
}
iArr11 = iArr27;
} else {
str21 = str36;
iArr11 = null;
}
JSONArray optJSONArray16 = mergeJsons3.optJSONArray("nonConnectivityEvents");
if (optJSONArray16 != null) {
int[] iArr28 = new int[optJSONArray16.length()];
for (int i17 = 0; i17 < optJSONArray16.length(); i17++) {
iArr28[i17] = optJSONArray16.optInt(i17);
}
iArr12 = iArr28;
} else {
iArr12 = null;
}
com.ironsource.sdk.g.d dVar3 = new com.ironsource.sdk.g.d(false, optBoolean10, optBoolean11, optString16, optString17, optInt13, optInt14, optInt15, iArr9, iArr10, iArr11, iArr12);
if (jSONObject3 != null) {
jSONObject6 = jSONObject3;
JSONObject b23 = b(jSONObject6, "banner");
cVar2 = b23 != null ? new c(jSONObject6.optString("auctionData", str15), jSONObject6.optString("auctioneerURL", str15), jSONObject6.optInt(IronSourceConstants.AUCTION_TRIALS, 2), jSONObject6.optInt("auctionSavedHistory", 15), jSONObject6.optLong("auctionTimeout", 10000L), b23.optBoolean(IronSourceConstants.EVENTS_PROGRAMMATIC, false), b23.optInt("minTimeBeforeFirstAuction", 2000), 0L, 0L, 0L, true, true, 0, jSONObject6.optBoolean("compressAuctionRequest", false), jSONObject6.optBoolean("compressAuctionResponse", false), false, jSONObject6.optInt("encryptionVersion", 1), b23.optBoolean("shouldSendBannerBURLFromImpression", true)) : new c();
} else {
jSONObject6 = jSONObject3;
cVar2 = new c();
}
com.ironsource.mediationsdk.model.e eVar2 = new com.ironsource.mediationsdk.model.e(a14, j, dVar3, a16, cVar2, a15);
if (optJSONArray12 != null) {
int i18 = 0;
while (i18 < optJSONArray12.length()) {
JSONObject optJSONObject3 = optJSONArray12.optJSONObject(i18);
if (optJSONObject3 != null) {
jSONArray = optJSONArray12;
int optInt16 = optJSONObject3.optInt("placementId", -1);
String optString18 = optJSONObject3.optString("placementName", str15);
jSONObject7 = jSONObject6;
str19 = str31;
boolean optBoolean12 = optJSONObject3.optBoolean("isDefault", false);
com.ironsource.mediationsdk.model.k a17 = a(optJSONObject3);
if (optInt16 >= 0 && !TextUtils.isEmpty(optString18)) {
fVar = new com.ironsource.mediationsdk.model.f(optInt16, optString18, optBoolean12, a17);
if (a17 != null) {
k.a(lVar.bw, fVar);
}
if (fVar != null && fVar != null) {
eVar2.c.add(fVar);
if (eVar2.d != null && fVar.getPlacementId() != 0) {
}
eVar2.d = fVar;
}
i18++;
optJSONArray12 = jSONArray;
jSONObject6 = jSONObject7;
str31 = str19;
}
} else {
jSONObject7 = jSONObject6;
jSONArray = optJSONArray12;
str19 = str31;
}
fVar = null;
if (fVar != null) {
eVar2.c.add(fVar);
if (eVar2.d != null) {
}
eVar2.d = fVar;
}
i18++;
optJSONArray12 = jSONArray;
jSONObject6 = jSONObject7;
str31 = str19;
}
}
jSONObject4 = jSONObject6;
str7 = str31;
eVar = eVar2;
} else {
str13 = str10;
str14 = str9;
jSONObject4 = jSONObject3;
str15 = str12;
str16 = str6;
jSONObject5 = b4;
eVar = null;
}
if (b7 != null) {
JSONObject mergeJsons4 = IronSourceUtils.mergeJsons(b(b7, str11), b9);
boolean optBoolean13 = mergeJsons4.optBoolean("sendEventsToggle", false);
boolean optBoolean14 = mergeJsons4.optBoolean("eventsCompression", false);
String optString19 = mergeJsons4.optString(str16, str15);
String optString20 = mergeJsons4.optString(str14, str15);
int optInt17 = mergeJsons4.optInt(str7, -1);
int optInt18 = mergeJsons4.optInt(str8, -1);
int optInt19 = mergeJsons4.optInt(str4, 5000);
str18 = str3;
JSONArray optJSONArray17 = mergeJsons4.optJSONArray(str18);
if (optJSONArray17 != null) {
int[] iArr29 = new int[optJSONArray17.length()];
for (int i19 = 0; i19 < optJSONArray17.length(); i19++) {
iArr29[i19] = optJSONArray17.optInt(i19);
}
iArr5 = iArr29;
} else {
iArr5 = null;
}
str17 = str23;
JSONArray optJSONArray18 = mergeJsons4.optJSONArray(str17);
if (optJSONArray18 != null) {
int[] iArr30 = new int[optJSONArray18.length()];
for (int i20 = 0; i20 < optJSONArray18.length(); i20++) {
iArr30[i20] = optJSONArray18.optInt(i20);
}
iArr6 = iArr30;
} else {
iArr6 = null;
}
JSONArray optJSONArray19 = mergeJsons4.optJSONArray(str21);
if (optJSONArray19 != null) {
int[] iArr31 = new int[optJSONArray19.length()];
for (int i21 = 0; i21 < optJSONArray19.length(); i21++) {
iArr31[i21] = optJSONArray19.optInt(i21);
}
iArr7 = iArr31;
} else {
iArr7 = null;
}
JSONArray optJSONArray20 = mergeJsons4.optJSONArray("nonConnectivityEvents");
if (optJSONArray20 != null) {
int[] iArr32 = new int[optJSONArray20.length()];
for (int i22 = 0; i22 < optJSONArray20.length(); i22++) {
iArr32[i22] = optJSONArray20.optInt(i22);
}
iArr8 = iArr32;
} else {
iArr8 = null;
}
com.ironsource.mediationsdk.model.i iVar2 = new com.ironsource.mediationsdk.model.i(new com.ironsource.sdk.g.d(false, optBoolean13, optBoolean14, optString19, optString20, optInt17, optInt18, optInt19, iArr5, iArr6, iArr7, iArr8));
iVar2.d = b7;
JSONArray optJSONArray21 = b7.optJSONArray(str13);
if (optJSONArray21 != null) {
for (int i23 = 0; i23 < optJSONArray21.length(); i23++) {
JSONObject optJSONObject4 = optJSONArray21.optJSONObject(i23);
if (optJSONObject4 != null) {
int optInt20 = optJSONObject4.optInt("placementId", -1);
String optString21 = optJSONObject4.optString("placementName", str15);
boolean optBoolean15 = optJSONObject4.optBoolean("isDefault", false);
if (optInt20 >= 0 && !TextUtils.isEmpty(optString21)) {
jVar = new com.ironsource.mediationsdk.model.j(optInt20, optString21, optBoolean15);
if (jVar != null && jVar != null) {
iVar2.a.add(jVar);
if (iVar2.b != null && jVar.a != 0) {
}
iVar2.b = jVar;
}
}
}
jVar = null;
if (jVar != null) {
iVar2.a.add(jVar);
if (iVar2.b != null) {
}
iVar2.b = jVar;
}
}
}
iVar = iVar2;
} else {
str17 = str23;
str18 = str3;
iVar = null;
}
p pVar2 = new p();
if (b11 != null) {
JSONArray optJSONArray22 = b11.optJSONArray("optInKeys");
if (optJSONArray22 != null) {
for (int i24 = 0; i24 < optJSONArray22.length(); i24++) {
String optString22 = optJSONArray22.optString(i24);
if (!TextUtils.isEmpty(optString22)) {
pVar2.a.add(optString22);
}
}
}
JSONObject optJSONObject5 = b11.optJSONObject("tokenGenericParams");
if (optJSONObject5 != null) {
pVar2.c = optJSONObject5;
}
pVar2.d = b11.optBoolean("oneToken", false);
pVar2.e = b11.optBoolean("compressToken", true);
}
j jVar2 = new j();
if (b17 != null) {
String optString23 = b17.optString("pixelEventsUrl", "https://outcome-ssp.supersonicads.com/mediation?adUnit=3");
z2 = b17.optBoolean("pixelEventsEnabled", true);
Intrinsics.checkNotNullParameter(optString23, "<set-?>");
jVar2.b = optString23;
} else {
z2 = true;
}
jVar2.a = z2;
if (z2) {
jVar2.d = a(b9, str18);
jVar2.e = a(b9, str17);
jVar2.c = b9.optBoolean("eventsCompression", false);
}
com.ironsource.mediationsdk.model.d dVar4 = new com.ironsource.mediationsdk.model.d(b10.optInt("server", 3), b10.optInt("publisher", 3), b10.optInt("console", 3));
u uVar = new u();
if (jSONObject2 != null) {
JSONObject jSONObject11 = jSONObject2;
uVar.a(jSONObject11.optBoolean("enabled", false));
uVar.b(jSONObject11.optString("reporterURL", str15));
uVar.c(jSONObject11.optString("reporterKeyword", str15));
uVar.b(jSONObject11.optBoolean("includeANR", false));
uVar.a(jSONObject11.optInt("timeout", 5000));
uVar.c(jSONObject11.optBoolean("setIgnoreDebugger", false));
JSONArray optJSONArray23 = jSONObject11.optJSONArray("keysToInclude");
if (optJSONArray23 != null) {
for (int i25 = 0; i25 < optJSONArray23.length(); i25++) {
uVar.a(optJSONArray23.optString(i25));
}
}
}
if (jSONObject != null) {
JSONObject jSONObject12 = jSONObject;
pVar = new com.ironsource.mediationsdk.model.p(jSONObject12.optString(AppMeasurementSdk.ConditionalUserProperty.NAME, str15), jSONObject12.optString("id", "-1"), jSONObject12.optJSONObject("custom"));
} else {
pVar = null;
}
b bVar = b15 != null ? new b(b15.optBoolean("isExternalArmEventsEnabled", true), b15.optString("externalArmEventsUrl", "https://outcome-arm-ext-med-ext.sonic-us.supersonicads.com/aemData"), b15.optBoolean("sid", true)) : new b();
com.ironsource.mediationsdk.model.c cVar5 = new com.ironsource.mediationsdk.model.c();
if (b16 != null) {
JSONObject optJSONObject6 = b16.optJSONObject("mediationTypes");
Map hashMap = new HashMap();
if (optJSONObject6 != null) {
hashMap = IronSourceUtils.parseJsonToStringMap(optJSONObject6);
}
b16.optBoolean("compressExternalToken", false);
cVar5 = new com.ironsource.mediationsdk.model.c(hashMap);
}
lVar.c = new com.ironsource.mediationsdk.model.g(oVar, hVar, iVar, eVar, new com.ironsource.sdk.f.a(dVar4, pVar, pVar2, jSONObject5.optBoolean("integration", false), uVar, bVar, cVar5, jVar2, jSONObject4 != null ? new com.ironsource.mediationsdk.model.b(jSONObject4.optString("auctionData")) : new com.ironsource.mediationsdk.model.b()));
JSONObject b24 = b(b9, IronSourceConstants.EVENTS_GENERIC_PARAMS);
if (b24 != null && (b = b(b24, str11)) != null) {
b24.remove(str11);
Map<String, String> parseJsonToStringMap = IronSourceUtils.parseJsonToStringMap(b);
com.ironsource.mediationsdk.a.h.e().b(parseJsonToStringMap);
com.ironsource.mediationsdk.a.d.e().b(parseJsonToStringMap);
}
if (b24 != null) {
Map<String, String> parseJsonToStringMap2 = IronSourceUtils.parseJsonToStringMap(b24);
com.ironsource.mediationsdk.a.h.e().a(parseJsonToStringMap2);
com.ironsource.mediationsdk.a.d.e().a(parseJsonToStringMap2);
}
} catch (Exception e3) {
e = e3;
}
}
public final C a() {
return new C(this.bu, this.bv);
}
public final void a(int i) {
this.e = i;
}
public final boolean b() {
return (((((this.d != null) && !this.d.has("error")) && this.a != null) && this.b != null) && this.c != null) && f();
}
public final String c() {
try {
return this.a.b;
} catch (Exception e) {
IronSourceLoggerManager.getLogger().logException(IronSourceLogger.IronSourceTag.INTERNAL, "getRVBackFillProvider", e);
return null;
}
}
public final String d() {
try {
return this.a.c;
} catch (Exception e) {
IronSourceLoggerManager.getLogger().logException(IronSourceLogger.IronSourceTag.INTERNAL, "getRVPremiumProvider", e);
return null;
}
}
public final String toString() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("appKey", this.bu);
jSONObject.put(DataKeys.USER_ID, this.bv);
jSONObject.put("response", this.d);
} catch (JSONException e) {
e.printStackTrace();
}
return jSONObject.toString();
}
}