正在查看: Oolka v2.4.42 应用的 VideoStatementVM.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 VideoStatementVM.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package co.hyperverge.hyperkyc.ui.viewmodels;
import android.app.Application;
import android.os.Build;
import android.util.Base64;
import android.util.Log;
import co.hyperverge.hyperkyc.core.RuleEvaluatorKt;
import co.hyperverge.hyperkyc.data.models.HyperKycConfig;
import co.hyperverge.hyperkyc.data.models.KycCountry;
import co.hyperverge.hyperkyc.data.models.Properties;
import co.hyperverge.hyperkyc.data.models.VideoStatementConfig;
import co.hyperverge.hyperkyc.data.models.WorkflowModule;
import co.hyperverge.hyperkyc.data.models.WorkflowRequestType;
import co.hyperverge.hyperkyc.data.models.result.HyperKycData;
import co.hyperverge.hyperkyc.hvsessionrecorder.HVAudioRecorder;
import co.hyperverge.hyperkyc.hvsessionrecorder.HVSessionRecorder;
import co.hyperverge.hyperkyc.ui.form.FormFragment;
import co.hyperverge.hyperkyc.ui.models.WorkflowUIState;
import co.hyperverge.hyperkyc.utils.extensions.CoreExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.JSONExtsKt;
import co.hyperverge.hyperkyc.utils.extensions.LogExtsKt;
import co.hyperverge.hyperlogger.HyperLogger;
import co.hyperverge.hypersnapsdk.components.camera.HVFacePreview;
import co.hyperverge.hypersnapsdk.utils.AppConstants;
import com.cashfree.pg.core.hidden.nfc.parser.EmvParser;
import com.google.gson.Gson;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Timer;
import java.util.regex.Matcher;
import kotlin.Metadata;
import kotlin.NotImplementedError;
import kotlin.Unit;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.g;
import kotlin.h;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.jvm.internal.TypeIntrinsics;
import kotlin.k;
import kotlin.text.StringsKt;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.i0;
import kotlinx.coroutines.j0;
import kotlinx.coroutines.o0;
import kotlinx.coroutines.v;
import kotlinx.coroutines.x0;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray;
import org.json.JSONObject;
@Metadata
@SourceDebugExtension({"SMAP\nVideoStatementVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 VideoStatementVM.kt\nco/hyperverge/hyperkyc/ui/viewmodels/VideoStatementVM\n+ 2 LogExts.kt\nco/hyperverge/hyperkyc/utils/extensions/LogExtsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,1150:1\n14#2:1151\n28#2,10:1152\n62#2,12:1162\n40#2,12:1175\n62#2,12:1187\n52#2:1199\n50#2,6:1200\n14#2:1206\n28#2,10:1207\n62#2,12:1217\n40#2,12:1230\n62#2,12:1242\n52#2:1254\n50#2,6:1255\n14#2:1261\n28#2,10:1262\n62#2,12:1272\n40#2,12:1285\n62#2,12:1297\n52#2:1309\n50#2,6:1310\n14#2:1316\n28#2,10:1317\n62#2,12:1327\n40#2,12:1340\n62#2,12:1352\n52#2:1364\n50#2,6:1365\n14#2:1371\n28#2,10:1372\n62#2,12:1382\n40#2,12:1395\n62#2,12:1407\n52#2:1419\n50#2,6:1420\n14#2:1426\n28#2,10:1427\n62#2,12:1437\n40#2,12:1450\n62#2,12:1462\n52#2:1474\n50#2,6:1475\n14#2:1481\n28#2,10:1482\n62#2,12:1492\n40#2,12:1505\n62#2,12:1517\n52#2:1529\n50#2,6:1530\n14#2:1536\n28#2,10:1537\n62#2,12:1547\n40#2,12:1560\n62#2,12:1572\n52#2:1584\n50#2,6:1585\n14#2:1591\n28#2,10:1592\n62#2,12:1602\n40#2,12:1615\n62#2,12:1627\n52#2:1639\n50#2,6:1640\n14#2:1646\n28#2,10:1647\n62#2,12:1657\n40#2,12:1670\n62#2,12:1682\n52#2:1694\n50#2,6:1695\n14#2:1701\n28#2,10:1702\n62#2,12:1712\n40#2,12:1725\n62#2,12:1737\n52#2:1749\n50#2,6:1750\n14#2:1756\n28#2,10:1757\n62#2,12:1767\n40#2,12:1780\n62#2,12:1792\n52#2:1804\n50#2,6:1805\n14#2:1811\n28#2,10:1812\n62#2,12:1822\n40#2,12:1835\n62#2,12:1847\n52#2:1859\n50#2,6:1860\n14#2:1866\n28#2,10:1867\n62#2,12:1877\n40#2,12:1890\n62#2,12:1902\n52#2:1914\n50#2,6:1915\n14#2:1921\n28#2,10:1922\n62#2,12:1932\n40#2,12:1945\n62#2,12:1957\n52#2:1969\n50#2,6:1970\n14#2:1976\n28#2,10:1977\n62#2,12:1987\n40#2,12:2000\n62#2,12:2012\n52#2:2024\n50#2,6:2025\n14#2:2031\n28#2,10:2032\n62#2,12:2042\n40#2,12:2055\n62#2,12:2067\n52#2:2079\n50#2,6:2080\n14#2:2086\n28#2,10:2087\n62#2,12:2097\n40#2,12:2110\n62#2,12:2122\n52#2:2134\n50#2,6:2135\n14#2:2141\n28#2,10:2142\n62#2,12:2152\n40#2,12:2165\n62#2,12:2177\n52#2:2189\n50#2,6:2190\n14#2:2196\n28#2,10:2197\n62#2,12:2207\n40#2,12:2220\n62#2,12:2232\n52#2:2244\n50#2,6:2245\n14#2:2251\n28#2,10:2252\n62#2,12:2262\n40#2,12:2275\n62#2,12:2287\n52#2:2299\n50#2,6:2300\n14#2:2306\n28#2,10:2307\n62#2,12:2317\n40#2,12:2330\n62#2,12:2342\n52#2:2354\n50#2,6:2355\n14#2:2361\n28#2,10:2362\n62#2,12:2372\n40#2,12:2385\n62#2,12:2397\n52#2:2409\n50#2,6:2410\n14#2:2416\n28#2,10:2417\n62#2,12:2427\n40#2,12:2440\n62#2,12:2452\n52#2:2464\n50#2,6:2465\n14#2:2471\n28#2,10:2472\n62#2,12:2482\n40#2,12:2495\n62#2,12:2507\n52#2:2519\n50#2,6:2520\n14#2:2526\n28#2,10:2527\n62#2,12:2537\n40#2,12:2550\n62#2,12:2562\n52#2:2574\n50#2,6:2575\n14#2:2581\n28#2,10:2582\n62#2,12:2592\n40#2,12:2605\n62#2,12:2617\n52#2:2629\n50#2,6:2630\n14#2:2636\n28#2,10:2637\n62#2,12:2647\n40#2,12:2660\n62#2,12:2672\n52#2:2684\n50#2,6:2685\n14#2:2691\n28#2,10:2692\n62#2,12:2702\n40#2,12:2715\n62#2,12:2727\n52#2:2739\n50#2,6:2740\n14#2:2746\n28#2,10:2747\n62#2,12:2757\n40#2,12:2770\n62#2,12:2782\n52#2:2794\n50#2,6:2795\n14#2:2805\n28#2,10:2806\n62#2,12:2816\n40#2,12:2829\n62#2,12:2841\n52#2:2853\n50#2,6:2854\n14#2:2860\n28#2,10:2861\n62#2,12:2871\n40#2,12:2884\n62#2,12:2896\n52#2:2908\n50#2,6:2909\n14#2:2915\n28#2,10:2916\n62#2,12:2926\n40#2,12:2939\n62#2,12:2951\n52#2:2963\n50#2,6:2964\n14#2:2970\n28#2,10:2971\n62#2,12:2981\n40#2,12:2994\n62#2,12:3006\n52#2:3018\n50#2,6:3019\n23#2,15:3025\n62#2,12:3040\n40#2,12:3053\n62#2,12:3065\n52#2:3077\n50#2,6:3078\n26#2,12:3084\n62#2,12:3096\n40#2,12:3109\n62#2,12:3121\n52#2:3133\n50#2,6:3134\n14#2:3140\n28#2,10:3141\n62#2,12:3151\n40#2,12:3164\n62#2,12:3176\n52#2:3188\n50#2,6:3189\n14#2:3195\n28#2,10:3196\n62#2,12:3206\n40#2,12:3219\n62#2,12:3231\n52#2:3243\n50#2,6:3244\n14#2:3250\n28#2,10:3251\n62#2,12:3261\n40#2,12:3274\n62#2,12:3286\n52#2:3298\n50#2,6:3299\n14#2:3305\n28#2,10:3306\n62#2,12:3316\n40#2,12:3329\n62#2,12:3341\n52#2:3353\n50#2,6:3354\n14#2:3360\n28#2,10:3361\n62#2,12:3371\n40#2,12:3384\n62#2,12:3396\n52#2:3408\n50#2,6:3409\n14#2:3415\n28#2,10:3416\n62#2,12:3426\n40#2,12:3439\n62#2,12:3451\n52#2:3463\n50#2,6:3464\n14#2:3470\n28#2,10:3471\n62#2,12:3481\n40#2,12:3494\n62#2,12:3506\n52#2:3518\n50#2,6:3519\n14#2:3525\n28#2,10:3526\n62#2,12:3536\n40#2,12:3549\n62#2,12:3561\n52#2:3573\n50#2,6:3574\n14#2:3580\n28#2,10:3581\n62#2,12:3591\n40#2,12:3604\n62#2,12:3616\n52#2:3628\n50#2,6:3629\n14#2:3635\n28#2,10:3636\n62#2,12:3646\n40#2,12:3659\n62#2,12:3671\n52#2:3683\n50#2,6:3684\n14#2:3690\n28#2,10:3691\n62#2,12:3701\n40#2,12:3714\n62#2,12:3726\n52#2:3738\n50#2,6:3739\n14#2:3745\n28#2,10:3746\n62#2,12:3756\n40#2,12:3769\n62#2,12:3781\n52#2:3793\n50#2,6:3794\n14#2:3800\n28#2,10:3801\n62#2,12:3811\n40#2,12:3824\n62#2,12:3836\n52#2:3848\n50#2,6:3849\n1#3:1174\n1#3:1229\n1#3:1284\n1#3:1339\n1#3:1394\n1#3:1449\n1#3:1504\n1#3:1559\n1#3:1614\n1#3:1669\n1#3:1724\n1#3:1779\n1#3:1834\n1#3:1889\n1#3:1944\n1#3:1999\n1#3:2054\n1#3:2109\n1#3:2164\n1#3:2219\n1#3:2274\n1#3:2329\n1#3:2384\n1#3:2439\n1#3:2494\n1#3:2549\n1#3:2604\n1#3:2659\n1#3:2714\n1#3:2769\n1#3:2828\n1#3:2883\n1#3:2938\n1#3:2993\n1#3:3052\n1#3:3108\n1#3:3163\n1#3:3218\n1#3:3273\n1#3:3328\n1#3:3383\n1#3:3438\n1#3:3493\n1#3:3548\n1#3:3603\n1#3:3658\n1#3:3713\n1#3:3768\n1#3:3823\n1549#4:2801\n1620#4,3:2802\n215#5,2:3855\n*S KotlinDebug\n*F\n+ 1 VideoStatementVM.kt\nco/hyperverge/hyperkyc/ui/viewmodels/VideoStatementVM\n*L\n174#1:1151\n174#1:1152,10\n174#1:1162,12\n174#1:1175,12\n174#1:1187,12\n174#1:1199\n174#1:1200,6\n182#1:1206\n182#1:1207,10\n182#1:1217,12\n182#1:1230,12\n182#1:1242,12\n182#1:1254\n182#1:1255,6\n192#1:1261\n192#1:1262,10\n192#1:1272,12\n192#1:1285,12\n192#1:1297,12\n192#1:1309\n192#1:1310,6\n201#1:1316\n201#1:1317,10\n201#1:1327,12\n201#1:1340,12\n201#1:1352,12\n201#1:1364\n201#1:1365,6\n210#1:1371\n210#1:1372,10\n210#1:1382,12\n210#1:1395,12\n210#1:1407,12\n210#1:1419\n210#1:1420,6\n218#1:1426\n218#1:1427,10\n218#1:1437,12\n218#1:1450,12\n218#1:1462,12\n218#1:1474\n218#1:1475,6\n226#1:1481\n226#1:1482,10\n226#1:1492,12\n226#1:1505,12\n226#1:1517,12\n226#1:1529\n226#1:1530,6\n236#1:1536\n236#1:1537,10\n236#1:1547,12\n236#1:1560,12\n236#1:1572,12\n236#1:1584\n236#1:1585,6\n261#1:1591\n261#1:1592,10\n261#1:1602,12\n261#1:1615,12\n261#1:1627,12\n261#1:1639\n261#1:1640,6\n310#1:1646\n310#1:1647,10\n310#1:1657,12\n310#1:1670,12\n310#1:1682,12\n310#1:1694\n310#1:1695,6\n372#1:1701\n372#1:1702,10\n372#1:1712,12\n372#1:1725,12\n372#1:1737,12\n372#1:1749\n372#1:1750,6\n399#1:1756\n399#1:1757,10\n399#1:1767,12\n399#1:1780,12\n399#1:1792,12\n399#1:1804\n399#1:1805,6\n444#1:1811\n444#1:1812,10\n444#1:1822,12\n444#1:1835,12\n444#1:1847,12\n444#1:1859\n444#1:1860,6\n494#1:1866\n494#1:1867,10\n494#1:1877,12\n494#1:1890,12\n494#1:1902,12\n494#1:1914\n494#1:1915,6\n510#1:1921\n510#1:1922,10\n510#1:1932,12\n510#1:1945,12\n510#1:1957,12\n510#1:1969\n510#1:1970,6\n518#1:1976\n518#1:1977,10\n518#1:1987,12\n518#1:2000,12\n518#1:2012,12\n518#1:2024\n518#1:2025,6\n526#1:2031\n526#1:2032,10\n526#1:2042,12\n526#1:2055,12\n526#1:2067,12\n526#1:2079\n526#1:2080,6\n536#1:2086\n536#1:2087,10\n536#1:2097,12\n536#1:2110,12\n536#1:2122,12\n536#1:2134\n536#1:2135,6\n541#1:2141\n541#1:2142,10\n541#1:2152,12\n541#1:2165,12\n541#1:2177,12\n541#1:2189\n541#1:2190,6\n546#1:2196\n546#1:2197,10\n546#1:2207,12\n546#1:2220,12\n546#1:2232,12\n546#1:2244\n546#1:2245,6\n551#1:2251\n551#1:2252,10\n551#1:2262,12\n551#1:2275,12\n551#1:2287,12\n551#1:2299\n551#1:2300,6\n560#1:2306\n560#1:2307,10\n560#1:2317,12\n560#1:2330,12\n560#1:2342,12\n560#1:2354\n560#1:2355,6\n571#1:2361\n571#1:2362,10\n571#1:2372,12\n571#1:2385,12\n571#1:2397,12\n571#1:2409\n571#1:2410,6\n587#1:2416\n587#1:2417,10\n587#1:2427,12\n587#1:2440,12\n587#1:2452,12\n587#1:2464\n587#1:2465,6\n606#1:2471\n606#1:2472,10\n606#1:2482,12\n606#1:2495,12\n606#1:2507,12\n606#1:2519\n606#1:2520,6\n630#1:2526\n630#1:2527,10\n630#1:2537,12\n630#1:2550,12\n630#1:2562,12\n630#1:2574\n630#1:2575,6\n644#1:2581\n644#1:2582,10\n644#1:2592,12\n644#1:2605,12\n644#1:2617,12\n644#1:2629\n644#1:2630,6\n653#1:2636\n653#1:2637,10\n653#1:2647,12\n653#1:2660,12\n653#1:2672,12\n653#1:2684\n653#1:2685,6\n690#1:2691\n690#1:2692,10\n690#1:2702,12\n690#1:2715,12\n690#1:2727,12\n690#1:2739\n690#1:2740,6\n712#1:2746\n712#1:2747,10\n712#1:2757,12\n712#1:2770,12\n712#1:2782,12\n712#1:2794\n712#1:2795,6\n797#1:2805\n797#1:2806,10\n797#1:2816,12\n797#1:2829,12\n797#1:2841,12\n797#1:2853\n797#1:2854,6\n833#1:2860\n833#1:2861,10\n833#1:2871,12\n833#1:2884,12\n833#1:2896,12\n833#1:2908\n833#1:2909,6\n851#1:2915\n851#1:2916,10\n851#1:2926,12\n851#1:2939,12\n851#1:2951,12\n851#1:2963\n851#1:2964,6\n872#1:2970\n872#1:2971,10\n872#1:2981,12\n872#1:2994,12\n872#1:3006,12\n872#1:3018\n872#1:3019,6\n914#1:3025,15\n914#1:3040,12\n914#1:3053,12\n914#1:3065,12\n914#1:3077\n914#1:3078,6\n927#1:3084,12\n927#1:3096,12\n927#1:3109,12\n927#1:3121,12\n927#1:3133\n927#1:3134,6\n945#1:3140\n945#1:3141,10\n945#1:3151,12\n945#1:3164,12\n945#1:3176,12\n945#1:3188\n945#1:3189,6\n968#1:3195\n968#1:3196,10\n968#1:3206,12\n968#1:3219,12\n968#1:3231,12\n968#1:3243\n968#1:3244,6\n989#1:3250\n989#1:3251,10\n989#1:3261,12\n989#1:3274,12\n989#1:3286,12\n989#1:3298\n989#1:3299,6\n1012#1:3305\n1012#1:3306,10\n1012#1:3316,12\n1012#1:3329,12\n1012#1:3341,12\n1012#1:3353\n1012#1:3354,6\n1040#1:3360\n1040#1:3361,10\n1040#1:3371,12\n1040#1:3384,12\n1040#1:3396,12\n1040#1:3408\n1040#1:3409,6\n1055#1:3415\n1055#1:3416,10\n1055#1:3426,12\n1055#1:3439,12\n1055#1:3451,12\n1055#1:3463\n1055#1:3464,6\n1083#1:3470\n1083#1:3471,10\n1083#1:3481,12\n1083#1:3494,12\n1083#1:3506,12\n1083#1:3518\n1083#1:3519,6\n1092#1:3525\n1092#1:3526,10\n1092#1:3536,12\n1092#1:3549,12\n1092#1:3561,12\n1092#1:3573\n1092#1:3574,6\n1104#1:3580\n1104#1:3581,10\n1104#1:3591,12\n1104#1:3604,12\n1104#1:3616,12\n1104#1:3628\n1104#1:3629,6\n1115#1:3635\n1115#1:3636,10\n1115#1:3646,12\n1115#1:3659,12\n1115#1:3671,12\n1115#1:3683\n1115#1:3684,6\n1125#1:3690\n1125#1:3691,10\n1125#1:3701,12\n1125#1:3714,12\n1125#1:3726,12\n1125#1:3738\n1125#1:3739,6\n1133#1:3745\n1133#1:3746,10\n1133#1:3756,12\n1133#1:3769,12\n1133#1:3781,12\n1133#1:3793\n1133#1:3794,6\n1138#1:3800\n1138#1:3801,10\n1138#1:3811,12\n1138#1:3824,12\n1138#1:3836,12\n1138#1:3848\n1138#1:3849,6\n174#1:1174\n182#1:1229\n192#1:1284\n201#1:1339\n210#1:1394\n218#1:1449\n226#1:1504\n236#1:1559\n261#1:1614\n310#1:1669\n372#1:1724\n399#1:1779\n444#1:1834\n494#1:1889\n510#1:1944\n518#1:1999\n526#1:2054\n536#1:2109\n541#1:2164\n546#1:2219\n551#1:2274\n560#1:2329\n571#1:2384\n587#1:2439\n606#1:2494\n630#1:2549\n644#1:2604\n653#1:2659\n690#1:2714\n712#1:2769\n797#1:2828\n833#1:2883\n851#1:2938\n872#1:2993\n914#1:3052\n927#1:3108\n945#1:3163\n968#1:3218\n989#1:3273\n1012#1:3328\n1040#1:3383\n1055#1:3438\n1083#1:3493\n1092#1:3548\n1104#1:3603\n1115#1:3658\n1125#1:3713\n1133#1:3768\n1138#1:3823\n719#1:2801\n719#1:2802,3\n1140#1:3855,2\n*E\n"})
public final class VideoStatementVM {
@NotNull
public static final Companion Companion = new Companion(null);
@NotNull
public static final String END_OF_STATEMENTS = "END_OF_STATEMENTS";
@NotNull
public static final String base64Header = "data:image/jpeg;base64,";
@NotNull
private String currentAnswerText;
private WorkflowModule.Properties.Statement currentStatement;
@NotNull
private String currentStatementId;
private int currentStatementIndex;
@NotNull
private Map<String, Boolean> faceDetectionResults;
private Timer faceDetectionTimer;
@NotNull
private Map<String, o0<Boolean>> faceMatchCallsDeferred;
private Check failedCheck;
@NotNull
private Map<String, Object> finalLogMap;
private boolean isFaceDetectionPass;
private boolean isFaceDetectionTimedOut;
private boolean isFirstStatement;
private boolean isMaximumRestartsExceeded;
private boolean isSelfieCaptured;
@NotNull
private Map<String, o0<Boolean>> livenessCallsDeferred;
@NotNull
private final MainVM mainVM;
private int noOfRestarts;
@NotNull
private String refImageUri;
private boolean shouldListenForFaceDetection;
@NotNull
private Map<String, o0<Boolean>> speechToTextMatchCallsDeferred;
private long startTimestamp;
@NotNull
private final VideoStatementConfig videoStatementConfig;
@NotNull
private final WorkflowUIState.VideoStatement videoStatementUIState;
@Metadata
public enum Check {
LIVENESS,
FACE_MATCH,
SPEECH_TO_TEXT_MATCH,
FACE_DETECTION
}
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata
public enum RequestType {
LIVENESS,
FACE_MATCH,
SPEECH_TO_TEXT_MATCH,
LOG_VIDEO_STATEMENT
}
@Metadata
public class WhenMappings {
public static final int[] $EnumSwitchMapping$0;
public static final int[] $EnumSwitchMapping$1;
static {
int[] iArr = new int[Check.values().length];
try {
iArr[Check.FACE_DETECTION.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Check.LIVENESS.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Check.FACE_MATCH.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[Check.SPEECH_TO_TEXT_MATCH.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
$EnumSwitchMapping$0 = iArr;
int[] iArr2 = new int[RequestType.values().length];
try {
iArr2[RequestType.LIVENESS.ordinal()] = 1;
} catch (NoSuchFieldError unused5) {
}
try {
iArr2[RequestType.FACE_MATCH.ordinal()] = 2;
} catch (NoSuchFieldError unused6) {
}
try {
iArr2[RequestType.SPEECH_TO_TEXT_MATCH.ordinal()] = 3;
} catch (NoSuchFieldError unused7) {
}
try {
iArr2[RequestType.LOG_VIDEO_STATEMENT.ordinal()] = 4;
} catch (NoSuchFieldError unused8) {
}
$EnumSwitchMapping$1 = iArr2;
}
}
public VideoStatementVM(@NotNull WorkflowUIState.VideoStatement videoStatement, @NotNull MainVM mainVM) {
Intrinsics.checkNotNullParameter(videoStatement, "videoStatementUIState");
Intrinsics.checkNotNullParameter(mainVM, "mainVM");
this.videoStatementUIState = videoStatement;
this.mainVM = mainVM;
VideoStatementConfig vsConfig = videoStatement.getVsConfig();
this.videoStatementConfig = vsConfig;
this.currentStatementId = vsConfig.getStart();
Map<String, WorkflowModule.Properties.Statement> statements = vsConfig.getStatements();
this.currentStatement = statements != null ? statements.get(this.currentStatementId) : null;
this.startTimestamp = System.currentTimeMillis();
this.currentAnswerText = "";
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("videoRef", mainVM.getJourneyId$hyperkyc_release());
linkedHashMap.put("transactionId", mainVM.getHyperKycConfig$hyperkyc_release().getTransactionId$hyperkyc_release());
linkedHashMap.put("statements", new ArrayList());
linkedHashMap.put(WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES, new LinkedHashMap());
this.finalLogMap = linkedHashMap;
this.isFaceDetectionPass = true;
this.isFirstStatement = true;
this.faceDetectionResults = new LinkedHashMap();
this.livenessCallsDeferred = new LinkedHashMap();
this.faceMatchCallsDeferred = new LinkedHashMap();
this.speechToTextMatchCallsDeferred = new LinkedHashMap();
this.refImageUri = "";
}
public final void addDeferred(o0<Boolean> o0Var, RequestType requestType) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "addDeferred() called with: deferred = " + o0Var + ", requestType = " + requestType;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "addDeferred() called with: deferred = " + o0Var + ", requestType = " + requestType;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
int i = WhenMappings.$EnumSwitchMapping$1[requestType.ordinal()];
if (i == 1) {
this.livenessCallsDeferred.put(this.currentStatementId, o0Var);
} else if (i == 2) {
this.faceMatchCallsDeferred.put(this.currentStatementId, o0Var);
} else {
if (i != 3) {
return;
}
this.speechToTextMatchCallsDeferred.put(this.currentStatementId, o0Var);
}
}
private final boolean addFaceMatchDataToLog(Map<String, ? extends Object> map, int i) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String str;
Map map2;
Map map3;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "addFaceMatchDataToLog() called with: responseMap = " + map + ", index = " + i;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "addFaceMatchDataToLog() called with: responseMap = " + map + ", index = " + i;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
Intrinsics.checkNotNull(map, "null cannot be cast to non-null type kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>>>");
Map map4 = (Map) map.get("result");
if (map4 == null || (map2 = (Map) map4.get(AppConstants.DETAILS)) == null || (map3 = (Map) map2.get("match")) == null || (str = (String) map3.get(FormFragment.KEY_VALUE)) == null) {
str = "no";
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
linkedHashMap2.put("match", str);
linkedHashMap.put("results", linkedHashMap2);
linkedHashMap.put("apiResponse", map);
linkedHashMap.put("image", getStatementIdWithRestartCount() + "_IMAGE");
linkedHashMap.put("image2", "REFERENCE_IMAGE");
addValueInLogMap(i, "faceMatch", linkedHashMap);
return asBoolean(str, false);
}
public final void addImage(String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "addImage() called with: url = " + str;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "addImage() called with: url = " + str;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
String base64 = str != null ? toBase64(str) : "";
Object obj = this.finalLogMap.get(WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES);
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.collections.MutableMap<kotlin.String, kotlin.String>");
TypeIntrinsics.asMutableMap(obj).put(getStatementIdWithRestartCount() + "_IMAGE", base64Header + base64);
}
private final boolean addLivenessDataToLog(Map<String, ? extends Object> map, int i) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String str;
Map map2;
Map map3;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "addLivenessDataToLog() called with: responseMap = " + map + ", index = " + i;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "addLivenessDataToLog() called with: responseMap = " + map + ", index = " + i;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
Intrinsics.checkNotNull(map, "null cannot be cast to non-null type kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.collections.Map<kotlin.String, kotlin.String>>>>");
Map map4 = (Map) map.get("result");
if (map4 == null || (map2 = (Map) map4.get(AppConstants.DETAILS)) == null || (map3 = (Map) map2.get("liveFace")) == null || (str = (String) map3.get(FormFragment.KEY_VALUE)) == null) {
str = "no";
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
linkedHashMap2.put("live", str);
linkedHashMap.put("results", linkedHashMap2);
linkedHashMap.put("apiResponse", map);
linkedHashMap.put("image", getStatementIdWithRestartCount() + "_IMAGE");
addValueInLogMap(i, "liveness", linkedHashMap);
return asBoolean(str, false);
}
private final boolean addSpeechToTextMatchDataToLog(java.util.Map<java.lang.String, ? extends java.lang.Object> r19, int r20, java.lang.String r21) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.addSpeechToTextMatchDataToLog(java.util.Map, int, java.lang.String):boolean");
}
private final void addValueInLogMap(int i, String str, Object obj) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "addValueInLogMap() called with: index = " + i + ", key = " + str + ", value = " + obj;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "addValueInLogMap() called with: index = " + i + ", key = " + str + ", value = " + obj;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
Object obj2 = this.finalLogMap.get("statements");
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type java.util.ArrayList<kotlin.collections.MutableMap<kotlin.String, kotlin.Any>>{ kotlin.collections.TypeAliasesKt.ArrayList<kotlin.collections.MutableMap<kotlin.String, kotlin.Any>> }");
ArrayList arrayList = (ArrayList) obj2;
if (arrayList.size() < i + 1) {
arrayList.add(new LinkedHashMap());
}
Object obj3 = arrayList.get(i);
Intrinsics.checkNotNullExpressionValue(obj3, "statementsLog[index]");
((Map) obj3).put(str, obj);
}
public static void addValueInLogMap$default(VideoStatementVM videoStatementVM, int i, String str, Object obj, int i2, Object obj2) {
if ((i2 & 1) != 0) {
i = videoStatementVM.currentStatementIndex;
}
videoStatementVM.addValueInLogMap(i, str, obj);
}
private final boolean asBoolean(String str, boolean z) {
String canonicalName;
Object b;
String className;
String substringAfterLast$default;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
String str2 = "N/A";
if (stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) {
canonicalName = str != null ? str.getClass().getCanonicalName() : null;
if (canonicalName == null) {
canonicalName = "N/A";
}
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = "asBoolean() called with: default = " + z;
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
if (stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (substringAfterLast$default = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) {
String canonicalName2 = str != null ? str.getClass().getCanonicalName() : null;
if (canonicalName2 != null) {
str2 = canonicalName2;
}
} else {
str2 = substringAfterLast$default;
}
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "asBoolean() called with: default = " + z;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str2, sb2.toString());
}
}
}
if (Intrinsics.areEqual(str, "yes")) {
return true;
}
if (Intrinsics.areEqual(str, "no")) {
return false;
}
return str == null || StringsKt.isBlank(str) ? z : RuleEvaluatorKt.eval(injectFromVariables(str, true));
}
private final String asString(boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Boolean valueOf = Boolean.valueOf(z);
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = valueOf.getClass().getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("asString() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = valueOf.getClass().getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "asString() called ");
}
}
}
return z ? "yes" : "no";
}
private final void endStatement() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("endStatement() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "endStatement() called ");
}
}
}
if (!checkIsEndOfStatements()) {
addValueInLogMap$default(this, 0, "endTimestamp", formatSecondsToHHMMSS(), 1, null);
}
this.currentStatementIndex++;
}
private final String formatSecondsToHHMMSS() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("formatSecondsToHHMMSS() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "formatSecondsToHHMMSS() called ");
}
}
}
long currentTimeMillis = (System.currentTimeMillis() - this.startTimestamp) / 1000;
long j = 3600;
long j2 = currentTimeMillis / j;
long j3 = 60;
long j4 = (currentTimeMillis % j) / j3;
long j5 = currentTimeMillis % j3;
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format("%02d:%02d:%02d", Arrays.copyOf(new Object[]{Long.valueOf(j2), Long.valueOf(j4), Long.valueOf(j5)}, 3));
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
return format;
}
public final long getFaceDetectionTimeout() {
String canonicalName;
Object b;
String canonicalName2;
String className;
WorkflowModule.Properties.Checks checks;
WorkflowModule.Properties.Check faceDetection;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getFaceDetectionTimeout() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getFaceDetectionTimeout() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (checks = statement.getChecks()) == null || (faceDetection = checks.getFaceDetection()) == null) {
return 2000L;
}
return faceDetection.getMaxOutOfFrameTime();
}
private final Map<String, String> getHeaders(RequestType requestType) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "getHeaders() called with: requestType = " + requestType;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "getHeaders() called with: requestType = " + requestType;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("transactionId", this.mainVM.getHyperKycConfig$hyperkyc_release().getTransactionId$hyperkyc_release());
linkedHashMap.put("journeyId", this.mainVM.getJourneyId$hyperkyc_release());
linkedHashMap.put("moduleId", this.mainVM.getCurrentModuleId$hyperkyc_release());
MainVM mainVM = this.mainVM;
linkedHashMap.putAll(mainVM.getDefaultHeaders$hyperkyc_release(mainVM.getCurrentModuleId$hyperkyc_release()));
if (requestType == RequestType.SPEECH_TO_TEXT_MATCH || requestType == RequestType.LOG_VIDEO_STATEMENT) {
linkedHashMap.put("Content-Type", "application/json");
}
String accessToken$hyperkyc_release = this.mainVM.getHyperKycConfig$hyperkyc_release().getAccessToken$hyperkyc_release();
if (accessToken$hyperkyc_release == null || StringsKt.isBlank(accessToken$hyperkyc_release)) {
String appId$hyperkyc_release = this.mainVM.getHyperKycConfig$hyperkyc_release().getAppId$hyperkyc_release();
Intrinsics.checkNotNull(appId$hyperkyc_release);
linkedHashMap.put(HyperKycConfig.APP_ID, appId$hyperkyc_release);
String appKey$hyperkyc_release = this.mainVM.getHyperKycConfig$hyperkyc_release().getAppKey$hyperkyc_release();
Intrinsics.checkNotNull(appKey$hyperkyc_release);
linkedHashMap.put(HyperKycConfig.APP_KEY, appKey$hyperkyc_release);
} else {
String accessToken$hyperkyc_release2 = this.mainVM.getHyperKycConfig$hyperkyc_release().getAccessToken$hyperkyc_release();
Intrinsics.checkNotNull(accessToken$hyperkyc_release2);
linkedHashMap.put(HyperKycConfig.AUTHORIZATION, accessToken$hyperkyc_release2);
}
return linkedHashMap;
}
private final String getStatementIdWithRestartCount() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getStatementIdWithRestartCount() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getStatementIdWithRestartCount() called ");
}
}
}
return this.currentStatementId + '+' + this.noOfRestarts;
}
private final void handleLogVideoStatementResult(Response response, String str, String str2) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = "handleLogVideoStatementResult() called with: response = " + response + ", isPass = " + str + ", responseRaw = " + str2;
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
if ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName2 = "N/A";
}
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName2);
if (matcher2.find()) {
canonicalName2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName2, "replaceAll(\"\")");
}
if (canonicalName2.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName2 = canonicalName2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName2, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "handleLogVideoStatementResult() called with: response = " + response + ", isPass = " + str + ", responseRaw = " + str2;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, canonicalName2, sb2.toString());
}
}
}
JSONObject jSONObject = new JSONObject(str2 != null ? str2 : "");
jSONObject.getJSONObject(AppConstants.DETAILS).remove(WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES);
MainVM.updateVideoStatementData$hyperkyc_release$default(this.mainVM, this.videoStatementUIState, new HyperKycData.VideoStatementData(Integer.valueOf(response.code()), jSONObject.toString(), response.headers().toMultimap(), str, this.refImageUri, new JSONArray(JSONExtsKt.extractJsonValue(str2, "details.statements")).toString()), false, 4, null);
}
private final void handleSelfieNotCaptured() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("handleSelfieNotCaptured() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "handleSelfieNotCaptured() called ");
}
}
}
addImage(null);
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
linkedHashMap2.put("live", "no");
Unit unit = Unit.a;
linkedHashMap.put("results", linkedHashMap2);
linkedHashMap.put("apiResponse", new LinkedHashMap());
addValueInLogMap$default(this, 0, "liveness", linkedHashMap, 1, null);
Boolean bool = Boolean.FALSE;
addDeferred(v.a(bool), RequestType.FACE_MATCH);
if (isFaceMatchCheckEnabled()) {
addDeferred(v.a(bool), RequestType.LIVENESS);
}
}
private final String injectFromVariables(String str, boolean z) {
String canonicalName;
Object b;
String className;
String substringAfterLast$default;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
String str2 = "N/A";
if (stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) {
canonicalName = str != null ? str.getClass().getCanonicalName() : null;
if (canonicalName == null) {
canonicalName = "N/A";
}
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = "injectFromVariables() called with: addQuotesIfEmpty = " + z;
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
if (stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (substringAfterLast$default = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) {
String canonicalName2 = str != null ? str.getClass().getCanonicalName() : null;
if (canonicalName2 != null) {
str2 = canonicalName2;
}
} else {
str2 = substringAfterLast$default;
}
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "injectFromVariables() called with: addQuotesIfEmpty = " + z;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str2, sb2.toString());
}
}
}
return this.mainVM.injectFromVariables$hyperkyc_release(str, z);
}
public static String injectFromVariables$default(VideoStatementVM videoStatementVM, String str, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
z = false;
}
return videoStatementVM.injectFromVariables(str, z);
}
public final boolean isFaceDetectionEnabled() {
String canonicalName;
Object b;
String canonicalName2;
String className;
WorkflowModule.Properties.Checks checks;
WorkflowModule.Properties.Check faceDetection;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("isFaceDetectionEnabled() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "isFaceDetectionEnabled() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (checks = statement.getChecks()) == null || (faceDetection = checks.getFaceDetection()) == null) {
return false;
}
return faceDetection.getEnable();
}
private final boolean isFaceMatchCheckEnabled() {
String canonicalName;
Object b;
String canonicalName2;
String className;
WorkflowModule.Properties.Checks checks;
WorkflowModule.Properties.Check faceMatch;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("isFaceMatchCheckEnabled() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "isFaceMatchCheckEnabled() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (checks = statement.getChecks()) == null || (faceMatch = checks.getFaceMatch()) == null) {
return false;
}
return faceMatch.getEnable();
}
private final boolean isLivenessCheckEnabled() {
String canonicalName;
Object b;
String canonicalName2;
String className;
WorkflowModule.Properties.Checks checks;
WorkflowModule.Properties.Check liveness;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("isLivenessCheckEnabled() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "isLivenessCheckEnabled() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (checks = statement.getChecks()) == null || (liveness = checks.getLiveness()) == null) {
return false;
}
return liveness.getEnable();
}
private final boolean isSpeechToTextMatchEnabled() {
String canonicalName;
Object b;
String canonicalName2;
String className;
WorkflowModule.Properties.Checks checks;
WorkflowModule.Properties.Check speechToTextMatching;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("isSpeechToTextMatchEnabled() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "isSpeechToTextMatchEnabled() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (checks = statement.getChecks()) == null || (speechToTextMatching = checks.getSpeechToTextMatching()) == null) {
return false;
}
return speechToTextMatching.getEnable();
}
public final void makeFaceMatchAPICall(String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
Iterator it;
String str2;
MultipartBody.Builder addFormDataPart;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = "makeFaceMatchAPICall() called with: imageUri = " + str;
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str5 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str5);
if (matcher2.find()) {
str5 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str5, "replaceAll(\"\")");
}
if (str5.length() > 23 && Build.VERSION.SDK_INT < 26) {
str5 = str5.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str5, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str6 = "makeFaceMatchAPICall() called with: imageUri = " + str;
if (str6 == null) {
str6 = "null ";
}
sb2.append(str6);
sb2.append(' ');
sb2.append("");
Log.println(3, str5, sb2.toString());
}
}
}
if (isFaceMatchCheckEnabled()) {
Map mapOf = MapsKt.mapOf(k.a("image", "image/jpeg"));
MultipartBody.Builder builder = new MultipartBody.Builder((String) null, 1, (DefaultConstructorMarker) null);
List<WorkflowModule.Properties.RequestParam> faceMatchParams = this.videoStatementConfig.getFaceMatchParams();
String str7 = base64Header;
if (faceMatchParams != null) {
List<WorkflowModule.Properties.RequestParam> faceMatchParams2 = this.videoStatementConfig.getFaceMatchParams();
if (faceMatchParams2 != null) {
List<WorkflowModule.Properties.RequestParam> list = faceMatchParams2;
ArrayList arrayList = new ArrayList(CollectionsKt.collectionSizeOrDefault(list, 10));
Iterator it2 = list.iterator();
while (it2.hasNext()) {
WorkflowModule.Properties.RequestParam requestParam = (WorkflowModule.Properties.RequestParam) it2.next();
String component1 = requestParam.component1();
String component2 = requestParam.component2();
String component3 = requestParam.component3();
builder.setType(MultipartBody.FORM);
if (Intrinsics.areEqual(component3, Properties.INPUT_TYPE_STRING)) {
addFormDataPart = builder.addFormDataPart(component1, component2);
it = it2;
str2 = str7;
} else {
if (!Intrinsics.areEqual(component3, "image")) {
throw new NotImplementedError("An operation is not implemented: " + ("unknown request param type " + component3));
}
if (component2.length() == 0) {
component2 = str;
} else if (this.isFirstStatement) {
Object obj = this.finalLogMap.get(WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES);
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.collections.MutableMap<kotlin.String, kotlin.String>");
Map asMutableMap = TypeIntrinsics.asMutableMap(obj);
it = it2;
StringBuilder sb3 = new StringBuilder();
sb3.append(str7);
str2 = str7;
sb3.append(toBase64(component2));
asMutableMap.put("REFERENCE_IMAGE", sb3.toString());
String substringAfterLast$default = StringsKt.substringAfterLast$default(component2, EmvParser.CARD_HOLDER_NAME_SEPARATOR, (String) null, 2, (Object) null);
RequestBody.Companion companion2 = RequestBody.Companion;
File file = new File(component2);
MediaType.Companion companion3 = MediaType.Companion;
Object obj2 = mapOf.get(component3);
Intrinsics.checkNotNull(obj2);
addFormDataPart = builder.addFormDataPart(component1, substringAfterLast$default, companion2.create(file, companion3.get((String) obj2)));
}
it = it2;
str2 = str7;
String substringAfterLast$default2 = StringsKt.substringAfterLast$default(component2, EmvParser.CARD_HOLDER_NAME_SEPARATOR, (String) null, 2, (Object) null);
RequestBody.Companion companion22 = RequestBody.Companion;
File file2 = new File(component2);
MediaType.Companion companion32 = MediaType.Companion;
Object obj22 = mapOf.get(component3);
Intrinsics.checkNotNull(obj22);
addFormDataPart = builder.addFormDataPart(component1, substringAfterLast$default2, companion22.create(file2, companion32.get((String) obj22)));
}
arrayList.add(addFormDataPart);
it2 = it;
str7 = str2;
}
}
} else {
builder.addFormDataPart(FormFragment.ARG_TYPE, "selfie");
String substringAfterLast$default3 = StringsKt.substringAfterLast$default(str, EmvParser.CARD_HOLDER_NAME_SEPARATOR, (String) null, 2, (Object) null);
RequestBody.Companion companion4 = RequestBody.Companion;
File file3 = new File(str);
MediaType.Companion companion5 = MediaType.Companion;
Object obj3 = mapOf.get("image");
Intrinsics.checkNotNull(obj3);
builder.addFormDataPart("image1", substringAfterLast$default3, companion4.create(file3, companion5.get((String) obj3)));
String substringAfterLast$default4 = StringsKt.substringAfterLast$default(this.refImageUri, EmvParser.CARD_HOLDER_NAME_SEPARATOR, (String) null, 2, (Object) null);
File file4 = new File(this.refImageUri);
Object obj4 = mapOf.get("image");
Intrinsics.checkNotNull(obj4);
builder.addFormDataPart("image2", substringAfterLast$default4, companion4.create(file4, companion5.get((String) obj4)));
if (this.isFirstStatement) {
Object obj5 = this.finalLogMap.get(WorkflowModule.Properties.Section.Component.SupportedFile.Type.IMAGES);
Intrinsics.checkNotNull(obj5, "null cannot be cast to non-null type kotlin.collections.MutableMap<kotlin.String, kotlin.String>");
TypeIntrinsics.asMutableMap(obj5).put("REFERENCE_IMAGE", base64Header + toBase64(this.refImageUri));
}
}
BuildersKt.launch$default(i0.b(), x0.b(), (j0) null, new VideoStatementVM$makeFaceMatchAPICall$2(this, builder.build(), null), 2, (Object) null);
}
}
public final void makeLivenessAPICall(String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "makeLivenessAPICall() called with: imageUri = " + str;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "makeLivenessAPICall() called with: imageUri = " + str;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
if (isLivenessCheckEnabled()) {
File file = new File(str);
BuildersKt.launch$default(i0.b(), x0.b(), (j0) null, new VideoStatementVM$makeLivenessAPICall$2(this, new MultipartBody.Builder((String) null, 1, (DefaultConstructorMarker) null).setType(MultipartBody.FORM).addFormDataPart("image", file.getName(), RequestBody.Companion.create(file, MediaType.Companion.get("multipart/form-data"))).build(), null), 2, (Object) null);
}
}
public final Object makeSpeechToTextMatchAPICall(String str, String str2, Continuation<? super Unit> continuation) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String id;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
String str3 = "";
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str4 = "makeSpeechToTextMatchAPICall() called with: audioUri = " + str + ", text = " + str2;
if (str4 == null) {
str4 = "null ";
}
sb.append(str4);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str5 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str5, "packageName");
if (StringsKt.contains$default(str5, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str6 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str6);
if (matcher2.find()) {
str6 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str6, "replaceAll(\"\")");
}
if (str6.length() > 23 && Build.VERSION.SDK_INT < 26) {
str6 = str6.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str6, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str7 = "makeSpeechToTextMatchAPICall() called with: audioUri = " + str + ", text = " + str2;
if (str7 == null) {
str7 = "null ";
}
sb2.append(str7);
sb2.append(' ');
sb2.append("");
Log.println(3, str6, sb2.toString());
}
}
}
if (!isSpeechToTextMatchEnabled()) {
return Unit.a;
}
String base64 = toBase64(str);
MediaType mediaType = MediaType.Companion.get("application/json");
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("audio", base64);
MainVM mainVM = this.mainVM;
linkedHashMap.put(WorkflowModule.Properties.VideoStatementV2API.TEXT_LANGUAGE_CODE, mainVM.getLanguageToBeUsed$hyperkyc_release(mainVM.getHyperKycConfig$hyperkyc_release()));
KycCountry selectedCountry = this.mainVM.getSelectedCountry();
if (selectedCountry != null && (id = selectedCountry.getId()) != null) {
str3 = id;
}
linkedHashMap.put(WorkflowModule.Properties.VideoStatementV2API.COUNTRY_CODE, str3);
linkedHashMap.put("groundTruth", str2);
linkedHashMap.put(WorkflowModule.Properties.VideoStatementV2API.PERFORM_TEXT_MATCH, "yes");
BuildersKt.launch$default(i0.b(), x0.b(), (j0) null, new VideoStatementVM$makeSpeechToTextMatchAPICall$3(this, RequestBody.Companion.create(new Gson().toJson(linkedHashMap).toString(), mediaType), null), 2, (Object) null);
return Unit.a;
}
public final java.lang.Object sendRequest(java.lang.String r41, okhttp3.RequestBody r42, co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.RequestType r43, kotlin.coroutines.Continuation<? super java.lang.Boolean> r44) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.sendRequest(java.lang.String, okhttp3.RequestBody, co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM$RequestType, kotlin.coroutines.Continuation):java.lang.Object");
}
private final void setIsFaceDetectionPass(boolean z) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "setIsFaceDetectionPass() called with: isPassed = " + z;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "setIsFaceDetectionPass() called with: isPassed = " + z;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
if (isFaceDetectionEnabled()) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
linkedHashMap2.put("inFrame", asString(z));
Unit unit = Unit.a;
linkedHashMap.put("results", linkedHashMap2);
addValueInLogMap$default(this, 0, "faceDetection", linkedHashMap, 1, null);
this.faceDetectionResults.put(this.currentStatementId, Boolean.valueOf(z));
}
}
private final void startAudioRecording(File file) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "startAudioRecording() called with: filesDir = " + file;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "startAudioRecording() called with: filesDir = " + file;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
File file2 = new File(file, this.currentStatementId + "_raw.pcm");
HVAudioRecorder hvAudioRecorder$hyperkyc_release = HVSessionRecorder.Companion.getInstance().getHvAudioRecorder$hyperkyc_release();
if (hvAudioRecorder$hyperkyc_release != null) {
hvAudioRecorder$hyperkyc_release.startPartialAudioRecord$hyperkyc_release(file2);
}
}
private final String stopAudioRecording(File file) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "stopAudioRecording() called with: filesDir = " + file;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "stopAudioRecording() called with: filesDir = " + file;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
File file2 = new File(file, this.currentStatementId + "_raw.pcm");
File file3 = new File(file, this.currentStatementId + "-converted.wav");
HVAudioRecorder hvAudioRecorder$hyperkyc_release = HVSessionRecorder.Companion.getInstance().getHvAudioRecorder$hyperkyc_release();
if (hvAudioRecorder$hyperkyc_release != null) {
hvAudioRecorder$hyperkyc_release.stopPartialAudioRecord$hyperkyc_release(file2, file3);
}
String absolutePath = file3.getAbsolutePath();
Intrinsics.checkNotNullExpressionValue(absolutePath, "encodedFile.absolutePath");
return absolutePath;
}
private final String toBase64(String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "toBase64() called with: uri = " + str;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "toBase64() called with: uri = " + str;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
File file = new File(str);
FileInputStream fileInputStream = new FileInputStream(file);
byte[] bArr = new byte[(int) file.length()];
fileInputStream.read(bArr);
fileInputStream.close();
String encodeToString = Base64.encodeToString(bArr, 2);
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(data, Base64.NO_WRAP)");
return encodeToString;
}
public final java.lang.Object verifyAsyncChecks(kotlin.coroutines.Continuation<? super java.lang.Boolean> r19) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.verifyAsyncChecks(kotlin.coroutines.Continuation):java.lang.Object");
}
public final java.lang.Object verifySyncCheck(co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.Check r18, kotlin.coroutines.Continuation<? super java.lang.Boolean> r19) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.verifySyncCheck(co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM$Check, kotlin.coroutines.Continuation):java.lang.Object");
}
public final boolean checkIfStatementEnabled() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("checkIfStatementEnabled() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "checkIfStatementEnabled() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
return asBoolean(statement != null ? statement.getEnable() : null, true);
}
public final boolean checkIsEndOfStatements() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("checkIsEndOfStatements() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "checkIsEndOfStatements() called ");
}
}
}
return Intrinsics.areEqual(this.currentStatementId, END_OF_STATEMENTS);
}
public final java.lang.Object evaluate(@org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super java.lang.Boolean> r18) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.evaluate(kotlin.coroutines.Continuation):java.lang.Object");
}
public final WorkflowModule.Properties.Statement getCurrentStatement() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getCurrentStatement() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getCurrentStatement() called ");
}
}
}
return this.currentStatement;
}
@NotNull
public final String getCurrentStatementId() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getCurrentStatementId() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getCurrentStatementId() called ");
}
}
}
return this.currentStatementId;
}
@NotNull
public final Check getFailedCheck() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getFailedCheck() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getFailedCheck() called ");
}
}
}
Check check = this.failedCheck;
if (check != null) {
return check;
}
Intrinsics.throwUninitializedPropertyAccessException("failedCheck");
return null;
}
public final boolean getShouldDisplayTimer() {
String canonicalName;
Object b;
String canonicalName2;
String className;
Boolean displayTimer;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getShouldDisplayTimer() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getShouldDisplayTimer() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (displayTimer = statement.getDisplayTimer()) == null) {
return true;
}
return displayTimer.booleanValue();
}
public final long getStatementDuration() {
String canonicalName;
Object b;
String canonicalName2;
String className;
Integer duration;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("getStatementDuration() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "getStatementDuration() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (duration = statement.getDuration()) == null) {
return 5000L;
}
return duration.intValue();
}
public final boolean handleRetry() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String str;
WorkflowModule.Properties.Statement statement;
WorkflowModule.Properties.Checks checks;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("handleRetry() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str3, "handleRetry() called ");
}
}
}
if (this.noOfRestarts == this.videoStatementConfig.getAllowedRestarts()) {
this.isMaximumRestartsExceeded = true;
return false;
}
this.noOfRestarts++;
Map<String, WorkflowModule.Properties.Statement> statements = this.videoStatementConfig.getStatements();
if (statements == null || (statement = statements.get(this.currentStatementId)) == null || (checks = statement.getChecks()) == null || (str = checks.getRestartFrom()) == null) {
str = this.currentStatementId;
}
this.currentStatementId = str;
Map<String, WorkflowModule.Properties.Statement> statements2 = this.videoStatementConfig.getStatements();
this.currentStatement = statements2 != null ? statements2.get(this.currentStatementId) : null;
return true;
}
public final String injectValuesFromDataMap(String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
Map.Entry<String, String> next;
String className2;
String str2 = str;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str3 = "injectValuesFromDataMap() called with: template = " + str2;
if (str3 == null) {
str3 = "null ";
}
sb.append(str3);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str4 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str4, "packageName");
if (StringsKt.contains$default(str4, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str5 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str5);
if (matcher2.find()) {
str5 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str5, "replaceAll(\"\")");
}
if (str5.length() > 23 && Build.VERSION.SDK_INT < 26) {
str5 = str5.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str5, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str6 = "injectValuesFromDataMap() called with: template = " + str2;
if (str6 == null) {
str6 = "null ";
}
sb2.append(str6);
sb2.append(' ');
sb2.append("");
Log.println(3, str5, sb2.toString());
}
}
}
Map<String, String> userData = this.videoStatementConfig.getUserData();
if (userData == null) {
return str2;
}
Iterator<Map.Entry<String, String>> it = userData.entrySet().iterator();
while (true) {
String str7 = str2;
while (it.hasNext()) {
next = it.next();
if (str7 != null) {
break;
}
str7 = null;
}
return str7;
str2 = StringsKt.replace$default(str7, "{{" + next.getKey() + "}}", next.getValue(), false, 4, (Object) null);
}
}
public final Object makeLogVideoStatementAPICall(@NotNull Continuation<? super Boolean> continuation) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("makeLogVideoStatementAPICall() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str, "packageName");
if (StringsKt.contains$default(str, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str2 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str2);
if (matcher2.find()) {
str2 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str2, "replaceAll(\"\")");
}
if (str2.length() > 23 && Build.VERSION.SDK_INT < 26) {
str2 = str2.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str2, "makeLogVideoStatementAPICall() called ");
}
}
}
MediaType mediaType = MediaType.Companion.get("application/json");
String json = new Gson().toJson(this.finalLogMap);
RequestBody.Companion companion2 = RequestBody.Companion;
Intrinsics.checkNotNullExpressionValue(json, WorkflowRequestType.JSON);
return sendRequest(this.videoStatementConfig.getLogVideoStatementUrl(), companion2.create(json, mediaType), RequestType.LOG_VIDEO_STATEMENT, continuation);
}
public final void moveToNextStatement() {
String canonicalName;
Object b;
String canonicalName2;
String className;
String str;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
sb.append("moveToNextStatement() called");
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
Log.println(3, str3, "moveToNextStatement() called ");
}
}
}
WorkflowModule.Properties.Statement statement = this.currentStatement;
if (statement == null || (str = statement.getNext()) == null) {
str = END_OF_STATEMENTS;
}
this.currentStatementId = str;
Map<String, WorkflowModule.Properties.Statement> statements = this.videoStatementConfig.getStatements();
this.currentStatement = statements != null ? statements.get(this.currentStatementId) : null;
}
public final void observeUIState(@NotNull HVFacePreview hVFacePreview) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(hVFacePreview, "facePreview");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "observeUIState() called with: facePreview = " + hVFacePreview;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "observeUIState() called with: facePreview = " + hVFacePreview;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
BuildersKt.launch$default(i0.b(), (CoroutineContext) null, (j0) null, new VideoStatementVM$observeUIState$2(hVFacePreview, this, null), 3, (Object) null);
}
public final void setCurrentAnswerText(@NotNull String str) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
Intrinsics.checkNotNullParameter(str, "text");
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str2 = "setCurrentAnswerText() called with: text = " + str;
if (str2 == null) {
str2 = "null ";
}
sb.append(str2);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str3 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str3, "packageName");
if (StringsKt.contains$default(str3, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str4 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str4);
if (matcher2.find()) {
str4 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str4, "replaceAll(\"\")");
}
if (str4.length() > 23 && Build.VERSION.SDK_INT < 26) {
str4 = str4.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str4, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str5 = "setCurrentAnswerText() called with: text = " + str;
if (str5 == null) {
str5 = "null ";
}
sb2.append(str5);
sb2.append(' ');
sb2.append("");
Log.println(3, str4, sb2.toString());
}
}
}
this.currentAnswerText = str;
}
public final void setStartTimestamp(long j) {
String canonicalName;
Object b;
String canonicalName2;
String className;
String className2;
HyperLogger.Level level = HyperLogger.Level.DEBUG;
HyperLogger companion = HyperLogger.Companion.getInstance();
StringBuilder sb = new StringBuilder();
StackTraceElement[] stackTrace = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "Throwable().stackTrace");
StackTraceElement stackTraceElement = (StackTraceElement) ArraysKt.firstOrNull(stackTrace);
if ((stackTraceElement == null || (className2 = stackTraceElement.getClassName()) == null || (canonicalName = StringsKt.substringAfterLast$default(className2, '.', (String) null, 2, (Object) null)) == null) && (canonicalName = VideoStatementVM.class.getCanonicalName()) == null) {
canonicalName = "N/A";
}
Matcher matcher = LogExtsKt.ANON_CLASS_PATTERN.matcher(canonicalName);
if (matcher.find()) {
canonicalName = matcher.replaceAll("");
Intrinsics.checkNotNullExpressionValue(canonicalName, "replaceAll(\"\")");
}
if (canonicalName.length() > 23 && Build.VERSION.SDK_INT < 26) {
canonicalName = canonicalName.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(canonicalName, "this as java.lang.String…ing(startIndex, endIndex)");
}
sb.append(canonicalName);
sb.append(" - ");
String str = "setStartTimestamp() called with: timeStamp = " + j;
if (str == null) {
str = "null ";
}
sb.append(str);
sb.append(' ');
sb.append("");
companion.log(level, sb.toString());
if (!CoreExtsKt.isRelease()) {
try {
g.a aVar = g.b;
Object invoke = Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", new Class[0]).invoke(null, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type android.app.Application");
b = g.b(((Application) invoke).getPackageName());
} catch (Throwable th) {
g.a aVar2 = g.b;
b = g.b(h.a(th));
}
if (g.f(b)) {
b = "";
}
String str2 = (String) b;
if (CoreExtsKt.isDebug()) {
Intrinsics.checkNotNullExpressionValue(str2, "packageName");
if (StringsKt.contains$default(str2, "co.hyperverge", false, 2, (Object) null)) {
StackTraceElement[] stackTrace2 = new Throwable().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace2, "Throwable().stackTrace");
StackTraceElement stackTraceElement2 = (StackTraceElement) ArraysKt.firstOrNull(stackTrace2);
String str3 = ((stackTraceElement2 == null || (className = stackTraceElement2.getClassName()) == null || (canonicalName2 = StringsKt.substringAfterLast$default(className, '.', (String) null, 2, (Object) null)) == null) && (canonicalName2 = VideoStatementVM.class.getCanonicalName()) == null) ? "N/A" : canonicalName2;
Matcher matcher2 = LogExtsKt.ANON_CLASS_PATTERN.matcher(str3);
if (matcher2.find()) {
str3 = matcher2.replaceAll("");
Intrinsics.checkNotNullExpressionValue(str3, "replaceAll(\"\")");
}
if (str3.length() > 23 && Build.VERSION.SDK_INT < 26) {
str3 = str3.substring(0, 23);
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String…ing(startIndex, endIndex)");
}
StringBuilder sb2 = new StringBuilder();
String str4 = "setStartTimestamp() called with: timeStamp = " + j;
if (str4 == null) {
str4 = "null ";
}
sb2.append(str4);
sb2.append(' ');
sb2.append("");
Log.println(3, str3, sb2.toString());
}
}
}
this.startTimestamp = j;
}
public final java.lang.Object startStatement(@org.jetbrains.annotations.NotNull android.content.Context r21, @org.jetbrains.annotations.NotNull co.hyperverge.hypersnapsdk.components.camera.HVFacePreview r22, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> r23) {
throw new UnsupportedOperationException("Method not decompiled: co.hyperverge.hyperkyc.ui.viewmodels.VideoStatementVM.startStatement(android.content.Context, co.hyperverge.hypersnapsdk.components.camera.HVFacePreview, kotlin.coroutines.Continuation):java.lang.Object");
}
}