Amour v4.6.9版本的 MD5 值为:60db0759ce21a7c5858136dd0821206f

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


package pb;

import android.text.TextUtils;
import java.io.File;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import pb.b;
import ph.d7;
import rb.f;
import rb.g;
import rb.h;
import rb.k;
import rb.l;
import rb.m;
import rb.o;
import vb.h;
import vb.j;
import vb.n;
public final class b<T extends b> {
    public static final Object f11173p;
    public final int f11174a;
    public final int f11175b;
    public final int f11176c;
    public final String f11177d;
    public int f11178e;
    public final HashMap<String, String> f11179f;
    public final HashMap<String, String> f11180g;
    public final HashMap<String, String> f11181h;
    public final HashMap<String, String> i;
    public final HashMap<String, String> f11182j;
    public final HashMap<String, String> f11183k;
    public final HashMap<String, File> f11184l;
    public final String f11185m;
    public final String f11186n;
    public String f11187o;

    public static class a {
        public static final int[] f11188a;

        static {
            int[] iArr = new int[e.b.d(7).length];
            f11188a = iArr;
            try {
                iArr[2] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                f11188a[1] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                f11188a[0] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                f11188a[4] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                f11188a[5] = 5;
            } catch (NoSuchFieldError unused5) {
            }
        }
    }

    public static class C0193b<T extends C0193b> {
        public final String f11189a;
        public final HashMap<String, String> f11190b = new HashMap<>();
        public final HashMap<String, String> f11191c = new HashMap<>();
        public final HashMap<String, String> f11192d = new HashMap<>();
        public final String f11193e;
        public final String f11194f;

        public C0193b(String str, String str2, String str3) {
            this.f11189a = str;
            this.f11193e = str2;
            this.f11194f = str3;
        }
    }

    public static class c<T extends c> {
        public final String f11195a;
        public final HashMap<String, String> f11196b = new HashMap<>();
        public final HashMap<String, String> f11197c = new HashMap<>();
        public final HashMap<String, String> f11198d = new HashMap<>();

        public c(String str) {
            this.f11195a = str;
        }

        public final void a(LinkedHashMap linkedHashMap) {
            for (Map.Entry entry : linkedHashMap.entrySet()) {
                this.f11197c.put(entry.getKey(), entry.getValue());
            }
        }
    }

    public static class d<T extends d> {
        public final HashMap<String, String> f11200b = new HashMap<>();
        public final HashMap<String, String> f11201c = new HashMap<>();
        public final HashMap<String, String> f11202d = new HashMap<>();
        public final HashMap<String, String> f11203e = new HashMap<>();
        public final HashMap<String, File> f11204f = new HashMap<>();
        public final String f11199a = "https://api-push.meizu.com/garcia/api/client/log/upload";
    }

    public static class e<T extends e> {
        public final String f11206b;
        public final HashMap<String, String> f11207c = new HashMap<>();
        public final HashMap<String, String> f11208d = new HashMap<>();
        public final HashMap<String, String> f11209e = new HashMap<>();
        public final HashMap<String, String> f11210f = new HashMap<>();
        public final HashMap<String, String> f11211g = new HashMap<>();
        public final int f11205a = 1;

        public e(String str) {
            this.f11206b = str;
        }

        public final void a(LinkedHashMap linkedHashMap) {
            for (Map.Entry entry : linkedHashMap.entrySet()) {
                this.f11208d.put(entry.getKey(), entry.getValue());
            }
        }
    }

    static {
        g.a("application/json; charset=utf-8");
        g.a("text/x-markdown; charset=utf-8");
        f11173p = new Object();
    }

    public b(C0193b c0193b) {
        this.f11180g = new HashMap<>();
        this.f11181h = new HashMap<>();
        this.i = new HashMap<>();
        this.f11184l = new HashMap<>();
        this.f11176c = 1;
        this.f11174a = 0;
        this.f11175b = 2;
        this.f11177d = c0193b.f11189a;
        this.f11185m = c0193b.f11193e;
        this.f11186n = c0193b.f11194f;
        this.f11179f = c0193b.f11190b;
        this.f11182j = c0193b.f11191c;
        this.f11183k = c0193b.f11192d;
        this.f11187o = null;
    }

    public final d7 a() {
        this.f11178e = 1;
        return b4.a.p(this);
    }

    public final d7 b(m mVar) {
        d7 a10;
        int i = a.f11188a[e.b.c(this.f11178e)];
        if (i != 1) {
            if (i != 2) {
                if (i != 3) {
                    if (i != 4) {
                        if (i != 5) {
                            return null;
                        }
                        return new d7();
                    }
                    synchronized (f11173p) {
                        try {
                            try {
                                a10 = wb.a.a(mVar);
                            } catch (Exception e10) {
                                qb.a aVar = new qb.a(e10);
                                aVar.f12659b = 0;
                                aVar.f12658a = aVar.getMessage();
                                return new d7(aVar);
                            }
                        } catch (Throwable th2) {
                            throw th2;
                        }
                    }
                    return a10;
                }
                try {
                    j a11 = h.a(((rb.d) mVar.f13438d).f13384a);
                    n nVar = a11.f14588b;
                    vb.a aVar2 = a11.f14587a;
                    aVar2.A(nVar);
                    aVar2.U();
                    return new d7();
                } catch (Exception e11) {
                    qb.a aVar3 = new qb.a(e11);
                    aVar3.f12659b = 0;
                    aVar3.f12658a = aVar3.getMessage();
                    return new d7(aVar3);
                }
            }
            try {
                j a12 = h.a(((rb.d) mVar.f13438d).f13384a);
                n nVar2 = a12.f14588b;
                vb.a aVar4 = a12.f14587a;
                aVar4.A(nVar2);
                new JSONObject(aVar4.U());
                return new d7();
            } catch (Exception e12) {
                qb.a aVar5 = new qb.a(e12);
                aVar5.f12659b = 0;
                aVar5.f12658a = aVar5.getMessage();
                return new d7(aVar5);
            }
        }
        try {
            j a13 = h.a(((rb.d) mVar.f13438d).f13384a);
            n nVar3 = a13.f14588b;
            vb.a aVar6 = a13.f14587a;
            aVar6.A(nVar3);
            new JSONArray(aVar6.U());
            return new d7();
        } catch (Exception e13) {
            qb.a aVar7 = new qb.a(e13);
            aVar7.f12659b = 0;
            aVar7.f12658a = aVar7.getMessage();
            return new d7(aVar7);
        }
    }

    public final String c() {
        String substring;
        String substring2;
        ArrayList arrayList;
        String substring3;
        String str;
        String str2 = this.f11177d;
        for (Map.Entry<String, String> entry : this.f11183k.entrySet()) {
            str2 = str2.replace(androidx.appcompat.graphics.drawable.a.i(new StringBuilder("{"), entry.getKey(), "}"), String.valueOf(entry.getValue()));
        }
        f i = f.i(str2);
        i.getClass();
        f.a aVar = new f.a();
        String str3 = i.f13386a;
        aVar.f13394a = str3;
        boolean isEmpty = i.f13387b.isEmpty();
        String str4 = "";
        String str5 = i.i;
        if (isEmpty) {
            substring = "";
        } else {
            int length = str3.length() + 3;
            substring = str5.substring(length, o.a(length, str5.length(), str5, ":@"));
        }
        aVar.f13395b = substring;
        if (!i.f13388c.isEmpty()) {
            str4 = str5.substring(str5.indexOf(58, str3.length() + 3) + 1, str5.indexOf(64));
        }
        aVar.f13396c = str4;
        aVar.f13397d = i.f13389d;
        int a10 = f.a(str3);
        int i10 = i.f13390e;
        if (i10 == a10) {
            i10 = -1;
        }
        aVar.f13398e = i10;
        ArrayList arrayList2 = aVar.f13399f;
        arrayList2.clear();
        int indexOf = str5.indexOf(47, str3.length() + 3);
        int a11 = o.a(indexOf, str5.length(), str5, "?#");
        ArrayList arrayList3 = new ArrayList();
        while (indexOf < a11) {
            int i11 = indexOf + 1;
            int b10 = o.b(str5, i11, a11, '/');
            arrayList3.add(str5.substring(i11, b10));
            indexOf = b10;
        }
        arrayList2.addAll(arrayList3);
        if (i.f13392g == null) {
            substring2 = null;
        } else {
            int indexOf2 = str5.indexOf(63) + 1;
            substring2 = str5.substring(indexOf2, o.b(str5, indexOf2 + 1, str5.length(), '#'));
        }
        if (substring2 != null) {
            arrayList = f.h(f.b(substring2, " \"'<>#", true));
        } else {
            arrayList = null;
        }
        aVar.f13400g = arrayList;
        if (i.f13393h == null) {
            substring3 = null;
        } else {
            substring3 = str5.substring(str5.indexOf(35) + 1);
        }
        aVar.f13401h = substring3;
        for (Map.Entry<String, String> entry2 : this.f11182j.entrySet()) {
            String key = entry2.getKey();
            String value = entry2.getValue();
            if (key != null) {
                if (aVar.f13400g == null) {
                    aVar.f13400g = new ArrayList();
                }
                aVar.f13400g.add(f.b(key, " \"'<>#&=", false));
                ArrayList arrayList4 = aVar.f13400g;
                if (value != null) {
                    str = f.b(value, " \"'<>#&=", false);
                } else {
                    str = null;
                }
                arrayList4.add(str);
            } else {
                throw new IllegalArgumentException("name == null");
            }
        }
        return aVar.a().i;
    }

    public final rb.b d() {
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        try {
            for (Map.Entry<String, String> entry : this.f11180g.entrySet()) {
                if (!TextUtils.isEmpty(entry.getKey()) && !TextUtils.isEmpty(entry.getValue())) {
                    arrayList.add(f.b(entry.getKey(), " \"':;<=>@[]^`{}|/\\?#&!$(),~", false));
                    arrayList2.add(f.b(entry.getValue(), " \"':;<=>@[]^`{}|/\\?#&!$(),~", false));
                }
            }
            for (Map.Entry<String, String> entry2 : this.f11181h.entrySet()) {
                if (!TextUtils.isEmpty(entry2.getKey()) && !TextUtils.isEmpty(entry2.getValue())) {
                    arrayList.add(f.b(entry2.getKey(), " \"':;<=>@[]^`{}|/\\?#&!$(),~", true));
                    arrayList2.add(f.b(entry2.getValue(), " \"':;<=>@[]^`{}|/\\?#&!$(),~", true));
                }
            }
        } catch (Exception e10) {
            e10.printStackTrace();
        }
        return new rb.b(arrayList, arrayList2);
    }

    public final rb.h e() {
        h.a aVar = new h.a();
        g gVar = rb.h.f13408f;
        if (gVar != null) {
            if ("multipart".equals(gVar.f13405b)) {
                aVar.f13416b = gVar;
                try {
                    for (Map.Entry<String, String> entry : this.i.entrySet()) {
                        aVar.a(rb.c.b("Content-Disposition", "form-data; name=\"" + entry.getKey() + "\""), l.b(null, entry.getValue()));
                    }
                    for (Map.Entry<String, File> entry2 : this.f11184l.entrySet()) {
                        if (entry2.getValue() != null) {
                            String name = entry2.getValue().getName();
                            String contentTypeFor = URLConnection.getFileNameMap().getContentTypeFor(name);
                            if (contentTypeFor == null) {
                                contentTypeFor = "application/octet-stream";
                            }
                            g a10 = g.a(contentTypeFor);
                            File value = entry2.getValue();
                            if (value != null) {
                                k kVar = new k(a10, value);
                                aVar.a(rb.c.b("Content-Disposition", "form-data; name=\"" + entry2.getKey() + "\"; filename=\"" + name + "\""), kVar);
                            } else {
                                throw new NullPointerException("content == null");
                            }
                        }
                    }
                } catch (Exception e10) {
                    e10.printStackTrace();
                }
                ArrayList arrayList = aVar.f13417c;
                if (!arrayList.isEmpty()) {
                    return new rb.h(aVar.f13415a, aVar.f13416b, arrayList);
                }
                throw new IllegalStateException("Multipart body must have at least one part.");
            }
            throw new IllegalArgumentException("multipart != " + gVar);
        }
        throw new NullPointerException("type == null");
    }

    public final boolean equals(Object obj) {
        return super.equals(obj);
    }

    public final int hashCode() {
        return super.hashCode();
    }

    public final String toString() {
        return "ANRequest{sequenceNumber='0, mMethod=" + this.f11174a + ", mPriority=" + androidx.appcompat.widget.d.l(this.f11175b) + ", mRequestType=" + this.f11176c + ", mUrl=" + this.f11177d + '}';
    }

    public b(c cVar) {
        this.f11180g = new HashMap<>();
        this.f11181h = new HashMap<>();
        this.i = new HashMap<>();
        this.f11184l = new HashMap<>();
        this.f11176c = 0;
        this.f11174a = 0;
        this.f11175b = 2;
        this.f11177d = cVar.f11195a;
        this.f11179f = cVar.f11196b;
        this.f11182j = cVar.f11197c;
        this.f11183k = cVar.f11198d;
        this.f11187o = null;
    }

    public b(d dVar) {
        this.f11180g = new HashMap<>();
        this.f11181h = new HashMap<>();
        this.i = new HashMap<>();
        this.f11184l = new HashMap<>();
        this.f11176c = 2;
        this.f11174a = 1;
        this.f11175b = 2;
        this.f11177d = dVar.f11199a;
        this.f11179f = dVar.f11200b;
        this.f11182j = dVar.f11202d;
        this.f11183k = dVar.f11203e;
        this.i = dVar.f11201c;
        this.f11184l = dVar.f11204f;
        this.f11187o = null;
    }

    public b(e eVar) {
        this.f11180g = new HashMap<>();
        this.f11181h = new HashMap<>();
        this.i = new HashMap<>();
        this.f11184l = new HashMap<>();
        this.f11176c = 0;
        this.f11174a = eVar.f11205a;
        this.f11175b = 2;
        this.f11177d = eVar.f11206b;
        this.f11179f = eVar.f11207c;
        this.f11180g = eVar.f11208d;
        this.f11181h = eVar.f11209e;
        this.f11182j = eVar.f11210f;
        this.f11183k = eVar.f11211g;
        this.f11187o = null;
    }
}