package o;

import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.Parcelable;
import android.util.Size;
import android.util.SizeF;
import android.view.View;
import com.google.android.gms.common.R;
import java.io.InputStream;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.cn0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0940cn0 {
    public static Method f;
    public static boolean g;
    public static CG l;
    public static CG m;
    public static CG n;

    /* renamed from: o, reason: collision with root package name */
    public static CG f479o;
    public static final int[] a = new int[0];
    public static final long[] b = new long[0];
    public static final Object[] c = new Object[0];
    public static final J7 d = new J7(16);
    public static final Object e = new Object();
    public static final String[] h = {"ga_conversion", "engagement_time_msec", "exposure_time", "ad_event_id", "ad_unit_id", "ga_error", "ga_error_value", "ga_error_length", "ga_event_origin", "ga_screen", "ga_screen_class", "ga_screen_id", "ga_previous_screen", "ga_previous_class", "ga_previous_id", "manual_tracking", "message_device_time", "message_id", "message_name", "message_time", "message_tracking_id", "message_type", "previous_app_version", "previous_os_version", "topic", "update_with_analytics", "previous_first_open_count", "system_app", "system_app_update", "previous_install_count", "ga_event_id", "ga_extra_params_ct", "ga_group_name", "ga_list_length", "ga_index", "ga_event_name", "campaign_info_source", "cached_campaign", "deferred_analytics_collection", "ga_session_number", "ga_session_id", "campaign_extra_referrer", "app_in_background", "firebase_feature_rollouts", "customer_type", "firebase_conversion", "firebase_error", "firebase_error_value", "firebase_error_length", "firebase_event_origin", "firebase_screen", "firebase_screen_class", "firebase_screen_id", "firebase_previous_screen", "firebase_previous_class", "firebase_previous_id", "session_number", "session_id"};
    public static final String[] i = {"_c", "_et", "_xt", "_aeid", "_ai", "_err", "_ev", "_el", "_o", "_sn", "_sc", "_si", "_pn", "_pc", "_pi", "_mst", "_ndt", "_nmid", "_nmn", "_nmt", "_nmtid", "_nmc", "_pv", "_po", "_nt", "_uwa", "_pfo", "_sys", "_sysu", "_pin", "_eid", "_epc", "_gn", "_ll", "_i", "_en", "_cis", "_cc", "_dac", "_sno", "_sid", "_cer", "_aib", "_ffr", "_ct", "_c", "_err", "_ev", "_el", "_o", "_sn", "_sc", "_si", "_pn", "_pc", "_pi", "_sno", "_sid"};
    public static final String[] j = {"items"};
    public static final String[] k = {"affiliation", "coupon", "creative_name", "creative_slot", "currency", "_ct", "discount", "index", "item_id", "item_brand", "item_category", "item_category2", "item_category3", "item_category4", "item_category5", "item_list_name", "item_list_id", "item_name", "item_variant", "location_id", "payment_type", "price", "promotion_id", "promotion_name", "quantity", "shipping", "shipping_tier", "tax", "transaction_id", "value", "item_list", "checkout_step", "checkout_option", "item_location_id"};

    public static final float A(float f2, float f3, float f4) {
        return (f4 * f3) + ((1 - f4) * f2);
    }

    public static final int B(float f2, int i2, int i3) {
        return i2 + ((int) Math.round((i3 - i2) * f2));
    }

    public static Typeface C(Configuration configuration, Typeface typeface) {
        if (Build.VERSION.SDK_INT < 31 || configuration.fontWeightAdjustment == Integer.MAX_VALUE || configuration.fontWeightAdjustment == 0 || typeface == null) {
            return null;
        }
        return Typeface.create(typeface, Co0.m(configuration.fontWeightAdjustment + typeface.getWeight(), 1, 1000), typeface.isItalic());
    }

    public static String D(String str, String str2) {
        int length = str.length() - str2.length();
        if (length < 0 || length > 1) {
            throw new IllegalArgumentException("Invalid input received");
        }
        StringBuilder sb = new StringBuilder(str2.length() + str.length());
        for (int i2 = 0; i2 < str.length(); i2++) {
            sb.append(str.charAt(i2));
            if (str2.length() > i2) {
                sb.append(str2.charAt(i2));
            }
        }
        return sb.toString();
    }

    public static final void E(C1565jJ c1565jJ, L60 l60) {
        if (F3.c(l60.c(), C1585jb0.u)) {
            c1565jJ.a.getClass();
        }
    }

    public static final Object F(AW aw, AbstractC3005yZ abstractC3005yZ) {
        C3097zW c3097zW = (C3097zW) aw;
        Object objB = c3097zW.get(abstractC3005yZ);
        if (objB == null) {
            objB = abstractC3005yZ.b();
        }
        return ((InterfaceC3118zi0) objB).a(c3097zW);
    }

    public static final void G(View view, InterfaceC1508ik0 interfaceC1508ik0) {
        view.setTag(R.id.view_tree_view_model_store_owner, interfaceC1508ik0);
    }

    public static Set H(Object... objArr) {
        int length = objArr.length;
        if (length == 0) {
            return C0462Rv.l;
        }
        if (length == 1) {
            return Collections.singleton(objArr[0]);
        }
        LinkedHashSet linkedHashSet = new LinkedHashSet(GN.Z(objArr.length));
        for (Object obj : objArr) {
            linkedHashSet.add(obj);
        }
        return linkedHashSet;
    }

    public static final M9 I(InputStream inputStream) {
        Logger logger = AbstractC2714vT.a;
        return new M9(1, inputStream, new Cf0());
    }

    public static C0800bI J(C0991dI c0991dI, int i2) {
        boolean z = i2 > 0;
        Integer numValueOf = Integer.valueOf(i2);
        if (!z) {
            throw new IllegalArgumentException("Step must be positive, was: " + numValueOf + '.');
        }
        int i3 = c0991dI.l;
        int i4 = c0991dI.m;
        if (c0991dI.n <= 0) {
            i2 = -i2;
        }
        return new C0800bI(i3, i4, i2);
    }

    public static C0991dI K(int i2, int i3) {
        if (i3 > Integer.MIN_VALUE) {
            return new C0991dI(i2, i3 - 1, 1);
        }
        C0991dI c0991dI = C0991dI.f488o;
        return C0991dI.f488o;
    }

    public static final C3097zW L(A7[] a7Arr, AW aw, AW aw2) {
        C3002yW c3002yW = new C3002yW(C3097zW.f825o);
        for (A7 a7 : a7Arr) {
            AbstractC3005yZ abstractC3005yZ = (AbstractC3005yZ) a7.f;
            if (a7.e || !((C3097zW) aw).containsKey(abstractC3005yZ)) {
                c3002yW.put(abstractC3005yZ, abstractC3005yZ.c(a7, (InterfaceC3118zi0) ((C3097zW) aw2).get(abstractC3005yZ)));
            }
        }
        return c3002yW.a();
    }

    public static InterfaceC1991no0 M(Pn0 pn0, C2062oc0 c2062oc0, ArrayList arrayList, boolean z) {
        InterfaceC1991no0 interfaceC1991no0G;
        AbstractC2378rs0.p0("reduce", 1, arrayList);
        AbstractC2378rs0.q0(2, "reduce", arrayList);
        InterfaceC1991no0 interfaceC1991no0H = ((C3031ym0) c2062oc0.b).h(c2062oc0, (InterfaceC1991no0) arrayList.get(0));
        if (!(interfaceC1991no0H instanceof Yn0)) {
            throw new IllegalArgumentException("Callback should be a method");
        }
        if (arrayList.size() == 2) {
            interfaceC1991no0G = ((C3031ym0) c2062oc0.b).h(c2062oc0, (InterfaceC1991no0) arrayList.get(1));
            if (interfaceC1991no0G instanceof Un0) {
                throw new IllegalArgumentException("Failed to parse initial value");
            }
        } else {
            if (pn0.l() == 0) {
                throw new IllegalStateException("Empty array with no initial value error");
            }
            interfaceC1991no0G = null;
        }
        Yn0 yn0 = (Yn0) interfaceC1991no0H;
        int iL = pn0.l();
        int i2 = z ? 0 : iL - 1;
        int i3 = z ? iL - 1 : 0;
        int i4 = true == z ? 1 : -1;
        if (interfaceC1991no0G == null) {
            interfaceC1991no0G = pn0.m(i2);
            i2 += i4;
        }
        while ((i3 - i2) * i4 >= 0) {
            if (pn0.o(i2)) {
                interfaceC1991no0G = yn0.g(c2062oc0, Arrays.asList(interfaceC1991no0G, pn0.m(i2), new Wn0(Double.valueOf(i2)), pn0));
                if (interfaceC1991no0G instanceof Un0) {
                    throw new IllegalStateException("Reduce operation failed");
                }
                i2 += i4;
            } else {
                i2 += i4;
            }
        }
        return interfaceC1991no0G;
    }

    public static Pn0 N(Pn0 pn0, C2062oc0 c2062oc0, C1801lo0 c1801lo0, Boolean bool, Boolean bool2) {
        Pn0 pn02 = new Pn0();
        Iterator itK = pn0.k();
        while (itK.hasNext()) {
            int iIntValue = ((Integer) itK.next()).intValue();
            if (pn0.o(iIntValue)) {
                InterfaceC1991no0 interfaceC1991no0G = c1801lo0.g(c2062oc0, Arrays.asList(pn0.m(iIntValue), new Wn0(Double.valueOf(iIntValue)), pn0));
                if (interfaceC1991no0G.zze().equals(bool)) {
                    break;
                }
                if (bool2 == null || interfaceC1991no0G.zze().equals(bool2)) {
                    pn02.n(iIntValue, interfaceC1991no0G);
                }
            }
        }
        return pn02;
    }

    public static final int a(YM ym, AbstractC2679v2 abstractC2679v2) {
        YM ymO0 = ym.o0();
        if (ymO0 == null) {
            AbstractC2133pH.b("Child of " + ym + " cannot be null when calculating alignment line");
        }
        if (ym.x0().a().containsKey(abstractC2679v2)) {
            Integer num = (Integer) ym.x0().a().get(abstractC2679v2);
            if (num != null) {
                return num.intValue();
            }
        } else {
            int iL0 = ymO0.l0(abstractC2679v2);
            if (iL0 != Integer.MIN_VALUE) {
                ymO0.u = true;
                ym.v = true;
                ym.D0();
                ymO0.u = false;
                ym.v = false;
                return iL0 + ((int) (abstractC2679v2 instanceof C1467iF ? ymO0.z0() & 4294967295L : ymO0.z0() >> 32));
            }
        }
        return Integer.MIN_VALUE;
    }

    public static final void b(H0 h0, R50 r50) {
        N50 n50 = r50.d;
        ZQ zq = n50.l;
        Object objG = n50.l.g(W50.x);
        if (objG == null) {
            objG = null;
        }
        C1065e30 c1065e30 = (C1065e30) objG;
        if (Co0.f(r50)) {
            if (c1065e30 != null && c1065e30.a == 8) {
                return;
            }
            Object objG2 = zq.g(M50.w);
            if (objG2 == null) {
                objG2 = null;
            }
            C1726l0 c1726l0 = (C1726l0) objG2;
            if (c1726l0 != null) {
                h0.b(new C0(android.R.id.accessibilityActionPageUp, c1726l0.a));
            }
            Object objG3 = zq.g(M50.y);
            if (objG3 == null) {
                objG3 = null;
            }
            C1726l0 c1726l02 = (C1726l0) objG3;
            if (c1726l02 != null) {
                h0.b(new C0(android.R.id.accessibilityActionPageDown, c1726l02.a));
            }
            Object objG4 = zq.g(M50.x);
            if (objG4 == null) {
                objG4 = null;
            }
            C1726l0 c1726l03 = (C1726l0) objG4;
            if (c1726l03 != null) {
                h0.b(new C0(android.R.id.accessibilityActionPageLeft, c1726l03.a));
            }
            Object objG5 = zq.g(M50.z);
            C1726l0 c1726l04 = (C1726l0) (objG5 != null ? objG5 : null);
            if (c1726l04 != null) {
                h0.b(new C0(android.R.id.accessibilityActionPageRight, c1726l04.a));
            }
        }
    }

    public static final int c(int i2, int i3, int[] iArr) {
        int i4 = i2 - 1;
        int i5 = 0;
        while (i5 <= i4) {
            int i6 = (i5 + i4) >>> 1;
            int i7 = iArr[i6];
            if (i7 < i3) {
                i5 = i6 + 1;
            } else {
                if (i7 <= i3) {
                    return i6;
                }
                i4 = i6 - 1;
            }
        }
        return ~i5;
    }

    public static final int d(long[] jArr, int i2, long j2) {
        int i3 = i2 - 1;
        int i4 = 0;
        while (i4 <= i3) {
            int i5 = (i4 + i3) >>> 1;
            long j3 = jArr[i5];
            if (j3 < j2) {
                i4 = i5 + 1;
            } else {
                if (j3 <= j2) {
                    return i5;
                }
                i3 = i5 - 1;
            }
        }
        return ~i4;
    }

    public static C2216q70 e(C2216q70 c2216q70) {
        C2803wN c2803wN = c2216q70.l;
        c2803wN.b();
        return c2803wN.t > 0 ? c2216q70 : C2216q70.m;
    }

    public static final Bundle f(C3001yV... c3001yVArr) {
        Bundle bundle = new Bundle(c3001yVArr.length);
        for (C3001yV c3001yV : c3001yVArr) {
            String str = (String) c3001yV.l;
            Object obj = c3001yV.m;
            if (obj == null) {
                bundle.putString(str, null);
            } else if (obj instanceof Boolean) {
                bundle.putBoolean(str, ((Boolean) obj).booleanValue());
            } else if (obj instanceof Byte) {
                bundle.putByte(str, ((Number) obj).byteValue());
            } else if (obj instanceof Character) {
                bundle.putChar(str, ((Character) obj).charValue());
            } else if (obj instanceof Double) {
                bundle.putDouble(str, ((Number) obj).doubleValue());
            } else if (obj instanceof Float) {
                bundle.putFloat(str, ((Number) obj).floatValue());
            } else if (obj instanceof Integer) {
                bundle.putInt(str, ((Number) obj).intValue());
            } else if (obj instanceof Long) {
                bundle.putLong(str, ((Number) obj).longValue());
            } else if (obj instanceof Short) {
                bundle.putShort(str, ((Number) obj).shortValue());
            } else if (obj instanceof Bundle) {
                bundle.putBundle(str, (Bundle) obj);
            } else if (obj instanceof CharSequence) {
                bundle.putCharSequence(str, (CharSequence) obj);
            } else if (obj instanceof Parcelable) {
                bundle.putParcelable(str, (Parcelable) obj);
            } else if (obj instanceof boolean[]) {
                bundle.putBooleanArray(str, (boolean[]) obj);
            } else if (obj instanceof byte[]) {
                bundle.putByteArray(str, (byte[]) obj);
            } else if (obj instanceof char[]) {
                bundle.putCharArray(str, (char[]) obj);
            } else if (obj instanceof double[]) {
                bundle.putDoubleArray(str, (double[]) obj);
            } else if (obj instanceof float[]) {
                bundle.putFloatArray(str, (float[]) obj);
            } else if (obj instanceof int[]) {
                bundle.putIntArray(str, (int[]) obj);
            } else if (obj instanceof long[]) {
                bundle.putLongArray(str, (long[]) obj);
            } else if (obj instanceof short[]) {
                bundle.putShortArray(str, (short[]) obj);
            } else if (obj instanceof Object[]) {
                Class<?> componentType = obj.getClass().getComponentType();
                if (Parcelable.class.isAssignableFrom(componentType)) {
                    bundle.putParcelableArray(str, (Parcelable[]) obj);
                } else if (String.class.isAssignableFrom(componentType)) {
                    bundle.putStringArray(str, (String[]) obj);
                } else if (CharSequence.class.isAssignableFrom(componentType)) {
                    bundle.putCharSequenceArray(str, (CharSequence[]) obj);
                } else {
                    if (!Serializable.class.isAssignableFrom(componentType)) {
                        throw new IllegalArgumentException("Illegal value array type " + componentType.getCanonicalName() + " for key \"" + str + '\"');
                    }
                    bundle.putSerializable(str, (Serializable) obj);
                }
            } else if (obj instanceof Serializable) {
                bundle.putSerializable(str, (Serializable) obj);
            } else if (obj instanceof IBinder) {
                bundle.putBinder(str, (IBinder) obj);
            } else if (obj instanceof Size) {
                bundle.putSize(str, (Size) obj);
            } else {
                if (!(obj instanceof SizeF)) {
                    throw new IllegalArgumentException("Illegal value type " + obj.getClass().getCanonicalName() + " for key \"" + str + '\"');
                }
                bundle.putSizeF(str, (SizeF) obj);
            }
        }
        return bundle;
    }

    public static void g(int i2) {
        if (2 > i2 || i2 >= 37) {
            StringBuilder sbO = AbstractC0126Ew.o(i2, "radix ", " was not in valid range ");
            sbO.append(new C0991dI(2, 36, 1));
            throw new IllegalArgumentException(sbO.toString());
        }
    }

    public static float h(float f2, float f3) {
        return f2 > f3 ? f3 : f2;
    }

    public static double i(double d2, double d3, double d4) {
        if (d3 <= d4) {
            return d2 < d3 ? d3 : d2 > d4 ? d4 : d2;
        }
        throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + d4 + " is less than minimum " + d3 + '.');
    }

    public static float j(float f2, float f3, float f4) {
        if (f3 <= f4) {
            return f2 < f3 ? f3 : f2 > f4 ? f4 : f2;
        }
        throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + f4 + " is less than minimum " + f3 + '.');
    }

    public static int k(int i2, int i3, int i4) {
        if (i3 <= i4) {
            return i2 < i3 ? i3 : i2 > i4 ? i4 : i2;
        }
        throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + i4 + " is less than minimum " + i3 + '.');
    }

    public static long l(long j2, long j3, long j4) {
        if (j3 <= j4) {
            return j2 < j3 ? j3 : j2 > j4 ? j4 : j2;
        }
        throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + j4 + " is less than minimum " + j3 + '.');
    }

    public static final boolean m(T00 t00, float f2, float f3) {
        float f4 = t00.a;
        if (f2 > t00.c || f4 > f2) {
            return false;
        }
        return f3 <= t00.d && t00.b <= f3;
    }

    /* JADX WARN: Code restructure failed: missing block: B:23:0x0055, code lost:
    
        if (o.AbstractC2001nt0.r(r9, r1, o.F3.c(r7, r2) ? r0.getWidth() : o.AbstractC1345h.d(r7.a, r8), o.F3.c(r7, r2) ? r0.getHeight() : o.AbstractC1345h.d(r7.b, r8), r8) == 1.0d) goto L24;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static android.graphics.Bitmap n(android.graphics.drawable.Drawable r5, android.graphics.Bitmap.Config r6, o.S80 r7, int r8, boolean r9) {
        /*
            Method dump skipped, instructions count: 240
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0940cn0.n(android.graphics.drawable.Drawable, android.graphics.Bitmap$Config, o.S80, int, boolean):android.graphics.Bitmap");
    }

    public static Handler o(Looper looper) {
        if (Build.VERSION.SDK_INT >= 28) {
            return AbstractC0094Dq.c(looper);
        }
        try {
            return (Handler) Handler.class.getDeclaredConstructor(Looper.class, Handler.Callback.class, Boolean.TYPE).newInstance(looper, null, Boolean.TRUE);
        } catch (IllegalAccessException | InstantiationException | NoSuchMethodException unused) {
            return new Handler(looper);
        } catch (InvocationTargetException e2) {
            Throwable cause = e2.getCause();
            if (cause instanceof RuntimeException) {
                throw ((RuntimeException) cause);
            }
            if (cause instanceof Error) {
                throw ((Error) cause);
            }
            throw new RuntimeException(cause);
        }
    }

    public static C0972d40 p(Bundle bundle, Bundle bundle2) {
        if (bundle == null) {
            bundle = bundle2;
        }
        if (bundle == null) {
            C0972d40 c0972d40 = new C0972d40();
            new LinkedHashMap();
            c0972d40.a = new Q1(C0358Nv.l);
            return c0972d40;
        }
        bundle.setClassLoader(C0972d40.class.getClassLoader());
        C2803wN c2803wN = new C2803wN(bundle.size());
        for (String str : bundle.keySet()) {
            c2803wN.put(str, bundle.get(str));
        }
        C2803wN c2803wNB = c2803wN.b();
        C0972d40 c0972d402 = new C0972d40();
        new LinkedHashMap();
        c0972d402.a = new Q1(c2803wNB);
        return c0972d402;
    }

    public static final boolean q(char c2, char c3, boolean z) {
        if (c2 == c3) {
            return true;
        }
        if (!z) {
            return false;
        }
        char upperCase = Character.toUpperCase(c2);
        char upperCase2 = Character.toUpperCase(c3);
        return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
    }

    public static final float r(float f2) {
        float fIntBitsToFloat = Float.intBitsToFloat(((int) ((Float.floatToRawIntBits(f2) & 8589934591L) / 3)) + 709952852);
        float f3 = fIntBitsToFloat - ((fIntBitsToFloat - (f2 / (fIntBitsToFloat * fIntBitsToFloat))) * 0.33333334f);
        return f3 - ((f3 - (f2 / (f3 * f3))) * 0.33333334f);
    }

    public static final InterfaceC1508ik0 s(View view) {
        while (view != null) {
            Object tag = view.getTag(R.id.view_tree_view_model_store_owner);
            InterfaceC1508ik0 interfaceC1508ik0 = tag instanceof InterfaceC1508ik0 ? (InterfaceC1508ik0) tag : null;
            if (interfaceC1508ik0 != null) {
                return interfaceC1508ik0;
            }
            Object objV = AbstractC1692kh0.v(view);
            view = objV instanceof View ? (View) objV : null;
        }
        return null;
    }

    public static final CG t() {
        CG cg = l;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.ArrowDropDown", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        ArrayList arrayList = new ArrayList(32);
        arrayList.add(new ZV(7.0f, 10.0f));
        arrayList.add(new C1292gW(5.0f, 5.0f));
        arrayList.add(new C1292gW(5.0f, -5.0f));
        arrayList.add(VV.c);
        BG.a(bg, arrayList, q90);
        CG cgB = bg.b();
        l = cgB;
        return cgB;
    }

    public static final CG u() {
        CG cg = n;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Info", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(12.0f, 2.0f);
        ke.f(6.48f, 2.0f, 2.0f, 6.48f, 2.0f, 12.0f);
        ke.n(4.48f, 10.0f, 10.0f, 10.0f);
        ke.n(10.0f, -4.48f, 10.0f, -10.0f);
        ke.m(17.52f, 2.0f, 12.0f, 2.0f);
        ke.e();
        ke.l(13.0f, 17.0f);
        ke.i(-2.0f);
        ke.r(-6.0f);
        ke.i(2.0f);
        ke.r(6.0f);
        ke.e();
        ke.l(13.0f, 9.0f);
        ke.i(-2.0f);
        ke.j(11.0f, 7.0f);
        ke.i(2.0f);
        ke.r(2.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        n = cgB;
        return cgB;
    }

    public static final int v(L60 l60, C1565jJ c1565jJ, String str) {
        c1565jJ.a.getClass();
        E(c1565jJ, l60);
        int iA = l60.a(str);
        if (iA != -3) {
            return iA;
        }
        c1565jJ.a.getClass();
        C0247Jn c0247Jn = c1565jJ.c;
        C2590u5 c2590u5 = new C2590u5(10, l60, c1565jJ);
        ConcurrentHashMap concurrentHashMap = (ConcurrentHashMap) c0247Jn.m;
        Map map = (Map) concurrentHashMap.get(l60);
        J7 j7 = d;
        Object obj = map != null ? map.get(j7) : null;
        Object objA = obj != null ? obj : null;
        if (objA == null) {
            objA = c2590u5.a();
            Object concurrentHashMap2 = concurrentHashMap.get(l60);
            if (concurrentHashMap2 == null) {
                concurrentHashMap2 = new ConcurrentHashMap(2);
                concurrentHashMap.put(l60, concurrentHashMap2);
            }
            ((Map) concurrentHashMap2).put(j7, objA);
        }
        Integer num = (Integer) ((Map) objA).get(str);
        if (num != null) {
            return num.intValue();
        }
        return -3;
    }

    public static final C0977d7 w(C2730ve0 c2730ve0) {
        C0977d7 c0977d7 = c2730ve0.a;
        long j2 = c2730ve0.b;
        c0977d7.getClass();
        return c0977d7.subSequence(Ue0.f(j2), Ue0.e(j2));
    }

    public static final C0977d7 x(C2730ve0 c2730ve0, int i2) {
        C0977d7 c0977d7 = c2730ve0.a;
        long j2 = c2730ve0.b;
        return c0977d7.subSequence(Ue0.e(j2), Math.min(Ue0.e(j2) + i2, c2730ve0.a.m.length()));
    }

    public static final C0977d7 y(C2730ve0 c2730ve0, int i2) {
        C0977d7 c0977d7 = c2730ve0.a;
        long j2 = c2730ve0.b;
        return c0977d7.subSequence(Math.max(0, Ue0.f(j2) - i2), Ue0.f(j2));
    }

    public static boolean z(char c2) {
        return Character.isWhitespace(c2) || Character.isSpaceChar(c2);
    }
}
