Pixel Fusion v1.0.2版本的 MD5 值为:7c04c460c2996569d4ad075cd671a946
以下内容为反编译后的 x8.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import androidx.room.util.BbdcDCacCa;
import com.chartboost.sdk.impl.n7;
import com.chartboost.sdk.impl.u;
import com.json.sdk.controller.f;
import com.json.t4;
import com.mbridge.msdk.mbbid.out.BidResponsed;
import dCCCc.CdCaB;
import dCaBCABCCa.BbDAc;
import io.bidmachine.unified.UnifiedMediationParams;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.DaACacB;
import kotlin.collections.bbBcBBC;
import kotlin.collections.bdbBBaA;
import kotlin.collections.dDDbcCaabcA;
import kotlin.collections.dDdcAbbdaa;
import kotlin.jvm.internal.CaDaAc;
import kotlin.jvm.internal.DcBba;
import kotlin.text.caCbdcBC;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class x8 {
public final q1 f46326a;
public static final class c {
public String f46329a;
public String b;
public String c;
public String d;
public List e;
public List f;
public c(String id, String nbr, String currency, String bidId, List seatbidList, List assets) {
DcBba.daAbdddd(id, "id");
DcBba.daAbdddd(nbr, "nbr");
DcBba.daAbdddd(currency, "currency");
DcBba.daAbdddd(bidId, "bidId");
DcBba.daAbdddd(seatbidList, "seatbidList");
DcBba.daAbdddd(assets, "assets");
this.f46329a = id;
this.b = nbr;
this.c = currency;
this.d = bidId;
this.e = seatbidList;
this.f = assets;
}
public final List a() {
return this.f;
}
public final Map b() {
List list = this.f;
int DACCBbdCb2 = dDDbcCaabcA.DACCBbdCb(DaACacB.aBbbDb(list, 10));
if (DACCBbdCb2 < 16) {
DACCBbdCb2 = 16;
}
LinkedHashMap linkedHashMap = new LinkedHashMap(DACCBbdCb2);
for (Object obj : list) {
linkedHashMap.put(((f1) obj).b, obj);
}
return dDdcAbbdaa.adDCd(linkedHashMap);
}
public final List c() {
return this.e;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof c)) {
return false;
}
c cVar = (c) obj;
if (DcBba.dDbCdDC(this.f46329a, cVar.f46329a) && DcBba.dDbCdDC(this.b, cVar.b) && DcBba.dDbCdDC(this.c, cVar.c) && DcBba.dDbCdDC(this.d, cVar.d) && DcBba.dDbCdDC(this.e, cVar.e) && DcBba.dDbCdDC(this.f, cVar.f)) {
return true;
}
return false;
}
public int hashCode() {
return this.f.hashCode() + ((this.e.hashCode() + BbdcDCacCa.BbdcDCacCa(this.d, BbdcDCacCa.BbdcDCacCa(this.c, BbdcDCacCa.BbdcDCacCa(this.b, this.f46329a.hashCode() * 31, 31), 31), 31)) * 31);
}
public String toString() {
return "OpenRTBModel(id=" + this.f46329a + ", nbr=" + this.b + ", currency=" + this.c + ", bidId=" + this.d + ", seatbidList=" + this.e + ", assets=" + this.f + ')';
}
}
public x8(q1 base64Wrapper) {
DcBba.daAbdddd(base64Wrapper, "base64Wrapper");
this.f46326a = base64Wrapper;
}
public final v a(u adType, JSONObject jSONObject) {
DcBba.daAbdddd(adType, "adType");
if (jSONObject != null) {
c d2 = d(jSONObject);
a b2 = b(c(d2.c()).a());
b b3 = b2.b();
f1 a2 = a(d2.a());
Map b4 = d2.b();
b4.put("body", a2);
String m = b3.m();
String a3 = g0.a(m);
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("imptrackers", b3.g());
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
a(linkedHashMap2, b2, adType);
return new v("", b3.a(), b3.b(), b3.f(), b3.h(), b3.c(), "", b3.e(), b4, m, a3, "", "", "", 0, "", "dummy_template", a2, linkedHashMap2, b3.j(), b3.k(), linkedHashMap, b2.a(), b3.i(), g0.a(b2.c()), l3.c.a(b3.d()), this.f46326a.b(b2.a()));
}
throw new JSONException("Missing response");
}
public final String b(u uVar) {
if (DcBba.dDbCdDC(uVar, u.a.g)) {
return "10";
}
if (DcBba.dDbCdDC(uVar, u.b.g)) {
return "8";
}
if (DcBba.dDbCdDC(uVar, u.c.g)) {
return "9";
}
throw new NoWhenBranchMatchedException();
}
public final d c(List list) {
d dVar = (d) bdbBBaA.aCbCDB(list);
return dVar == null ? new d(null, null, 3, null) : dVar;
}
public final c d(JSONObject jSONObject) {
List<JSONObject> asList;
b bVar;
ArrayList arrayList = new ArrayList();
JSONArray optJSONArray = jSONObject.optJSONArray("seatbid");
b bVar2 = new b(null, null, null, null, null, null, null, null, 0, null, null, null, null, 8191, null);
ArrayList arrayList2 = new ArrayList();
ArrayList arrayList3 = new ArrayList();
if (optJSONArray != null && (asList = r5.asList(optJSONArray)) != null) {
for (JSONObject jSONObject2 : asList) {
String seat = jSONObject2.optString("seat");
JSONArray bidArray = jSONObject2.optJSONArray("bid");
if (bidArray != null) {
DcBba.bBCadBacC(bidArray, "bidArray");
List<JSONObject> asList2 = r5.asList(bidArray);
if (asList2 != null) {
for (JSONObject jSONObject3 : asList2) {
JSONObject optJSONObject = jSONObject3.optJSONObject("ext");
if (optJSONObject != null) {
DcBba.bBCadBacC(optJSONObject, "optJSONObject(\"ext\")");
bVar = a(optJSONObject);
f1 a2 = a(bVar.l());
if (a2 != null) {
arrayList.add(a2);
}
} else {
bVar = bVar2;
}
arrayList2.add(a(jSONObject3, bVar));
bVar2 = bVar;
}
}
}
DcBba.bBCadBacC(seat, "seat");
arrayList3.add(new d(seat, arrayList2));
}
}
return a(jSONObject, arrayList3, arrayList);
}
public final n7.a c(JSONObject jSONObject) {
return new n7.a(jSONObject.optDouble("w"), jSONObject.optDouble(com.mbridge.msdk.c.h.f63166a));
}
public static final class d {
public final String f46330a;
public final List b;
public d(String seat, List bidList) {
DcBba.daAbdddd(seat, "seat");
DcBba.daAbdddd(bidList, "bidList");
this.f46330a = seat;
this.b = bidList;
}
public final List a() {
return this.b;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof d)) {
return false;
}
d dVar = (d) obj;
if (DcBba.dDbCdDC(this.f46330a, dVar.f46330a) && DcBba.dDbCdDC(this.b, dVar.b)) {
return true;
}
return false;
}
public int hashCode() {
return this.b.hashCode() + (this.f46330a.hashCode() * 31);
}
public String toString() {
return "SeatbidModel(seat=" + this.f46330a + ", bidList=" + this.b + ')';
}
public d(String str, List list, int i, CaDaAc caDaAc) {
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? bbBcBBC.f68906ACdCcaaADcb : list);
}
}
public final a b(List list) {
a aVar = (a) bdbBBaA.aCbCDB(list);
return aVar == null ? new a(null, null, 0.0d, null, null, null, 0, null, 255, null) : aVar;
}
public final n7 b(JSONObject jSONObject) {
n7.a c2;
n7.a c3;
n7.a c4;
String optString = jSONObject.optString("imageurl");
DcBba.bBCadBacC(optString, "infoIcon.optString(\"imageurl\")");
String optString2 = jSONObject.optString("clickthroughurl");
DcBba.bBCadBacC(optString2, "infoIcon.optString(\"clickthroughurl\")");
n7.b a2 = n7.b.c.a(jSONObject.optInt(t4.h.L));
JSONObject optJSONObject = jSONObject.optJSONObject("margin");
n7.a aVar = (optJSONObject == null || (c4 = c(optJSONObject)) == null) ? new n7.a(0.0d, 0.0d, 3, null) : c4;
JSONObject optJSONObject2 = jSONObject.optJSONObject("padding");
n7.a aVar2 = (optJSONObject2 == null || (c3 = c(optJSONObject2)) == null) ? new n7.a(0.0d, 0.0d, 3, null) : c3;
JSONObject optJSONObject3 = jSONObject.optJSONObject("size");
return new n7(optString, optString2, a2, aVar, aVar2, (optJSONObject3 == null || (c2 = c(optJSONObject3)) == null) ? new n7.a(0.0d, 0.0d, 3, null) : c2);
}
public static final class a {
public final String f46327a;
public final String b;
public final double c;
public final String d;
public final String e;
public final String f;
public final int g;
public final b h;
public a(String id, String impid, double d, String burl, String crid, String adm, int i, b ext) {
DcBba.daAbdddd(id, "id");
DcBba.daAbdddd(impid, "impid");
DcBba.daAbdddd(burl, "burl");
DcBba.daAbdddd(crid, "crid");
DcBba.daAbdddd(adm, "adm");
DcBba.daAbdddd(ext, "ext");
this.f46327a = id;
this.b = impid;
this.c = d;
this.d = burl;
this.e = crid;
this.f = adm;
this.g = i;
this.h = ext;
}
public final String a() {
return this.f;
}
public final b b() {
return this.h;
}
public final int c() {
return this.g;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof a)) {
return false;
}
a aVar = (a) obj;
if (DcBba.dDbCdDC(this.f46327a, aVar.f46327a) && DcBba.dDbCdDC(this.b, aVar.b) && Double.compare(this.c, aVar.c) == 0 && DcBba.dDbCdDC(this.d, aVar.d) && DcBba.dDbCdDC(this.e, aVar.e) && DcBba.dDbCdDC(this.f, aVar.f) && this.g == aVar.g && DcBba.dDbCdDC(this.h, aVar.h)) {
return true;
}
return false;
}
public int hashCode() {
return this.h.hashCode() + ((BbdcDCacCa.BbdcDCacCa(this.f, BbdcDCacCa.BbdcDCacCa(this.e, BbdcDCacCa.BbdcDCacCa(this.d, (BbDAc.BbdcDCacCa(this.c) + BbdcDCacCa.BbdcDCacCa(this.b, this.f46327a.hashCode() * 31, 31)) * 31, 31), 31), 31) + this.g) * 31);
}
public String toString() {
return "BidModel(id=" + this.f46327a + ", impid=" + this.b + ", price=" + this.c + ", burl=" + this.d + ", crid=" + this.e + ", adm=" + this.f + ", mtype=" + this.g + ", ext=" + this.h + ')';
}
public a(String str, String str2, double d, String str3, String str4, String str5, int i, b bVar, int i2, CaDaAc caDaAc) {
this((i2 & 1) != 0 ? "" : str, (i2 & 2) != 0 ? "" : str2, (i2 & 4) != 0 ? 0.0d : d, (i2 & 8) != 0 ? "" : str3, (i2 & 16) != 0 ? "" : str4, (i2 & 32) == 0 ? str5 : "", (i2 & 64) != 0 ? 0 : i, (i2 & 128) != 0 ? new b(null, null, null, null, null, null, null, null, 0, null, null, null, null, 8191, null) : bVar);
}
}
public static final class b {
public final String f46328a;
public final String b;
public final String c;
public final String d;
public final String e;
public final String f;
public final List g;
public final String h;
public final int i;
public final String j;
public final n7 k;
public final aa l;
public final List m;
public b(String impressionid, String crtype, String adId, String cgn, String template, String videoUrl, List imptrackers, String params, int i, String baseUrl, n7 infoIcon, aa renderEngine, List scripts) {
DcBba.daAbdddd(impressionid, "impressionid");
DcBba.daAbdddd(crtype, "crtype");
DcBba.daAbdddd(adId, "adId");
DcBba.daAbdddd(cgn, "cgn");
DcBba.daAbdddd(template, "template");
DcBba.daAbdddd(videoUrl, "videoUrl");
DcBba.daAbdddd(imptrackers, "imptrackers");
DcBba.daAbdddd(params, "params");
DcBba.daAbdddd(baseUrl, "baseUrl");
DcBba.daAbdddd(infoIcon, "infoIcon");
DcBba.daAbdddd(renderEngine, "renderEngine");
DcBba.daAbdddd(scripts, "scripts");
this.f46328a = impressionid;
this.b = crtype;
this.c = adId;
this.d = cgn;
this.e = template;
this.f = videoUrl;
this.g = imptrackers;
this.h = params;
this.i = i;
this.j = baseUrl;
this.k = infoIcon;
this.l = renderEngine;
this.m = scripts;
}
public final String a() {
return this.c;
}
public final String b() {
return this.j;
}
public final String c() {
return this.d;
}
public final int d() {
return this.i;
}
public final String e() {
return this.b;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof b)) {
return false;
}
b bVar = (b) obj;
if (DcBba.dDbCdDC(this.f46328a, bVar.f46328a) && DcBba.dDbCdDC(this.b, bVar.b) && DcBba.dDbCdDC(this.c, bVar.c) && DcBba.dDbCdDC(this.d, bVar.d) && DcBba.dDbCdDC(this.e, bVar.e) && DcBba.dDbCdDC(this.f, bVar.f) && DcBba.dDbCdDC(this.g, bVar.g) && DcBba.dDbCdDC(this.h, bVar.h) && this.i == bVar.i && DcBba.dDbCdDC(this.j, bVar.j) && DcBba.dDbCdDC(this.k, bVar.k) && this.l == bVar.l && DcBba.dDbCdDC(this.m, bVar.m)) {
return true;
}
return false;
}
public final String f() {
return this.f46328a;
}
public final List g() {
return this.g;
}
public final n7 h() {
return this.k;
}
public int hashCode() {
return this.m.hashCode() + ((this.l.hashCode() + ((this.k.hashCode() + BbdcDCacCa.BbdcDCacCa(this.j, (BbdcDCacCa.BbdcDCacCa(this.h, (this.g.hashCode() + BbdcDCacCa.BbdcDCacCa(this.f, BbdcDCacCa.BbdcDCacCa(this.e, BbdcDCacCa.BbdcDCacCa(this.d, BbdcDCacCa.BbdcDCacCa(this.c, BbdcDCacCa.BbdcDCacCa(this.b, this.f46328a.hashCode() * 31, 31), 31), 31), 31), 31)) * 31, 31) + this.i) * 31, 31)) * 31)) * 31);
}
public final String i() {
return this.h;
}
public final aa j() {
return this.l;
}
public final List k() {
return this.m;
}
public final String l() {
return this.e;
}
public final String m() {
return this.f;
}
public String toString() {
return "ExtensionModel(impressionid=" + this.f46328a + ", crtype=" + this.b + ", adId=" + this.c + ", cgn=" + this.d + ", template=" + this.e + ", videoUrl=" + this.f + ", imptrackers=" + this.g + ", params=" + this.h + ", clkp=" + this.i + ", baseUrl=" + this.j + ", infoIcon=" + this.k + ", renderEngine=" + this.l + ", scripts=" + this.m + ')';
}
public b(String str, String str2, String str3, String str4, String str5, String str6, List list, String str7, int i, String str8, n7 n7Var, aa aaVar, List list2, int i2, CaDaAc caDaAc) {
this((i2 & 1) != 0 ? "" : str, (i2 & 2) != 0 ? "" : str2, (i2 & 4) != 0 ? "" : str3, (i2 & 8) != 0 ? "" : str4, (i2 & 16) != 0 ? "" : str5, (i2 & 32) != 0 ? "" : str6, (i2 & 64) != 0 ? bbBcBBC.f68906ACdCcaaADcb : list, (i2 & 128) == 0 ? str7 : "", (i2 & 256) != 0 ? l3.CLICK_PREFERENCE_EMBEDDED.b() : i, (i2 & 512) != 0 ? "https://live.chartboost.com" : str8, (i2 & 1024) != 0 ? new n7(null, null, null, null, null, null, 63, null) : n7Var, (i2 & 2048) != 0 ? aa.UNKNOWN : aaVar, (i2 & 4096) != 0 ? bbBcBBC.f68906ACdCcaaADcb : list2);
}
}
public final void a(Map map, a aVar, u uVar) {
map.put("{% encoding %}", "base64");
map.put(ka.b, aVar.a());
map.put("{{ ad_type }}", b(uVar));
map.put("{{ show_close_button }}", a(uVar));
map.put("{{ preroll_popup }}", "false");
map.put("{{ post_video_reward_toaster_enabled }}", "false");
if (DcBba.dDbCdDC(uVar, u.a.g)) {
map.put("{% is_banner %}", com.json.mediationsdk.metadata.a.g);
}
}
public final String a(u uVar) {
if (DcBba.dDbCdDC(uVar, u.b.g)) {
return com.json.mediationsdk.metadata.a.g;
}
if (DcBba.dDbCdDC(uVar, u.c.g) || DcBba.dDbCdDC(uVar, u.a.g)) {
return "false";
}
throw new NoWhenBranchMatchedException();
}
public final f1 a(List list) {
f1 f1Var = (f1) bdbBBaA.aCbCDB(list);
return f1Var == null ? new f1("", "", "") : f1Var;
}
public final f1 a(String str) {
if (str == null || str.length() == 0) {
return null;
}
String substring = str.substring(caCbdcBC.BBACdCcC(str, CdCaB.f65748DACCBbdCb, 0, false, 6, null) + 1);
DcBba.bBCadBacC(substring, "this as java.lang.String).substring(startIndex)");
return new f1("html", substring, str);
}
public final b a(JSONObject jSONObject) {
List list;
n7 n7Var;
List list2;
String optString = jSONObject.optString("impressionid");
DcBba.bBCadBacC(optString, "ext.optString(\"impressionid\")");
String optString2 = jSONObject.optString("crtype");
DcBba.bBCadBacC(optString2, "ext.optString(\"crtype\")");
String optString3 = jSONObject.optString(f.b.AD_ID);
DcBba.bBCadBacC(optString3, "ext.optString(\"adId\")");
String optString4 = jSONObject.optString("cgn");
DcBba.bBCadBacC(optString4, "ext.optString(\"cgn\")");
String string = jSONObject.getString("template");
DcBba.bBCadBacC(string, "ext.getString(\"template\")");
String optString5 = jSONObject.optString(UnifiedMediationParams.KEY_VIDEO_URL);
DcBba.bBCadBacC(optString5, "ext.optString(\"videoUrl\")");
JSONArray optJSONArray = jSONObject.optJSONArray("imptrackers");
if (optJSONArray == null || (list = r5.asList(optJSONArray)) == null) {
list = bbBcBBC.f68906ACdCcaaADcb;
}
List list3 = list;
String optString6 = jSONObject.optString("params");
DcBba.bBCadBacC(optString6, "ext.optString(\"params\")");
int optInt = jSONObject.optInt("clkp");
String optString7 = jSONObject.optString("baseurl");
DcBba.bBCadBacC(optString7, "ext.optString(BASE_URL_JSON_FIELD)");
JSONObject optJSONObject = jSONObject.optJSONObject("infoicon");
if (optJSONObject == null || (n7Var = b(optJSONObject)) == null) {
n7Var = new n7(null, null, null, null, null, null, 63, null);
}
n7 n7Var2 = n7Var;
aa a2 = aa.c.a(jSONObject.optString("renderingengine"));
JSONArray optJSONArray2 = jSONObject.optJSONArray("scripts");
if (optJSONArray2 == null || (list2 = r5.asList(optJSONArray2)) == null) {
list2 = bbBcBBC.f68906ACdCcaaADcb;
}
return new b(optString, optString2, optString3, optString4, string, optString5, list3, optString6, optInt, optString7, n7Var2, a2, list2);
}
public final a a(JSONObject jSONObject, b bVar) {
String string = jSONObject.getString("id");
DcBba.bBCadBacC(string, "bid.getString(\"id\")");
String string2 = jSONObject.getString("impid");
DcBba.bBCadBacC(string2, "bid.getString(\"impid\")");
double d2 = jSONObject.getDouble("price");
String optString = jSONObject.optString(com.json.p2.x);
DcBba.bBCadBacC(optString, "bid.optString(\"burl\")");
String optString2 = jSONObject.optString("crid");
DcBba.bBCadBacC(optString2, "bid.optString(\"crid\")");
String optString3 = jSONObject.optString("adm");
DcBba.bBCadBacC(optString3, "bid.optString(\"adm\")");
return new a(string, string2, d2, optString, optString2, optString3, jSONObject.optInt("mtype"), bVar);
}
public final c a(JSONObject jSONObject, List list, List list2) {
String string = jSONObject.getString("id");
DcBba.bBCadBacC(string, "response.getString(\"id\")");
String optString = jSONObject.optString("nbr");
DcBba.bBCadBacC(optString, "response.optString(\"nbr\")");
String optString2 = jSONObject.optString(BidResponsed.KEY_CUR, "USD");
DcBba.bBCadBacC(optString2, "response.optString(\"cur\", \"USD\")");
String optString3 = jSONObject.optString("bidid");
DcBba.bBCadBacC(optString3, "response.optString(\"bidid\")");
return new c(string, optString, optString2, optString3, list, list2);
}
}