YourPorn v1.2.4版本的 MD5 值为:25af0cc492747d0d721ef41054943bde

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


package q0;

import a3.Cfinally;
import android.content.Context;
import com.blankj.utilcode.util.ToastUtils;
import com.blankj.utilcode.util.Utils;
import com.caoliu.lib_common.dialog.CoinPayDialog;
import com.caoliu.lib_common.entity.FileResponse;
import com.caoliu.lib_http.BaseResp;
import i8.Cfinal;
import java.io.File;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import p7.Cconst;
import r8.Cswitch;
import r8.Cthrows;

public final class Cnew {

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {132}, m = "uploadFacePIc")
    public static final class Ccase extends v7.Cfor {
        public Object L$0;
        public int label;
        public Object result;

        public Ccase(t7.Cnew<? super Ccase> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3444else(null, null, 0, null, null, this);
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {78}, m = "doUploadAIFile")
    public static final class Cdo extends v7.Cfor {
        public int label;
        public Object result;

        public Cdo(t7.Cnew<? super Cdo> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3443do(null, null, this);
        }
    }

    public static final class Celse extends b8.Cthis implements a8.Cdo<Cconst> {
        public final Context $context;

        public Celse(Context context) {
            super(0);
            this.$context = context;
        }

        @Override
        public Cconst invoke() {
            invoke2();
            return Cconst.f8029do;
        }

        public final void invoke2() {
            CoinPayDialog coinPayDialog = new CoinPayDialog(this.$context);
            Utils.getApp();
            a5.Ctry ctry = new a5.Ctry();
            ctry.f80for = Boolean.FALSE;
            coinPayDialog.f4946else = ctry;
            coinPayDialog.m1949throw();
            coinPayDialog.m827static();
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {54}, m = "doUploadFileBase")
    public static final class Cfor extends v7.Cfor {
        public int label;
        public Object result;

        public Cfor(t7.Cnew<? super Cfor> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3445for(null, null, this);
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {102}, m = "uploadModelPic")
    public static final class Cgoto extends v7.Cfor {
        public Object L$0;
        public int label;
        public Object result;

        public Cgoto(t7.Cnew<? super Cgoto> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3446goto(null, null, 0, null, null, this);
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {48}, m = "doUploadFile")
    public static final class Cif extends v7.Cfor {
        public int label;
        public Object result;

        public Cif(t7.Cnew<? super Cif> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3447if(null, null, this);
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {72}, m = "doUploadFiles")
    public static final class C0156new extends v7.Cfor {
        public int label;
        public Object result;

        public C0156new(t7.Cnew<? super C0156new> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3448new(null, null, this);
        }
    }

    public static final class Cthis extends b8.Cthis implements a8.Cdo<Cconst> {
        public final Context $context;

        public Cthis(Context context) {
            super(0);
            this.$context = context;
        }

        @Override
        public Cconst invoke() {
            invoke2();
            return Cconst.f8029do;
        }

        public final void invoke2() {
            CoinPayDialog coinPayDialog = new CoinPayDialog(this.$context);
            Utils.getApp();
            a5.Ctry ctry = new a5.Ctry();
            ctry.f80for = Boolean.FALSE;
            coinPayDialog.f4946else = ctry;
            coinPayDialog.m1949throw();
            coinPayDialog.m827static();
        }
    }

    @v7.Ctry(c = "com.caoliu.lib_common.repository.FileRepository", f = "FileRepository.kt", l = {38}, m = "uploadChatFile")
    public static final class Ctry extends v7.Cfor {
        public int label;
        public Object result;

        public Ctry(t7.Cnew<? super Ctry> cnew) {
            super(cnew);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.result = obj;
            this.label |= Integer.MIN_VALUE;
            return Cnew.this.m3442case(null, null, this);
        }
    }

    public final Object m3442case(File file, String str, t7.Cnew<? super String> cnew) {
        Ctry ctry;
        int i10;
        BaseResp baseResp;
        if (cnew instanceof Ctry) {
            ctry = (Ctry) cnew;
            int i11 = ctry.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                ctry.label = i11 - Integer.MIN_VALUE;
                Object obj = ctry.result;
                u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                i10 = ctry.label;
                if (i10 != 0) {
                    Cfinally.n0(obj);
                    String name = file.getName();
                    i.Cdo.m2666catch(name, "it.name");
                    Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), null));
                    h0.Cfor cfor = (h0.Cfor) n0.Ccase.f7799for.m3110if("https://52kbhl.com/").m2637if(h0.Cfor.class);
                    ctry.label = 1;
                    obj = cfor.m2520do(str, m3688if, ctry);
                    if (obj == cdo) {
                        return cdo;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    Cfinally.n0(obj);
                }
                baseResp = (BaseResp) obj;
                if (baseResp.getCode() != 0) {
                    return baseResp.getData();
                }
                throw new t0.Cdo(500, baseResp.getMsg());
            }
        }
        ctry = new Ctry(cnew);
        Object obj2 = ctry.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i10 = ctry.label;
        if (i10 != 0) {
        }
        baseResp = (BaseResp) obj2;
        if (baseResp.getCode() != 0) {
        }
    }

    public final Object m3443do(File file, t0.Cgoto cgoto, t7.Cnew<? super String> cnew) {
        Cdo cdo;
        int i10;
        if (cnew instanceof Cdo) {
            cdo = (Cdo) cnew;
            int i11 = cdo.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                cdo.label = i11 - Integer.MIN_VALUE;
                Object obj = cdo.result;
                u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
                i10 = cdo.label;
                if (i10 != 0) {
                    Cfinally.n0(obj);
                    String name = file.getName();
                    i.Cdo.m2666catch(name, "it.name");
                    Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto));
                    h0.Cfor cfor = h0.Cdo.f6409for;
                    cdo.label = 1;
                    obj = cfor.m2524try(m3688if, cdo);
                    if (obj == cdo2) {
                        return cdo2;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    Cfinally.n0(obj);
                }
                return Cfinally.l((BaseResp) obj);
            }
        }
        cdo = new Cdo(cnew);
        Object obj2 = cdo.result;
        u7.Cdo cdo22 = u7.Cdo.COROUTINE_SUSPENDED;
        i10 = cdo.label;
        if (i10 != 0) {
        }
        return Cfinally.l((BaseResp) obj2);
    }

    public final Object m3444else(Context context, File file, int i10, String str, t0.Cgoto cgoto, t7.Cnew<? super String> cnew) {
        Ccase ccase;
        int i11;
        try {
            if (cnew instanceof Ccase) {
                ccase = (Ccase) cnew;
                int i12 = ccase.label;
                if ((i12 & Integer.MIN_VALUE) != 0) {
                    ccase.label = i12 - Integer.MIN_VALUE;
                    Object obj = ccase.result;
                    u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                    i11 = ccase.label;
                    if (i11 != 0) {
                        Cfinally.n0(obj);
                        String name = file.getName();
                        i.Cdo.m2666catch(name, "it.name");
                        Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto));
                        h0.Cfor cfor = h0.Cdo.f6409for;
                        ccase.L$0 = context;
                        ccase.label = 1;
                        obj = cfor.m2522if(m3688if, i10, str, ccase);
                        if (obj == cdo) {
                            return cdo;
                        }
                    } else {
                        if (i11 != 1) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        Cfinally.n0(obj);
                    }
                    return Cfinally.l((BaseResp) obj);
                }
            }
            if (i11 != 0) {
            }
            return Cfinally.l((BaseResp) obj);
        } catch (t0.Cdo e10) {
            if (e10.getCode() == 5100) {
                f0.Cfor.m2391transient(0L, new Celse(context), 1);
                return "";
            }
            ToastUtils.showShort(e10.getMsg(), new Object[0]);
            return "";
        }
        ccase = new Ccase(cnew);
        Object obj2 = ccase.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i11 = ccase.label;
    }

    public final Object m3445for(File file, t0.Cgoto cgoto, t7.Cnew<? super BaseResp<FileResponse>> cnew) {
        Cfor cfor;
        int i10;
        if (cnew instanceof Cfor) {
            cfor = (Cfor) cnew;
            int i11 = cfor.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                cfor.label = i11 - Integer.MIN_VALUE;
                Object obj = cfor.result;
                u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                i10 = cfor.label;
                if (i10 != 0) {
                    Cfinally.n0(obj);
                    String name = file.getName();
                    i.Cdo.m2666catch(name, "it.name");
                    Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto));
                    h0.Cfor cfor2 = h0.Cdo.f6409for;
                    cfor.label = 1;
                    obj = cfor2.m2519case(m3688if, cfor);
                    if (obj == cdo) {
                        return cdo;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    Cfinally.n0(obj);
                }
                return (BaseResp) obj;
            }
        }
        cfor = new Cfor(cnew);
        Object obj2 = cfor.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i10 = cfor.label;
        if (i10 != 0) {
        }
        return (BaseResp) obj2;
    }

    public final Object m3446goto(Context context, File file, int i10, String str, t0.Cgoto cgoto, t7.Cnew<? super String> cnew) {
        Cgoto cgoto2;
        int i11;
        try {
            if (cnew instanceof Cgoto) {
                cgoto2 = (Cgoto) cnew;
                int i12 = cgoto2.label;
                if ((i12 & Integer.MIN_VALUE) != 0) {
                    cgoto2.label = i12 - Integer.MIN_VALUE;
                    Object obj = cgoto2.result;
                    u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                    i11 = cgoto2.label;
                    if (i11 != 0) {
                        Cfinally.n0(obj);
                        String name = file.getName();
                        i.Cdo.m2666catch(name, "it.name");
                        Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto));
                        h0.Cfor cfor = h0.Cdo.f6409for;
                        cgoto2.L$0 = context;
                        cgoto2.label = 1;
                        obj = cfor.m2523new(m3688if, i10, str, cgoto2);
                        if (obj == cdo) {
                            return cdo;
                        }
                    } else {
                        if (i11 != 1) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        Cfinally.n0(obj);
                    }
                    return Cfinally.l((BaseResp) obj);
                }
            }
            if (i11 != 0) {
            }
            return Cfinally.l((BaseResp) obj);
        } catch (t0.Cdo e10) {
            if (e10.getCode() == 5100) {
                f0.Cfor.m2391transient(0L, new Cthis(context), 1);
                return "";
            }
            ToastUtils.showShort(e10.getMsg(), new Object[0]);
            return "";
        }
        cgoto2 = new Cgoto(cnew);
        Object obj2 = cgoto2.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i11 = cgoto2.label;
    }

    public final Object m3447if(File file, t0.Cgoto cgoto, t7.Cnew<? super FileResponse> cnew) {
        Cif cif;
        int i10;
        if (cnew instanceof Cif) {
            cif = (Cif) cnew;
            int i11 = cif.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                cif.label = i11 - Integer.MIN_VALUE;
                Object obj = cif.result;
                u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                i10 = cif.label;
                if (i10 != 0) {
                    Cfinally.n0(obj);
                    String name = file.getName();
                    i.Cdo.m2666catch(name, "it.name");
                    Cthrows.Cfor m3688if = Cthrows.Cfor.m3688if("file", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto));
                    h0.Cfor cfor = h0.Cdo.f6409for;
                    cif.label = 1;
                    obj = cfor.m2519case(m3688if, cif);
                    if (obj == cdo) {
                        return cdo;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    Cfinally.n0(obj);
                }
                return Cfinally.l((BaseResp) obj);
            }
        }
        cif = new Cif(cnew);
        Object obj2 = cif.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i10 = cif.label;
        if (i10 != 0) {
        }
        return Cfinally.l((BaseResp) obj2);
    }

    public final Object m3448new(ArrayList<File> arrayList, t0.Cgoto cgoto, t7.Cnew<? super List<FileResponse>> cnew) {
        C0156new c0156new;
        int i10;
        if (cnew instanceof C0156new) {
            c0156new = (C0156new) cnew;
            int i11 = c0156new.label;
            if ((i11 & Integer.MIN_VALUE) != 0) {
                c0156new.label = i11 - Integer.MIN_VALUE;
                Object obj = c0156new.result;
                u7.Cdo cdo = u7.Cdo.COROUTINE_SUSPENDED;
                i10 = c0156new.label;
                if (i10 != 0) {
                    Cfinally.n0(obj);
                    ArrayList arrayList2 = new ArrayList();
                    for (File file : arrayList) {
                        String name = file.getName();
                        i.Cdo.m2666catch(name, "it.name");
                        arrayList2.add(Cthrows.Cfor.m3688if("files", file.getName(), new t0.Ccase(file, String.valueOf(m3449try(name)), cgoto)));
                    }
                    h0.Cfor cfor = h0.Cdo.f6409for;
                    c0156new.label = 1;
                    obj = cfor.m2521for(arrayList2, c0156new);
                    if (obj == cdo) {
                        return cdo;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    Cfinally.n0(obj);
                }
                return Cfinally.l((BaseResp) obj);
            }
        }
        c0156new = new C0156new(cnew);
        Object obj2 = c0156new.result;
        u7.Cdo cdo2 = u7.Cdo.COROUTINE_SUSPENDED;
        i10 = c0156new.label;
        if (i10 != 0) {
        }
        return Cfinally.l((BaseResp) obj2);
    }

    public final Cswitch m3449try(String str) {
        String contentTypeFor = URLConnection.getFileNameMap().getContentTypeFor(Cfinal.G0(str, "#", "", false, 4));
        if (contentTypeFor == null) {
            contentTypeFor = "application/octet-stream";
        }
        i8.Cgoto cgoto = s8.Cfor.f8993do;
        try {
            return s8.Cfor.m3738do(contentTypeFor);
        } catch (IllegalArgumentException unused) {
            return null;
        }
    }
}