Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba

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


package b2;

import android.net.Uri;
import android.text.TextUtils;
import b2.n;
import com.google.common.collect.k0;
import com.ironsource.j4;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import s1.e0;
import s1.f0;
import u1.e;
import u1.j;
public final class v implements x {
    public final e.a f3635a;
    public final String f3636b;
    public final boolean f3637c;
    public final HashMap f3638d;

    public v(String str, boolean z10, j.a aVar) {
        boolean z11;
        if (z10 && TextUtils.isEmpty(str)) {
            z11 = false;
        } else {
            z11 = true;
        }
        f0.b(z11);
        this.f3635a = aVar;
        this.f3636b = str;
        this.f3637c = z10;
        this.f3638d = new HashMap();
    }

    public static byte[] b(e.a aVar, String str, byte[] bArr, Map<String, String> map) throws y {
        int i;
        Map<String, List<String>> map2;
        List<String> list;
        String str2;
        u1.u uVar = new u1.u(aVar.a());
        Collections.emptyMap();
        Uri parse = Uri.parse(str);
        f0.h(parse, "The uri must be set.");
        String str3 = "The uri must be set.";
        u1.h hVar = new u1.h(parse, 0L, 2, bArr, map, 0L, -1L, null, 1, null);
        int i10 = 0;
        int i11 = 0;
        u1.h hVar2 = hVar;
        while (true) {
            try {
                u1.g gVar = new u1.g(uVar, hVar2);
                try {
                    int i12 = e0.f30447a;
                    byte[] bArr2 = new byte[4096];
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                    while (true) {
                        int read = gVar.read(bArr2);
                        if (read == -1) {
                            break;
                        }
                        byteArrayOutputStream.write(bArr2, i10, read);
                    }
                    byte[] byteArray = byteArrayOutputStream.toByteArray();
                    int i13 = e0.f30447a;
                    try {
                        gVar.close();
                    } catch (IOException unused) {
                    }
                    return byteArray;
                } catch (u1.q e10) {
                    int i14 = e10.f31291d;
                    if ((i14 == 307 || i14 == 308) && i11 < 5) {
                        i = 1;
                    } else {
                        i = i10;
                    }
                    if (i != 0 && (map2 = e10.f31292e) != null && (list = map2.get("Location")) != null && !list.isEmpty()) {
                        str2 = list.get(i10);
                        if (str2 == null) {
                            int i15 = i11 + 1;
                            long j4 = hVar2.f31247b;
                            int i16 = hVar2.f31248c;
                            byte[] bArr3 = hVar2.f31249d;
                            Map<String, String> map3 = hVar2.f31250e;
                            long j10 = hVar2.f31251f;
                            long j11 = hVar2.f31252g;
                            String str4 = hVar2.f31253h;
                            int i17 = hVar2.i;
                            Object obj = hVar2.f31254j;
                            Uri parse2 = Uri.parse(str2);
                            String str5 = str3;
                            f0.h(parse2, str5);
                            u1.h hVar3 = new u1.h(parse2, j4, i16, bArr3, map3, j10, j11, str4, i17, obj);
                            int i18 = e0.f30447a;
                            try {
                                gVar.close();
                            } catch (IOException unused2) {
                            }
                            str3 = str5;
                            hVar2 = hVar3;
                            i10 = 0;
                            i11 = i15;
                        } else {
                            throw e10;
                        }
                    }
                    str2 = null;
                    if (str2 == null) {
                    }
                }
            } catch (Exception e11) {
                Uri uri = uVar.f31304c;
                uri.getClass();
                throw new y(hVar, uri, uVar.g(), uVar.f31303b, e11);
            }
        }
    }

    public final byte[] a(UUID uuid, n.a aVar) throws y {
        String str;
        String str2 = aVar.f3622b;
        if (this.f3637c || TextUtils.isEmpty(str2)) {
            str2 = this.f3636b;
        }
        if (!TextUtils.isEmpty(str2)) {
            HashMap hashMap = new HashMap();
            UUID uuid2 = p1.h.f27942e;
            if (uuid2.equals(uuid)) {
                str = "text/xml";
            } else if (p1.h.f27940c.equals(uuid)) {
                str = j4.J;
            } else {
                str = "application/octet-stream";
            }
            hashMap.put(j4.I, str);
            if (uuid2.equals(uuid)) {
                hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense");
            }
            synchronized (this.f3638d) {
                hashMap.putAll(this.f3638d);
            }
            return b(this.f3635a, str2, aVar.f3621a, hashMap);
        }
        Map emptyMap = Collections.emptyMap();
        Uri uri = Uri.EMPTY;
        f0.h(uri, "The uri must be set.");
        throw new y(new u1.h(uri, 0L, 1, null, emptyMap, 0L, -1L, null, 0, null), Uri.EMPTY, k0.f17588g, 0L, new IllegalStateException("No license URL"));
    }

    public final byte[] c(n.d dVar) throws y {
        return b(this.f3635a, dVar.f3624b + "&signedRequest=" + e0.n(dVar.f3623a), null, Collections.emptyMap());
    }
}