ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155

以下内容为反编译后的 h.java 源代码,内容仅作参考


package h;

import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.SparseArray;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import com.google.android.gms.internal.measurement.cb;
import com.google.android.gms.internal.measurement.i4;
import com.google.android.gms.internal.measurement.k1;
import com.google.android.gms.internal.measurement.m0;
import com.google.android.gms.internal.measurement.t9;
import com.google.android.gms.internal.measurement.z3;
import com.itextpdf.text.html.HtmlTags;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.PdfObject;
import com.itextpdf.text.xml.xmp.DublinCoreProperties;
import com.itextpdf.text.xml.xmp.DublinCoreSchema;
import com.itextpdf.text.xml.xmp.PdfProperties;
import com.itextpdf.text.xml.xmp.PdfSchema;
import com.itextpdf.text.xml.xmp.XmpBasicProperties;
import com.itextpdf.text.xml.xmp.XmpBasicSchema;
import com.itextpdf.text.xml.xmp.XmpMMSchema;
import com.itextpdf.xmp.XMPException;
import com.qonversion.android.sdk.internal.Constants;
import ec.s5;
import ec.u5;
import fc.na;
import i.f0;
import i.w;
import ic.f4;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.regex.Pattern;
import ne.o0;
import ne.t0;
import ne.w0;
import ne.x1;
import ne.z0;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import s1.r;
import y0.y;
public final class h implements b {
    public static h f11393e;
    public Object f11394a;
    public Object f11395b;
    public Object f11396c;
    public Object f11397d;

    public h(int i10) {
        if (i10 == 2) {
            this.f11394a = new r.e(10, 1);
            this.f11397d = new p.k();
            this.f11396c = new ArrayList();
            this.f11395b = new HashSet();
        } else if (i10 == 5) {
            this.f11394a = new p.k();
            this.f11395b = new SparseArray();
            this.f11396c = new p.e();
            this.f11397d = new p.k();
        } else if (i10 == 10) {
            i4 i4Var = new i4(3);
            this.f11394a = i4Var;
            h hVar = new h((h) null, i4Var);
            this.f11396c = hVar;
            this.f11395b = hVar.A();
            r rVar = new r(1);
            this.f11397d = rVar;
            ((h) this.f11396c).E("require", new cb(rVar));
            ((r) this.f11397d).f19257a.put("internal.platform", k1.f6353d);
            ((h) this.f11396c).E("runtime.counter", new com.google.android.gms.internal.measurement.g(Double.valueOf(0.0d)));
        } else if (i10 == 16) {
            this.f11394a = new Object();
            this.f11395b = new Handler(Looper.getMainLooper(), new ka.g(2, this));
        } else if (i10 == 26) {
            this.f11394a = new HashMap();
            this.f11395b = new HashMap();
            this.f11396c = new HashMap();
            this.f11397d = Pattern.compile("[/*?\\[\\]]");
            try {
                s();
                r();
            } catch (XMPException unused) {
                throw new RuntimeException("The XMPSchemaRegistry cannot be initialized!");
            }
        } else if (i10 == 7) {
            this.f11394a = null;
            this.f11395b = new ArrayList();
            this.f11396c = null;
            this.f11397d = PdfObject.NOTHING;
        } else if (i10 == 8) {
            this.f11397d = Collections.emptyList();
        } else {
            switch (i10) {
                case 20:
                    return;
                case BaseFont.WEIGHT_CLASS:
                    return;
                case 22:
                    return;
                case 23:
                    return;
                default:
                    this.f11394a = new r.e(256, 0);
                    this.f11395b = new r.e(256, 0);
                    this.f11396c = new r.e(256, 0);
                    this.f11397d = new r.h[32];
                    return;
            }
        }
    }

    public h(Typeface typeface, z0.b bVar) {
        int i10;
        int i11;
        this.f11397d = typeface;
        this.f11394a = bVar;
        this.f11396c = new y(1024);
        z0.b bVar2 = (z0.b) this.f11394a;
        int a10 = bVar2.a(6);
        if (a10 != 0) {
            int i12 = a10 + bVar2.f21714a;
            i10 = bVar2.f21715b.getInt(bVar2.f21715b.getInt(i12) + i12);
        } else {
            i10 = 0;
        }
        this.f11395b = new char[i10 * 2];
        z0.b bVar3 = (z0.b) this.f11394a;
        int a11 = bVar3.a(6);
        if (a11 != 0) {
            int i13 = a11 + bVar3.f21714a;
            i11 = bVar3.f21715b.getInt(bVar3.f21715b.getInt(i13) + i13);
        } else {
            i11 = 0;
        }
        for (int i14 = 0; i14 < i11; i14++) {
            y0.r rVar = new y0.r(this, i14);
            z0.a c10 = rVar.c();
            int a12 = c10.a(4);
            Character.toChars(a12 != 0 ? c10.f21715b.getInt(a12 + c10.f21714a) : 0, (char[]) this.f11395b, i14 * 2);
            na.b("invalid metadata codepoint length", rVar.b() > 0);
            ((y) this.f11396c).a(rVar, 0, rVar.b() - 1);
        }
    }

    public h(h hVar, i4 i4Var) {
        this.f11396c = new HashMap();
        this.f11397d = new HashMap();
        this.f11394a = hVar;
        this.f11395b = i4Var;
    }

    public h(f4 f4Var, String str) {
        this.f11397d = f4Var;
        bc.y.g(str);
        this.f11394a = str;
        this.f11395b = new Bundle();
    }

    public h(Object obj, Object obj2, Object obj3, Object obj4) {
        this.f11394a = obj;
        this.f11395b = obj2;
        this.f11396c = obj3;
        this.f11397d = obj4;
    }

    public h(Executor executor, int i10) {
        if (i10 != 19) {
            this.f11395b = new ArrayList();
            this.f11396c = new ArrayList();
            this.f11397d = fe.f.f10481o;
            this.f11394a = executor;
            return;
        }
        this.f11395b = lc.j.e(null);
        this.f11396c = new Object();
        this.f11397d = new ThreadLocal();
        this.f11394a = executor;
        executor.execute(new androidx.activity.n(23, this));
    }

    public final h A() {
        return new h(this, (i4) this.f11395b);
    }

    public final void B(Bundle bundle) {
        if (bundle == null) {
            bundle = new Bundle();
        }
        SharedPreferences.Editor edit = ((f4) this.f11397d).C().edit();
        if (bundle.size() == 0) {
            edit.remove((String) this.f11394a);
        } else {
            String str = (String) this.f11394a;
            JSONArray jSONArray = new JSONArray();
            for (String str2 : bundle.keySet()) {
                Object obj = bundle.get(str2);
                if (obj != null) {
                    try {
                        JSONObject jSONObject = new JSONObject();
                        jSONObject.put("n", str2);
                        t9.a();
                        if (!((f4) this.f11397d).q().F(null, ic.r.D0)) {
                            jSONObject.put("v", String.valueOf(obj));
                            if (obj instanceof String) {
                                jSONObject.put("t", HtmlTags.S);
                            } else if (obj instanceof Long) {
                                jSONObject.put("t", "l");
                            } else if (obj instanceof Double) {
                                jSONObject.put("t", "d");
                            } else {
                                ((f4) this.f11397d).e().f12749y.c(obj.getClass(), "Cannot serialize bundle value to SharedPreferences. Type");
                            }
                        } else if (obj instanceof String) {
                            jSONObject.put("v", String.valueOf(obj));
                            jSONObject.put("t", HtmlTags.S);
                        } else if (obj instanceof Long) {
                            jSONObject.put("v", String.valueOf(obj));
                            jSONObject.put("t", "l");
                        } else if (obj instanceof int[]) {
                            jSONObject.put("v", Arrays.toString((int[]) obj));
                            jSONObject.put("t", "ia");
                        } else if (obj instanceof long[]) {
                            jSONObject.put("v", Arrays.toString((long[]) obj));
                            jSONObject.put("t", "la");
                        } else if (obj instanceof Double) {
                            jSONObject.put("v", String.valueOf(obj));
                            jSONObject.put("t", "d");
                        } else {
                            ((f4) this.f11397d).e().f12749y.c(obj.getClass(), "Cannot serialize bundle value to SharedPreferences. Type");
                        }
                        jSONArray.put(jSONObject);
                    } catch (JSONException e10) {
                        ((f4) this.f11397d).e().f12749y.c(e10, "Cannot serialize bundle value to SharedPreferences");
                    }
                }
            }
            edit.putString(str, jSONArray.toString());
        }
        edit.apply();
        this.f11396c = bundle;
    }

    public final void C(String str, com.google.android.gms.internal.measurement.n nVar) {
        if (((Map) this.f11397d).containsKey(str)) {
            return;
        }
        if (nVar == null) {
            ((Map) this.f11396c).remove(str);
        } else {
            ((Map) this.f11396c).put(str, nVar);
        }
    }

    public final boolean D(String str) {
        h hVar = this;
        while (!((Map) hVar.f11396c).containsKey(str)) {
            Object obj = hVar.f11394a;
            if (((h) obj) == null) {
                return false;
            }
            hVar = (h) obj;
        }
        return true;
    }

    public final void E(String str, com.google.android.gms.internal.measurement.n nVar) {
        h hVar = this;
        while (!((Map) hVar.f11396c).containsKey(str)) {
            Object obj = hVar.f11394a;
            if (((h) obj) == null || !((h) obj).D(str)) {
                break;
            }
            hVar = (h) hVar.f11394a;
        }
        if (((Map) hVar.f11397d).containsKey(str)) {
            return;
        }
        if (nVar == null) {
            ((Map) hVar.f11396c).remove(str);
        } else {
            ((Map) hVar.f11396c).put(str, nVar);
        }
    }

    @Override
    public final boolean a(c cVar, MenuItem menuItem) {
        return ((ActionMode.Callback) this.f11394a).onActionItemClicked(l(cVar), new w((Context) this.f11395b, (g0.b) menuItem));
    }

    @Override
    public final boolean b(c cVar, i.o oVar) {
        return ((ActionMode.Callback) this.f11394a).onCreateActionMode(l(cVar), m(oVar));
    }

    @Override
    public final boolean c(c cVar, i.o oVar) {
        return ((ActionMode.Callback) this.f11394a).onPrepareActionMode(l(cVar), m(oVar));
    }

    @Override
    public final void d(c cVar) {
        ((ActionMode.Callback) this.f11394a).onDestroyActionMode(l(cVar));
    }

    public final void e(fe.a aVar) {
        ((List) this.f11396c).add(aVar);
    }

    public final o0 f() {
        String str = ((Long) this.f11394a) == null ? " baseAddress" : PdfObject.NOTHING;
        if (((Long) this.f11395b) == null) {
            str = str.concat(" size");
        }
        if (((String) this.f11396c) == null) {
            str = androidx.activity.h.j(str, " name");
        }
        if (str.isEmpty()) {
            return new o0(((Long) this.f11394a).longValue(), ((Long) this.f11395b).longValue(), (String) this.f11396c, (String) this.f11397d);
        }
        throw new IllegalStateException("Missing required properties:".concat(str));
    }

    public final t0 g() {
        String str = ((String) this.f11394a) == null ? " processName" : PdfObject.NOTHING;
        if (((Integer) this.f11395b) == null) {
            str = str.concat(" pid");
        }
        if (((Integer) this.f11396c) == null) {
            str = androidx.activity.h.j(str, " importance");
        }
        if (((Boolean) this.f11397d) == null) {
            str = androidx.activity.h.j(str, " defaultProcess");
        }
        if (str.isEmpty()) {
            return new t0((String) this.f11394a, ((Integer) this.f11395b).intValue(), ((Integer) this.f11396c).intValue(), ((Boolean) this.f11397d).booleanValue());
        }
        throw new IllegalStateException("Missing required properties:".concat(str));
    }

    public final w0 h() {
        String str = ((x1) this.f11394a) == null ? " rolloutVariant" : PdfObject.NOTHING;
        if (((String) this.f11395b) == null) {
            str = str.concat(" parameterKey");
        }
        if (((String) this.f11396c) == null) {
            str = androidx.activity.h.j(str, " parameterValue");
        }
        if (((Long) this.f11397d) == null) {
            str = androidx.activity.h.j(str, " templateVersion");
        }
        if (str.isEmpty()) {
            return new w0((x1) this.f11394a, (String) this.f11395b, (String) this.f11396c, ((Long) this.f11397d).longValue());
        }
        throw new IllegalStateException("Missing required properties:".concat(str));
    }

    public final z0 i() {
        String str = ((Integer) this.f11394a) == null ? " platform" : PdfObject.NOTHING;
        if (((String) this.f11395b) == null) {
            str = str.concat(" version");
        }
        if (((String) this.f11396c) == null) {
            str = androidx.activity.h.j(str, " buildVersion");
        }
        if (((Boolean) this.f11397d) == null) {
            str = androidx.activity.h.j(str, " jailbroken");
        }
        if (str.isEmpty()) {
            return new z0(((Integer) this.f11394a).intValue(), (String) this.f11395b, (String) this.f11396c, ((Boolean) this.f11397d).booleanValue());
        }
        throw new IllegalStateException("Missing required properties:".concat(str));
    }

    public final void j(Object obj, ArrayList arrayList, HashSet hashSet) {
        if (arrayList.contains(obj)) {
            return;
        }
        if (hashSet.contains(obj)) {
            throw new RuntimeException("This graph contains cyclic dependencies");
        }
        hashSet.add(obj);
        ArrayList arrayList2 = (ArrayList) ((p.k) this.f11397d).getOrDefault(obj, null);
        if (arrayList2 != null) {
            int size = arrayList2.size();
            for (int i10 = 0; i10 < size; i10++) {
                j(arrayList2.get(i10), arrayList, hashSet);
            }
        }
        hashSet.remove(obj);
        arrayList.add(obj);
    }

    public final synchronized rg.j k(String str) {
        return (rg.j) ((Map) this.f11396c).get(str);
    }

    public final i l(c cVar) {
        int size = ((ArrayList) this.f11396c).size();
        for (int i10 = 0; i10 < size; i10++) {
            i iVar = (i) ((ArrayList) this.f11396c).get(i10);
            if (iVar != null && iVar.f11399b == cVar) {
                return iVar;
            }
        }
        i iVar2 = new i((Context) this.f11395b, cVar);
        ((ArrayList) this.f11396c).add(iVar2);
        return iVar2;
    }

    public final Menu m(i.o oVar) {
        Menu menu = (Menu) ((p.k) this.f11397d).getOrDefault(oVar, null);
        if (menu == null) {
            f0 f0Var = new f0((Context) this.f11395b, oVar);
            ((p.k) this.f11397d).put(oVar, f0Var);
            return f0Var;
        }
        return menu;
    }

    public final synchronized String n(String str) {
        return (String) ((Map) this.f11394a).get(str);
    }

    public final synchronized String o(String str) {
        if (str != null) {
            try {
                if (!str.endsWith(":")) {
                    str = str.concat(":");
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
        return (String) ((Map) this.f11395b).get(str);
    }

    public final synchronized void p(String str, String str2, String str3, String str4, tg.a aVar) {
        try {
            s5.c(str);
            s5.b(str2);
            s5.c(str3);
            s5.b(str4);
            tg.a aVar2 = aVar != null ? new tg.a(u5.i(new tg.b(aVar.f19722a), null).f19722a) : new tg.a(0, 0);
            if (((Pattern) this.f11397d).matcher(str2).find() || ((Pattern) this.f11397d).matcher(str4).find()) {
                throw new XMPException("Alias and actual property names must be simple", 102);
            }
            String n10 = n(str);
            String n11 = n(str3);
            if (n10 == null) {
                throw new XMPException("Alias namespace is not registered", 101);
            }
            if (n11 == null) {
                throw new XMPException("Actual namespace is not registered", 101);
            }
            String concat = n10.concat(str2);
            if (((Map) this.f11396c).containsKey(concat)) {
                throw new XMPException("Alias is already existing", 4);
            }
            if (((Map) this.f11396c).containsKey(n11.concat(str4))) {
                throw new XMPException("Actual property is already an alias, use the base property", 4);
            }
            ((Map) this.f11396c).put(concat, new rg.j(str3, n11, str4, aVar2));
        } catch (Throwable th2) {
            throw th2;
        }
    }

    public final synchronized String q(String str, String str2) {
        try {
            s5.c(str);
            if (str2 == null || str2.length() == 0) {
                throw new XMPException("Empty prefix", 4);
            }
            if (str2.charAt(str2.length() - 1) != ':') {
                str2 = str2.concat(":");
            }
            if (rg.d.d(str2.substring(0, str2.length() - 1))) {
                String str3 = (String) ((Map) this.f11394a).get(str);
                String str4 = (String) ((Map) this.f11395b).get(str2);
                if (str3 != null) {
                    return str3;
                }
                if (str4 != null) {
                    String str5 = str2;
                    int i10 = 1;
                    while (((Map) this.f11395b).containsKey(str5)) {
                        str5 = str2.substring(0, str2.length() - 1) + Constants.USER_ID_SEPARATOR + i10 + "_:";
                        i10++;
                    }
                    str2 = str5;
                }
                ((Map) this.f11395b).put(str2, str);
                ((Map) this.f11394a).put(str, str2);
                return str2;
            }
            throw new XMPException("The prefix is a bad XML name", 201);
        } catch (Throwable th2) {
            throw th2;
        }
    }

    public final void r() {
        tg.a aVar = new tg.a(0, 0);
        aVar.e(1536, true);
        tg.a aVar2 = new tg.a(0, 0);
        aVar2.e(7680, true);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Author", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, aVar);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Authors", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, null);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Description", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.DESCRIPTION, null);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Format", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.FORMAT, null);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, PdfProperties.KEYWORDS, DublinCoreSchema.DEFAULT_XPATH_URI, "subject", null);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Locale", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.LANGUAGE, null);
        p(XmpBasicSchema.DEFAULT_XPATH_URI, "Title", DublinCoreSchema.DEFAULT_XPATH_URI, "title", null);
        p("http://ns.adobe.com/xap/1.0/rights/", "Copyright", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.RIGHTS, null);
        p(PdfSchema.DEFAULT_XPATH_URI, "Author", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, aVar);
        p(PdfSchema.DEFAULT_XPATH_URI, XmpBasicProperties.BASEURL, XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.BASEURL, null);
        p(PdfSchema.DEFAULT_XPATH_URI, "CreationDate", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.CREATEDATE, null);
        p(PdfSchema.DEFAULT_XPATH_URI, "Creator", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.CREATORTOOL, null);
        p(PdfSchema.DEFAULT_XPATH_URI, "ModDate", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.MODIFYDATE, null);
        p(PdfSchema.DEFAULT_XPATH_URI, "Subject", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.DESCRIPTION, aVar2);
        p(PdfSchema.DEFAULT_XPATH_URI, "Title", DublinCoreSchema.DEFAULT_XPATH_URI, "title", aVar2);
        p("http://ns.adobe.com/photoshop/1.0/", "Author", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, aVar);
        p("http://ns.adobe.com/photoshop/1.0/", "Caption", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.DESCRIPTION, aVar2);
        p("http://ns.adobe.com/photoshop/1.0/", "Copyright", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.RIGHTS, aVar2);
        p("http://ns.adobe.com/photoshop/1.0/", PdfProperties.KEYWORDS, DublinCoreSchema.DEFAULT_XPATH_URI, "subject", null);
        p("http://ns.adobe.com/photoshop/1.0/", "Marked", "http://ns.adobe.com/xap/1.0/rights/", "Marked", null);
        p("http://ns.adobe.com/photoshop/1.0/", "Title", DublinCoreSchema.DEFAULT_XPATH_URI, "title", aVar2);
        p("http://ns.adobe.com/photoshop/1.0/", "WebStatement", "http://ns.adobe.com/xap/1.0/rights/", "WebStatement", null);
        p("http://ns.adobe.com/tiff/1.0/", "Artist", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, aVar);
        p("http://ns.adobe.com/tiff/1.0/", "Copyright", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.RIGHTS, null);
        p("http://ns.adobe.com/tiff/1.0/", "DateTime", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.MODIFYDATE, null);
        p("http://ns.adobe.com/tiff/1.0/", "ImageDescription", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.DESCRIPTION, null);
        p("http://ns.adobe.com/tiff/1.0/", "Software", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.CREATORTOOL, null);
        p("http://ns.adobe.com/png/1.0/", "Author", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.CREATOR, aVar);
        p("http://ns.adobe.com/png/1.0/", "Copyright", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.RIGHTS, aVar2);
        p("http://ns.adobe.com/png/1.0/", "CreationTime", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.CREATEDATE, null);
        p("http://ns.adobe.com/png/1.0/", "Description", DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreProperties.DESCRIPTION, aVar2);
        p("http://ns.adobe.com/png/1.0/", "ModificationTime", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.MODIFYDATE, null);
        p("http://ns.adobe.com/png/1.0/", "Software", XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicProperties.CREATORTOOL, null);
        p("http://ns.adobe.com/png/1.0/", "Title", DublinCoreSchema.DEFAULT_XPATH_URI, "title", aVar2);
    }

    public final void s() {
        q("http://www.w3.org/XML/1998/namespace", "xml");
        q("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdf");
        q(DublinCoreSchema.DEFAULT_XPATH_URI, DublinCoreSchema.DEFAULT_XPATH_ID);
        q("http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/", "Iptc4xmpCore");
        q("http://iptc.org/std/Iptc4xmpExt/2008-02-29/", "Iptc4xmpExt");
        q("http://ns.adobe.com/DICOM/", "DICOM");
        q("http://ns.useplus.org/ldf/xmp/1.0/", "plus");
        q("adobe:ns:meta/", "x");
        q("http://ns.adobe.com/iX/1.0/", "iX");
        q(XmpBasicSchema.DEFAULT_XPATH_URI, XmpBasicSchema.DEFAULT_XPATH_ID);
        q("http://ns.adobe.com/xap/1.0/rights/", "xmpRights");
        q(XmpMMSchema.DEFAULT_XPATH_URI, XmpMMSchema.DEFAULT_XPATH_ID);
        q("http://ns.adobe.com/xap/1.0/bj/", "xmpBJ");
        q("http://ns.adobe.com/xmp/note/", "xmpNote");
        q(PdfSchema.DEFAULT_XPATH_URI, PdfSchema.DEFAULT_XPATH_ID);
        q("http://ns.adobe.com/pdfx/1.3/", "pdfx");
        q("http://www.npes.org/pdfx/ns/id/", "pdfxid");
        q("http://www.aiim.org/pdfa/ns/schema#", "pdfaSchema");
        q("http://www.aiim.org/pdfa/ns/property#", "pdfaProperty");
        q("http://www.aiim.org/pdfa/ns/type#", "pdfaType");
        q("http://www.aiim.org/pdfa/ns/field#", "pdfaField");
        q("http://www.aiim.org/pdfa/ns/id/", "pdfaid");
        q("http://www.aiim.org/pdfua/ns/id/", "pdfuaid");
        q("http://www.aiim.org/pdfa/ns/extension/", "pdfaExtension");
        q("http://ns.adobe.com/photoshop/1.0/", "photoshop");
        q("http://ns.adobe.com/album/1.0/", "album");
        q("http://ns.adobe.com/exif/1.0/", "exif");
        q("http://cipa.jp/exif/1.0/", "exifEX");
        q("http://ns.adobe.com/exif/1.0/aux/", "aux");
        q("http://ns.adobe.com/tiff/1.0/", "tiff");
        q("http://ns.adobe.com/png/1.0/", "png");
        q("http://ns.adobe.com/jpeg/1.0/", "jpeg");
        q("http://ns.adobe.com/jp2k/1.0/", "jp2k");
        q("http://ns.adobe.com/camera-raw-settings/1.0/", "crs");
        q("http://ns.adobe.com/StockPhoto/1.0/", "bmsp");
        q("http://ns.adobe.com/creatorAtom/1.0/", "creatorAtom");
        q("http://ns.adobe.com/asf/1.0/", "asf");
        q("http://ns.adobe.com/xmp/wav/1.0/", "wav");
        q("http://ns.adobe.com/bwf/bext/1.0/", "bext");
        q("http://ns.adobe.com/riff/info/", "riffinfo");
        q("http://ns.adobe.com/xmp/1.0/Script/", "xmpScript");
        q("http://ns.adobe.com/TransformXMP/", "txmp");
        q("http://ns.adobe.com/swf/1.0/", "swf");
        q("http://ns.adobe.com/xmp/1.0/DynamicMedia/", "xmpDM");
        q("http://ns.adobe.com/xmp/transient/1.0/", "xmpx");
        q("http://ns.adobe.com/xap/1.0/t/", "xmpT");
        q("http://ns.adobe.com/xap/1.0/t/pg/", "xmpTPg");
        q("http://ns.adobe.com/xap/1.0/g/", "xmpG");
        q("http://ns.adobe.com/xap/1.0/g/img/", "xmpGImg");
        q("http://ns.adobe.com/xap/1.0/sType/Font#", "stFnt");
        q("http://ns.adobe.com/xap/1.0/sType/Dimensions#", "stDim");
        q("http://ns.adobe.com/xap/1.0/sType/ResourceEvent#", "stEvt");
        q("http://ns.adobe.com/xap/1.0/sType/ResourceRef#", "stRef");
        q("http://ns.adobe.com/xap/1.0/sType/Version#", "stVer");
        q("http://ns.adobe.com/xap/1.0/sType/Job#", "stJob");
        q("http://ns.adobe.com/xap/1.0/sType/ManifestItem#", "stMfs");
        q("http://ns.adobe.com/xmp/Identifier/qual/1.0/", "xmpidq");
    }

    public final lc.g t(Callable callable) {
        lc.g e10;
        synchronized (this.f11396c) {
            e10 = ((lc.g) this.f11395b).e((Executor) this.f11394a, new he.c(this, 2, callable));
            this.f11395b = e10.e((Executor) this.f11394a, new eg.c(22, this));
        }
        return e10;
    }

    public final lc.g u(Callable callable) {
        lc.g f10;
        synchronized (this.f11396c) {
            f10 = ((lc.g) this.f11395b).f((Executor) this.f11394a, new he.c(this, 2, callable));
            this.f11395b = f10.e((Executor) this.f11394a, new eg.c(22, this));
        }
        return f10;
    }

    public final Bundle v() {
        JSONObject jSONObject;
        String string;
        String string2;
        int hashCode;
        char c10;
        if (((Bundle) this.f11396c) == null) {
            String string3 = ((f4) this.f11397d).C().getString((String) this.f11394a, null);
            if (string3 != null) {
                try {
                    Bundle bundle = new Bundle();
                    JSONArray jSONArray = new JSONArray(string3);
                    for (int i10 = 0; i10 < jSONArray.length(); i10++) {
                        try {
                            jSONObject = jSONArray.getJSONObject(i10);
                            string = jSONObject.getString("n");
                            string2 = jSONObject.getString("t");
                            hashCode = string2.hashCode();
                        } catch (NumberFormatException | JSONException unused) {
                            ((f4) this.f11397d).e().f12749y.d("Error reading value from SharedPreferences. Value dropped");
                        }
                        if (hashCode == 100) {
                            if (string2.equals("d")) {
                                c10 = 1;
                                if (c10 != 0) {
                                }
                            }
                            c10 = 65535;
                            if (c10 != 0) {
                            }
                        } else if (hashCode == 108) {
                            if (string2.equals("l")) {
                                c10 = 2;
                                if (c10 != 0) {
                                }
                            }
                            c10 = 65535;
                            if (c10 != 0) {
                            }
                        } else if (hashCode == 115) {
                            if (string2.equals(HtmlTags.S)) {
                                c10 = 0;
                                if (c10 != 0) {
                                }
                            }
                            c10 = 65535;
                            if (c10 != 0) {
                            }
                        } else if (hashCode != 3352) {
                            if (hashCode == 3445 && string2.equals("la")) {
                                c10 = 4;
                                if (c10 != 0) {
                                    bundle.putString(string, jSONObject.getString("v"));
                                } else if (c10 == 1) {
                                    bundle.putDouble(string, Double.parseDouble(jSONObject.getString("v")));
                                } else if (c10 == 2) {
                                    bundle.putLong(string, Long.parseLong(jSONObject.getString("v")));
                                } else if (c10 == 3) {
                                    t9.a();
                                    if (((f4) this.f11397d).q().F(null, ic.r.D0)) {
                                        JSONArray jSONArray2 = new JSONArray(jSONObject.getString("v"));
                                        int length = jSONArray2.length();
                                        int[] iArr = new int[length];
                                        for (int i11 = 0; i11 < length; i11++) {
                                            iArr[i11] = jSONArray2.optInt(i11);
                                        }
                                        bundle.putIntArray(string, iArr);
                                    }
                                } else if (c10 != 4) {
                                    ((f4) this.f11397d).e().f12749y.c(string2, "Unrecognized persisted bundle type. Type");
                                } else {
                                    t9.a();
                                    if (((f4) this.f11397d).q().F(null, ic.r.D0)) {
                                        JSONArray jSONArray3 = new JSONArray(jSONObject.getString("v"));
                                        int length2 = jSONArray3.length();
                                        long[] jArr = new long[length2];
                                        for (int i12 = 0; i12 < length2; i12++) {
                                            jArr[i12] = jSONArray3.optLong(i12);
                                        }
                                        bundle.putLongArray(string, jArr);
                                    }
                                }
                            }
                            c10 = 65535;
                            if (c10 != 0) {
                            }
                        } else {
                            if (string2.equals("ia")) {
                                c10 = 3;
                                if (c10 != 0) {
                                }
                            }
                            c10 = 65535;
                            if (c10 != 0) {
                            }
                        }
                    }
                    this.f11396c = bundle;
                } catch (JSONException unused2) {
                    ((f4) this.f11397d).e().f12749y.d("Error loading bundle from SharedPreferences. Values will be lost");
                }
            }
            if (((Bundle) this.f11396c) == null) {
                this.f11396c = (Bundle) this.f11395b;
            }
        }
        return (Bundle) this.f11396c;
    }

    public final com.google.android.gms.internal.measurement.n w(com.google.android.gms.internal.measurement.e eVar) {
        com.google.android.gms.internal.measurement.n nVar = com.google.android.gms.internal.measurement.n.f6387b;
        Iterator L = eVar.L();
        while (L.hasNext()) {
            nVar = ((i4) this.f11395b).b(this, eVar.E(((Integer) L.next()).intValue()));
            if (nVar instanceof com.google.android.gms.internal.measurement.h) {
                break;
            }
        }
        return nVar;
    }

    public final com.google.android.gms.internal.measurement.n x(com.google.android.gms.internal.measurement.n nVar) {
        return ((i4) this.f11395b).b(this, nVar);
    }

    public final com.google.android.gms.internal.measurement.n y(h hVar, z3... z3VarArr) {
        com.google.android.gms.internal.measurement.n nVar = com.google.android.gms.internal.measurement.n.f6387b;
        for (z3 z3Var : z3VarArr) {
            nVar = m0.o(z3Var);
            m0.v((h) this.f11396c);
            if ((nVar instanceof com.google.android.gms.internal.measurement.q) || (nVar instanceof com.google.android.gms.internal.measurement.o)) {
                nVar = ((i4) this.f11394a).b(hVar, nVar);
            }
        }
        return nVar;
    }

    public final com.google.android.gms.internal.measurement.n z(String str) {
        h hVar = this;
        while (!((Map) hVar.f11396c).containsKey(str)) {
            Object obj = hVar.f11394a;
            if (((h) obj) == null) {
                throw new IllegalArgumentException(String.format("%s is not defined", str));
            }
            hVar = (h) obj;
        }
        return (com.google.android.gms.internal.measurement.n) ((Map) hVar.f11396c).get(str);
    }
}