package com.bytedance.sdk.openadsdk.common;

import android.R;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bytedance.sdk.component.utils.gzf;
import com.bytedance.sdk.openadsdk.ApmHelper;
import com.bytedance.sdk.openadsdk.FilterWord;
import com.bytedance.sdk.openadsdk.activity.single.IABLandingPageActivity;
import com.bytedance.sdk.openadsdk.activity.single.TTHistoryActivity;
import com.bytedance.sdk.openadsdk.common.qhl;
import com.bytedance.sdk.openadsdk.common.sds;
import com.bytedance.sdk.openadsdk.core.ai;
import com.bytedance.sdk.openadsdk.core.model.lse;
import com.bytedance.sdk.openadsdk.core.widget.fm.wsy;
import com.bytedance.sdk.openadsdk.utils.bx;
import com.bytedance.sdk.openadsdk.utils.zan;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;

/* JADX INFO: loaded from: classes2.dex */
public class maa {
    private boolean ai;
    private final RelativeLayout ajl;
    private ImageView dsz;
    private ImageView duv;

    /* JADX INFO: renamed from: ef, reason: collision with root package name */
    private ImageView f6852ef;
    private boolean fhx;
    qhl fm;
    private final String gof;
    private boolean gqi;
    private wey hi;
    private com.bytedance.sdk.openadsdk.core.ajl.jnr hlt;
    private final com.bytedance.sdk.component.ef.wsy irt;
    sds jnr;
    private ImageView ku;
    private TextView lse;
    private TextView maa;
    private boolean mq;
    private wsy.fm qhl;
    TTAdDislikeToast ro;
    private com.bytedance.sdk.openadsdk.core.ajl.ajl vt;
    private View wey;
    private final lse wsy;
    private final Context wu;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    final AtomicBoolean f6853lb = new AtomicBoolean(false);
    final AtomicBoolean yz = new AtomicBoolean(false);
    private boolean sds = false;
    private String nt = "TTTitleNewStyleManager";
    private final String gzf = "is_new_style";
    private final int onz = zan.ro(com.bytedance.sdk.openadsdk.core.gof.fm(), 44.0f);

    public maa(Context context, RelativeLayout relativeLayout, lse lseVar, com.bytedance.sdk.component.ef.wsy wsyVar, String str, boolean z10) {
        boolean z11 = false;
        this.wu = context;
        this.ajl = relativeLayout;
        this.wsy = lseVar;
        this.irt = wsyVar;
        this.gof = str;
        this.gqi = z10;
        this.jnr = new sds(context, this.gqi);
        this.mq = str.equals("iab_private_browser") || str.equals("iab_landing_page") || str.equals("iab_history_landing_page");
        if (com.bytedance.sdk.openadsdk.hlt.jnr.fm("lp_cache_enable", false) && str.equals("iab_landing_page")) {
            z11 = true;
        }
        this.ai = z11;
        ku();
        duv();
    }

    private void dsz() {
        try {
            if (this.fm == null) {
                qhl qhlVar = new qhl(this.wu, this.wsy);
                this.fm = qhlVar;
                qhlVar.setDislikeSource("landing_page");
                this.fm.setCallback(new qhl.fm() { // from class: com.bytedance.sdk.openadsdk.common.maa.3
                    @Override // com.bytedance.sdk.openadsdk.common.qhl.fm
                    public void fm(View view) {
                        maa.this.f6853lb.set(true);
                    }

                    @Override // com.bytedance.sdk.openadsdk.common.qhl.fm
                    public void ro(View view) {
                        maa.this.f6853lb.set(false);
                    }

                    @Override // com.bytedance.sdk.openadsdk.common.qhl.fm
                    public void fm(FilterWord filterWord) {
                        if (maa.this.yz.get() || filterWord == null || filterWord.hasSecondOptions()) {
                            return;
                        }
                        maa.this.yz.set(true);
                    }
                });
            }
            FrameLayout frameLayout = (FrameLayout) this.ajl.getRootView().findViewById(R.id.content);
            frameLayout.addView(this.fm);
            if (this.ro == null) {
                TTAdDislikeToast tTAdDislikeToast = new TTAdDislikeToast(this.wu);
                this.ro = tTAdDislikeToast;
                frameLayout.addView(tTAdDislikeToast);
            }
        } catch (Throwable th) {
            ApmHelper.reportCustomError("initDislike error", "TTTitleNewStyleManager", th);
        }
    }

    private boolean fhx() {
        return this.wu.getResources().getConfiguration().getLayoutDirection() == 1;
    }

    private void onz() {
        this.ro.show(TTAdDislikeToast.getDislikeTip());
    }

    public TextView ajl() {
        return this.maa;
    }

    public TextView ef() {
        return this.lse;
    }

    public ImageView jnr() {
        return this.f6852ef;
    }

    public com.bytedance.sdk.openadsdk.core.ajl.ajl yz() {
        return this.vt;
    }

    private void duv() {
        View view = this.wey;
        if (view == null) {
            return;
        }
        view.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.8
            @Override // android.view.View.OnClickListener
            public void onClick(View view2) {
                if (maa.this.sds) {
                    maa.this.ro();
                    maa.this.sds = false;
                }
            }
        });
    }

    @SuppressLint({"SetTextI18n"})
    private void ku() {
        RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.ajl.getLayoutParams();
        layoutParams.height = this.onz;
        this.ajl.setLayoutParams(layoutParams);
        int iRo = zan.ro(this.wu, 8.0f);
        this.ajl.setPadding(iRo, 0, iRo, 0);
        this.f6852ef = (ImageView) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.ttj);
        this.ku = (ImageView) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.zjk);
        this.duv = (ImageView) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.grs);
        this.dsz = (ImageView) this.ajl.findViewById(520093740);
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = (com.bytedance.sdk.openadsdk.core.ajl.jnr) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.daz);
        this.hlt = jnrVar;
        this.maa = (TextView) jnrVar.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.fm);
        this.lse = (TextView) this.hlt.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.ro);
        if (fhx()) {
            this.maa.setTextDirection(4);
            this.lse.setTextDirection(4);
            this.maa.setGravity(8388629);
            this.lse.setGravity(8388629);
            this.ku.setImageResource(com.bytedance.sdk.component.utils.maa.yz(this.wu, "tt_titlebar_forward"));
            this.duv.setImageResource(com.bytedance.sdk.component.utils.maa.yz(this.wu, "tt_titlebar_backward"));
        }
        if (this.mq) {
            this.vt = (com.bytedance.sdk.openadsdk.core.ajl.ajl) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.cpu);
        } else {
            this.vt = (com.bytedance.sdk.openadsdk.core.ajl.ajl) this.ajl.findViewById(com.bytedance.sdk.openadsdk.utils.qhl.cg);
        }
        this.duv.setVisibility(0);
        this.ku.setVisibility(0);
        this.f6852ef.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.1
            @Override // android.view.View.OnClickListener
            public void onClick(View view) {
                if (maa.this.irt != null) {
                    if (maa.this.ai) {
                        Bundle bundleFm = maa.this.fm();
                        String strKu = maa.this.wsy.ku();
                        if (bundleFm == null || strKu == null) {
                            gzf.fm(maa.this.irt);
                        } else {
                            com.bytedance.sdk.openadsdk.utils.sds.fm(System.identityHashCode(maa.this.wsy) + "_" + strKu, maa.this.irt, bundleFm);
                        }
                    } else {
                        maa.this.irt.wsy();
                        maa.this.irt.removeAllViews();
                        ViewGroup viewGroup = (ViewGroup) maa.this.irt.getParent();
                        if (viewGroup != null) {
                            viewGroup.removeView(maa.this.irt);
                        }
                        maa.this.irt.fhx();
                    }
                }
                if (maa.this.wu instanceof Activity) {
                    ((Activity) maa.this.wu).finish();
                }
            }
        });
        this.ku.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.5
            @Override // android.view.View.OnClickListener
            public void onClick(View view) {
                if (maa.this.irt == null || !maa.this.irt.wu()) {
                    return;
                }
                if (maa.this.qhl != null) {
                    maa.this.qhl.fm();
                }
                maa.this.irt.ef();
            }
        });
        this.duv.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.6
            @Override // android.view.View.OnClickListener
            public void onClick(View view) {
                if (maa.this.irt == null || !maa.this.irt.vt()) {
                    return;
                }
                maa.this.irt.ku();
            }
        });
        this.dsz.setOnClickListener(new View.OnClickListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.7
            @Override // android.view.View.OnClickListener
            public void onClick(View view) {
                maa maaVar = maa.this;
                maaVar.fm(maaVar.jnr, view);
            }
        });
        fm(true);
        this.ku.setClickable(false);
        this.duv.setClickable(false);
        ImageView imageView = this.ku;
        int color = Color.parseColor("#A8FFFFFF");
        PorterDuff.Mode mode = PorterDuff.Mode.ADD;
        imageView.setColorFilter(color, mode);
        this.duv.setColorFilter(Color.parseColor("#A8FFFFFF"), mode);
        this.wey = this.ajl;
    }

    public void lb() {
        try {
            final RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.ajl.getLayoutParams();
            final com.bytedance.sdk.component.ef.wsy wsyVar = this.irt;
            if (this.fhx) {
                return;
            }
            int i10 = layoutParams.height;
            int i11 = this.onz;
            if (i10 == i11) {
                ValueAnimator valueAnimatorOfInt = ValueAnimator.ofInt(i11, i11 / 2);
                valueAnimatorOfInt.setDuration(300L);
                valueAnimatorOfInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.12
                    @Override // android.animation.ValueAnimator.AnimatorUpdateListener
                    public void onAnimationUpdate(ValueAnimator valueAnimator) {
                        View view;
                        try {
                            int iIntValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                            layoutParams.height = iIntValue;
                            maa.this.ajl.setLayoutParams(layoutParams);
                            if (maa.this.mq && (view = wsyVar) != null) {
                                ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
                                marginLayoutParams.topMargin = iIntValue;
                                wsyVar.setLayoutParams(marginLayoutParams);
                            }
                            maa.this.ajl.requestLayout();
                        } catch (Throwable unused) {
                            String unused2 = maa.this.nt;
                        }
                    }
                });
                valueAnimatorOfInt.addListener(new Animator.AnimatorListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.2
                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationCancel(Animator animator) {
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationEnd(Animator animator) {
                        maa.this.fhx = false;
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationRepeat(Animator animator) {
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationStart(Animator animator) {
                        maa.this.fhx = true;
                        maa.this.fm(8);
                        maa.this.fm(false);
                        maa.this.sds = true;
                    }
                });
                valueAnimatorOfInt.start();
            }
        } catch (Throwable unused) {
        }
    }

    public void vt() {
        if (this.yz.get()) {
            onz();
            return;
        }
        if (this.fm == null) {
            dsz();
        }
        qhl qhlVar = this.fm;
        if (qhlVar != null) {
            qhlVar.fm();
        }
    }

    public String wsy() {
        return this.maa.getText().toString();
    }

    public String wu() {
        return this.lse.getText().toString();
    }

    public void ro() {
        try {
            final RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.ajl.getLayoutParams();
            final com.bytedance.sdk.component.ef.wsy wsyVar = this.irt;
            if (this.fhx) {
                return;
            }
            int i10 = layoutParams.height;
            int i11 = this.onz;
            if (i10 == i11 / 2) {
                ValueAnimator valueAnimatorOfInt = ValueAnimator.ofInt(i11 / 2, i11);
                valueAnimatorOfInt.setDuration(300L);
                valueAnimatorOfInt.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.10
                    @Override // android.animation.ValueAnimator.AnimatorUpdateListener
                    public void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) {
                        View view;
                        try {
                            int iIntValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                            layoutParams.height = iIntValue;
                            maa.this.ajl.setLayoutParams(layoutParams);
                            if (maa.this.mq && (view = wsyVar) != null) {
                                ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
                                marginLayoutParams.topMargin = iIntValue;
                                wsyVar.setLayoutParams(marginLayoutParams);
                            }
                            maa.this.ajl.requestLayout();
                        } catch (Throwable unused) {
                            String unused2 = maa.this.nt;
                        }
                    }
                });
                valueAnimatorOfInt.addListener(new Animator.AnimatorListener() { // from class: com.bytedance.sdk.openadsdk.common.maa.11
                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationCancel(@NonNull Animator animator) {
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    @SuppressLint({"SetTextI18n"})
                    public void onAnimationEnd(@NonNull Animator animator) {
                        maa.this.fhx = false;
                        maa.this.fm(0);
                        maa.this.fm(true);
                        maa.this.sds = false;
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationRepeat(@NonNull Animator animator) {
                    }

                    @Override // android.animation.Animator.AnimatorListener
                    public void onAnimationStart(@NonNull Animator animator) {
                        maa.this.fhx = true;
                    }
                });
                valueAnimatorOfInt.start();
            }
        } catch (Throwable unused) {
        }
    }

    public void yz(final String str) {
        com.bytedance.sdk.openadsdk.irt.yz.fm("iab_more_options", false, new com.bytedance.sdk.openadsdk.irt.ro() { // from class: com.bytedance.sdk.openadsdk.common.maa.4
            @Override // com.bytedance.sdk.openadsdk.irt.ro
            @Nullable
            public com.bytedance.sdk.openadsdk.irt.fm.lb fm() throws Exception {
                JSONObject jSONObject = new JSONObject();
                jSONObject.put("scene", str);
                return com.bytedance.sdk.openadsdk.irt.fm.yz.ro().fm("iab_more_options").ro(jSONObject.toString());
            }
        });
    }

    public Bundle fm() {
        if (this.irt == null) {
            return null;
        }
        Bundle bundle = new Bundle();
        WebView webView = this.irt.getWebView();
        if (webView == null) {
            return null;
        }
        bundle.putString("mainTitle", wsy());
        bundle.putString("subTitle", wu());
        RelativeLayout relativeLayout = this.ajl;
        bundle.putBoolean("titleBarVisible", relativeLayout != null && relativeLayout.getVisibility() == 0);
        bundle.putString(IjkMediaPlayer.OnNativeInvokeListener.ARG_URL, webView.getUrl());
        webView.saveState(bundle);
        return bundle;
    }

    public String lb(String str) {
        if (TextUtils.isEmpty(str)) {
            return "";
        }
        try {
            String host = Uri.parse(str).getHost();
            if (!TextUtils.isEmpty(host)) {
                return host.startsWith("www.") ? host.substring(4) : host;
            }
        } catch (Exception unused) {
        }
        return "";
    }

    public void ro(String str) {
        String strLb = lb(str);
        TextView textView = this.lse;
        if (!TextUtils.isEmpty(strLb)) {
            str = strLb;
        }
        textView.setText(str);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void fm(final sds sdsVar, View view) {
        sdsVar.setOnMenuItemClickListener(new sds.fm() { // from class: com.bytedance.sdk.openadsdk.common.maa.9
            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void ajl() {
                if (maa.this.gqi || !com.bytedance.sdk.openadsdk.utils.ro.jnr()) {
                    return;
                }
                IABLandingPageActivity.fm(maa.this.wu, maa.this.wsy, bx.fm(maa.this.wsy));
                maa.this.yz("onSelectPrivacy");
                sdsVar.fm();
            }

            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void fm() {
                if (maa.this.mq) {
                    if (maa.this.wsy != null) {
                        com.bytedance.sdk.openadsdk.onz.fm.fm.lb.fm().fm(maa.this.wsy);
                    }
                    if (maa.this.wu instanceof Activity) {
                        Intent intent = new Intent(maa.this.wu, (Class<?>) TTHistoryActivity.class);
                        intent.putExtra("meta_index", ai.fm().fm(maa.this.wsy));
                        intent.putExtra("is_new_style", maa.this.mq);
                        com.bytedance.sdk.component.utils.ro.fm(maa.this.wu, intent, null);
                    }
                    maa.this.yz("onSelectHistory");
                    sdsVar.fm();
                }
            }

            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void jnr() {
                if (!maa.this.gqi) {
                    maa.this.vt();
                } else if (maa.this.mq) {
                    if (maa.this.hi == null) {
                        maa.this.hi = new wey(maa.this.wu);
                        maa.this.hi.fm(maa.this.wsy);
                        maa.this.hi.setCanceledOnTouchOutside(false);
                    }
                    maa.this.hi.show();
                }
                maa.this.yz("onSelectReport");
                sdsVar.fm();
            }

            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void lb() {
                ClipboardManager clipboardManager;
                if (maa.this.mq) {
                    String url = maa.this.irt.getUrl();
                    if (!TextUtils.isEmpty(url) && (clipboardManager = (ClipboardManager) maa.this.wu.getSystemService("clipboard")) != null) {
                        clipboardManager.setPrimaryClip(ClipData.newPlainText("URL", url));
                    }
                    maa.this.yz("onSelectCopyLink");
                    sdsVar.fm();
                }
            }

            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void ro() {
                com.bytedance.sdk.component.ef.wsy wsyVar;
                if (!maa.this.mq || (wsyVar = maa.this.irt) == null || wsyVar.getUrl() == null) {
                    return;
                }
                if (maa.this.vt != null) {
                    maa.this.vt.setVisibility(0);
                    maa.this.vt.setProgress(0);
                }
                wsyVar.wsy();
                String url = wsyVar.getUrl();
                if (!TextUtils.isEmpty(url)) {
                    wsyVar.a_(url);
                }
                maa.this.yz("onSelectRetry");
                sdsVar.fm();
            }

            @Override // com.bytedance.sdk.openadsdk.common.sds.fm
            public void yz() {
                com.bytedance.sdk.component.ef.wsy wsyVar;
                if (!maa.this.mq || (wsyVar = maa.this.irt) == null) {
                    return;
                }
                Intent intent = new Intent("android.intent.action.VIEW");
                String url = wsyVar.getUrl();
                if (!TextUtils.isEmpty(url)) {
                    intent.setData(Uri.parse(url));
                    com.bytedance.sdk.component.utils.ro.fm(maa.this.wu, intent, null);
                }
                maa.this.yz("onSelectOpenInBrowser");
                sdsVar.fm();
            }
        });
        sdsVar.fm(view);
    }

    @SuppressLint({"SetTextI18n"})
    public void fm(boolean z10) {
        if (this.maa == null || this.lse == null) {
            return;
        }
        String string = ajl().getText().toString();
        String strReplaceAll = TextUtils.isEmpty(string) ? " " : string.replaceAll("[\n\r]+", " ");
        String string2 = ef().getText().toString();
        this.maa.setText(strReplaceAll);
        this.lse.setText(string2);
        if (z10) {
            this.maa.setVisibility(0);
            com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = this.hlt;
            if (jnrVar != null) {
                ViewGroup.LayoutParams layoutParams = jnrVar.getLayoutParams();
                layoutParams.width = -2;
                this.hlt.setLayoutParams(layoutParams);
            }
            RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.ajl.getLayoutParams();
            layoutParams2.height = this.onz;
            this.ajl.setLayoutParams(layoutParams2);
            return;
        }
        this.maa.setVisibility(8);
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar2 = this.hlt;
        if (jnrVar2 != null) {
            ViewGroup.LayoutParams layoutParams3 = jnrVar2.getLayoutParams();
            layoutParams3.width = -1;
            this.hlt.setLayoutParams(layoutParams3);
        }
        RelativeLayout.LayoutParams layoutParams4 = (RelativeLayout.LayoutParams) this.ajl.getLayoutParams();
        layoutParams4.height = this.onz / 2;
        this.ajl.setLayoutParams(layoutParams4);
    }

    public void fm(String str) {
        this.maa.setText(str);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void fm(int i10) {
        ImageView imageView = this.f6852ef;
        if (imageView != null) {
            imageView.setVisibility(i10);
        }
        ImageView imageView2 = this.ku;
        if (imageView2 != null) {
            imageView2.setVisibility(i10);
        }
        ImageView imageView3 = this.duv;
        if (imageView3 != null) {
            imageView3.setVisibility(i10);
        }
        ImageView imageView4 = this.dsz;
        if (imageView4 != null) {
            imageView4.setVisibility(i10);
        }
    }

    public void fm(WebView webView, wsy.fm fmVar) {
        this.qhl = fmVar;
        try {
            if (this.ku != null) {
                if (webView.canGoBack()) {
                    this.ku.setClickable(true);
                    this.ku.clearColorFilter();
                } else {
                    this.ku.setClickable(false);
                    this.ku.setColorFilter(Color.parseColor("#A8FFFFFF"), PorterDuff.Mode.ADD);
                }
            }
            if (this.duv != null) {
                if (webView.canGoForward()) {
                    this.duv.setClickable(true);
                    this.duv.clearColorFilter();
                } else {
                    this.duv.setClickable(false);
                    this.duv.setColorFilter(Color.parseColor("#A8FFFFFF"), PorterDuff.Mode.ADD);
                }
            }
        } catch (Throwable unused) {
        }
    }
}
