Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0

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


package ak;

import com.ironsource.j4;
import com.ironsource.q2;
import dk.r;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.CookieManager;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream;
import java.util.zip.Inflater;
import java.util.zip.InflaterInputStream;
public final class d {
    public static final Charset f989c = Charset.forName("ISO-8859-1");
    public final b f990a = new b();
    public c f991b;

    public static abstract class a<T> {
        public static final URL f992e;
        public URL f993a = f992e;
        public int f994b = 1;
        public final LinkedHashMap f995c = new LinkedHashMap();
        public final LinkedHashMap f996d = new LinkedHashMap();

        static {
            try {
                f992e = new URL("http://undefined/");
            } catch (MalformedURLException e10) {
                throw new IllegalStateException(e10);
            }
        }

        public final void a(String str, String str2) {
            g.e(str, q2.f19990p);
            if (str2 == null) {
                str2 = "";
            }
            g.e(str, q2.f19990p);
            List<String> b10 = b(str);
            if (b10.isEmpty()) {
                b10 = new ArrayList<>();
                this.f995c.put(str, b10);
            }
            b10.add(str2);
        }

        public final List<String> b(String str) {
            g.f(str);
            for (Map.Entry entry : this.f995c.entrySet()) {
                if (str.equalsIgnoreCase((String) entry.getKey())) {
                    return (List) entry.getValue();
                }
            }
            return Collections.emptyList();
        }

        public final boolean c(String str) {
            g.c("Content-Encoding");
            g.c(str);
            g.e("Content-Encoding", q2.f19990p);
            for (String str2 : b("Content-Encoding")) {
                if (str.equalsIgnoreCase(str2)) {
                    return true;
                }
            }
            return false;
        }

        public final void d(String str) {
            Map.Entry entry;
            g.e(str, q2.f19990p);
            String v6 = a5.a.v(str);
            LinkedHashMap linkedHashMap = this.f995c;
            Iterator it = linkedHashMap.entrySet().iterator();
            while (true) {
                if (it.hasNext()) {
                    entry = (Map.Entry) it.next();
                    if (a5.a.v((String) entry.getKey()).equals(v6)) {
                        break;
                    }
                } else {
                    entry = null;
                    break;
                }
            }
            if (entry != null) {
                linkedHashMap.remove(entry.getKey());
            }
        }

        public final a e(URL url) {
            g.g(url, q2.h.H);
            this.f993a = new e(url).b();
            return this;
        }

        public final URL f() {
            URL url = this.f993a;
            if (url != f992e) {
                return url;
            }
            throw new IllegalArgumentException("URL not set. Make sure to call #url(...) before executing the request.");
        }
    }

    public static class b extends a<zj.b> implements zj.b {
        public dk.f f1001k;
        public final CookieManager f1004n;
        public String f1000j = null;
        public boolean f1002l = false;
        public final String f1003m = ak.c.f985c;
        public volatile boolean f1005o = false;
        public int f997f = 30000;
        public final int f998g = 2097152;
        public boolean f999h = true;
        public final ArrayList i = new ArrayList();

        static {
            System.setProperty("sun.net.http.allowRestrictedHeaders", com.ironsource.mediationsdk.metadata.a.f19345g);
        }

        public b() {
            this.f994b = 1;
            a("Accept-Encoding", "gzip");
            a("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36");
            this.f1001k = dk.f.a();
            this.f1004n = new CookieManager();
        }
    }

    public static class c extends a<Object> {
        public static final Pattern f1006o = Pattern.compile("(\\w+)/\\w*\\+?xml.*");
        public ByteBuffer f1007f;
        public bk.a f1008g;
        public HttpURLConnection f1009h;
        public String i;
        public final String f1010j;
        public boolean f1011k = false;
        public boolean f1012l = false;
        public final int f1013m;
        public final b f1014n;

        public c(HttpURLConnection httpURLConnection, b bVar, c cVar) throws IOException {
            int i;
            this.f1013m = 0;
            this.f1009h = httpURLConnection;
            this.f1014n = bVar;
            this.f994b = t1.d.e(httpURLConnection.getRequestMethod());
            this.f993a = httpURLConnection.getURL();
            httpURLConnection.getResponseCode();
            httpURLConnection.getResponseMessage();
            this.f1010j = httpURLConnection.getContentType();
            LinkedHashMap linkedHashMap = new LinkedHashMap();
            int i10 = 0;
            while (true) {
                String headerFieldKey = httpURLConnection.getHeaderFieldKey(i10);
                String headerField = httpURLConnection.getHeaderField(i10);
                if (headerFieldKey == null && headerField == null) {
                    break;
                }
                i10++;
                if (headerFieldKey != null && headerField != null) {
                    if (linkedHashMap.containsKey(headerFieldKey)) {
                        ((List) linkedHashMap.get(headerFieldKey)).add(headerField);
                    } else {
                        ArrayList arrayList = new ArrayList();
                        arrayList.add(headerField);
                        linkedHashMap.put(headerFieldKey, arrayList);
                    }
                }
            }
            for (Map.Entry entry : linkedHashMap.entrySet()) {
                String str = (String) entry.getKey();
                if (str != null) {
                    List<String> list = (List) entry.getValue();
                    if (str.equalsIgnoreCase("Set-Cookie")) {
                        for (String str2 : list) {
                            if (str2 != null) {
                                r rVar = new r(str2);
                                String d10 = rVar.d(q2.i.f20142b);
                                rVar.g(q2.i.f20142b);
                                String trim = d10.trim();
                                String trim2 = rVar.d(";").trim();
                                if (trim.length() > 0 && !this.f996d.containsKey(trim)) {
                                    g.e(trim, q2.f19990p);
                                    g.g(trim2, q2.h.X);
                                    this.f996d.put(trim, trim2);
                                }
                            }
                        }
                    }
                    for (String str3 : list) {
                        if (str3 != null) {
                            byte[] bytes = str3.getBytes(d.f989c);
                            int i11 = 3;
                            i11 = (bytes.length >= 3 && (bytes[0] & 255) == 239 && (bytes[1] & 255) == 187 && (bytes[2] & 255) == 191) ? i11 : 0;
                            int length = bytes.length;
                            boolean z10 = false;
                            while (i11 < length) {
                                byte b10 = bytes[i11];
                                if ((b10 & 128) != 0) {
                                    if ((b10 & 224) == 192) {
                                        i = i11 + 1;
                                    } else if ((b10 & 240) != 224) {
                                        if ((b10 & 248) != 240) {
                                            z10 = false;
                                            break;
                                        }
                                        i = i11 + 3;
                                    } else {
                                        i = i11 + 2;
                                    }
                                    if (i < bytes.length) {
                                        while (i11 < i) {
                                            i11++;
                                            if ((bytes[i11] & 192) != 128) {
                                            }
                                        }
                                        z10 = true;
                                    }
                                    z10 = false;
                                    break;
                                }
                                i11++;
                            }
                            if (z10) {
                                str3 = new String(bytes, ak.c.f984b);
                            }
                        }
                        a(str, str3);
                    }
                }
            }
            b bVar2 = this.f1014n;
            URL url = this.f993a;
            Map<String, List<String>> map = ak.b.f982a;
            try {
                bVar2.f1004n.put(url.toURI(), linkedHashMap);
                if (cVar != null) {
                    for (Map.Entry entry2 : cVar.f996d.entrySet()) {
                        String str4 = (String) entry2.getKey();
                        g.e(str4, q2.f19990p);
                        if (!this.f996d.containsKey(str4)) {
                            String str5 = (String) entry2.getKey();
                            String str6 = (String) entry2.getValue();
                            g.e(str5, q2.f19990p);
                            g.g(str6, q2.h.X);
                            this.f996d.put(str5, str6);
                        }
                    }
                    cVar.h();
                    int i12 = cVar.f1013m + 1;
                    this.f1013m = i12;
                    if (i12 >= 20) {
                        throw new IOException(String.format("Too many redirects occurred trying to load URL %s", cVar.f()));
                    }
                }
            } catch (URISyntaxException e10) {
                MalformedURLException malformedURLException = new MalformedURLException(e10.getMessage());
                malformedURLException.initCause(e10);
                throw malformedURLException;
            }
        }

        public static c g(b bVar, c cVar) throws IOException {
            Object[] objArr;
            String str;
            Object[] objArr2;
            String c10;
            HttpURLConnection httpURLConnection;
            LinkedHashSet linkedHashSet;
            HashSet hashSet;
            int responseCode;
            c cVar2;
            InputStream inputStream;
            InputStream inflaterInputStream;
            HashSet hashSet2;
            HashSet hashSet3;
            synchronized (bVar) {
                if (!bVar.f1005o) {
                    bVar.f1005o = true;
                } else {
                    throw new h("Multiple threads were detected trying to execute the same request concurrently. Make sure to use Connection#newRequest() and do not share an executing request between threads.");
                }
            }
            URL f10 = bVar.f();
            if (f10 != null) {
                String protocol = f10.getProtocol();
                if (!protocol.equals("http") && !protocol.equals("https")) {
                    throw new MalformedURLException("Only http & https protocols supported");
                }
                boolean a10 = t1.d.a(bVar.f994b);
                if (bVar.f1000j != null) {
                    objArr = 1;
                } else {
                    objArr = null;
                }
                if (!a10) {
                    String concat = "Cannot set a request body for HTTP method ".concat(t1.d.d(bVar.f994b));
                    if (objArr != null) {
                        throw new h(concat);
                    }
                }
                c cVar3 = null;
                String str2 = null;
                try {
                    try {
                        try {
                            try {
                                if (bVar.i.size() > 0 && (!a10 || objArr != null)) {
                                    e eVar = new e(bVar.f());
                                    ArrayList arrayList = bVar.i;
                                    Iterator it = arrayList.iterator();
                                    while (it.hasNext()) {
                                        zj.a aVar = (zj.a) it.next();
                                        if (!aVar.c()) {
                                            StringBuilder sb = eVar.f1016b;
                                            if (sb == null) {
                                                eVar.f1016b = bk.d.b();
                                            } else {
                                                sb.append('&');
                                            }
                                            StringBuilder sb2 = eVar.f1016b;
                                            String b10 = aVar.b();
                                            Charset charset = ak.c.f984b;
                                            sb2.append(URLEncoder.encode(b10, charset.name()));
                                            sb2.append(j4.R);
                                            sb2.append(URLEncoder.encode(aVar.value(), charset.name()));
                                        } else {
                                            throw new h("InputStream data not supported in URL query string.");
                                        }
                                    }
                                    bVar.e(eVar.b());
                                    arrayList.clear();
                                } else if (a10) {
                                    List<String> b11 = bVar.b(j4.I);
                                    if (b11.size() > 0) {
                                        str = bk.d.g(b11, ", ");
                                    } else {
                                        str = null;
                                    }
                                    if (str != null) {
                                        if (str.contains("multipart/form-data") && !str.contains("boundary")) {
                                            c10 = ak.c.c();
                                            g.e(j4.I, q2.f19990p);
                                            bVar.d(j4.I);
                                            bVar.a(j4.I, "multipart/form-data; boundary=" + c10);
                                            long nanoTime = System.nanoTime();
                                            httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
                                            httpURLConnection.setRequestMethod(t1.d.c(bVar.f994b));
                                            httpURLConnection.setInstanceFollowRedirects(false);
                                            httpURLConnection.setConnectTimeout(bVar.f997f);
                                            httpURLConnection.setReadTimeout(bVar.f997f / 2);
                                            if (t1.d.a(bVar.f994b)) {
                                                httpURLConnection.setDoOutput(true);
                                            }
                                            Map<String, List<String>> map = ak.b.f982a;
                                            linkedHashSet = new LinkedHashSet();
                                            for (Map.Entry entry : bVar.f996d.entrySet()) {
                                                linkedHashSet.add(((String) entry.getKey()) + q2.i.f20142b + ((String) entry.getValue()));
                                            }
                                            hashSet = null;
                                            for (Map.Entry<String, List<String>> entry2 : bVar.f1004n.get(bVar.f993a.toURI(), ak.b.f982a).entrySet()) {
                                                List<String> value = entry2.getValue();
                                                if (value != null && value.size() != 0) {
                                                    String key = entry2.getKey();
                                                    if ("Cookie".equals(key)) {
                                                        hashSet2 = hashSet;
                                                        hashSet3 = linkedHashSet;
                                                    } else if ("Cookie2".equals(key)) {
                                                        hashSet3 = new HashSet();
                                                        hashSet2 = hashSet3;
                                                    }
                                                    hashSet3.addAll(value);
                                                    hashSet = hashSet2;
                                                }
                                            }
                                            if (linkedHashSet.size() > 0) {
                                                httpURLConnection.addRequestProperty("Cookie", bk.d.g(linkedHashSet, "; "));
                                            }
                                            if (hashSet != null && hashSet.size() > 0) {
                                                httpURLConnection.addRequestProperty("Cookie2", bk.d.g(hashSet, "; "));
                                            }
                                            for (Map.Entry entry3 : bVar.f995c.entrySet()) {
                                                for (String str3 : (List) entry3.getValue()) {
                                                    httpURLConnection.addRequestProperty((String) entry3.getKey(), str3);
                                                }
                                            }
                                            httpURLConnection.connect();
                                            if (httpURLConnection.getDoOutput()) {
                                                OutputStream outputStream = httpURLConnection.getOutputStream();
                                                try {
                                                    try {
                                                        i(bVar, outputStream, c10);
                                                    } catch (IOException e10) {
                                                        httpURLConnection.disconnect();
                                                        throw e10;
                                                    }
                                                } finally {
                                                    outputStream.close();
                                                }
                                            }
                                            responseCode = httpURLConnection.getResponseCode();
                                            cVar2 = new c(httpURLConnection, bVar, cVar);
                                            g.e("Location", q2.f19990p);
                                            if (!(!cVar2.b("Location").isEmpty()) && bVar.f999h) {
                                                if (responseCode != 307) {
                                                    f.h(1, "method");
                                                    bVar.f994b = 1;
                                                    bVar.i.clear();
                                                    bVar.f1000j = null;
                                                    bVar.d(j4.I);
                                                }
                                                List<String> b12 = cVar2.b("Location");
                                                if (b12.size() > 0) {
                                                    str2 = bk.d.g(b12, ", ");
                                                }
                                                g.f(str2);
                                                if (str2.startsWith("http:/") && str2.charAt(6) != '/') {
                                                    str2 = str2.substring(6);
                                                }
                                                bVar.e(bk.d.i(bVar.f(), str2));
                                                bVar.f1005o = false;
                                                return g(bVar, cVar2);
                                            } else if (responseCode < 200 && responseCode < 400) {
                                                String str4 = cVar2.f1010j;
                                                if (str4 != null && !str4.startsWith("text/") && !f1006o.matcher(str4).matches()) {
                                                    throw new zj.f(str4, bVar.f().toString());
                                                }
                                                cVar2.i = ak.c.b(cVar2.f1010j);
                                                if (httpURLConnection.getContentLength() != 0 && bVar.f994b != 6) {
                                                    if (httpURLConnection.getErrorStream() != null) {
                                                        inputStream = httpURLConnection.getErrorStream();
                                                    } else {
                                                        inputStream = httpURLConnection.getInputStream();
                                                    }
                                                    if (cVar2.c("gzip")) {
                                                        inflaterInputStream = new GZIPInputStream(inputStream);
                                                    } else {
                                                        if (cVar2.c("deflate")) {
                                                            inflaterInputStream = new InflaterInputStream(inputStream, new Inflater(true));
                                                        }
                                                        bk.a a11 = bk.a.a(inputStream, bVar.f998g);
                                                        a11.f3813c = nanoTime;
                                                        a11.f3814d = bVar.f997f * 1000000;
                                                        cVar2.f1008g = a11;
                                                    }
                                                    inputStream = inflaterInputStream;
                                                    bk.a a112 = bk.a.a(inputStream, bVar.f998g);
                                                    a112.f3813c = nanoTime;
                                                    a112.f3814d = bVar.f997f * 1000000;
                                                    cVar2.f1008g = a112;
                                                } else {
                                                    cVar2.f1007f = ByteBuffer.allocate(0);
                                                }
                                                bVar.f1005o = false;
                                                cVar2.f1011k = true;
                                                return cVar2;
                                            } else {
                                                throw new zj.c(responseCode, bVar.f().toString());
                                            }
                                        }
                                    } else {
                                        Charset charset2 = d.f989c;
                                        Iterator it2 = bVar.i.iterator();
                                        while (true) {
                                            if (it2.hasNext()) {
                                                if (((zj.a) it2.next()).c()) {
                                                    objArr2 = 1;
                                                    break;
                                                }
                                            } else {
                                                objArr2 = null;
                                                break;
                                            }
                                        }
                                        if (objArr2 != null) {
                                            c10 = ak.c.c();
                                            g.e(j4.I, q2.f19990p);
                                            bVar.d(j4.I);
                                            bVar.a(j4.I, "multipart/form-data; boundary=" + c10);
                                            long nanoTime2 = System.nanoTime();
                                            httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
                                            httpURLConnection.setRequestMethod(t1.d.c(bVar.f994b));
                                            httpURLConnection.setInstanceFollowRedirects(false);
                                            httpURLConnection.setConnectTimeout(bVar.f997f);
                                            httpURLConnection.setReadTimeout(bVar.f997f / 2);
                                            if (t1.d.a(bVar.f994b)) {
                                            }
                                            Map<String, List<String>> map2 = ak.b.f982a;
                                            linkedHashSet = new LinkedHashSet();
                                            while (r9.hasNext()) {
                                            }
                                            hashSet = null;
                                            while (r9.hasNext()) {
                                            }
                                            if (linkedHashSet.size() > 0) {
                                            }
                                            if (hashSet != null) {
                                                httpURLConnection.addRequestProperty("Cookie2", bk.d.g(hashSet, "; "));
                                            }
                                            while (r5.hasNext()) {
                                            }
                                            httpURLConnection.connect();
                                            if (httpURLConnection.getDoOutput()) {
                                            }
                                            responseCode = httpURLConnection.getResponseCode();
                                            cVar2 = new c(httpURLConnection, bVar, cVar);
                                            g.e("Location", q2.f19990p);
                                            if (!(!cVar2.b("Location").isEmpty())) {
                                            }
                                            if (responseCode < 200) {
                                            }
                                            throw new zj.c(responseCode, bVar.f().toString());
                                        }
                                        g.e(j4.I, q2.f19990p);
                                        bVar.d(j4.I);
                                        bVar.a(j4.I, "application/x-www-form-urlencoded; charset=" + bVar.f1003m);
                                    }
                                }
                                g.e("Location", q2.f19990p);
                                if (!(!cVar2.b("Location").isEmpty())) {
                                }
                                if (responseCode < 200) {
                                }
                                throw new zj.c(responseCode, bVar.f().toString());
                            } catch (IOException e11) {
                                e = e11;
                                cVar3 = cVar2;
                                if (cVar3 != null) {
                                    cVar3.h();
                                }
                                throw e;
                            }
                            httpURLConnection.connect();
                            if (httpURLConnection.getDoOutput()) {
                            }
                            responseCode = httpURLConnection.getResponseCode();
                            cVar2 = new c(httpURLConnection, bVar, cVar);
                        } catch (IOException e12) {
                            e = e12;
                        }
                    } finally {
                        bVar.f1005o = false;
                    }
                    hashSet = null;
                    while (r9.hasNext()) {
                    }
                    if (linkedHashSet.size() > 0) {
                    }
                    if (hashSet != null) {
                    }
                    while (r5.hasNext()) {
                    }
                } catch (URISyntaxException e13) {
                    MalformedURLException malformedURLException = new MalformedURLException(e13.getMessage());
                    malformedURLException.initCause(e13);
                    throw malformedURLException;
                }
                c10 = null;
                long nanoTime22 = System.nanoTime();
                httpURLConnection = (HttpURLConnection) bVar.f().openConnection();
                httpURLConnection.setRequestMethod(t1.d.c(bVar.f994b));
                httpURLConnection.setInstanceFollowRedirects(false);
                httpURLConnection.setConnectTimeout(bVar.f997f);
                httpURLConnection.setReadTimeout(bVar.f997f / 2);
                if (t1.d.a(bVar.f994b)) {
                }
                Map<String, List<String>> map22 = ak.b.f982a;
                linkedHashSet = new LinkedHashSet();
                while (r9.hasNext()) {
                }
            } else {
                throw new h("URL must be specified to connect");
            }
        }

        public static void i(zj.b bVar, OutputStream outputStream, String str) throws IOException {
            b bVar2 = (b) bVar;
            ArrayList arrayList = bVar2.i;
            String str2 = bVar2.f1003m;
            BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(outputStream, Charset.forName(str2)));
            if (str != null) {
                Iterator it = arrayList.iterator();
                while (it.hasNext()) {
                    zj.a aVar = (zj.a) it.next();
                    bufferedWriter.write("--");
                    bufferedWriter.write(str);
                    bufferedWriter.write("\r\n");
                    bufferedWriter.write("Content-Disposition: form-data; name=\"");
                    String b10 = aVar.b();
                    Charset charset = d.f989c;
                    bufferedWriter.write(b10.replace("\"", "%22"));
                    bufferedWriter.write("\"");
                    InputStream h10 = aVar.h();
                    if (h10 != null) {
                        bufferedWriter.write("; filename=\"");
                        bufferedWriter.write(aVar.value().replace("\"", "%22"));
                        bufferedWriter.write("\"\r\nContent-Type: ");
                        String a10 = aVar.a();
                        if (a10 == null) {
                            a10 = "application/octet-stream";
                        }
                        bufferedWriter.write(a10);
                        bufferedWriter.write("\r\n\r\n");
                        bufferedWriter.flush();
                        Pattern pattern = ak.c.f983a;
                        byte[] bArr = new byte[32768];
                        while (true) {
                            int read = h10.read(bArr);
                            if (read == -1) {
                                break;
                            }
                            outputStream.write(bArr, 0, read);
                        }
                        outputStream.flush();
                    } else {
                        bufferedWriter.write("\r\n\r\n");
                        bufferedWriter.write(aVar.value());
                    }
                    bufferedWriter.write("\r\n");
                }
                bufferedWriter.write("--");
                bufferedWriter.write(str);
                bufferedWriter.write("--");
            } else {
                String str3 = bVar2.f1000j;
                if (str3 != null) {
                    bufferedWriter.write(str3);
                } else {
                    Iterator it2 = arrayList.iterator();
                    boolean z10 = true;
                    while (it2.hasNext()) {
                        zj.a aVar2 = (zj.a) it2.next();
                        if (!z10) {
                            bufferedWriter.append('&');
                        } else {
                            z10 = false;
                        }
                        bufferedWriter.write(URLEncoder.encode(aVar2.b(), str2));
                        bufferedWriter.write(61);
                        bufferedWriter.write(URLEncoder.encode(aVar2.value(), str2));
                    }
                }
            }
            bufferedWriter.close();
        }

        public final void h() {
            bk.a aVar = this.f1008g;
            if (aVar != null) {
                try {
                    aVar.close();
                } catch (IOException unused) {
                } catch (Throwable th2) {
                    this.f1008g = null;
                    throw th2;
                }
                this.f1008g = null;
            }
            HttpURLConnection httpURLConnection = this.f1009h;
            if (httpURLConnection != null) {
                httpURLConnection.disconnect();
                this.f1009h = null;
            }
        }
    }

    public final ck.f a() throws IOException {
        b bVar = this.f990a;
        bVar.getClass();
        f.h(1, "method");
        bVar.f994b = 1;
        c g10 = c.g(bVar, null);
        this.f991b = g10;
        g.f(g10);
        c cVar = this.f991b;
        g.a("Request must be executed (with .execute(), .get(), or .post() before parsing response", cVar.f1011k);
        InputStream inputStream = cVar.f1008g;
        if (cVar.f1007f != null) {
            inputStream = new ByteArrayInputStream(cVar.f1007f.array());
            cVar.f1012l = false;
        }
        if (!cVar.f1012l) {
            ck.f d10 = ak.c.d(inputStream, cVar.i, cVar.f993a.toExternalForm(), cVar.f1014n.f1001k);
            cVar.i = d10.f4282k.f4287b.name();
            cVar.f1012l = true;
            cVar.h();
            return d10;
        }
        throw new h("Input stream already read and parsed, cannot re-read.");
    }

    public final d b(HashMap hashMap) {
        for (Map.Entry entry : hashMap.entrySet()) {
            String str = (String) entry.getKey();
            b bVar = this.f990a;
            bVar.getClass();
            g.e(str, q2.f19990p);
            bVar.d(str);
            bVar.a(str, (String) entry.getValue());
        }
        return this;
    }

    public final d c(int i) {
        boolean z10;
        b bVar = this.f990a;
        bVar.getClass();
        if (i >= 0) {
            z10 = true;
        } else {
            z10 = false;
        }
        g.a("Timeout milliseconds must be 0 (infinite) or greater", z10);
        bVar.f997f = i;
        return this;
    }
}