Flash Cleaner v1.0.14版本的 MD5 值为:afbed0179616af7c25ad332b251e759c
以下内容为反编译后的 e.java 源代码,内容仅作参考
package od;
import a3.b0;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.Log;
import android.view.View;
import androidx.appcompat.widget.g4;
import androidx.cardview.widget.CardView;
import androidx.compose.ui.platform.m0;
import androidx.datastore.preferences.protobuf.c0;
import androidx.datastore.preferences.protobuf.f0;
import androidx.fragment.app.u;
import androidx.lifecycle.k0;
import cd.a1;
import cd.b1;
import cd.c1;
import cd.d1;
import cd.e0;
import cd.f1;
import cd.h0;
import cd.h1;
import cd.i1;
import cd.j0;
import cd.j1;
import cd.k1;
import cd.l0;
import cd.m;
import cd.m1;
import cd.n1;
import cd.o;
import cd.o0;
import cd.o1;
import cd.p0;
import cd.p1;
import cd.q0;
import cd.q1;
import cd.r;
import cd.r0;
import cd.r1;
import cd.s1;
import cd.v;
import cd.w;
import cd.y;
import cd.y0;
import cd.z0;
import com.google.android.gms.internal.measurement.w6;
import com.google.android.gms.internal.measurement.y6;
import com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar;
import f0.h2;
import f0.z;
import i1.s0;
import i1.t0;
import ib.j2;
import ib.l2;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.ProtocolException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.logging.Logger;
import kotlin.jvm.internal.j;
import kotlinx.coroutines.flow.n0;
import lf.a0;
import lf.k;
import lf.n;
import lf.p;
import lf.t;
import ne.l;
import ne.q;
import ne.s;
import ne.x;
import o5.d0;
import org.json.JSONException;
import org.json.JSONObject;
import org.litepal.BuildConfig;
import t.l1;
import u.x0;
import v0.g0;
import w.e1;
import w.g1;
import w.i0;
public final class e implements gd.c, c4.d, g0, qe.g, t0, j2, j3.b, lf.b, k, j3.k, x2.f, d0, nd.a, uc.e, l1, x0 {
public static e f14150a;
public static e f14152c;
public static final e f14151b = new e();
public static final e f14153d = new e();
public static final gc.e f14154e = new gc.e(12);
public static final e f14155f = new e();
public static final e f14156g = new e();
public static final e f14157h = new e();
public static final e f14158i = new e();
public static final n0 f14159j = new n0(0);
public static final n0 f14160k = new n0(1);
public static final e f14161l = new e();
public static final e f14162m = new e();
public static final e f14163n = new e();
public static final e f14164o = new e();
public static final e f14165p = new e();
public static final e f14166q = new e();
public static final e f14167r = new e();
public static final e f14168s = new e();
public e() {
}
public static int A(int i10, int i11, int i12) {
if ((i11 & 8) != 0) {
i10--;
}
if (i12 <= i10) {
return i10 - i12;
}
throw new IOException(j2.g.i("PROTOCOL_ERROR padding ", i12, " > remaining length ", i10));
}
public static n C(String... strArr) {
int i10 = 0;
if (strArr.length % 2 == 0) {
String[] strArr2 = (String[]) strArr.clone();
int length = strArr2.length;
int i11 = 0;
while (i11 < length) {
int i12 = i11 + 1;
String str = strArr2[i11];
if (!(str != null)) {
throw new IllegalArgumentException("Headers cannot be null".toString());
}
strArr2[i11] = gf.i.k1(str).toString();
i11 = i12;
}
int C = bb.g.C(0, strArr2.length - 1, 2);
if (C >= 0) {
while (true) {
int i13 = i10 + 2;
String str2 = strArr2[i10];
String str3 = strArr2[i10 + 1];
p(str2);
r(str3, str2);
if (i10 == C) {
break;
}
i10 = i13;
}
}
return new n(strArr2);
}
throw new IllegalArgumentException("Expected alternating header names and values".toString());
}
public static qf.h D(String statusLine) {
int i10;
String str;
j.C(statusLine, "statusLine");
boolean f12 = gf.i.f1(statusLine, "HTTP/1.", false);
t tVar = t.HTTP_1_0;
if (f12) {
i10 = 9;
if (statusLine.length() >= 9 && statusLine.charAt(8) == ' ') {
int charAt = statusLine.charAt(7) - '0';
if (charAt != 0) {
if (charAt == 1) {
tVar = t.HTTP_1_1;
} else {
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
}
} else {
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
} else if (gf.i.f1(statusLine, "ICY ", false)) {
i10 = 4;
} else {
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
int i11 = i10 + 3;
if (statusLine.length() >= i11) {
try {
String substring = statusLine.substring(i10, i11);
j.B(substring, "this as java.lang.String…ing(startIndex, endIndex)");
int parseInt = Integer.parseInt(substring);
if (statusLine.length() > i11) {
if (statusLine.charAt(i11) == ' ') {
str = statusLine.substring(i10 + 4);
j.B(str, "this as java.lang.String).substring(startIndex)");
} else {
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
} else {
str = BuildConfig.FLAVOR;
}
return new qf.h(tVar, parseInt, str);
} catch (NumberFormatException unused) {
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
}
throw new ProtocolException(j.u0(statusLine, "Unexpected status line: "));
}
public static String E(String str, int i10, int i11, boolean z10, int i12) {
int i13;
if ((i12 & 1) != 0) {
i10 = 0;
}
if ((i12 & 2) != 0) {
i11 = str.length();
}
if ((i12 & 4) != 0) {
z10 = false;
}
j.C(str, "<this>");
int i14 = i10;
while (i14 < i11) {
int i15 = i14 + 1;
char charAt = str.charAt(i14);
if (charAt != '%' && (charAt != '+' || !z10)) {
i14 = i15;
} else {
xf.e eVar = new xf.e();
eVar.k0(i10, str, i14);
while (i14 < i11) {
int codePointAt = str.codePointAt(i14);
if (codePointAt == 37 && (i13 = i14 + 2) < i11) {
int p10 = mf.b.p(str.charAt(i14 + 1));
int p11 = mf.b.p(str.charAt(i13));
if (p10 != -1 && p11 != -1) {
eVar.g0((p10 << 4) + p11);
i14 = Character.charCount(codePointAt) + i13;
}
eVar.m0(codePointAt);
i14 += Character.charCount(codePointAt);
} else {
if (codePointAt == 43 && z10) {
eVar.g0(32);
i14++;
}
eVar.m0(codePointAt);
i14 += Character.charCount(codePointAt);
}
}
return eVar.I();
}
}
String substring = str.substring(i10, i11);
j.B(substring, "this as java.lang.String…ing(startIndex, endIndex)");
return substring;
}
public static void G(Context context, p8.a data) {
j.C(context, "context");
j.C(data, "data");
SharedPreferences sharedPreferences = context.getSharedPreferences("key_download_id", 0);
j.B(sharedPreferences, "context.getSharedPrefere…ODE_PRIVATE\n )");
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putString("key_request_var", data.f14481a);
edit.putString("key_request_var2", data.f14483c);
edit.putString("key_notix_token", data.f14485e);
edit.putString("key_notix_app_id", data.f14482b);
Long l10 = data.f14486f;
edit.putLong("key_i_zone_id", l10 != null ? l10.longValue() : -1L);
Long l11 = data.f14487g;
edit.putLong("key_b_zone_id", l11 != null ? l11.longValue() : -1L);
edit.putString("key_subid_key", data.f14484d);
edit.putString("key_data_raw", data.f14489i).commit();
}
public static void I(Activity activity, ye.a aVar) {
j.C(activity, "activity");
k0 k0Var = k0.f2146i;
j.B(k0Var, "get()");
nc.b.n(com.bumptech.glide.f.a0(k0Var), null, 0, new c5.a(activity, aVar, null), 3);
}
public static ArrayList J(String str) {
String str2;
ArrayList arrayList = new ArrayList();
int i10 = 0;
while (i10 <= str.length()) {
int O0 = gf.i.O0(str, '&', i10, false, 4);
if (O0 == -1) {
O0 = str.length();
}
int O02 = gf.i.O0(str, '=', i10, false, 4);
if (O02 == -1 || O02 > O0) {
String substring = str.substring(i10, O0);
j.B(substring, "this as java.lang.String…ing(startIndex, endIndex)");
arrayList.add(substring);
str2 = null;
} else {
String substring2 = str.substring(i10, O02);
j.B(substring2, "this as java.lang.String…ing(startIndex, endIndex)");
arrayList.add(substring2);
str2 = str.substring(O02 + 1, O0);
j.B(str2, "this as java.lang.String…ing(startIndex, endIndex)");
}
arrayList.add(str2);
i10 = O0 + 1;
}
return arrayList;
}
public static final List k(h2 h2Var, int i10, h2 h2Var2, boolean z10, boolean z11) {
boolean z12;
int i11;
int i12;
int i13;
int i14;
s sVar;
boolean z13;
int j9;
boolean z14;
int i15;
int i16;
boolean z15;
int o10 = h2Var.o(i10);
int i17 = i10 + o10;
int g4 = h2Var.g(h2Var.f8343b, h2Var.n(i10));
int g10 = h2Var.g(h2Var.f8343b, h2Var.n(i17));
int i18 = g10 - g4;
if (i10 >= 0) {
if ((h2Var.f8343b[(h2Var.n(i10) * 5) + 1] & 201326592) != 0) {
z15 = true;
} else {
z15 = false;
}
if (z15) {
z12 = true;
h2Var2.q(o10);
h2Var2.r(i18, h2Var2.f8359r);
if (h2Var.f8346e < i17) {
h2Var.v(i17);
}
if (h2Var.f8351j < g10) {
h2Var.w(g10, i17);
}
int[] iArr = h2Var2.f8343b;
int i19 = h2Var2.f8359r;
int i20 = i19 * 5;
l.T(i20, i10 * 5, i17 * 5, h2Var.f8343b, iArr);
Object[] objArr = h2Var2.f8344c;
int i21 = h2Var2.f8349h;
l.U(h2Var.f8344c, objArr, i21, g4, g10);
int i22 = h2Var2.f8360s;
iArr[i20 + 2] = i22;
int i23 = i19 - i10;
i11 = i19 + o10;
int g11 = i21 - h2Var2.g(iArr, i19);
int i24 = h2Var2.f8353l;
int i25 = h2Var2.f8352k;
int length = objArr.length;
int i26 = i24;
boolean z16 = z12;
i12 = i19;
while (i12 < i11) {
if (i12 != i19) {
int i27 = (i12 * 5) + 2;
iArr[i27] = iArr[i27] + i23;
}
int i28 = i21;
int g12 = h2Var2.g(iArr, i12) + g11;
if (i26 < i12) {
i15 = i11;
i16 = 0;
} else {
i15 = i11;
i16 = h2Var2.f8351j;
}
if (g12 > i16) {
g12 = -(((length - i25) - g12) + 1);
}
iArr[(i12 * 5) + 4] = g12;
if (i12 == i26) {
i26++;
}
i12++;
i11 = i15;
i21 = i28;
}
int i29 = i21;
int i30 = i11;
h2Var2.f8353l = i26;
i13 = ad.f.i(h2Var.f8345d, i10, h2Var.m());
i14 = ad.f.i(h2Var.f8345d, i17, h2Var.m());
if (i13 >= i14) {
ArrayList arrayList = h2Var.f8345d;
ArrayList arrayList2 = new ArrayList(i14 - i13);
for (int i31 = i13; i31 < i14; i31++) {
Object obj = arrayList.get(i31);
j.B(obj, "sourceAnchors[anchorIndex]");
f0.c cVar = (f0.c) obj;
cVar.f8274a += i23;
arrayList2.add(cVar);
}
h2Var2.f8345d.addAll(ad.f.i(h2Var2.f8345d, h2Var2.f8359r, h2Var2.m()), arrayList2);
arrayList.subList(i13, i14).clear();
sVar = arrayList2;
} else {
sVar = s.f13751a;
}
int y5 = h2Var.y(i10);
if (!z10) {
if (y5 >= 0) {
z14 = true;
} else {
z14 = false;
}
if (z14) {
h2Var.J();
h2Var.a(y5 - h2Var.f8359r);
h2Var.J();
}
h2Var.a(i10 - h2Var.f8359r);
z13 = h2Var.B();
if (z14) {
h2Var.G();
h2Var.i();
h2Var.G();
h2Var.i();
}
} else {
boolean C = h2Var.C(i10, o10);
h2Var.D(g4, i18, i10 - 1);
z13 = C;
}
if (!(!z13)) {
int i32 = h2Var2.f8355n;
if (ad.f.h(iArr, i19)) {
j9 = 1;
} else {
j9 = ad.f.j(iArr, i19);
}
h2Var2.f8355n = i32 + j9;
if (z11) {
h2Var2.f8359r = i30;
h2Var2.f8349h = i29 + i18;
}
if (z16) {
h2Var2.N(i22);
}
return sVar;
}
v4.f.g("Unexpectedly removed anchors".toString());
throw null;
}
}
z12 = false;
h2Var2.q(o10);
h2Var2.r(i18, h2Var2.f8359r);
if (h2Var.f8346e < i17) {
}
if (h2Var.f8351j < g10) {
}
int[] iArr2 = h2Var2.f8343b;
int i192 = h2Var2.f8359r;
int i202 = i192 * 5;
l.T(i202, i10 * 5, i17 * 5, h2Var.f8343b, iArr2);
Object[] objArr2 = h2Var2.f8344c;
int i212 = h2Var2.f8349h;
l.U(h2Var.f8344c, objArr2, i212, g4, g10);
int i222 = h2Var2.f8360s;
iArr2[i202 + 2] = i222;
int i232 = i192 - i10;
i11 = i192 + o10;
int g112 = i212 - h2Var2.g(iArr2, i192);
int i242 = h2Var2.f8353l;
int i252 = h2Var2.f8352k;
int length2 = objArr2.length;
int i262 = i242;
boolean z162 = z12;
i12 = i192;
while (i12 < i11) {
}
int i292 = i212;
int i302 = i11;
h2Var2.f8353l = i262;
i13 = ad.f.i(h2Var.f8345d, i10, h2Var.m());
i14 = ad.f.i(h2Var.f8345d, i17, h2Var.m());
if (i13 >= i14) {
}
int y52 = h2Var.y(i10);
if (!z10) {
}
if (!(!z13)) {
}
}
public static final w.d l(int i10, String str) {
WeakHashMap weakHashMap = g1.f17500u;
return new w.d(i10, str);
}
public static final e1 m(int i10, String str) {
WeakHashMap weakHashMap = g1.f17500u;
return new e1(new i0(0, 0, 0, 0), str);
}
public static b0 n(JSONObject jSONObject) {
return new b0(jSONObject.optInt("max_custom_exception_events", 8));
}
public static String o(String str, int i10, int i11, String str2, boolean z10, boolean z11, boolean z12, boolean z13, int i12) {
int i13;
int i14;
boolean z14;
boolean z15;
boolean z16;
String str3;
boolean z17 = false;
if ((i12 & 1) != 0) {
i13 = 0;
} else {
i13 = i10;
}
if ((i12 & 2) != 0) {
i14 = str.length();
} else {
i14 = i11;
}
if ((i12 & 8) != 0) {
z14 = false;
} else {
z14 = z10;
}
if ((i12 & 16) != 0) {
z15 = false;
} else {
z15 = z11;
}
if ((i12 & 32) != 0) {
z16 = false;
} else {
z16 = z12;
}
if ((i12 & 64) == 0) {
z17 = z13;
}
j.C(str, "<this>");
int i15 = i13;
while (i15 < i14) {
int codePointAt = str.codePointAt(i15);
int i16 = 43;
if (codePointAt >= 32 && codePointAt != 127 && ((codePointAt < 128 || z17) && !gf.i.H0(str2, (char) codePointAt) && ((codePointAt != 37 || (z14 && (!z15 || z(i15, str, i14)))) && (codePointAt != 43 || !z16)))) {
i15 += Character.charCount(codePointAt);
} else {
xf.e eVar = new xf.e();
eVar.k0(i13, str, i15);
xf.e eVar2 = null;
while (i15 < i14) {
int codePointAt2 = str.codePointAt(i15);
if (!z14 || (codePointAt2 != 9 && codePointAt2 != 10 && codePointAt2 != 12 && codePointAt2 != 13)) {
if (codePointAt2 == i16 && z16) {
if (z14) {
str3 = "+";
} else {
str3 = "%2B";
}
eVar.l0(str3);
} else if (codePointAt2 >= 32 && codePointAt2 != 127 && ((codePointAt2 < 128 || z17) && !gf.i.H0(str2, (char) codePointAt2) && (codePointAt2 != 37 || (z14 && (!z15 || z(i15, str, i14)))))) {
eVar.m0(codePointAt2);
} else {
if (eVar2 == null) {
eVar2 = new xf.e();
}
eVar2.m0(codePointAt2);
while (!eVar2.C()) {
int readByte = eVar2.readByte() & 255;
eVar.g0(37);
char[] cArr = p.f12986j;
eVar.g0(cArr[(readByte >> 4) & 15]);
eVar.g0(cArr[readByte & 15]);
}
}
}
i15 += Character.charCount(codePointAt2);
i16 = 43;
}
return eVar.I();
}
}
String substring = str.substring(i13, i14);
j.B(substring, "this as java.lang.String…ing(startIndex, endIndex)");
return substring;
}
public static void p(String str) {
if (!(str.length() > 0)) {
throw new IllegalArgumentException("name is empty".toString());
}
int length = str.length();
int i10 = 0;
while (i10 < length) {
int i11 = i10 + 1;
char charAt = str.charAt(i10);
if (!('!' <= charAt && charAt < 127)) {
throw new IllegalArgumentException(mf.b.g("Unexpected char %#04x at %d in header name: %s", Integer.valueOf(charAt), Integer.valueOf(i10), str).toString());
}
i10 = i11;
}
}
public static void q(int i10, int i11, int i12) {
if (i10 >= 0 && i11 <= i12) {
if (i10 <= i11) {
return;
}
throw new IllegalArgumentException(j2.g.i("fromIndex: ", i10, " > toIndex: ", i11));
}
throw new IndexOutOfBoundsException("fromIndex: " + i10 + ", toIndex: " + i11 + ", size: " + i12);
}
public static void r(String str, String str2) {
boolean z10;
int length = str.length();
int i10 = 0;
while (i10 < length) {
int i11 = i10 + 1;
char charAt = str.charAt(i10);
if (charAt != '\t') {
if (!(' ' <= charAt && charAt < 127)) {
z10 = false;
if (z10) {
throw new IllegalArgumentException(j.u0(mf.b.o(str2) ? BuildConfig.FLAVOR : j.u0(str, ": "), mf.b.g("Unexpected char %#04x at %d in %s value", Integer.valueOf(charAt), Integer.valueOf(i10), str2)).toString());
}
i10 = i11;
}
}
z10 = true;
if (z10) {
}
}
}
public static g1 t(f0.j jVar) {
g1 g1Var;
z zVar = (z) jVar;
zVar.Y(-1366542614);
View view = (View) zVar.k(m0.f1369f);
WeakHashMap weakHashMap = g1.f17500u;
synchronized (weakHashMap) {
Object obj = weakHashMap.get(view);
if (obj == null) {
obj = new g1(view);
weakHashMap.put(view, obj);
}
g1Var = (g1) obj;
}
bb.g.d(g1Var, new t.n(g1Var, 7, view), zVar);
zVar.r(false);
return g1Var;
}
public static int u(String scheme) {
j.C(scheme, "scheme");
if (j.u(scheme, "http")) {
return 80;
}
return j.u(scheme, "https") ? 443 : -1;
}
public static a0 v(String javaName) {
j.C(javaName, "javaName");
int hashCode = javaName.hashCode();
if (hashCode != 79201641) {
if (hashCode != 79923350) {
switch (hashCode) {
case -503070503:
if (javaName.equals("TLSv1.1")) {
return a0.TLS_1_1;
}
break;
case -503070502:
if (javaName.equals("TLSv1.2")) {
return a0.TLS_1_2;
}
break;
case -503070501:
if (javaName.equals("TLSv1.3")) {
return a0.TLS_1_3;
}
break;
}
} else if (javaName.equals("TLSv1")) {
return a0.TLS_1_0;
}
} else if (javaName.equals("SSLv3")) {
return a0.SSL_3_0;
}
throw new IllegalArgumentException(j.u0(javaName, "Unexpected TLS version: "));
}
public static p8.a x(Context context) {
j.C(context, "context");
SharedPreferences sharedPreferences = context.getSharedPreferences("key_download_id", 0);
j.B(sharedPreferences, "context.getSharedPrefere…ODE_PRIVATE\n )");
String string = sharedPreferences.getString("key_request_var", null);
if (string == null || j.u(string, "undefined")) {
return null;
}
String string2 = sharedPreferences.getString("key_data_raw", null);
String string3 = sharedPreferences.getString("key_notix_app_id", null);
String string4 = sharedPreferences.getString("key_request_var2", null);
String string5 = sharedPreferences.getString("key_subid_key", null);
String string6 = sharedPreferences.getString("key_notix_token", null);
Long valueOf = Long.valueOf(sharedPreferences.getLong("key_i_zone_id", -1L));
if (!(valueOf.longValue() != -1)) {
valueOf = null;
}
Long valueOf2 = Long.valueOf(sharedPreferences.getLong("key_b_zone_id", -1L));
return new p8.a(string, string3, string4, string5, string6, valueOf, valueOf2.longValue() != -1 ? valueOf2 : null, string2 != null ? new JSONObject(string2).getString("query_raw") : null, string2);
}
public static boolean z(int i10, String str, int i11) {
int i12 = i10 + 2;
return i12 < i11 && str.charAt(i10) == '%' && mf.b.p(str.charAt(i10 + 1)) != -1 && mf.b.p(str.charAt(i12)) != -1;
}
public List B(String hostname) {
j.C(hostname, "hostname");
try {
InetAddress[] allByName = InetAddress.getAllByName(hostname);
j.B(allByName, "getAllByName(hostname)");
return l.f0(allByName);
} catch (NullPointerException e10) {
UnknownHostException unknownHostException = new UnknownHostException(j.u0(hostname, "Broken system behaviour for dns lookup of "));
unknownHostException.initCause(e10);
throw unknownHostException;
}
}
public m3.a F(FileInputStream fileInputStream) {
int i10;
m3.d dVar;
Object valueOf;
try {
l3.d n6 = l3.d.n(fileInputStream);
m3.a aVar = new m3.a(false);
m3.e[] pairs = (m3.e[]) Arrays.copyOf(new m3.e[0], 0);
j.C(pairs, "pairs");
aVar.a();
if (pairs.length <= 0) {
Map l10 = n6.l();
j.B(l10, "preferencesProto.preferencesMap");
for (Map.Entry entry : l10.entrySet()) {
String name = (String) entry.getKey();
l3.h value = (l3.h) entry.getValue();
j.B(name, "name");
j.B(value, "value");
int z10 = value.z();
if (z10 == 0) {
i10 = -1;
} else {
i10 = m3.h.f13209a[s.j.g(z10)];
}
switch (i10) {
case -1:
throw new j3.a("Value case is null.");
case 0:
default:
throw new u((Object) null);
case 1:
dVar = new m3.d(name);
valueOf = Boolean.valueOf(value.r());
break;
case 2:
dVar = new m3.d(name);
valueOf = Float.valueOf(value.u());
break;
case 3:
dVar = new m3.d(name);
valueOf = Double.valueOf(value.t());
break;
case 4:
dVar = new m3.d(name);
valueOf = Integer.valueOf(value.v());
break;
case 5:
dVar = new m3.d(name);
valueOf = Long.valueOf(value.w());
break;
case 6:
dVar = new m3.d(name);
valueOf = value.x();
j.B(valueOf, "value.string");
break;
case 7:
dVar = new m3.d(name);
c0 m8 = value.y().m();
j.B(m8, "value.stringSet.stringsList");
valueOf = q.F1(m8);
break;
case 8:
throw new j3.a("Value not set.");
}
aVar.b(dVar, valueOf);
}
Map unmodifiableMap = Collections.unmodifiableMap(aVar.f13199a);
j.B(unmodifiableMap, "unmodifiableMap(preferencesMap)");
return new m3.a(x.i0(unmodifiableMap), true);
}
m3.e eVar = pairs[0];
throw null;
} catch (f0 e10) {
throw new j3.a(e10);
}
}
public void H(v4.l lVar, float f2) {
float f10;
p.a aVar = (p.a) ((Drawable) lVar.f17126a);
boolean useCompatPadding = ((CardView) lVar.f17127b).getUseCompatPadding();
boolean preventCornerOverlap = ((CardView) lVar.f17127b).getPreventCornerOverlap();
if (f2 != aVar.f14232e || aVar.f14233f != useCompatPadding || aVar.f14234g != preventCornerOverlap) {
aVar.f14232e = f2;
aVar.f14233f = useCompatPadding;
aVar.f14234g = preventCornerOverlap;
aVar.c(null);
aVar.invalidateSelf();
}
if (!((CardView) lVar.f17127b).getUseCompatPadding()) {
lVar.h(0, 0, 0, 0);
return;
}
p.a aVar2 = (p.a) ((Drawable) lVar.f17126a);
float f11 = aVar2.f14232e;
float f12 = aVar2.f14228a;
if (((CardView) lVar.f17127b).getPreventCornerOverlap()) {
f10 = (float) (((1.0d - p.b.f14239a) * f12) + f11);
} else {
int i10 = p.b.f14240b;
f10 = f11;
}
int ceil = (int) Math.ceil(f10);
int ceil2 = (int) Math.ceil(p.b.a(f11, f12, ((CardView) lVar.f17127b).getPreventCornerOverlap()));
lVar.h(ceil, ceil2, ceil, ceil2);
}
public void K(Object obj, j3.p pVar) {
l3.g A;
Map unmodifiableMap = Collections.unmodifiableMap(((m3.a) ((m3.f) obj)).f13199a);
j.B(unmodifiableMap, "unmodifiableMap(preferencesMap)");
l3.b m8 = l3.d.m();
for (Map.Entry entry : unmodifiableMap.entrySet()) {
Object value = entry.getValue();
String str = ((m3.d) entry.getKey()).f13205a;
if (value instanceof Boolean) {
A = l3.h.A();
boolean booleanValue = ((Boolean) value).booleanValue();
A.c();
l3.h.o((l3.h) A.f1767b, booleanValue);
} else if (value instanceof Float) {
A = l3.h.A();
float floatValue = ((Number) value).floatValue();
A.c();
l3.h.p((l3.h) A.f1767b, floatValue);
} else if (value instanceof Double) {
A = l3.h.A();
double doubleValue = ((Number) value).doubleValue();
A.c();
l3.h.m((l3.h) A.f1767b, doubleValue);
} else if (value instanceof Integer) {
A = l3.h.A();
int intValue = ((Number) value).intValue();
A.c();
l3.h.q((l3.h) A.f1767b, intValue);
} else if (value instanceof Long) {
A = l3.h.A();
long longValue = ((Number) value).longValue();
A.c();
l3.h.j((l3.h) A.f1767b, longValue);
} else if (value instanceof String) {
A = l3.h.A();
A.c();
l3.h.k((l3.h) A.f1767b, (String) value);
} else if (value instanceof Set) {
A = l3.h.A();
l3.e n6 = l3.f.n();
n6.c();
l3.f.k((l3.f) n6.f1767b, (Set) value);
A.c();
l3.h.l((l3.h) A.f1767b, n6);
} else {
throw new IllegalStateException(j.u0(value.getClass().getName(), "PreferencesSerializer does not support type: "));
}
m8.getClass();
str.getClass();
m8.c();
l3.d.k((l3.d) m8.f1767b).put(str, (l3.h) A.a());
}
l3.d dVar = (l3.d) m8.a();
int a10 = dVar.a();
Logger logger = androidx.datastore.preferences.protobuf.q.f1709d;
if (a10 > 4096) {
a10 = 4096;
}
androidx.datastore.preferences.protobuf.p pVar2 = new androidx.datastore.preferences.protobuf.p(pVar, a10);
dVar.c(pVar2);
if (pVar2.f1702h > 0) {
pVar2.e0();
}
}
@Override
public Object a() {
List list = l2.f10492a;
((y6) w6.f6220b.a()).getClass();
return Long.valueOf(((Long) y6.f6266v.b()).longValue());
}
@Override
public bb.g b(long j9, b2.i layoutDirection, b2.b density) {
j.C(layoutDirection, "layoutDirection");
j.C(density, "density");
float w10 = density.w(fa.a.f8938a);
return new v0.x(new u0.d(-w10, 0.0f, u0.f.d(j9) + w10, u0.f.b(j9)));
}
@Override
public void c(k1.g0 g0Var) {
j.C(g0Var, "<this>");
g0Var.b();
}
@Override
public boolean d() {
return true;
}
@Override
public Object e(g4 g4Var) {
return AnalyticsConnectorRegistrar.lambda$getComponents$0(g4Var);
}
@Override
public gd.a f(e eVar, JSONObject jSONObject) {
JSONObject jSONObject2;
long currentTimeMillis;
jSONObject.optInt("settings_version", 0);
int optInt = jSONObject.optInt("cache_duration", 3600);
double optDouble = jSONObject.optDouble("on_demand_upload_rate_per_minute", 10.0d);
double optDouble2 = jSONObject.optDouble("on_demand_backoff_base", 1.2d);
int optInt2 = jSONObject.optInt("on_demand_backoff_step_duration_seconds", 60);
if (jSONObject.has("session")) {
jSONObject2 = jSONObject.getJSONObject("session");
} else {
jSONObject2 = new JSONObject();
}
b0 n6 = n(jSONObject2);
JSONObject jSONObject3 = jSONObject.getJSONObject("features");
y8.l lVar = new y8.l(jSONObject3.optBoolean("collect_reports", true), jSONObject3.optBoolean("collect_anrs", false), jSONObject3.optBoolean("collect_build_ids", false));
long j9 = optInt;
if (jSONObject.has("expires_at")) {
currentTimeMillis = jSONObject.optLong("expires_at");
} else {
eVar.getClass();
currentTimeMillis = (j9 * 1000) + System.currentTimeMillis();
}
return new gd.a(currentTimeMillis, n6, lVar, optDouble, optDouble2, optInt2);
}
@Override
public c4.e g(c4.c cVar) {
return new d4.g(cVar.f3041a, cVar.f3042b, cVar.f3043c, cVar.f3044d, cVar.f3045e);
}
@Override
public void h(s0 slotIds) {
j.C(slotIds, "slotIds");
slotIds.clear();
}
@Override
public Object i(p5.b bVar, float f2) {
boolean z10 = bVar.N() == 1;
if (z10) {
bVar.a();
}
double F = bVar.F();
double F2 = bVar.F();
double F3 = bVar.F();
double F4 = bVar.N() == 7 ? bVar.F() : 1.0d;
if (z10) {
bVar.h();
}
if (F <= 1.0d && F2 <= 1.0d && F3 <= 1.0d) {
F *= 255.0d;
F2 *= 255.0d;
F3 *= 255.0d;
if (F4 <= 1.0d) {
F4 *= 255.0d;
}
}
return Integer.valueOf(Color.argb((int) F4, (int) F, (int) F2, (int) F3));
}
@Override
public boolean j(Object obj, Object obj2) {
return false;
}
public void s(kd.a aVar) {
cd.d dVar = cd.d.f3246a;
ld.d dVar2 = (ld.d) aVar;
dVar2.a(s1.class, dVar);
dVar2.a(w.class, dVar);
cd.j jVar = cd.j.f3316a;
dVar2.a(r1.class, jVar);
dVar2.a(cd.d0.class, jVar);
cd.g gVar = cd.g.f3278a;
dVar2.a(d1.class, gVar);
dVar2.a(e0.class, gVar);
cd.h hVar = cd.h.f3295a;
dVar2.a(c1.class, hVar);
dVar2.a(cd.f0.class, hVar);
v vVar = v.f3433a;
dVar2.a(q1.class, vVar);
dVar2.a(cd.s0.class, vVar);
cd.u uVar = cd.u.f3422a;
dVar2.a(p1.class, uVar);
dVar2.a(r0.class, uVar);
cd.i iVar = cd.i.f3301a;
dVar2.a(cd.e1.class, iVar);
dVar2.a(cd.g0.class, iVar);
cd.s sVar = cd.s.f3408a;
dVar2.a(o1.class, sVar);
dVar2.a(h0.class, sVar);
cd.k kVar = cd.k.f3333a;
dVar2.a(cd.l1.class, kVar);
dVar2.a(cd.i0.class, kVar);
m mVar = m.f3353a;
dVar2.a(k1.class, mVar);
dVar2.a(j0.class, mVar);
cd.p pVar = cd.p.f3380a;
dVar2.a(j1.class, pVar);
dVar2.a(cd.n0.class, pVar);
cd.q qVar = cd.q.f3390a;
dVar2.a(i1.class, qVar);
dVar2.a(o0.class, qVar);
cd.n nVar = cd.n.f3362a;
dVar2.a(cd.g1.class, nVar);
dVar2.a(l0.class, nVar);
cd.b bVar = cd.b.f3214a;
dVar2.a(y0.class, bVar);
dVar2.a(cd.x.class, bVar);
cd.a aVar2 = cd.a.f3208a;
dVar2.a(cd.x0.class, aVar2);
dVar2.a(y.class, aVar2);
o oVar = o.f3371a;
dVar2.a(h1.class, oVar);
dVar2.a(cd.m0.class, oVar);
cd.l lVar = cd.l.f3343a;
dVar2.a(f1.class, lVar);
dVar2.a(cd.k0.class, lVar);
cd.c cVar = cd.c.f3226a;
dVar2.a(z0.class, cVar);
dVar2.a(cd.z.class, cVar);
r rVar = r.f3397a;
dVar2.a(m1.class, rVar);
dVar2.a(p0.class, rVar);
cd.t tVar = cd.t.f3416a;
dVar2.a(n1.class, tVar);
dVar2.a(q0.class, tVar);
cd.e eVar = cd.e.f3266a;
dVar2.a(b1.class, eVar);
dVar2.a(cd.a0.class, eVar);
cd.f fVar = cd.f.f3275a;
dVar2.a(a1.class, fVar);
dVar2.a(cd.b0.class, fVar);
}
public Object w(Context context, qe.d dVar) {
q8.a aVar;
Object obj;
re.a aVar2;
int i10;
re.a aVar3;
e eVar;
re.a aVar4;
if (dVar instanceof q8.a) {
aVar = (q8.a) dVar;
int i11 = aVar.f14874t;
if ((i11 & Integer.MIN_VALUE) != 0) {
aVar.f14874t = i11 - Integer.MIN_VALUE;
obj = aVar.f14872r;
aVar2 = re.a.COROUTINE_SUSPENDED;
i10 = aVar.f14874t;
if (i10 == 0) {
if (i10 != 1) {
if (i10 == 2) {
bb.g.T(obj);
return obj;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
eVar = aVar.f14871q;
bb.g.T(obj);
aVar4 = obj;
} else {
bb.g.T(obj);
k8.a aVar5 = k8.a.f12185a;
k8.a.e().a("start_parse_config_json", "Start parse", null);
aVar.f14871q = this;
aVar.f14874t = 1;
try {
InputStream open = context.getAssets().open("config.json");
j.B(open, "assetManager.open(\"config.json\")");
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(Math.max(8192, open.available()));
byte[] bArr = new byte[8192];
while (true) {
int read = open.read(bArr);
if (read < 0) {
break;
}
byteArrayOutputStream.write(bArr, 0, read);
}
byte[] byteArray = byteArrayOutputStream.toByteArray();
j.B(byteArray, "buffer.toByteArray()");
JSONObject jSONObject = new JSONObject(new String(byteArray, gf.a.f9491a));
k8.a aVar6 = k8.a.f12185a;
e8.p e10 = k8.a.e();
e10.a("parsed_config_json", "parsed json " + jSONObject, bb.g.L(new me.e("json", jSONObject.toString())));
aVar3 = jSONObject;
} catch (Exception e11) {
k8.a aVar7 = k8.a.f12185a;
k8.a.e().a("error_parse_config_json", "error with parse", bb.g.L(new me.e("error", e11.getMessage())));
Log.d("APPLAB DownloadId", "Failed to get asset, " + e11);
aVar3 = null;
}
if (aVar3 == aVar2) {
return aVar2;
}
eVar = this;
aVar4 = aVar3;
}
aVar.f14871q = null;
aVar.f14874t = 2;
obj = eVar.y((JSONObject) aVar4, aVar);
if (obj != aVar2) {
return aVar2;
}
return obj;
}
}
aVar = new q8.a(this, dVar);
obj = aVar.f14872r;
aVar2 = re.a.COROUTINE_SUSPENDED;
i10 = aVar.f14874t;
if (i10 == 0) {
}
aVar.f14871q = null;
aVar.f14874t = 2;
obj = eVar.y((JSONObject) aVar4, aVar);
if (obj != aVar2) {
}
}
public Object y(JSONObject jSONObject, qe.d dVar) {
q8.b bVar;
int i10;
JSONObject jSONObject2;
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8;
String str9;
boolean z10;
boolean z11;
String queryParameter;
String queryParameter2;
String queryParameter3;
String queryParameter4;
String queryParameter5;
String queryParameter6;
Long valueOf;
String queryParameter7;
Long valueOf2;
String str10;
String str11;
String str12;
boolean z12;
boolean z13;
if (dVar instanceof q8.b) {
bVar = (q8.b) dVar;
int i11 = bVar.f14877s;
if ((i11 & Integer.MIN_VALUE) != 0) {
bVar.f14877s = i11 - Integer.MIN_VALUE;
Object obj = bVar.f14875q;
re.a aVar = re.a.COROUTINE_SUSPENDED;
i10 = bVar.f14877s;
boolean z14 = true;
String str13 = null;
if (i10 == 0) {
if (i10 == 1) {
bb.g.T(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} else {
bb.g.T(obj);
if (jSONObject != null) {
k8.a aVar2 = k8.a.f12185a;
h8.c d8 = k8.a.d();
bVar.f14877s = 1;
obj = d8.b("/api/v4/apk_download", 1, jSONObject, bVar);
if (obj == aVar) {
return aVar;
}
} else {
jSONObject2 = null;
Log.d("APPLABZ_TRACK_DEV", "Response from backend on POST /apk_download: " + jSONObject2);
if (jSONObject2 != null) {
try {
str = jSONObject2.getString("query_raw");
} catch (JSONException unused) {
str = null;
}
if (str != null) {
Uri parse = Uri.parse("http://google.com?" + Uri.decode(str));
Log.d("MY=== DEVVVV", "NotixPArams parse from query " + parse);
if (parse != null) {
try {
queryParameter = parse.getQueryParameter("notix_app_id");
} catch (NullPointerException unused2) {
}
if (parse != null) {
try {
queryParameter2 = parse.getQueryParameter("request_var");
} catch (NullPointerException unused3) {
}
if (parse != null) {
try {
queryParameter3 = parse.getQueryParameter("request_var_2");
} catch (NullPointerException unused4) {
}
if (parse != null) {
try {
queryParameter4 = parse.getQueryParameter("user_subid");
} catch (NullPointerException unused5) {
}
if (parse != null) {
try {
queryParameter5 = parse.getQueryParameter("notix_token");
} catch (NullPointerException unused6) {
}
if (parse != null) {
try {
queryParameter6 = parse.getQueryParameter("i_zone_id");
} catch (NullPointerException unused7) {
} catch (NumberFormatException unused8) {
Log.i("DEVVVV", "Bad i_zone_id format " + parse.getQueryParameter("i_zone_id"));
}
if (queryParameter6 != null) {
valueOf = Long.valueOf(Long.parseLong(queryParameter6));
if (parse != null) {
try {
queryParameter7 = parse.getQueryParameter("b_zone_id");
} catch (NullPointerException unused9) {
} catch (NumberFormatException unused10) {
Log.i("DEVVVV", "Bad b_zone_id format " + parse.getQueryParameter("b_zone_id"));
}
if (queryParameter7 != null) {
valueOf2 = Long.valueOf(Long.parseLong(queryParameter7));
if (queryParameter2 != null) {
if (queryParameter2.length() == 0) {
z13 = true;
} else {
z13 = false;
}
if (!z13) {
str10 = queryParameter2;
if (queryParameter != null) {
if (queryParameter.length() == 0) {
z12 = true;
} else {
z12 = false;
}
if (!z12) {
str11 = queryParameter;
if (queryParameter5 != null) {
if (queryParameter5.length() != 0) {
z14 = false;
}
if (!z14) {
str12 = queryParameter5;
if (parse != null) {
str13 = parse.getQuery();
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
queryParameter5 = null;
if (parse != null) {
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
queryParameter4 = null;
if (parse != null) {
}
queryParameter5 = null;
if (parse != null) {
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
queryParameter3 = null;
if (parse != null) {
}
queryParameter4 = null;
if (parse != null) {
}
queryParameter5 = null;
if (parse != null) {
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
queryParameter2 = null;
if (parse != null) {
}
queryParameter3 = null;
if (parse != null) {
}
queryParameter4 = null;
if (parse != null) {
}
queryParameter5 = null;
if (parse != null) {
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
queryParameter = null;
if (parse != null) {
}
queryParameter2 = null;
if (parse != null) {
}
queryParameter3 = null;
if (parse != null) {
}
queryParameter4 = null;
if (parse != null) {
}
queryParameter5 = null;
if (parse != null) {
}
valueOf = null;
if (parse != null) {
}
valueOf2 = null;
if (queryParameter2 != null) {
}
str10 = "undefined";
if (queryParameter != null) {
}
str11 = null;
if (queryParameter5 != null) {
}
str12 = null;
if (parse != null) {
}
return new p8.a(str10, str11, queryParameter3, queryParameter4, str12, valueOf, valueOf2, str13, jSONObject2.toString());
}
try {
str2 = jSONObject2.getString("notix_zone_id");
} catch (JSONException unused11) {
str2 = null;
}
try {
str3 = jSONObject2.getString("request_var");
} catch (JSONException unused12) {
str3 = null;
}
try {
str4 = jSONObject2.getString("request_var_2");
} catch (JSONException unused13) {
str4 = null;
}
try {
str5 = jSONObject2.getString("user_subid");
} catch (JSONException unused14) {
str5 = null;
}
try {
str6 = jSONObject2.getString("notix_token");
} catch (JSONException unused15) {
str6 = null;
}
if (str3 != null) {
if (str3.length() == 0) {
z11 = true;
} else {
z11 = false;
}
if (!z11) {
str7 = str3;
if (str2 == null) {
if (str2.length() == 0) {
z10 = true;
} else {
z10 = false;
}
if (z10) {
str2 = null;
}
str8 = str2;
} else {
str8 = null;
}
if (str6 != null) {
if (str6.length() != 0) {
z14 = false;
}
if (!z14) {
str9 = str6;
return new p8.a(str7, str8, str4, str5, str9, (Long) null, (Long) null, (String) null, 480);
}
}
str9 = null;
return new p8.a(str7, str8, str4, str5, str9, (Long) null, (Long) null, (String) null, 480);
}
}
str7 = "undefined";
if (str2 == null) {
}
if (str6 != null) {
}
str9 = null;
return new p8.a(str7, str8, str4, str5, str9, (Long) null, (Long) null, (String) null, 480);
}
return new p8.a((String) null, (String) null, (String) null, (String) null, (String) null, (Long) null, (Long) null, (String) null, 511);
}
}
jSONObject2 = (JSONObject) obj;
Log.d("APPLABZ_TRACK_DEV", "Response from backend on POST /apk_download: " + jSONObject2);
if (jSONObject2 != null) {
}
}
}
bVar = new q8.b(this, dVar);
Object obj2 = bVar.f14875q;
re.a aVar3 = re.a.COROUTINE_SUSPENDED;
i10 = bVar.f14877s;
boolean z142 = true;
String str132 = null;
if (i10 == 0) {
}
jSONObject2 = (JSONObject) obj2;
Log.d("APPLABZ_TRACK_DEV", "Response from backend on POST /apk_download: " + jSONObject2);
if (jSONObject2 != null) {
}
}
public e(int i10) {
}
public e(a4.b bVar) {
}
}