package com.ironsource; import android.content.Context; import android.content.Intent; import com.google.android.gms.drive.DriveFile; import com.ironsource.mediationsdk.testSuite.TestSuiteActivity; import com.ironsource.v8; import java.util.Collection; import java.util.List; import java.util.Map; import kotlin.TuplesKt; import kotlin.collections.MapsKt__MapsKt; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.SourceDebugExtension; import org.json.JSONArray; import org.json.JSONObject; @SourceDebugExtension({"SMAP\nTestSuiteHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestSuiteHandler.kt\ncom/ironsource/mediationsdk/testSuite/TestSuiteHandler\n+ 2 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,124:1\n215#2,2:125\n*S KotlinDebug\n*F\n+ 1 TestSuiteHandler.kt\ncom/ironsource/mediationsdk/testSuite/TestSuiteHandler\n*L\n86#1:125,2\n*E\n"}) /* loaded from: classes2.dex */ public final class ps { private final String a(String str, String str2, String str3, String str4, String str5, Boolean bool, JSONObject jSONObject, boolean z, JSONObject jSONObject2, JSONObject jSONObject3, JSONObject jSONObject4) { Map mapOf; mapOf = MapsKt__MapsKt.mapOf(TuplesKt.to("deviceOS", v8.d), TuplesKt.to("appKey", str), TuplesKt.to("sdkVersion", str2), TuplesKt.to("bundleId", str3), TuplesKt.to("appName", str4), TuplesKt.to(v8.i.W, str5), TuplesKt.to("initResponse", jSONObject), TuplesKt.to("isRvManual", Boolean.valueOf(z)), TuplesKt.to("generalProperties", jSONObject2), TuplesKt.to("adaptersVersion", jSONObject3), TuplesKt.to("metaData", jSONObject4), TuplesKt.to("gdprConsent", bool)); String jSONObject5 = new JSONObject(mapOf).toString(); Intrinsics.checkNotNullExpressionValue(jSONObject5, "JSONObject(\n …ent))\n .toString()"); return jSONObject5; } private final JSONObject a() { JSONObject jSONObject = new JSONObject(); for (Map.Entry> entry : zs.a.d().entrySet()) { jSONObject.putOpt(entry.getKey(), new JSONArray((Collection) entry.getValue())); } return jSONObject; } public final void a(Context context, String appKey, JSONObject initResponse, String sdkVersion, String testSuiteControllerUrl, Boolean bool, boolean z) { Intrinsics.checkNotNullParameter(context, "context"); Intrinsics.checkNotNullParameter(appKey, "appKey"); Intrinsics.checkNotNullParameter(initResponse, "initResponse"); Intrinsics.checkNotNullParameter(sdkVersion, "sdkVersion"); Intrinsics.checkNotNullParameter(testSuiteControllerUrl, "testSuiteControllerUrl"); zs zsVar = zs.a; String a = a(appKey, sdkVersion, zsVar.c(context), zsVar.a(context), zsVar.b(context), bool, initResponse, z, zsVar.b(), zsVar.c(), a()); Intent intent = new Intent(context, (Class) TestSuiteActivity.class); intent.setFlags(DriveFile.MODE_READ_WRITE); intent.putExtra(qs.a, a); intent.putExtra("controllerUrl", testSuiteControllerUrl); context.startActivity(intent); } }