WeChat.apk(点击下载) / b.java


package com.tencent.mm.plugin.finder.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.j0;
import br1.d1;
import bw3.a51;
import bw3.bf1;
import bw3.bv1;
import bw3.ci0;
import bw3.cp0;
import bw3.cr1;
import bw3.e02;
import bw3.f21;
import bw3.hi1;
import bw3.ii1;
import bw3.j53;
import bw3.k53;
import bw3.ka1;
import bw3.l51;
import bw3.lf1;
import bw3.mn0;
import bw3.na1;
import bw3.qn0;
import bw3.r91;
import bw3.sl0;
import bw3.vl0;
import bw3.w53;
import bw3.wd1;
import bw3.x12;
import bw3.x31;
import bw3.x33;
import bw3.xd1;
import bw3.z11;
import bw3.za1;
import bw3.zj1;
import bw3.zv0;
import bw3.zv4;
import bx1.h0;
import bx1.q;
import com.google.android.gms.common.Scopes;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.tencent.mm.R;
import com.tencent.mm.autogen.mmdata.rpt.FinderEnterMentionListStruct;
import com.tencent.mm.autogen.mmdata.rpt.FinderVstStruct;
import com.tencent.mm.component.api.jumper.UICustomParam;
import com.tencent.mm.live.api.LiveConfig;
import com.tencent.mm.plugin.FinderCommonFeatureService;
import com.tencent.mm.plugin.appbrand.config.HalfScreenConfig;
import com.tencent.mm.plugin.finder.activity.FinderActivityProfileUI;
import com.tencent.mm.plugin.finder.activity.music.ui.FinderMusicTopicUI;
import com.tencent.mm.plugin.finder.activity.poi.ui.FinderNewPoiUI;
import com.tencent.mm.plugin.finder.activity.topic.ui.FinderNewTopicUI;
import com.tencent.mm.plugin.finder.feed.jumper.FinderWeAppHalfScreenScListener;
import com.tencent.mm.plugin.finder.feed.model.FinderParcelTopicInfo;
import com.tencent.mm.plugin.finder.feed.ui.BizProfileTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderAccountRecommendListUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderAlbumTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderAtTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderFavTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderFeedRelatedTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderFloatBallDetailUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderFriendLikeTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderGalleryTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderGalleryUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderInteractionSearchUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderLongFeedDetailUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderMultiTaskUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPlayListUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPoiFeedUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPoiManageUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPoiRelateListUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPoiTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderProfileLongFeedTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderProfileTimeLineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderProfileUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderPurchaseUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderRealnameVerifyRouteUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderRelatedTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderTeenModeTipsUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderTopicFeedUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderTopicTimelineUI;
import com.tencent.mm.plugin.finder.feed.ui.FinderWxProfileShowUI;
import com.tencent.mm.plugin.finder.feed.ui.SelectLocalFileRouterUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberAreaUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberBanUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberFanListUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberPreviewUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberQAVideoUI;
import com.tencent.mm.plugin.finder.member.ui.FinderMemberTimelineUI;
import com.tencent.mm.plugin.finder.model.BaseFinderFeed;
import com.tencent.mm.plugin.finder.presenter.contract.message.FinderMessageCgiSource;
import com.tencent.mm.plugin.finder.search.FinderContactSearchIncludeFollowUI;
import com.tencent.mm.plugin.finder.search.FinderContactSearchUI;
import com.tencent.mm.plugin.finder.search.FinderFeedSearchUI;
import com.tencent.mm.plugin.finder.search.FinderMixSearchUI;
import com.tencent.mm.plugin.finder.storage.FinderItem;
import com.tencent.mm.plugin.finder.ui.FinderBlockListSearchUI;
import com.tencent.mm.plugin.finder.ui.FinderBlockListUI;
import com.tencent.mm.plugin.finder.ui.FinderConversationTempUI;
import com.tencent.mm.plugin.finder.ui.FinderConversationUI;
import com.tencent.mm.plugin.finder.ui.FinderCreateContactUI;
import com.tencent.mm.plugin.finder.ui.FinderEditTextUI;
import com.tencent.mm.plugin.finder.ui.FinderFansListUI;
import com.tencent.mm.plugin.finder.ui.FinderFinderMsgUI;
import com.tencent.mm.plugin.finder.ui.FinderFinderSysMsgUI;
import com.tencent.mm.plugin.finder.ui.FinderHomeAffinityUI;
import com.tencent.mm.plugin.finder.ui.FinderHomeUI;
import com.tencent.mm.plugin.finder.ui.FinderImagePreviewUI;
import com.tencent.mm.plugin.finder.ui.FinderImmersiveFeedUI;
import com.tencent.mm.plugin.finder.ui.FinderLikedFeedUI;
import com.tencent.mm.plugin.finder.ui.FinderManagementUI;
import com.tencent.mm.plugin.finder.ui.FinderMediaPreviewUI;
import com.tencent.mm.plugin.finder.ui.FinderModifyNameUI;
import com.tencent.mm.plugin.finder.ui.FinderMsgFeedDetailUI;
import com.tencent.mm.plugin.finder.ui.FinderMultiTaskRouterUI;
import com.tencent.mm.plugin.finder.ui.FinderSelfUI;
import com.tencent.mm.plugin.finder.ui.FinderSettingInfoUI;
import com.tencent.mm.plugin.finder.ui.FinderSettingMsgUI;
import com.tencent.mm.plugin.finder.ui.FinderShareFeedRelUI;
import com.tencent.mm.plugin.finder.ui.FinderUnOpenUI;
import com.tencent.mm.plugin.finder.ui.FinderWxMsgUI;
import com.tencent.mm.plugin.finder.view.FinderNoticeHalfScreenDialogFragment;
import com.tencent.mm.plugin.mv.ui.MusicMvMainUI;
import com.tencent.mm.plugin.mv.ui.MusicMvRouterUI;
import com.tencent.mm.plugin.recordvideo.jumper.CaptureDataManager;
import com.tencent.mm.plugin.recordvideo.jumper.RecordConfigProvider;
import com.tencent.mm.plugin.recordvideo.jumper.VideoCaptureReportInfo;
import com.tencent.mm.protocal.protobuf.FinderContact;
import com.tencent.mm.protocal.protobuf.FinderJumpInfo;
import com.tencent.mm.protocal.protobuf.FinderObject;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.sdk.platformtools.MMApplicationContext;
import com.tencent.mm.sdk.platformtools.Util;
import com.tencent.mm.storage.t1;
import com.tencent.mm.storage.w1;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.ui.MMFragmentActivity;
import com.tencent.mm.ui.MMFragmentActivity$$d;
import com.tencent.mm.ui.x4;
import com.tencent.tinker.loader.hotplug.EnvConsts;
import d32.ta;
import d60.z;
import dj1.a;
import dt1.p;
import ek0.v2;
import ek0.x2;
import ek4.y;
import eu1.b;
import ez1.e0;
import ez1.f0;
import ez1.f1;
import ez1.h;
import ez1.i2;
import hn0.a0;
import i14.y0;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import kh4.l;
import lh4.m;
import lh4.o;
import mz1.w0;
import nf0.e6;
import nf0.u0;
import om0.q;
import org.json.JSONObject;
import t32.e2;
import t32.f5;
import t32.j4;
import t32.q4;
import t32.q5;
import ty.h;
import wg4.b0;
import wg4.n;
import wk1.h2;
import x34.a;
import y24.r;
import yf0.b;
import ym1.e0;

public final class b extends yz3.e implements v2 {

    public static final class a implements om0.k {

        /* renamed from: d */
        public final String f118697d;

        public a() {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("isSheetLaunchMode", 1);
            String jSONObject2 = jSONObject.toString();
            m.f(jSONObject2, "JSONObject().apply {\n   …, 1)\n        }.toString()");
            this.f118697d = jSONObject2;
        }

        @Override // om0.k
        public String a() {
            return this.f118697d;
        }
    }

    /* renamed from: com.tencent.mm.plugin.finder.utils.b$b */
    public static final class C1204b implements q {
        @Override // om0.q
        public void a() {
            e0.f346876a.getClass();
            e0.f346878c = false;
        }

        @Override // om0.q
        public void b(String str) {
        }

        @Override // om0.q
        public void c() {
        }

        @Override // om0.q
        public /* synthetic */ void d() {
        }

        @Override // om0.q
        public void e() {
        }

        @Override // om0.q
        public void f(boolean z15) {
            e0.f346876a.getClass();
            e0.f346878c = false;
        }
    }

    public static final class c implements f5.a {

        /* renamed from: a */
        public final /* synthetic */ String f118698a;

        /* renamed from: b */
        public final /* synthetic */ Context f118699b;

        /* renamed from: c */
        public final /* synthetic */ kh4.a<b0> f118700c;

        /* renamed from: d */
        public final /* synthetic */ String f118701d;

        public static final class a extends o implements kh4.a<b0> {

            /* renamed from: d */
            public final /* synthetic */ Context f118702d;

            /* renamed from: e */
            public final /* synthetic */ int f118703e;

            /* renamed from: f */
            public final /* synthetic */ int f118704f;

            /* renamed from: g */
            public final /* synthetic */ String f118705g;

            /* renamed from: h */
            public final /* synthetic */ String f118706h;

            /* renamed from: i */
            public final /* synthetic */ kh4.a<b0> f118707i;

            /* renamed from: j */
            public final /* synthetic */ String f118708j;

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(Context context, int i15, int i16, String str, String str2, kh4.a<b0> aVar, String str3) {
                super(0);
                this.f118702d = context;
                this.f118703e = i15;
                this.f118704f = i16;
                this.f118705g = str;
                this.f118706h = str2;
                this.f118707i = aVar;
                this.f118708j = str3;
            }

            @Override // kh4.a
            public b0 invoke() {
                boolean z15;
                if (!h4.f119006a.q(this.f118702d, this.f118703e, this.f118704f, this.f118705g)) {
                    String str = this.f118706h;
                    m.f(str, "sessionId");
                    if (str.length() > 0) {
                        z15 = true;
                    } else {
                        z15 = false;
                    }
                    if (z15) {
                        kh4.a<b0> aVar = this.f118707i;
                        if (aVar != null) {
                            aVar.invoke();
                        }
                        Intent intent = new Intent();
                        intent.putExtra("Chat_Self", this.f118708j);
                        intent.putExtra("Chat_User", this.f118706h);
                        intent.putExtra("finish_direct", true);
                        ta.W0.c(this.f118702d, intent);
                        sv3.b.t(this.f118702d, ".ui.chatting.ChattingUI", intent, null);
                    }
                }
                return b0.f332794a;
            }
        }

        public c(String str, Context context, kh4.a<b0> aVar, String str2) {
            this.f118698a = str;
            this.f118699b = context;
            this.f118700c = aVar;
            this.f118701d = str2;
        }

        @Override // t32.f5.a
        public final void a(String str, int i15, int i16, String str2) {
            Log.i("Finder.ActivityRouter", "[enterChattingUIFromLive] toUsername=" + this.f118698a + " sessionId=" + str);
            m60.d.O(new a(this.f118699b, i15, i16, str2, str, this.f118700c, this.f118701d));
        }
    }

    public static final class d implements f5.a {

        /* renamed from: a */
        public final /* synthetic */ Context f118709a;

        /* renamed from: b */
        public final /* synthetic */ bv1 f118710b;

        /* renamed from: c */
        public final /* synthetic */ int f118711c;

        public static final class a extends o implements kh4.a<b0> {

            /* renamed from: d */
            public final /* synthetic */ Context f118712d;

            /* renamed from: e */
            public final /* synthetic */ int f118713e;

            /* renamed from: f */
            public final /* synthetic */ int f118714f;

            /* renamed from: g */
            public final /* synthetic */ String f118715g;

            /* renamed from: h */
            public final /* synthetic */ String f118716h;

            /* renamed from: i */
            public final /* synthetic */ bv1 f118717i;

            /* renamed from: j */
            public final /* synthetic */ int f118718j;

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(Context context, int i15, int i16, String str, String str2, bv1 bv12, int i17) {
                super(0);
                this.f118712d = context;
                this.f118713e = i15;
                this.f118714f = i16;
                this.f118715g = str;
                this.f118716h = str2;
                this.f118717i = bv12;
                this.f118718j = i17;
            }

            @Override // kh4.a
            public b0 invoke() {
                boolean z15;
                String str;
                if (!h4.f119006a.q(this.f118712d, this.f118713e, this.f118714f, this.f118715g)) {
                    String str2 = this.f118716h;
                    m.f(str2, "sessionId");
                    if (str2.length() > 0) {
                        z15 = true;
                    } else {
                        z15 = false;
                    }
                    if (z15) {
                        h.b.a(ez1.h.f210724g, this.f118717i, 4, 1, null, 8, null);
                        Intent intent = new Intent();
                        int i15 = this.f118718j;
                        if (i15 == 2) {
                            str = u0.r();
                        } else if (i15 == 1) {
                            str = r32.b.c(this.f118712d);
                        } else {
                            str = u0.k();
                        }
                        intent.putExtra("Chat_Self", str);
                        intent.putExtra("Chat_User", this.f118716h);
                        intent.putExtra("finish_direct", true);
                        ta.W0.c(this.f118712d, intent);
                        sv3.b.t(this.f118712d, ".ui.chatting.ChattingUI", intent, null);
                        return b0.f332794a;
                    }
                }
                h.b.a(ez1.h.f210724g, this.f118717i, 4, 2, null, 8, null);
                return b0.f332794a;
            }
        }

        public d(Context context, bv1 bv12, int i15) {
            this.f118709a = context;
            this.f118710b = bv12;
            this.f118711c = i15;
        }

        @Override // t32.f5.a
        public final void a(String str, int i15, int i16, String str2) {
            m60.d.O(new a(this.f118709a, i15, i16, str2, str, this.f118710b, this.f118711c));
        }
    }

    public static final class e implements f5.a {

        /* renamed from: a */
        public final /* synthetic */ String f118719a;

        /* renamed from: b */
        public final /* synthetic */ Context f118720b;

        /* renamed from: c */
        public final /* synthetic */ Intent f118721c;

        /* renamed from: d */
        public final /* synthetic */ int f118722d;

        public static final class a extends o implements kh4.a<b0> {

            /* renamed from: d */
            public final /* synthetic */ Context f118723d;

            /* renamed from: e */
            public final /* synthetic */ int f118724e;

            /* renamed from: f */
            public final /* synthetic */ int f118725f;

            /* renamed from: g */
            public final /* synthetic */ String f118726g;

            /* renamed from: h */
            public final /* synthetic */ String f118727h;

            /* renamed from: i */
            public final /* synthetic */ Intent f118728i;

            /* renamed from: j */
            public final /* synthetic */ String f118729j;

            /* renamed from: n */
            public final /* synthetic */ int f118730n;

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(Context context, int i15, int i16, String str, String str2, Intent intent, String str3, int i17) {
                super(0);
                this.f118723d = context;
                this.f118724e = i15;
                this.f118725f = i16;
                this.f118726g = str;
                this.f118727h = str2;
                this.f118728i = intent;
                this.f118729j = str3;
                this.f118730n = i17;
            }

            @Override // kh4.a
            public b0 invoke() {
                bv1 bv12;
                boolean z15;
                String str;
                ta.a aVar = ta.W0;
                ta f15 = aVar.f(this.f118723d);
                if (f15 != null) {
                    bv12 = f15.l0();
                } else {
                    bv12 = null;
                }
                if (!h4.f119006a.q(this.f118723d, this.f118724e, this.f118725f, this.f118726g)) {
                    String str2 = this.f118727h;
                    m.f(str2, "sessionId");
                    if (str2.length() > 0) {
                        z15 = true;
                    } else {
                        z15 = false;
                    }
                    if (z15) {
                        Intent intent = this.f118728i;
                        if (intent == null) {
                            intent = new Intent();
                        }
                        Context context = this.f118723d;
                        m.g(context, "context");
                        int i15 = dj1.b.f200487e.O5().f39654h;
                        if (i15 == 1) {
                            str = u0.r();
                            m.f(str, "{\n                Config…mUserInfo()\n            }");
                        } else if (i15 == 2) {
                            str = u0.k();
                            m.f(str, "{\n                Config…sUsername()\n            }");
                        } else if (i15 != 3) {
                            str = u0.r();
                            m.f(str, "{\n                Config…mUserInfo()\n            }");
                        } else {
                            str = r32.b.c(context);
                        }
                        intent.putExtra("Chat_Self", str);
                        intent.putExtra("Chat_User", this.f118727h);
                        intent.putExtra("finish_direct", true);
                        intent.putExtra("key_finder_need_choose_id", true);
                        intent.putExtra("key_finder_talker_user_name", this.f118729j);
                        aVar.c(this.f118723d, intent);
                        sv3.b.t(this.f118723d, ".ui.chatting.ChattingUI", intent, null);
                        if (this.f118730n == 2) {
                            h.b.a(ez1.h.f210724g, bv12, 3, 1, null, 8, null);
                        }
                        return b0.f332794a;
                    }
                }
                if (this.f118730n == 2) {
                    h.b.a(ez1.h.f210724g, bv12, 3, 2, null, 8, null);
                }
                return b0.f332794a;
            }
        }

        public e(String str, Context context, Intent intent, int i15) {
            this.f118719a = str;
            this.f118720b = context;
            this.f118721c = intent;
            this.f118722d = i15;
        }

        @Override // t32.f5.a
        public final void a(String str, int i15, int i16, String str2) {
            Log.i("Finder.ActivityRouter", "[enterChattingUI] ]username=" + this.f118719a + " sessionId=" + str);
            m60.d.O(new a(this.f118720b, i15, i16, str2, str, this.f118721c, this.f118719a, this.f118722d));
        }
    }

    public static final class f extends o implements kh4.a<b0> {

        /* renamed from: d */
        public final /* synthetic */ d1 f118731d;

        /* renamed from: e */
        public final /* synthetic */ boolean f118732e;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public f(d1 d1Var, boolean z15) {
            super(0);
            this.f118731d = d1Var;
            this.f118732e = z15;
        }

        @Override // kh4.a
        public b0 invoke() {
            LiveConfig d15 = this.f118731d.d();
            if (d15 != null && this.f118732e) {
                Util.isNullOrNil(d15.f75954p);
            }
            return b0.f332794a;
        }
    }

    public static final class g implements h.b {

        /* renamed from: a */
        public final /* synthetic */ b f118733a;

        /* renamed from: b */
        public final /* synthetic */ Context f118734b;

        /* renamed from: c */
        public final /* synthetic */ Intent f118735c;

        public g(b bVar, Context context, Intent intent) {
            this.f118733a = bVar;
            this.f118734b = context;
            this.f118735c = intent;
        }

        @Override // ty.h.b
        public void a() {
        }

        @Override // ty.h.b
        public void onSuccess() {
            this.f118733a.qP0(this.f118734b, this.f118735c);
        }
    }

    public static final class h implements h.b {

        /* renamed from: a */
        public final /* synthetic */ b f118736a;

        /* renamed from: b */
        public final /* synthetic */ Context f118737b;

        /* renamed from: c */
        public final /* synthetic */ Intent f118738c;

        /* renamed from: d */
        public final /* synthetic */ boolean f118739d;

        public h(b bVar, Context context, Intent intent, boolean z15) {
            this.f118736a = bVar;
            this.f118737b = context;
            this.f118738c = intent;
            this.f118739d = z15;
        }

        @Override // ty.h.b
        public void a() {
            ((xv.c) yz3.j.c(xv.c.class)).Bq(this.f118737b, false);
        }

        @Override // ty.h.b
        public void onSuccess() {
            this.f118736a.rP0(this.f118737b, this.f118738c, this.f118739d);
        }
    }

    public static final class i implements h.b {

        /* renamed from: a */
        public final /* synthetic */ b f118740a;

        /* renamed from: b */
        public final /* synthetic */ Context f118741b;

        /* renamed from: c */
        public final /* synthetic */ Intent f118742c;

        public i(b bVar, Context context, Intent intent) {
            this.f118740a = bVar;
            this.f118741b = context;
            this.f118742c = intent;
        }

        @Override // ty.h.b
        public void a() {
            ((xv.c) yz3.j.c(xv.c.class)).Bq(this.f118741b, false);
        }

        @Override // ty.h.b
        public void onSuccess() {
            this.f118740a.sP0(this.f118741b, this.f118742c);
        }
    }

    public static final class j extends o implements l<b.c<ci0>, b0> {

        /* renamed from: d */
        public final /* synthetic */ b f118743d;

        /* renamed from: e */
        public final /* synthetic */ Context f118744e;

        /* renamed from: f */
        public final /* synthetic */ Intent f118745f;

        /* renamed from: g */
        public final /* synthetic */ int f118746g;

        /* renamed from: h */
        public final /* synthetic */ int f118747h;

        /* renamed from: i */
        public final /* synthetic */ String f118748i;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public j(b bVar, Context context, Intent intent, int i15, int i16, String str) {
            super(1);
            this.f118743d = bVar;
            this.f118744e = context;
            this.f118745f = intent;
            this.f118746g = i15;
            this.f118747h = i16;
            this.f118748i = str;
        }

        @Override // kh4.l
        public b0 invoke(b.c<ci0> cVar) {
            Integer num;
            Integer num2;
            b.c<ci0> cVar2 = cVar;
            if (cVar2 != null) {
                eu1.b.f210087a.e(this.f118748i, cVar2);
            }
            if (cVar2 != null && cVar2.f345499a == 0 && cVar2.f345500b == 0) {
                b bVar = this.f118743d;
                Context context = this.f118744e;
                Intent intent = this.f118745f;
                int i15 = this.f118746g;
                int i16 = this.f118747h;
                String str = this.f118748i;
                ci0 ci02 = (ci0) cVar2.f345502d;
                if (ci02 != null) {
                    num = Integer.valueOf(ci02.f18332d);
                } else {
                    num = null;
                }
                ci0 ci03 = (ci0) cVar2.f345502d;
                if (ci03 != null) {
                    num2 = Integer.valueOf(ci03.f18333e);
                } else {
                    num2 = null;
                }
                bVar.WO0(context, intent, i15, i16, str, num, num2);
            } else {
                this.f118743d.WO0(this.f118744e, this.f118745f, this.f118746g, this.f118747h, this.f118748i, null, null);
            }
            return b0.f332794a;
        }
    }

    public static final class k implements f5.a {

        /* renamed from: a */
        public final /* synthetic */ Context f118749a;

        /* renamed from: b */
        public final /* synthetic */ bv1 f118750b;

        public static final class a extends o implements kh4.a<b0> {
            public final /* synthetic */ Context B;
            public final /* synthetic */ int C;
            public final /* synthetic */ int D;
            public final /* synthetic */ String E;
            public final /* synthetic */ String F;
            public final /* synthetic */ bv1 G;

            /* JADX INFO: super call moved to the top of the method (can break code semantics) */
            public a(Context context, int i15, int i16, String str, String str2, bv1 bv12) {
                super(0);
                this.B = context;
                this.C = i15;
                this.D = i16;
                this.E = str;
                this.F = str2;
                this.G = bv12;
            }

            @Override // kh4.a
            public b0 invoke() {
                boolean z15;
                if (!h4.f119006a.q(this.B, this.C, this.D, this.E)) {
                    String str = this.F;
                    m.f(str, "sessionId");
                    if (str.length() > 0) {
                        z15 = true;
                    } else {
                        z15 = false;
                    }
                    if (z15) {
                        h.b.a(ez1.h.f210724g, this.G, 2, 1, null, 8, null);
                        Intent intent = new Intent();
                        intent.putExtra("Chat_Self", r32.b.c(this.B));
                        intent.putExtra("Chat_User", this.F);
                        intent.putExtra("finish_direct", true);
                        ta.W0.c(this.B, intent);
                        sv3.b.t(this.B, ".ui.chatting.ChattingUI", intent, null);
                    }
                }
                return b0.f332794a;
            }
        }

        public k(Context context, bv1 bv12) {
            this.f118749a = context;
            this.f118750b = bv12;
        }

        @Override // t32.f5.a
        public final void a(String str, int i15, int i16, String str2) {
            m60.d.O(new a(this.f118749a, i15, i16, str2, str, this.f118750b));
        }
    }

    public static void CO0(b bVar, Context context, Intent intent, Boolean bool, Integer num, int i15, Object obj) {
        if ((i15 & 4) != 0) {
            bool = Boolean.FALSE;
        }
        if ((i15 & 8) != 0) {
            num = -1;
        }
        bVar.getClass();
        m.g(context, "context");
        ((cs.b) yz3.j.c(cs.b.class)).XE0().l0(context, intent, 3, 9, bool, num);
    }

    public static void EO0(b bVar, Context context, Intent intent, int i15, int i16, Object obj) {
        Intent intent2 = null;
        if ((i16 & 2) != 0) {
            intent = null;
        }
        bVar.getClass();
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClassName(context, "com.tencent.mm.ui.contact.privacy.FinderBlockListUI");
        intent.putExtra("BLOCK_LIST_TYPE", i15);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPrivacyBlockListNewUi", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPrivacyBlockListNewUi", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public static void JO0(b bVar, Context context, Intent intent, int i15, Object obj) {
        if ((i15 & 2) != 0) {
            intent = null;
        }
        bVar.getClass();
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderTeenModeTipsUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderTeenModeTipsUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderTeenModeTipsUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public static /* synthetic */ void LO0(b bVar, Context context, Intent intent, int i15, boolean z15, int i16, Object obj) {
        if ((i16 & 4) != 0) {
            i15 = 2;
        }
        if ((i16 & 8) != 0) {
            z15 = true;
        }
        bVar.KO0(context, intent, i15, z15);
    }

    public static void aP0(b bVar, Context context, Intent intent, boolean z15, int i15, Object obj) {
        Intent intent2;
        if ((i15 & 4) != 0) {
            z15 = false;
        }
        bVar.getClass();
        m.g(context, "context");
        if (!bVar.oP0(context, intent)) {
            if (intent == null) {
                intent = new Intent();
            }
            if (!z15) {
                intent.putExtra("key_to_comment_scene", 138);
                ta.W0.c(context, intent);
            }
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.setClass(context, FinderMusicTopicUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicTopicUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicTopicUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    public static void dO0(b bVar, Context context, Intent intent, int i15, int i16, Object obj) {
        Intent intent2 = null;
        if ((i16 & 2) != 0) {
            intent = null;
        }
        bVar.getClass();
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderBlockListUI.class);
        intent.putExtra("BLOCK_LIST_TYPE", i15);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderBlockListUi", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderBlockListUi", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public static void gO0(b bVar, Context context, Intent intent, int i15, Object obj) {
        Intent intent2 = null;
        if ((i15 & 2) != 0) {
            intent = null;
        }
        bVar.getClass();
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.putExtra("KEY_TALKER_TYPE", 1);
        intent.putExtra("KEY_TALKER_SCENE", 2);
        intent.putExtra("KEY_FINDER_PROCESS_ID", 3);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        ta.W0.c(context, intent);
        intent.putExtra("KEY_CAN_USE_SELF_CLUB_USERNAME", true);
        intent.setClass(context, FinderConversationUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderConversationUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderConversationUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public static void sO0(b bVar, Activity activity, Intent intent, w53 w532, cr1 cr12, boolean z15, boolean z16, int i15, Object obj) {
        cr1 cr13;
        boolean z17;
        boolean z18;
        Intent intent2;
        byte[] bArr = null;
        if ((i15 & 8) != 0) {
            cr13 = null;
        } else {
            cr13 = cr12;
        }
        if ((i15 & 16) != 0) {
            z17 = false;
        } else {
            z17 = z15;
        }
        if ((i15 & 32) != 0) {
            z18 = false;
        } else {
            z18 = z16;
        }
        bVar.getClass();
        m.g(activity, "context");
        m.g(w532, "localContent");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        intent2.setClass(activity, FinderMediaPreviewUI.class);
        intent2.putExtra("media_list_", w532.toByteArray());
        intent2.putExtra("media_list_count", w532.f40644d.size());
        if (cr13 != null) {
            bArr = cr13.toByteArray();
        }
        intent2.putExtra("ref_feed_info", bArr);
        intent2.putExtra("long_video_preview", z17);
        intent2.putExtra("KEY_SHOW_SEEK_BAR", z18);
        k30.a aVar = new k30.a();
        aVar.c(intent2);
        j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMediaPreviewUI", "(Landroid/app/Activity;Landroid/content/Intent;Lcom/tencent/mm/protocal/protobuf/LocalFinderContent;Lcom/tencent/mm/protocal/protobuf/FinderObjectRefInfo;ZZ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        activity.startActivity((Intent) aVar.a(0));
        j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMediaPreviewUI", "(Landroid/app/Activity;Landroid/content/Intent;Lcom/tencent/mm/protocal/protobuf/LocalFinderContent;Lcom/tencent/mm/protocal/protobuf/FinderObjectRefInfo;ZZ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void AO0(Context context, Intent intent) {
        Intent intent2;
        Intent intent3;
        m.g(context, "context");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        if (!(context instanceof Activity)) {
            intent3 = intent2;
        } else {
            intent3 = null;
        }
        if (intent3 != null) {
            intent3.addFlags(268435456);
        }
        intent2.addFlags(67108864);
        intent2.setClass(context, FinderFinderMsgUI.class);
        intent2.putExtra("key_mention_business_type", 0);
        ArrayList<int[]> arrayList = FinderFinderMsgUI.f117670p;
        int[] iArr = FinderFinderMsgUI.f117672r;
        int length = iArr.length;
        int i15 = 0;
        int i16 = 0;
        while (i15 < length) {
            int i17 = iArr[i15];
            int i18 = i16 + 1;
            q.c cVar = bx1.q.f45236r;
            int[] iArr2 = FinderFinderMsgUI.f117670p.get(i16);
            m.f(iArr2, "msgTypes[index]");
            q.c.a(cVar, new FinderMessageCgiSource(1, i17, iArr2, r32.b.c(context), 0), null, null, 6, null);
            i15++;
            i16 = i18;
        }
        intent2.putExtra("KEY_CAN_USE_SELF_CLUB_USERNAME", true);
        k30.a aVar = new k30.a();
        aVar.c(intent2);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderNotifyMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderNotifyMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void BO0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderPlayListUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPlayListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPlayListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void Bo(Activity activity, Intent intent) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.L).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderAnchorVerifyWebviewUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        activity.startActivity((Intent) aVar.a(0));
        j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderAnchorVerifyWebviewUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void CC(Context context, Intent intent) {
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderLiveFansListUI");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.f46886s).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveFansListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveFansListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void DO0(Context context, Intent intent) {
        m.g(context, "context");
        ((cs.b) yz3.j.c(cs.b.class)).XE0().f0(context, intent);
    }

    @Override // ek0.v2
    public MMFragmentActivity$$d Dk0(Activity activity, Intent intent) {
        MMFragmentActivity mMFragmentActivity;
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.addFlags(67108864);
        intent.setClass(activity, FinderCreateContactUI.class);
        if (activity instanceof MMFragmentActivity) {
            mMFragmentActivity = (MMFragmentActivity) activity;
        } else {
            mMFragmentActivity = null;
        }
        if (mMFragmentActivity != null) {
            return mMFragmentActivity.startActivityForResult(intent);
        }
        return null;
    }

    public final void FO0(Context context, Intent intent) {
        m.g(context, "context");
        if (h4.f119006a.m1()) {
            ((ty.h) yz3.j.c(ty.h.class)).Ds0(context, 34359738368L, null, new g(this, context, intent), 3);
        } else {
            qP0(context, intent);
        }
    }

    @Override // ek0.v2
    public void Fs0(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.f46879l).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveVisitorWhiteListUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void GO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.putExtra("KEY_FINDER_PROCESS_ID", 1);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderSelfUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderSelfUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderSelfUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void HO0(Activity activity, Intent intent, int i15, String str) {
        m.g(activity, "context");
        m.g(str, "username");
        if (intent == null) {
            intent = new Intent();
        }
        intent.addFlags(67108864);
        intent.setClass(activity, FinderSettingInfoUI.class);
        intent.putExtra("finder_username", str);
        r32.b.a(activity, intent);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderSettingInfoUI", "(Landroid/app/Activity;Landroid/content/Intent;ILjava/lang/String;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void IO0(Context context, Intent intent) {
        Intent intent2;
        boolean z15;
        Intent intent3;
        m.g(context, "context");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        long longExtra = intent2.getLongExtra("KEY_INTENT_ENTER_ITEM_ID", 0);
        zz1.e.f356376d.getClass();
        if (((Number) ((tl1.c) ((n) zz1.e.A5).getValue()).t()).intValue() > 0 || intent2.getBooleanExtra("intent_enable_immersive", false)) {
            z15 = true;
        } else {
            z15 = false;
        }
        if (a02.f.f299a.h(longExtra) == null || !z15) {
            h4.a(h4.f119006a, intent2, 0, null, 6, null);
            if (!(context instanceof Activity)) {
                intent3 = intent2;
            } else {
                intent3 = null;
            }
            if (intent3 != null) {
                intent3.addFlags(268435456);
            }
            intent2.setClass(context, FinderShareFeedRelUI.class);
            f0.f210657a.d();
            k30.a aVar = new k30.a();
            aVar.c(intent2);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderShareFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderShareFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            return;
        }
        intent2.putExtra("intent_feed_id", longExtra);
        nO0(context, intent2);
    }

    @Override // ek0.v2
    public void J1(Activity activity, Intent intent) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.f46888u).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryWinnerListUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        activity.startActivity((Intent) aVar.a(0));
        j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryWinnerListUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void J40(Context context, Intent intent, zv4 zv4, int i15) {
        Intent intent2;
        int i16;
        m.g(context, "context");
        m.g(intent, "i");
        m.g(zv4, FirebaseAnalytics.b.LOCATION);
        if (!oP0(context, intent)) {
            boolean z15 = context instanceof Activity;
            q4.a aVar = null;
            if (!z15) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.addFlags(134217728);
            int intExtra = intent.getIntExtra("key_entrance_type", -1);
            Serializable serializableExtra = intent.getSerializableExtra("key_from_type");
            if (serializableExtra instanceof q4.a) {
                aVar = (q4.a) serializableExtra;
            }
            if (aVar == q4.a.f309628d) {
                i16 = 81;
            } else {
                i16 = 26;
            }
            zv4.f44949w = true;
            z0.f119498a.a(context, intent, i16, intExtra);
            h4.f119006a.q1(context, intent, i15, zv4, true, 15);
            if (z15) {
                ((Activity) context).overridePendingTransition(R.anim.f357363e0, R.anim.f357210p);
            }
        }
    }

    @Override // ek0.v2
    public void Jh(Activity activity, Intent intent, FinderContact finderContact, int i15, boolean z15, x12 x122, Boolean bool) {
        String str;
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        m.g(finderContact, "contact");
        StringBuilder sb5 = new StringBuilder();
        sb5.append("#enterFinderLiveNoticeUI coupon.appUrl=");
        if (x122 != null) {
            str = x122.f41712e;
        } else {
            str = null;
        }
        sb5.append(str);
        sb5.append(", isHalfScreen=");
        sb5.append(bool);
        Log.i("Finder.ActivityRouter", sb5.toString());
        if (intent == null) {
            intent = new Intent();
        }
        intent.putExtra("KEY_FINDER_LIVE_NOTICE_CONTACT", finderContact.toByteArray());
        if (x122 != null) {
            intent.putExtra("KEY_FINDER_LIVE_COUPON", x122.toByteArray());
        }
        intent.putExtra("KEY_FINDER_LIVE_NOTICE_IS_CAN_CREATE", z15);
        if (m.b(bool, Boolean.TRUE)) {
            a.C6047a aVar = new a.C6047a();
            aVar.f336767a.f336758a = activity;
            aVar.c(intent);
            aVar.b(FinderNoticeHalfScreenDialogFragment.class);
            aVar.a("com.tencent.mm.plugin.finder.feed.ui.FinderLiveNoticeUI");
            aVar.f336767a.f336763f = i15;
            aVar.d();
            return;
        }
        intent.setClass(activity, (Class) ((n) c42.b.M).getValue());
        k30.a aVar2 = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar2.c(Integer.valueOf(i15));
        aVar2.c(intent);
        j30.a.j(activity, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveNoticeUI", "(Landroid/app/Activity;Landroid/content/Intent;Lcom/tencent/mm/protocal/protobuf/FinderContact;IZLcom/tencent/mm/protocal/protobuf/FinderWxAppInfo;Ljava/lang/Boolean;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
        activity.overridePendingTransition(R.anim.f357363e0, R.anim.f357210p);
    }

    @Override // ek0.v2
    public void Jm0(Context context, int i15, na1 na12, String str, long j15, bv1 bv12, boolean z15) {
        int i16;
        m.g(context, "context");
        m.g(na12, "toUser");
        m.g(str, "lotteryId");
        if (na12.f30675i) {
            y0.makeText(context, (int) R.string.enz, 0).show();
            return;
        }
        String str2 = na12.f30670d;
        if (str2 == null) {
            str2 = "";
        }
        if (z15) {
            i16 = 1;
        } else {
            i16 = 7;
        }
        ((f5) yz3.j.c(f5.class)).Ke0(context, i15, str2, str, Long.valueOf(j15), i16, new d(context, bv12, i15));
    }

    public final void KO0(Context context, Intent intent, int i15, boolean z15) {
        Intent intent2;
        Intent intent3;
        boolean z16;
        Class<?> cls;
        m.g(context, "context");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        boolean z17 = context instanceof Activity;
        if (!z17) {
            intent3 = intent2;
        } else {
            intent3 = null;
        }
        if (intent3 != null) {
            intent3.addFlags(268435456);
        }
        intent2.putExtra("FROM_SCENE_KEY", i15);
        intent2.addFlags(67108864);
        intent2.addFlags(536870912);
        h4.a(h4.f119006a, intent2, 0, null, 6, null);
        boolean t15 = zz1.e.f356376d.t();
        j4 j4Var = (j4) yz3.j.c(j4.class);
        if (t15) {
            if ((!z17 || !j4Var.JJ0((Activity) context)) && !j4Var.SL0(context)) {
                z16 = false;
            } else {
                z16 = true;
            }
            if (!z16 && z15) {
                String ud5 = ((ie1.i) yz3.j.c(ie1.i.class)).ud();
                String str = "";
                if (ud5 == null) {
                    ud5 = str;
                }
                String stringExtra = intent2.getStringExtra("key_context_id");
                if (stringExtra != null) {
                    str = stringExtra;
                }
                boolean er02 = ((j4) yz3.j.c(j4.class)).er0();
                FinderVstStruct finderVstStruct = new FinderVstStruct();
                finderVstStruct.f68067d = finderVstStruct.b("sessionid", ud5, true);
                finderVstStruct.f68068e = finderVstStruct.b("contextid", str, true);
                finderVstStruct.f68069f = finderVstStruct.b("event_id", "1", true);
                finderVstStruct.f68070g = e6.c();
                finderVstStruct.f68071h = finderVstStruct.b("vst_type", "1", true);
                JSONObject jSONObject = new JSONObject();
                jSONObject.put("has_multi_task_window", er02 ? 1 : 0);
                String jSONObject2 = jSONObject.toString();
                m.f(jSONObject2, "JSONObject().apply {\n   …e 0)\n        }.toString()");
                finderVstStruct.f68073j = finderVstStruct.b("udf_kv", y.q(jSONObject2, ",", ";", false), true);
                finderVstStruct.n();
                ((f1) yz3.j.c(f1.class)).Pp0(finderVstStruct);
                yz3.d c15 = yz3.j.c(j4.class);
                m.f(c15, "getService(IFinderMultiTaskService::class.java)");
                j4.a.a((j4) c15, false, 1, null);
            }
        } else {
            Log.i("Finder.ActivityRouter", "multiTask close, FINDER_MULTI_TASK_SWITCH value:" + zz1.e.E8.t().intValue() + ",is table:" + x4.z());
            z16 = false;
        }
        Log.i("Finder.ActivityRouter", "enterFinderTimelineUI: isEnterFinderTask = " + z16 + ", fromUI = " + context.getClass().getName() + ", scene = " + i15);
        if (t15) {
            cls = FinderHomeAffinityUI.class;
        } else {
            cls = FinderHomeUI.class;
        }
        intent2.setClass(context, cls);
        k30.a aVar = new k30.a();
        aVar.c(intent2);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;IZ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;IZ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void KT(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderLiveChargeAnchorIncomeUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.B).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveChargeAnchorIncomeUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveChargeAnchorIncomeUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void L6(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderGameLivePostUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.G).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLivePostUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLivePostUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void Lg0(AppCompatActivity appCompatActivity, BaseFinderFeed baseFinderFeed, Bundle bundle, int i15) {
        m.g(appCompatActivity, "context");
        m.g(baseFinderFeed, "feed");
        b3.f118772a.z(appCompatActivity, baseFinderFeed, bundle, i15);
    }

    /* JADX WARNING: Removed duplicated region for block: B:13:0x0030  */
    /* JADX WARNING: Removed duplicated region for block: B:18:0x0075  */
    /* JADX WARNING: Removed duplicated region for block: B:20:? A[RETURN, SYNTHETIC] */
    @Override // ek0.v2
    public void Lj(Context context, Intent intent, int i15, String str) {
        boolean z15;
        boolean z16;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        t1 i16 = z.s().i();
        w1.a aVar = w1.a.f175335hh;
        boolean z17 = !i16.h(aVar, false);
        if (str != null) {
            if (str.length() > 0) {
                z16 = true;
            } else {
                z16 = false;
            }
            if (z16) {
                z15 = true;
                if (!z15) {
                    if (z17) {
                        str = "https://channels.weixin.qq.com/mobile-support/pages/anchor-tasks/whatsnew";
                    } else {
                        str = "https://channels.weixin.qq.com/mobile-support/pages/anchor-tasks/tasks";
                    }
                }
                Uri.Builder buildUpon = Uri.parse(str).buildUpon();
                m.f(buildUpon, "parse(urlStr).buildUpon()");
                buildUpon.appendQueryParameter("SourceScene", String.valueOf(i15));
                String uri = buildUpon.build().toString();
                m.f(uri, "builder.build().toString()");
                intent.putExtra("showShare", false);
                intent.putExtra("KRightBtn", true);
                intent.putExtra("rawUrl", uri);
                sv3.b.j(context, "webview", ".ui.tools.WebViewUI", intent, null);
                if (!z17) {
                    z.s().i().L(aVar, Boolean.TRUE);
                    return;
                }
                return;
            }
        }
        z15 = false;
        if (!z15) {
        }
        Uri.Builder buildUpon2 = Uri.parse(str).buildUpon();
        m.f(buildUpon2, "parse(urlStr).buildUpon()");
        buildUpon2.appendQueryParameter("SourceScene", String.valueOf(i15));
        String uri2 = buildUpon2.build().toString();
        m.f(uri2, "builder.build().toString()");
        intent.putExtra("showShare", false);
        intent.putExtra("KRightBtn", true);
        intent.putExtra("rawUrl", uri2);
        sv3.b.j(context, "webview", ".ui.tools.WebViewUI", intent, null);
        if (!z17) {
        }
    }

    @Override // ek0.v2
    public void M4(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.R).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveGiftPkgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveGiftPkgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void MO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        ta.W0.c(context, intent);
        intent.setClass(context, FinderWxMsgUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderWxMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderWxMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void NM0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderGameLiveFinishUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.F).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLiveFinishUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLiveFinishUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void NO0(Context context, Intent intent, boolean z15) {
        m.g(context, "context");
        if (h4.f119006a.m1()) {
            ((ty.h) yz3.j.c(ty.h.class)).Ds0(context, 34359738368L, null, new h(this, context, intent, z15), 3);
        } else {
            rP0(context, intent, z15);
        }
    }

    public final void OO0(String str, Context context) {
        m.g(context, "context");
        Intent intent = new Intent();
        if (str == null) {
            str = "";
        }
        intent.putExtra("Contact_User", str);
        sv3.b.j(context, Scopes.PROFILE, ".ui.ContactInfoUI", intent, null);
    }

    @Override // ek0.v2
    public void Og0(Context context, Intent intent) {
        boolean z15;
        Intent intent2;
        Activity Tn0;
        m.g(context, "context");
        if (!oP0(context, intent)) {
            if (!(context instanceof Activity) && (Tn0 = ((j4) yz3.j.c(j4.class)).Tn0()) != null) {
                context = Tn0;
            }
            if (intent != null) {
                z15 = intent.getBooleanExtra("KEY_IGNORE_REPORT_INIT", false);
            } else {
                z15 = false;
            }
            if (intent == null) {
                intent = new Intent();
            }
            intent.putExtra("key_to_comment_scene", 22);
            if (!z15) {
                ta.a.e(ta.W0, context, intent, 0, null, 0, 0, false, 0, 252, null);
            }
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            if (intent.getIntExtra("key_topic_type", 1) == 1) {
                zz1.e.f356376d.getClass();
                if (zz1.e.Ka.t().intValue() == 1) {
                    intent.setClass(context, FinderNewTopicUI.class);
                    k30.a aVar = new k30.a();
                    aVar.c(intent);
                    j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                    context.startActivity((Intent) aVar.a(0));
                    j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                }
            }
            intent.setClass(context, FinderTopicFeedUI.class);
            k30.a aVar2 = new k30.a();
            aVar2.c(intent);
            j30.a.d(context, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar2.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    @Override // ek0.v2
    public void P3(Activity activity, Intent intent) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.P).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryAudienceUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        activity.startActivity((Intent) aVar.a(0));
        j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryAudienceUI", "(Landroid/app/Activity;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void PO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderFriendLikeTimelineUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFriendLikeTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFriendLikeTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void Pv0(Context context, Intent intent, String str, int i15, int i16) {
        Intent intent2;
        Context context2;
        bv1 bv12;
        ta taVar;
        m.g(context, "context");
        m.g(str, "authorFinderUsername");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent2 = new Intent();
            } else {
                intent2 = intent;
            }
            b.C2441b bVar = null;
            if (context instanceof AppCompatActivity) {
                context2 = context;
            } else {
                context2 = null;
            }
            if (context2 == null || (taVar = (ta) r.f342954a.b(context).e(ta.class)) == null) {
                bv12 = null;
            } else {
                bv12 = taVar.l0();
            }
            synchronized (eu1.b.f210087a) {
                b.C2441b bVar2 = (b.C2441b) ((HashMap) eu1.b.f210088b).get(str);
                boolean z15 = true;
                if (bVar2 == null || !bVar2.f210090a) {
                    z15 = false;
                }
                if (z15) {
                    bVar = bVar2;
                }
            }
            if (bVar != null) {
                WO0(context, intent2, i15, i16, str, Integer.valueOf(bVar.f210091b), Integer.valueOf(bVar.f210092c));
                return;
            }
            hu1.c cVar = new hu1.c(bv12, str);
            u32.c.k(cVar, context, null, 0, 6, null);
            m60.d.K(cVar.h(), new j(this, context, intent2, i15, i16, str));
        }
    }

    public final void QO0(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(activity, FinderGalleryTimelineUI.class);
        ta.W0.c(activity, intent);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterGalleryTimelineUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    @Override // ek0.v2
    public void Qd0(Activity activity, Intent intent, int i15) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        if (intent == null) {
            intent = new Intent();
        }
        intent.addFlags(67108864);
        intent.setClass(activity, FinderCreateContactUI.class);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderCreateContactUIForResult", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public void RO0(Context context, Intent intent, String str) {
        Intent intent2;
        m.g(context, "context");
        m.g(intent, "intent");
        m.g(str, "authorFinderUsername");
        if (!oP0(context, intent)) {
            intent.putExtra("key_to_comment_scene", 204);
            ta.W0.c(context, intent);
            mP0(context, intent);
            intent.putExtra("key_author_finder_name", str);
            intent.putExtra("finder_username", str);
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.setClass(context, FinderMemberAreaUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberAreaUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberAreaUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    @Override // ek0.v2
    public void Re(AppCompatActivity appCompatActivity, BaseFinderFeed baseFinderFeed, Bundle bundle, int i15, int i16) {
        m.g(appCompatActivity, "context");
        m.g(baseFinderFeed, "feed");
        b3.f118772a.w(appCompatActivity, baseFinderFeed, bundle, i15, i16);
    }

    @Override // ek0.v2
    public void Rn0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderGameSelectUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.J).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameSelectUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameSelectUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void SO0(Context context, Intent intent, String str, int i15, int i16) {
        Intent intent2;
        m.g(context, "context");
        m.g(str, "authorFinderUsername");
        if (intent == null) {
            intent = new Intent();
        }
        mP0(context, intent);
        intent.putExtra("key_author_finder_name", str);
        intent.putExtra("key_finder_member_status", i15);
        intent.putExtra("key_finder_member_visitor_status", i16);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderMemberBanUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberBanUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;II)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberBanUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;II)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void Sm0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderLiveCountDownUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.f46893z).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveCountDownUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveCountDownUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void T70(Activity activity, Intent intent, int i15) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.O).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveShoppingManagerUIForResult", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
        activity.overridePendingTransition(R.anim.f357373ea, R.anim.f357369e6);
    }

    @Override // ek0.v2
    public void T9(Activity activity, int i15, String str, String str2, float f15, int i16, boolean z15) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        m.g(str, "inputPath");
        m.g(str2, "outputPath");
        RecordConfigProvider b15 = RecordConfigProvider.b(str, str2);
        Bundle bundle = new Bundle();
        bundle.putFloat("crop_fix_ratio", f15);
        bundle.putInt("button_custom_color", i16);
        bundle.putBoolean("can_show_preview", z15);
        b15.M = bundle;
        b15.f139943y = true;
        b15.f139944z = false;
        b15.a(1, ((cs.b) yz3.j.c(cs.b.class)).Fm0().c());
        VideoCaptureReportInfo videoCaptureReportInfo = new VideoCaptureReportInfo();
        videoCaptureReportInfo.f139946d = 17;
        b15.I = videoCaptureReportInfo;
        b15.F = 11;
        UICustomParam uICustomParam = new UICustomParam();
        ((HashMap) uICustomParam.f74033h).put("plugin_filter", Boolean.TRUE);
        ((HashMap) uICustomParam.f74033h).put("plugin_poi", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_tip", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_menu", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_music", true);
        b15.f139933o = uICustomParam;
        zt2.a.f355481a.f(activity, i15, R.anim.f357373ea, R.anim.f357369e6, b15, 1, 1);
    }

    @Override // ek0.v2
    public void TG(Context context, Intent intent, boolean z15) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (z15) {
            intent.putExtra("KEY_IS_FROM_SETTING", true);
        }
        if (!(context instanceof Activity)) {
            context = z.f119493a.b();
        }
        if (!(context instanceof Activity)) {
            intent.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.f46885r).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryHistoryUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLotteryHistoryUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    /* JADX WARNING: Removed duplicated region for block: B:14:0x002d  */
    /* JADX WARNING: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */
    public boolean TM0(Context context, String str) {
        boolean z15;
        boolean z16;
        m.g(context, "context");
        m.g(str, "userName");
        ij1.h j65 = dj1.b.f200487e.j6(str);
        if (j65 == null || j65.f233533a != 1) {
            return false;
        }
        String str2 = j65.f233534b;
        if (str2 != null) {
            if (str2.length() > 0) {
                z16 = true;
            } else {
                z16 = false;
            }
            if (z16) {
                z15 = true;
                if (z15) {
                    return false;
                }
                Intent intent = new Intent();
                intent.putExtra("rawUrl", j1.f119090a.a(str, j65.f233534b));
                sv3.b.j(context, "webview", ".ui.tools.WebViewUI", intent, null);
                return true;
            }
        }
        z15 = false;
        if (z15) {
        }
    }

    public final void TO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent = new Intent();
            }
            mP0(context, intent);
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.setClass(context, FinderMemberFanListUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberFanListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberFanListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    public void UO0(Context context, Intent intent, String str) {
        Intent intent2;
        m.g(context, "context");
        m.g(intent, "intent");
        m.g(str, "authorFinderUsername");
        if (!oP0(context, intent)) {
            intent.putExtra("key_to_comment_scene", 206);
            ta.W0.c(context, intent);
            mP0(context, intent);
            intent.putExtra("key_author_finder_name", str);
            intent.putExtra("finder_username", str);
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.setClass(context, FinderMemberPreviewUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberPreviewUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMemberPreviewUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    @Override // ek0.v2
    public void VK(Context context, String str, x31 x312, int i15, kh4.a<b0> aVar) {
        String str2;
        m.g(context, "context");
        m.g(str, "fromUsername");
        m.g(x312, "toUser");
        if (x312.f41759q) {
            y0.makeText(context, (int) R.string.enz, 0).show();
            return;
        }
        FinderContact finderContact = x312.f41749d;
        if (finderContact == null || (str2 = finderContact.username) == null) {
            str2 = "";
        }
        Log.i("Finder.ActivityRouter", "[enterChattingUIFromLive] fromUsername=" + str + " toUsername=" + str2 + " scene=" + i15);
        xv3.b bVar = h2.f333740t;
        h2.f333740t = x312.f41758p;
        ((f5) yz3.j.c(f5.class)).jr(context, i15, str2, 3, new c(str2, context, aVar, str));
    }

    public final void VN(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.putExtra("KEY_TALKER_TYPE", 1);
        intent.putExtra("KEY_TALKER_SCENE", 1);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        ta.W0.c(context, intent);
        intent.setClass(context, FinderConversationTempUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderWxConversationUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderWxConversationUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void VN0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        ta.a.e(ta.W0, context, intent, 0, null, 0, 0, false, 0, 252, null);
        intent.setClass(context, FinderAccountRecommendListUI.class);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAccountRecommendListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAccountRecommendListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void VO(Context context, Intent intent) {
        m.g(context, "context");
        if (h4.f119006a.m1()) {
            ((ty.h) yz3.j.c(ty.h.class)).Ds0(context, 34359738368L, null, new i(this, context, intent), 3);
        } else {
            sP0(context, intent);
        }
    }

    public void VO0(Context context, Intent intent, String str, int i15) {
        m.g(context, "context");
        m.g(intent, "i");
        m.g(str, "authorFinderUsername");
        ((cs.b) yz3.j.c(cs.b.class)).XE0().p0(context, intent, str, i15);
    }

    public final void WN0(Context context, Intent intent, boolean z15) {
        Intent intent2;
        Intent intent3;
        String str;
        m.g(context, "context");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent2 = new Intent();
            } else {
                intent2 = intent;
            }
            if (!z15) {
                intent2.putExtra("key_to_comment_scene", 59);
                ta.W0.c(context, intent2);
            }
            if (!(context instanceof Activity)) {
                intent3 = intent2;
            } else {
                intent3 = null;
            }
            if (intent3 != null) {
                intent3.addFlags(268435456);
            }
            intent2.setClass(context, FinderActivityProfileUI.class);
            FinderActivityProfileUI.a aVar = FinderActivityProfileUI.f108734r;
            long longExtra = intent2.getLongExtra("key_activity_id", 0);
            String stringExtra = intent2.getStringExtra("key_encrypted_topic_id");
            if (stringExtra == null) {
                str = "";
            } else {
                str = stringExtra;
            }
            long longExtra2 = intent2.getLongExtra("key_feed_ref_id", 0);
            String stringExtra2 = intent2.getStringExtra("key_by_pass_info");
            String a15 = aVar.a(longExtra, str, 1);
            String a16 = aVar.a(longExtra, str, 2);
            yj1.a aVar2 = new yj1.a(7, longExtra, Long.valueOf(longExtra2), str, 1, null, null, stringExtra2, a15, 0, 512, null);
            yj1.a aVar3 = new yj1.a(7, longExtra, Long.valueOf(longExtra2), str, 2, null, null, stringExtra2, a16, 0, 512, null);
            q.c cVar = bx1.q.f45236r;
            q.c.a(cVar, aVar2, null, null, 6, null);
            q.c.a(cVar, aVar3, null, null, 6, null);
            long longExtra3 = intent2.getLongExtra("key_activity_id", 0);
            String stringExtra3 = intent2.getStringExtra("key_encrypted_topic_id");
            if (stringExtra3 == null) {
                stringExtra3 = "";
            }
            j0 a17 = r.f342954a.e(FinderCommonFeatureService.class).a(h0.class);
            m.f(a17, "UICProvider.of(FinderCom…reloadLoader::class.java)");
            gk4.h.d(((h0) a17).getLifecycleScope(), null, null, new com.tencent.mm.plugin.finder.activity.a(longExtra3, stringExtra3, null), 3, null);
            k30.a aVar4 = new k30.a();
            aVar4.c(intent2);
            j30.a.d(context, aVar4.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterActivityProfileUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar4.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterActivityProfileUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    public final void WO0(Context context, Intent intent, int i15, int i16, String str, Integer num, Integer num2) {
        Activity activity;
        int i17;
        Activity Tn0;
        if (!(context instanceof Activity) && (Tn0 = ((j4) yz3.j.c(j4.class)).Tn0()) != null) {
            activity = Tn0;
        } else {
            activity = context;
        }
        if (num != null && num.intValue() == 2) {
            if (num2 != null) {
                i17 = num2.intValue();
            } else {
                i17 = 0;
            }
            SO0(activity, intent, str, 2, i17);
        } else if (num2 != null && num2.intValue() == 0) {
            if (!(i15 == 0 || i16 == 0)) {
                ((e2) yz3.j.c(e2.class)).I7(i15, i16, 206, intent);
            }
            UO0(activity, intent, str);
        } else {
            if (!(i15 == 0 || i16 == 0)) {
                ((e2) yz3.j.c(e2.class)).I7(i15, i16, 204, intent);
            }
            RO0(activity, intent, str);
        }
    }

    public final void XN0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderAtTimelineUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAtTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAtTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        f1 f1Var = (f1) yz3.j.c(f1.class);
        f1Var.getClass();
        FinderEnterMentionListStruct finderEnterMentionListStruct = new FinderEnterMentionListStruct();
        long c15 = e6.c();
        finderEnterMentionListStruct.f66792d = c15;
        finderEnterMentionListStruct.e("EnterTimeStampMs", c15);
        finderEnterMentionListStruct.f66793e = finderEnterMentionListStruct.b("FinerUsername", r32.b.c(context), true);
        finderEnterMentionListStruct.f66794f = finderEnterMentionListStruct.b("SessionId", ((ie1.i) yz3.j.c(ie1.i.class)).ud(), true);
        finderEnterMentionListStruct.n();
        f1Var.Pp0(finderEnterMentionListStruct);
    }

    public final void XO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderModifyNameUI.class);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterModifyNameUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterModifyNameUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void Xz0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "FinderGameLivePostVerifyUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.H).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLivePostVerifyUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLivePostVerifyUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void YJ(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.f46875h).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLivePrecheckLicenseUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void YN0(Context context, String str, String str2) {
        m.g(context, "context");
        m.g(str, "appId");
        m.g(str2, "enterPath");
        om0.o oVar = new om0.o();
        zz1.e.f356376d.getClass();
        if (((Boolean) ((vl1.a) ((n) zz1.e.f356602u7).getValue()).t()).booleanValue()) {
            oVar.f277593c = 2;
        }
        oVar.B = a0.OPAQUE;
        oVar.f277591a = str;
        oVar.f277596f = Util.nullAs(str2, "");
        oVar.f277601k = 1201;
        HalfScreenConfig.BackgroundShapeConfig backgroundShapeConfig = new HalfScreenConfig.BackgroundShapeConfig(MMApplicationContext.getContext().getResources().getDimension(R.dimen.f359061c9), true, true, false, false, 24, null);
        FinderWeAppHalfScreenScListener finderWeAppHalfScreenScListener = new FinderWeAppHalfScreenScListener(true, null);
        oVar.A = new HalfScreenConfig(true, (int) (((double) y3.f119479a.a()) * 0.45d), HalfScreenConfig.a.POPUP, true, backgroundShapeConfig, false, null, HalfScreenConfig.c.HIDE, true, false, finderWeAppHalfScreenScListener, HalfScreenConfig.g.FAKE_NATIVE, false, false, null, true, 0, null, 0, 0, 0, false, false, false, null, false, null, (int) MMApplicationContext.getContext().getResources().getDimension(R.dimen.f359089d1), false, false, -1, false, false, false, false, null, 668954720, 13, null);
        oVar.f277599i = new a();
        oVar.E = new C1204b();
        e0.f346876a.getClass();
        e0.f346878c = true;
        ((com.tencent.mm.plugin.appbrand.service.d1) yz3.j.c(com.tencent.mm.plugin.appbrand.service.d1.class)).r80(context, oVar);
    }

    public final void YO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (((e2) yz3.j.c(e2.class)).gq()) {
            if (intent == null) {
                intent = new Intent();
            }
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            try {
                int i15 = MusicMvMainUI.f135191i;
                intent.setClass(context, MusicMvMainUI.class);
                k30.a aVar = new k30.a();
                aVar.c(intent);
                j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicMvMainUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                context.startActivity((Intent) aVar.a(0));
                j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicMvMainUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            } catch (ClassNotFoundException e15) {
                Log.e("Finder.ActivityRouter", "enterMusicMvMainUI : " + e15);
            }
        }
    }

    public final void ZN0(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(activity, BizProfileTimelineUI.class);
        ta.W0.c(activity, intent);
        h4.a(h4.f119006a, intent, 0, null, 6, null);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterBizProfileTimelineUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void ZO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        try {
            int i15 = MusicMvRouterUI.f135277h;
            intent.putExtra("KEY_MUSIC_ROUTER", 3);
            intent.setClass(context, MusicMvRouterUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicMvMakerUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterMusicMvMakerUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        } catch (ClassNotFoundException e15) {
            Log.e("Finder.ActivityRouter", "enterMusicMvMakerUI : " + e15);
        }
    }

    public final void aO0(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(activity, FinderFavTimelineUI.class);
        ta.W0.c(activity, intent);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFavTimelineUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    @Override // ek0.v2
    public void aP(Activity activity, int i15, String str, String str2, float f15, int i16) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        m.g(str, "inputPath");
        m.g(str2, "outputPath");
        RecordConfigProvider b15 = RecordConfigProvider.b(str, str2);
        Bundle bundle = new Bundle();
        bundle.putFloat("crop_fix_ratio", f15);
        bundle.putInt("button_custom_color", i16);
        b15.M = bundle;
        b15.f139943y = true;
        b15.f139944z = false;
        b15.a(1, ((cs.b) yz3.j.c(cs.b.class)).Fm0().d());
        VideoCaptureReportInfo videoCaptureReportInfo = new VideoCaptureReportInfo();
        videoCaptureReportInfo.f139946d = 17;
        b15.I = videoCaptureReportInfo;
        b15.F = 11;
        UICustomParam uICustomParam = new UICustomParam();
        ((HashMap) uICustomParam.f74033h).put("plugin_filter", Boolean.TRUE);
        ((HashMap) uICustomParam.f74033h).put("plugin_poi", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_tip", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_menu", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_music", true);
        ((HashMap) uICustomParam.f74033h).put("plugin_photo_crop", true);
        b15.f139933o = uICustomParam;
        zt2.a.f355481a.f(activity, i15, R.anim.f357373ea, R.anim.f357369e6, b15, 1, 1);
    }

    public void bO0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderFeedRelatedTimelineUI.class);
        ta.W0.c(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFeedRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFeedRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void bP0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderPoiManageUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiManageUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiManageUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void cO0(Context context, Intent intent, String str) {
        Intent intent2;
        m.g(context, "context");
        m.g(str, "type");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderBlockListSearchUI.class);
        int i15 = FinderBlockListSearchUI.f117502v;
        intent.putExtra("BLOCK_LIST_SEARCH_TYPE", str);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderBlockListSearchUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderBlockListSearchUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void cP0(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.addFlags(67108864);
        intent.setClass(activity, FinderPoiRelateListUI.class);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiRelativeList", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    @Override // ek0.v2
    public void ce(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderCreateContactUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderCreateContactUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderCreateContactUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public void dP0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderPoiTimelineUI.class);
        ta.W0.c(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void e0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        ta.a.e(ta.W0, context, intent, 0, null, 0, 0, false, 0, 252, null);
        ((cs.b) yz3.j.c(cs.b.class)).XE0().e0(context, intent);
    }

    public final void eO0(Context context, cp0 cp02, Intent intent) {
        m.g(context, "context");
        m.g(intent, "i");
        w0 w0Var = w0.f268166a;
        w0.f268168c = cp02;
        ww2.d.INSTANCE.idkeyStat(1265, 2, 1, false);
        intent.setClass(context, FinderContactSearchIncludeFollowUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderContactSearchIncludeFollowUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderContactSearchIncludeFollowUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void eP0(Context context, Intent intent) {
        m.g(context, "context");
        ((cs.b) yz3.j.c(cs.b.class)).XE0().u0(context, intent);
    }

    public final void fO0(Context context, cp0 cp02, Intent intent) {
        m.g(context, "context");
        m.g(intent, "i");
        w0 w0Var = w0.f268166a;
        w0.f268168c = cp02;
        ww2.d.INSTANCE.idkeyStat(1265, 2, 1, false);
        intent.setClass(context, FinderContactSearchUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderContactSearchUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderContactSearchUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void fP0(Activity activity, String str) {
        m.g(activity, "context");
        if (!Util.isNullOrNil(str) || (activity instanceof FinderHomeUI) || (activity instanceof FinderTimelineUI) || (activity instanceof FinderSelfUI)) {
            tP0(activity, str);
            return;
        }
        Intent intent = new Intent();
        intent.setClass(activity, FinderRealnameVerifyRouteUI.class);
        intent.putExtra("enterRealnameVerifyUI", true);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterRealnameVerifyUI", "(Landroid/app/Activity;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        activity.startActivity((Intent) aVar.a(0));
        j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterRealnameVerifyUI", "(Landroid/app/Activity;Ljava/lang/String;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void gP0(Context context, Intent intent, int i15) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderRelatedTimelineUI.class);
        if (context instanceof Activity) {
            Activity activity = (Activity) context;
            k30.a aVar = new k30.a();
            ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
            aVar.c(Integer.valueOf(i15));
            aVar.c(intent);
            j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
            return;
        }
        intent.addFlags(268435456);
        k30.a aVar2 = new k30.a();
        aVar2.c(intent);
        j30.a.d(context, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar2.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void gb0(Context context, Intent intent) {
        Intent intent2;
        int i15;
        m.g(context, "context");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent = new Intent();
            }
            zz1.e.f356376d.getClass();
            if (zz1.e.La.t().intValue() == 1) {
                intent.setClass(context, FinderNewPoiUI.class);
            } else {
                intent.setClass(context, FinderPoiFeedUI.class);
            }
            q4.a aVar = null;
            if (!(context instanceof Activity)) {
                intent2 = intent;
            } else {
                intent2 = null;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            int intExtra = intent.getIntExtra("key_entrance_type", -1);
            Serializable serializableExtra = intent.getSerializableExtra("key_from_type");
            if (serializableExtra instanceof q4.a) {
                aVar = (q4.a) serializableExtra;
            }
            if (aVar == q4.a.f309628d) {
                i15 = 81;
            } else {
                i15 = 26;
            }
            z0.f119498a.a(context, intent, i15, intExtra);
            k30.a aVar2 = new k30.a();
            aVar2.c(intent);
            j30.a.d(context, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar2.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterPoiFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    public final void hO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderEditTextUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderEditTextUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderEditTextUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void hP0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, SelectLocalFileRouterUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterSelectLocalFileRouterUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterSelectLocalFileRouterUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void i(Context context, String str, String str2, int i15, bv1 bv12) {
        m.g(context, "context");
        m.g(str, "sessionId");
        m.g(str2, "username");
        ((f5) yz3.j.c(f5.class)).e(context, str, str2, i15, new k(context, bv12));
    }

    @Override // ek0.v2
    public void i2(Context context, Intent intent) {
        Intent intent2;
        boolean z15;
        Activity activity;
        sl0 sl02;
        int i15;
        Intent intent3;
        boolean z16;
        Intent intent4;
        m.g(context, "context");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        h4.a(h4.f119006a, intent2, 0, null, 6, null);
        kd3.i iVar = (kd3.i) yz3.j.c(kd3.i.class);
        if (iVar != null) {
            z15 = iVar.isTeenMode();
        } else {
            z15 = false;
        }
        boolean booleanExtra = intent2.getBooleanExtra("KEY_FROM_TIMELINE", false);
        if (!z15 || booleanExtra) {
            String stringExtra = intent2.getStringExtra("finder_username");
            if (stringExtra == null) {
                stringExtra = "";
            }
            boolean z17 = context instanceof Activity;
            if (z17 || (activity = ((j4) yz3.j.c(j4.class)).Tn0()) == null) {
                activity = context;
            }
            dj1.b bVar = dj1.b.f200487e;
            ij1.h j65 = bVar.j6(stringExtra);
            if (j65 != null && j65.f233533a == 1) {
                if (TM0(activity, stringExtra)) {
                    return;
                }
            }
            Activity activity2 = null;
            ij1.b a15 = a.C2191a.a(bVar, stringExtra, false, 2, null);
            if (a15 != null) {
                sl02 = a15.r2().J;
            } else {
                sl02 = null;
            }
            if ((sl02 != null || !((wr.b) yz3.j.c(wr.b.class)).Yo(context, "", stringExtra)) && !((wr.b) yz3.j.c(wr.b.class)).wR(context, stringExtra)) {
                if (m.b(r32.b.c(context), stringExtra)) {
                    i15 = 33;
                } else {
                    i15 = 32;
                }
                z0.f119498a.a(activity, intent2, i15, intent2.getIntExtra("key_entrance_type", -1));
                if (!(activity instanceof Activity)) {
                    intent3 = intent2;
                } else {
                    intent3 = null;
                }
                if (intent3 != null) {
                    intent3.addFlags(268435456);
                }
                intent2.setClass(activity, FinderProfileUI.class);
                if (z17) {
                    activity2 = (Activity) context;
                }
                if (activity2 == null || (intent4 = activity2.getIntent()) == null || !intent4.getBooleanExtra("KEY_IS_FROM_FINDER_TASK", false)) {
                    z16 = false;
                } else {
                    z16 = true;
                }
                if (z16) {
                    intent2.putExtra("KEY_IS_FROM_FINDER_TASK", true);
                }
                int intExtra = intent2.getIntExtra("key_enter_profile_type", 0);
                if (intExtra == 1 || intExtra == 2 || intExtra == 5 || intExtra == 6 || intExtra == 7 || intExtra == 10) {
                    tz2.f.INSTANCE.d(540999704);
                }
                k30.a aVar = new k30.a();
                aVar.c(intent2);
                j30.a.d(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderProfileUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                activity.startActivity((Intent) aVar.a(0));
                j30.a.e(activity, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderProfileUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
                return;
            }
            return;
        }
        ((kd3.i) yz3.j.c(kd3.i.class)).O4(context);
    }

    public final void iO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderFansListUI.class);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFansListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFansListUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void iP0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClassName(context, "com.tencent.mm.plugin.sns.ui.picker.SnsAlbumPickerUI");
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterSnsAlbumPickerUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterSnsAlbumPickerUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void jD(Context context, long j15, String str, r91 r912, p pVar, wd1 wd12, String str2, LinkedList<zj1> linkedList, zj1 zj12, String str3, String str4, LinkedList<z11> linkedList2, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        m.g(str, "nonceId");
        m.g(r912, "liveInfo");
        m.g(str3, "contextId");
        LiveConfig.b bVar = new LiveConfig.b();
        bVar.f75965a = 0;
        bVar.f75967c = r912.f35027d;
        bVar.f75975k = j15;
        bVar.f75980p = str;
        bVar.f75970f = r32.b.c(context);
        bVar.f75981q = "";
        bVar.f75984t = 0;
        bVar.f75985u = 0;
        bVar.f75982r = "";
        bVar.f75983s = "";
        bVar.f75976l = str2;
        bVar.f75986v = str4;
        LiveConfig a15 = bVar.a();
        Log.i("Finder.ActivityRouter", "enterFinderLiveAnchorUI " + a15.b());
        d1 d1Var = new d1();
        d1Var.f14462l.add(a15);
        d1Var.f14451a = wd12;
        d1Var.f14463m = r912.B;
        d1Var.f14453c = linkedList;
        d1Var.f14454d = zj12;
        d1Var.f14455e = linkedList2;
        ((zr.n) yz3.j.c(zr.n.class)).zH0(r912.f35027d);
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        intent2.putExtra("KEY_PARAMS_SOURCE_TYPE", r912.f35052s);
        qO0(context, d1Var, str3, intent2);
    }

    public final void jO0(Context context, cp0 cp02, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        m.g(intent, "i");
        w0.f268168c = cp02;
        intent.setClass(context, FinderFeedSearchUI.class);
        intent.putExtra("key_to_comment_scene", 6);
        ta.a.e(ta.W0, context, intent, 0, null, 0, 0, false, 0, 252, null);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        h4.a(h4.f119006a, intent, 0, null, 6, null);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFeedSearchUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFeedSearchUI", "(Landroid/content/Context;Lcom/tencent/mm/protocal/protobuf/FinderFeedSearchObj;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        ww2.d.INSTANCE.idkeyStat(1265, 1, 1, false);
    }

    public void jP0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderTopicTimelineUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterTopicTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void ja0(Context context, mn0 mn02, Intent intent, boolean z15) {
        r91 r912;
        Object obj;
        LinkedList<zj1> linkedList;
        zj1 zj12;
        LinkedList<z11> linkedList2;
        Integer num;
        Object obj2;
        f21 f212;
        LinkedList<lf1> linkedList3;
        int i15;
        int i16;
        int i17;
        f21 f213;
        Integer num2;
        Integer num3;
        int i18;
        int i19;
        Intent intent2;
        byte[] bArr;
        byte[] bArr2;
        byte[] bArr3;
        byte[] bArr4;
        byte[] bArr5;
        bf1 bf12;
        byte[] bArr6;
        byte[] bArr7;
        FinderJumpInfo finderJumpInfo;
        FinderJumpInfo finderJumpInfo2;
        zv0 zv02;
        byte[] bArr8;
        vl0 vl02;
        l51 l512;
        ii1 ii12;
        hi1 hi12;
        hi1 hi13;
        LinkedList<x33> linkedList4;
        boolean z16;
        LinkedList<xd1> linkedList5;
        FinderObject finderObject;
        m.g(context, "context");
        if (mn02 == null || (finderObject = mn02.f29922i) == null || (r912 = finderObject.liveInfo) == null) {
            r912 = new r91();
        }
        LinkedList linkedList6 = new LinkedList();
        if (!(mn02 == null || (linkedList5 = mn02.R) == null)) {
            Iterator<T> it = linkedList5.iterator();
            while (it.hasNext()) {
                LinkedList<wd1> linkedList7 = it.next().f42049d;
                if (linkedList7 != null) {
                    if (!(!linkedList7.isEmpty())) {
                        linkedList7 = null;
                    }
                    if (linkedList7 != null) {
                        linkedList6.addAll(linkedList7);
                    }
                }
            }
        }
        Iterator it4 = linkedList6.iterator();
        while (true) {
            if (!it4.hasNext()) {
                obj = null;
                break;
            }
            obj = it4.next();
            if ((((wd1) obj).f40928j & 1) == 1) {
                z16 = true;
                continue;
            } else {
                z16 = false;
                continue;
            }
            if (z16) {
                break;
            }
        }
        wd1 wd12 = (wd1) obj;
        if (mn02 != null) {
            linkedList = mn02.f29923j;
        } else {
            linkedList = null;
        }
        if (mn02 != null) {
            zj12 = mn02.f29924n;
        } else {
            zj12 = null;
        }
        if (mn02 != null) {
            linkedList2 = mn02.f29925o;
        } else {
            linkedList2 = null;
        }
        if (mn02 != null) {
            num = Integer.valueOf(mn02.f29926p);
        } else {
            num = null;
        }
        if (mn02 != null) {
            obj2 = Integer.valueOf(mn02.f29929s);
        } else {
            obj2 = null;
        }
        if (mn02 != null) {
            f212 = mn02.f29931u;
        } else {
            f212 = null;
        }
        ka1 ka12 = new ka1();
        if (mn02 != null) {
            linkedList3 = mn02.f29934x;
        } else {
            linkedList3 = null;
        }
        ka12.f27112d = linkedList3;
        tn1.a aVar = tn1.a.f313149a;
        wg4.g gVar = tn1.a.f313188g2;
        if (((Number) ((tl1.c) ((n) gVar).getValue()).t()).intValue() > 0) {
            obj2 = ((tl1.c) ((n) gVar).getValue()).t();
            Log.i("Finder.ActivityRouter", "debug enterFinderLivePrepareUI maxUserCount " + obj2);
        }
        za1 za12 = new za1();
        if (mn02 != null) {
            i15 = mn02.f29927q;
        } else {
            i15 = 0;
        }
        za12.f44292d = i15;
        if (mn02 != null) {
            i16 = mn02.f29928r;
        } else {
            i16 = 0;
        }
        za12.f44293e = i16;
        if (mn02 != null) {
            i17 = mn02.f29936z;
        } else {
            i17 = 0;
        }
        LiveConfig.b bVar = new LiveConfig.b();
        bVar.f75965a = 0;
        bVar.f75967c = r912.f35027d;
        bVar.f75970f = r32.b.c(context);
        LiveConfig a15 = bVar.a();
        StringBuilder sb5 = new StringBuilder();
        sb5.append("enterFinderLiveAnchorUI ");
        sb5.append(a15.b());
        sb5.append(", bgMusicInfo:");
        if (f212 == null) {
            f213 = "";
        } else {
            f213 = f212;
        }
        sb5.append(m60.i.h(f213));
        sb5.append("prepareResp:");
        sb5.append(mn02);
        sb5.append(" tagInfoList:");
        if (linkedList != null) {
            num2 = Integer.valueOf(linkedList.size());
        } else {
            num2 = null;
        }
        sb5.append(num2);
        sb5.append(",sticker_bubble size:");
        if (mn02 == null || (hi13 = mn02.Y) == null || (linkedList4 = hi13.f23821d) == null) {
            num3 = null;
        } else {
            num3 = Integer.valueOf(linkedList4.size());
        }
        sb5.append(num3);
        Log.i("Finder.ActivityRouter", sb5.toString());
        d1 d1Var = new d1();
        d1Var.f14462l.add(a15);
        d1Var.f14451a = wd12;
        d1Var.f14452b = ka12;
        d1Var.f14463m = r912.B;
        d1Var.f14453c = linkedList;
        d1Var.f14454d = zj12;
        d1Var.f14455e = linkedList2;
        if (num != null) {
            i18 = num.intValue();
        } else {
            i18 = 0;
        }
        d1Var.f14456f = i18;
        Integer num4 = (Integer) obj2;
        if (num4 != null) {
            i19 = num4.intValue();
        } else {
            i19 = 0;
        }
        d1Var.f14457g = i19;
        d1Var.f14458h = za12.toByteArray();
        ((zr.n) yz3.j.c(zr.n.class)).zH0(r912.f35027d);
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        if (f212 != null) {
            bArr = f212.toByteArray();
        } else {
            bArr = null;
        }
        intent2.putExtra("KEY_PARAMS_BG_MUSIC_ID_LIST", bArr);
        if (mn02 == null || (hi12 = mn02.Y) == null) {
            bArr2 = null;
        } else {
            bArr2 = hi12.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_ANCHOR_STICKER_BUBBLE_INFO", bArr2);
        if (mn02 == null || (ii12 = mn02.Z) == null) {
            bArr3 = null;
        } else {
            bArr3 = ii12.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_ANCHOR_STICKER_FONT_INFO", bArr3);
        intent2.putExtra("KEY_PARAMS_SOURCE_TYPE", r912.f35052s);
        intent2.putExtra("KEY_PARAMS_RANDOM_MIC_MATCH_TIMEOUT", i17);
        if (mn02 == null || (l512 = mn02.A) == null) {
            bArr4 = null;
        } else {
            bArr4 = l512.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_FANS_CLUB", bArr4);
        if (mn02 == null || (vl02 = mn02.B) == null) {
            bArr5 = null;
        } else {
            bArr5 = vl02.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_LIVE_CO_CERT_REWARD_INFO", bArr5);
        intent2.putExtra("KEY_PARAMS_LIVE_IS_FROM_SCAN", z15);
        if (mn02 != null) {
            bf12 = mn02.P;
        } else {
            bf12 = null;
        }
        if (bf12 != null) {
            bf1 bf13 = mn02.P;
            if (bf13 != null) {
                bArr8 = bf13.toByteArray();
            } else {
                bArr8 = null;
            }
            intent2.putExtra("KEY_PARAMS_ANCHOR_MINI_APP", bArr8);
        } else {
            if (mn02 != null) {
                zv02 = mn02.G;
            } else {
                zv02 = null;
            }
            if (zv02 != null) {
                bf1 bf14 = new bf1();
                bf14.f17245d = mn02.G;
                b0 b0Var = b0.f332794a;
                intent2.putExtra("KEY_PARAMS_ANCHOR_MINI_APP", bf14.toByteArray());
            }
        }
        if (mn02 == null || (finderJumpInfo2 = mn02.M) == null) {
            bArr6 = null;
        } else {
            bArr6 = finderJumpInfo2.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_ANCHOR_OP_MINI_APP", bArr6);
        if (mn02 == null || (finderJumpInfo = mn02.W) == null) {
            bArr7 = null;
        } else {
            bArr7 = finderJumpInfo.toByteArray();
        }
        intent2.putExtra("KEY_PARAMS_NEW_ANCHOR_CREATOR_CENTER", bArr7);
        qO0(context, d1Var, "", intent2);
    }

    @Override // ek0.v2
    public void je0(Activity activity, Intent intent, int i15, qn0 qn02, Integer num) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        m.g(qn02, "info");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.Q).getValue());
        intent.putExtra("INTENT_KEY_ERROR_PAGE_INFO", qn02.toByteArray());
        intent.putExtra("INTENT_KEY_ERROR_PAGE_TYPE", num);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLivePostSecurityUI", "(Landroid/app/Activity;Landroid/content/Intent;ILcom/tencent/mm/protocal/protobuf/FinderCreateLiveWarnPageCommon;Ljava/lang/Integer;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void kO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        ta.W0.c(context, intent);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderFinderSysMsgUI.class);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFinderSysMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderFinderSysMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void kP0(Context context) {
        m.g(context, "context");
        Intent intent = new Intent(context, FinderUnOpenUI.class);
        if (!(context instanceof Activity)) {
            intent.addFlags(268435456);
        }
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterUnOpenUI", "(Landroid/content/Context;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterUnOpenUI", "(Landroid/content/Context;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void km(Context context, Intent intent, int i15) {
        m.g(context, "context");
        if (context instanceof MMActivity) {
            if (intent == null) {
                intent = new Intent();
            }
            c42.b bVar = c42.b.f46868a;
            intent.setClass(context, (Class) ((n) c42.b.K).getValue());
            ((MMActivity) context).startActivityForResult(intent, i15);
        }
    }

    public final void lO0(Context context, Intent intent, int i15) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        boolean z15 = context instanceof Activity;
        if (!z15) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderGalleryUI.class);
        if (!z15 || i15 == 0) {
            k30.a aVar = new k30.a();
            aVar.c(intent);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGalleryUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGalleryUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            return;
        }
        Activity activity = (Activity) context;
        k30.a aVar2 = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar2.c(Integer.valueOf(i15));
        aVar2.c(intent);
        j30.a.j(activity, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGalleryUI", "(Landroid/content/Context;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void lP0(Context context, String str, String str2, int i15, String str3, Boolean bool) {
        m.g(context, "context");
        m.g(str, "appName");
        m.g(str2, "enterPath");
        m.g(str3, "sceneNote");
        Log.i("Finder.ActivityRouter", "enter we app appId:" + str + ",enterPath:" + str2 + ",scene:" + i15 + ",sceneNote:" + str3);
        if (!Util.isNullOrNil(str)) {
            om0.o oVar = new om0.o();
            oVar.f277591a = str;
            oVar.f277596f = str2;
            oVar.f277601k = i15;
            oVar.f277602l = str3;
            if (m.b(bool, Boolean.TRUE)) {
                oVar.f277593c = 2;
            }
            ((com.tencent.mm.plugin.appbrand.service.d1) yz3.j.c(com.tencent.mm.plugin.appbrand.service.d1.class)).r80(context, oVar);
        }
    }

    public void mO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderImagePreviewUI.class);
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderImagePreviewUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderImagePreviewUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void mP0(Context context, Intent intent) {
        if (context instanceof AppCompatActivity) {
            int i15 = 0;
            if (intent.getIntExtra("key_member_inlet_source", 0) == 0) {
                eu1.a aVar = (eu1.a) r.f342954a.c((AppCompatActivity) context).e(eu1.a.class);
                if (aVar != null) {
                    i15 = aVar.f210086d;
                }
                intent.putExtra("key_member_inlet_source", i15);
            }
        }
    }

    @Override // ek0.v2
    public void nD(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.f46877j).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveCreateVisitorRoleUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    @Override // ek0.v2
    public void nG0(Intent intent, Context context, long j15, long j16, String str, String str2, String str3, String str4, String str5) {
        int i15;
        r91 liveInfo;
        m.g(context, "context");
        m.g(str, "nonceId");
        m.g(str3, "contextId");
        LiveConfig.b bVar = new LiveConfig.b();
        bVar.f75965a = 0;
        bVar.f75967c = j16;
        bVar.f75980p = str;
        bVar.f75975k = j15;
        bVar.f75970f = r32.b.c(context);
        bVar.f75976l = str2;
        bVar.f75987w = str5;
        bVar.f75986v = str4;
        LiveConfig a15 = bVar.a();
        d1 d1Var = new d1();
        d1Var.f14462l.add(a15);
        FinderItem h15 = a02.f.f299a.h(j15);
        if (h15 == null || (liveInfo = h15.getLiveInfo()) == null) {
            i15 = -1;
        } else {
            i15 = liveInfo.B;
        }
        d1Var.f14463m = i15;
        ((zr.n) yz3.j.c(zr.n.class)).zH0(j16);
        qO0(context, d1Var, str3, intent);
    }

    @Override // ek0.v2
    public int nI0(Context context, d1 d1Var, String str, String str2, Intent intent, boolean z15) {
        boolean z16;
        m.g(context, "context");
        m.g(d1Var, "config");
        m.g(str, "contextId");
        m.g(str2, "clickTabContextId");
        Log.i("Finder.ActivityRouter", "[enterFinderLiveVisitorUI] " + d1Var + ",contextId:" + str + ",clickTabContextId:" + str2);
        tn1.a aVar = tn1.a.f313149a;
        if (((Number) ((tl1.c) ((n) tn1.a.Y2).getValue()).t()).intValue() == 1) {
            z16 = true;
        } else {
            z16 = false;
        }
        i2.a aVar2 = new i2.a();
        aVar2.f210762a = System.currentTimeMillis();
        aVar2.f210767f = z16;
        i2.f210761a = aVar2;
        ez1.e0.f210637d = null;
        long j15 = 0;
        ez1.e0.f210635b = 0;
        ez1.e0.f210636c = 0;
        ez1.e0.f210638e = false;
        ez1.e0.f210640g = true;
        e0.a aVar3 = new e0.a();
        aVar3.f210642a = SystemClock.elapsedRealtime();
        ez1.e0.f210637d = aVar3;
        ez1.e0.f210635b = 1;
        ez1.e0.f210636c = 1;
        aVar3.f210643b = 0;
        aVar3.f210644c = 0;
        aVar3.f210645d = 0;
        aVar3.f210646e = 0;
        aVar3.f210647f = 0;
        zr.n nVar = (zr.n) yz3.j.c(zr.n.class);
        LiveConfig d15 = d1Var.d();
        if (d15 != null) {
            j15 = d15.f75946e;
        }
        nVar.zH0(j15);
        if ((d1Var.f14465o & 4) > 0) {
            return 0;
        }
        return ((x2) yz3.j.c(x2.class)).ri(context, d1Var, str, str2, intent, z15, new f(d1Var, z16));
    }

    public final void nO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.addFlags(67108864);
        intent.setClass(context, FinderImmersiveFeedUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderImmersiveFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderImmersiveFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void nP0(Intent intent, Intent intent2) {
        m.g(intent, "intent");
        m.g(intent2, "curIntent");
        intent.putExtra("KEY_FINDER_USERNAME_SELF", intent2.getStringExtra("KEY_FINDER_USERNAME_SELF"));
        intent.putExtra("key_finder_post_from", intent2.getIntExtra("key_finder_post_from", -1));
        intent.putExtra("KEY_POST_DIRECTLY_FROM_SNS", intent2.getBooleanExtra("KEY_POST_DIRECTLY_FROM_SNS", false));
        intent.putExtra("key_finder_sns_post_within_30s", intent2.getBooleanExtra("key_finder_sns_post_within_30s", false));
        intent.putExtra("key_context_id", intent2.getStringExtra("key_context_id"));
        intent.putExtra("key_jump_id", intent2.getStringExtra("key_jump_id"));
        intent.putExtra("key_click_tab_context_id", intent2.getStringExtra("key_click_tab_id"));
        intent.putExtra("vst_id", intent2.getStringExtra("vst_id"));
        intent.putExtra("post_entry_type", intent2.getIntExtra("post_entry_type", 3));
        intent.putExtra("key_post_has_show_safe_dialog", intent2.getBooleanExtra("key_post_has_show_safe_dialog", false));
        intent.putExtra("CLIENT_KV_REPORTINFO", intent2.getStringExtra("CLIENT_KV_REPORTINFO"));
        intent.putExtra("KEY_FINDER_MEMBER_VIDEO", intent2.getBooleanExtra("KEY_FINDER_MEMBER_VIDEO", false));
        intent.putExtra("key_finder_post_can_switch_account", intent2.getBooleanExtra("key_finder_post_can_switch_account", false));
        intent.putExtra("key_finder_post_chatroom_id", intent2.getStringExtra("key_finder_post_chatroom_id"));
        boolean booleanExtra = intent2.getBooleanExtra("KEY_POST_WARM_GOODS_SELECT_MEDIA", false);
        intent.putExtra("KEY_POST_WARM_GOODS_SELECT_MEDIA", booleanExtra);
        if (booleanExtra) {
            intent.putExtra("JUMP_INFO", intent2.getByteArrayExtra("JUMP_INFO"));
        }
    }

    public void oO0(Context context, Intent intent, int i15, List<? extends e02> list) {
        m.g(context, "context");
        m.g(list, "topicList");
        if (intent == null) {
            intent = new Intent();
        }
        ArrayList arrayList = new ArrayList(list.size());
        intent.setClass(context, FinderInteractionSearchUI.class);
        Iterator<T> it = list.iterator();
        while (it.hasNext()) {
            arrayList.add(new FinderParcelTopicInfo((e02) it.next()));
        }
        intent.putExtra("KEY_TOPIC_LIST", arrayList);
        intent.putExtra("KEY_SCENE", i15);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderInteractionSearchUI", "(Landroid/content/Context;Landroid/content/Intent;ILjava/util/List;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderInteractionSearchUI", "(Landroid/content/Context;Landroid/content/Intent;ILjava/util/List;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final boolean oP0(Context context, Intent intent) {
        int i15;
        m.g(context, "context");
        if (!((q5) yz3.j.c(q5.class)).isTeenMode()) {
            return false;
        }
        ((kd3.i) yz3.j.c(kd3.i.class)).O4(context);
        if (intent != null) {
            i15 = intent.getStringExtra("key_finder_teen_mode_scene");
        } else {
            i15 = null;
        }
        if (i15 == null) {
            i15 = 5;
        }
        com.tencent.mm.plugin.report.service.q.INSTANCE.g(20912, 3, i15, "", "");
        return true;
    }

    @Override // ek0.v2
    public void oo0(b0 b0Var, String str, String str2, int i15, float f15, int i16, boolean z15) {
        m.g(b0Var, "helper");
        m.g(str, "inputPath");
        m.g(str2, "outputPath");
        RecordConfigProvider b15 = RecordConfigProvider.b(str, str2);
        b15.F = 11;
        Bundle bundle = new Bundle();
        bundle.putFloat("crop_fix_ratio", f15);
        bundle.putInt("button_custom_color", i16);
        bundle.putBoolean("can_show_preview", z15);
        b15.M = bundle;
        b15.a(1, ((cs.b) yz3.j.c(cs.b.class)).Fm0().c());
        CaptureDataManager.f139915c.f139916a = null;
        zt2.a.f355481a.f(b0Var.f118752a, i15, R.anim.f357373ea, R.anim.f357369e6, b15, 1, 1);
    }

    public final void pO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderLikedFeedUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLikedFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLikedFeedUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void pP0(Context context, Intent intent) {
        Intent intent2;
        boolean z15;
        Intent intent3;
        if (intent == null) {
            intent = new Intent();
        }
        h4.a(h4.f119006a, intent, 0, null, 6, null);
        boolean z16 = context instanceof Activity;
        Activity activity = null;
        if (!z16) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderProfileLongFeedTimelineUI.class);
        if (z16) {
            activity = (Activity) context;
        }
        if (activity == null || (intent3 = activity.getIntent()) == null || !intent3.getBooleanExtra("KEY_IS_FROM_FINDER_TASK", false)) {
            z15 = false;
        } else {
            z15 = true;
        }
        if (z15) {
            intent.putExtra("KEY_IS_FROM_FINDER_TASK", true);
        }
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFinderProfileLongFeedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFinderProfileLongFeedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void py0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (((q5) yz3.j.c(q5.class)).isTeenMode()) {
            ((kd3.i) yz3.j.c(kd3.i.class)).O4(context);
            Log.w("Finder.ActivityRouter", "青少年模式只看关注时,禁止进入专辑.");
            return;
        }
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderAlbumTimelineUI.class);
        ta.W0.c(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAlbumRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterAlbumRelatedTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void qO0(Context context, d1 d1Var, String str, Intent intent) {
        m.g(context, "context");
        m.g(d1Var, "config");
        m.g(str, "contextId");
        Log.i("Finder.ActivityRouter", "[enterFinderLiveAnchorUI] " + d1Var);
        yz3.d c15 = yz3.j.c(x2.class);
        m.f(c15, "getService(IFinderCommonLiveService::class.java)");
        ((x2) c15).wL0(context, d1Var, str, "", intent);
    }

    public final void qP0(Context context, Intent intent) {
        Intent intent2;
        boolean z15;
        Intent intent3;
        if (intent == null) {
            intent = new Intent();
        }
        h4.a(h4.f119006a, intent, 0, null, 6, null);
        boolean z16 = context instanceof Activity;
        Activity activity = null;
        if (!z16) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderProfileTimeLineUI.class);
        if (z16) {
            activity = (Activity) context;
        }
        if (activity == null || (intent3 = activity.getIntent()) == null || !intent3.getBooleanExtra("KEY_IS_FROM_FINDER_TASK", false)) {
            z15 = false;
        } else {
            z15 = true;
        }
        if (z15) {
            intent.putExtra("KEY_IS_FROM_FINDER_TASK", true);
        }
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFinderProfileTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFinderProfileTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void rA(Context context, Intent intent, int i15, int i16) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderPurchaseUI.class);
        intent.putExtra("key_member_card_count", i15);
        intent.putExtra("key_purchase_live_count", i16);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPurchaseUI", "(Landroid/content/Context;Landroid/content/Intent;II)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderPurchaseUI", "(Landroid/content/Context;Landroid/content/Intent;II)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void rO0(Context context, Intent intent, Integer num) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.putExtra("KEY_SOURCE", num);
        intent.setClass(context, FinderManagementUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderManagementUi", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderManagementUi", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void rP0(Context context, Intent intent, boolean z15) {
        Intent intent2;
        Class<?> cls;
        Activity Tn0;
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity) && (Tn0 = ((j4) yz3.j.c(j4.class)).Tn0()) != null) {
            context = Tn0;
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        if (z15) {
            cls = FinderFloatBallDetailUI.class;
        } else {
            cls = FinderMultiTaskUI.class;
        }
        intent.setClass(context, cls);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFloatBallDetailUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterFloatBallDetailUI", "(Landroid/content/Context;Landroid/content/Intent;Z)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void rj(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderGameLiveSearchUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.I).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameSearchUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameSearchUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void rp0(Activity activity, Intent intent, int i15) {
        m.g(activity, EnvConsts.ACTIVITY_MANAGER_SRVNAME);
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(activity, FinderWxProfileShowUI.class);
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderAffiliateAccountDoneUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
    }

    public final void sP0(Context context, Intent intent) {
        Intent intent2;
        Activity Tn0;
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity) && (Tn0 = ((j4) yz3.j.c(j4.class)).Tn0()) != null) {
            context = Tn0;
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderLongFeedDetailUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterLongFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "realEnterLongFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void sV(Activity activity, Intent intent, int i15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.C).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderCreateLotteryUI", "(Landroid/app/Activity;Landroid/content/Intent;I)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
        activity.overridePendingTransition(R.anim.f357363e0, R.anim.f357210p);
    }

    public final void tO0(Context context, Intent intent) {
        Intent intent2;
        Intent intent3;
        m.g(context, "context");
        if (intent == null) {
            intent2 = new Intent();
        } else {
            intent2 = intent;
        }
        if (!(context instanceof Activity)) {
            intent3 = intent2;
        } else {
            intent3 = null;
        }
        if (intent3 != null) {
            intent3.addFlags(268435456);
        }
        intent2.addFlags(67108864);
        intent2.setClass(context, FinderFinderMsgUI.class);
        intent2.putExtra("key_mention_business_type", 1);
        ArrayList<int[]> arrayList = FinderFinderMsgUI.f117670p;
        int[] iArr = FinderFinderMsgUI.f117673s;
        int length = iArr.length;
        int i15 = 0;
        int i16 = 0;
        while (i15 < length) {
            int i17 = iArr[i15];
            int i18 = i16 + 1;
            q.c cVar = bx1.q.f45236r;
            int[] iArr2 = FinderFinderMsgUI.f117671q.get(i16);
            m.f(iArr2, "memberMsgTypes[index]");
            q.c.a(cVar, new FinderMessageCgiSource(1, i17, iArr2, r32.b.c(context), 1), null, null, 6, null);
            i15++;
            i16 = i18;
        }
        intent2.putExtra("KEY_CAN_USE_SELF_CLUB_USERNAME", true);
        k30.a aVar = new k30.a();
        aVar.c(intent2);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberNotifyMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberNotifyMsgUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void tP(Context context, Intent intent) {
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderLiveWeCoinHotUI");
        if (intent == null) {
            intent = new Intent();
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.A).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveWeCoinHotUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveWeCoinHotUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void tP0(Activity activity, String str) {
        String str2;
        m.g(activity, "context");
        Bundle bundle = new Bundle();
        if (Util.isNullOrNil(str)) {
            String className = activity.getComponentName().getClassName();
            m.f(className, "context.componentName.className");
            String str3 = MMApplicationContext.getSourcePackageName() + ".plugin.finder";
            if (y.v(className, str3, false)) {
                str2 = className.substring(str3.length());
                m.f(str2, "this as java.lang.String).substring(startIndex)");
            } else {
                str2 = className;
            }
            Log.i("Finder.ActivityRouter", "fullActivity " + className + ", fromActivity " + str2);
            bundle.putString("realname_verify_process_jump_activity", str2);
        } else {
            bundle.putString("realname_verify_process_jump_activity", str);
        }
        bundle.putString("realname_verify_process_jump_plugin", "finder");
        ((ss3.d) yz3.j.c(ss3.d.class)).Ur(activity, bundle);
    }

    @Override // ek0.v2
    public void u6(Context context, String str, String str2, int i15, String str3) {
        m.g(context, "context");
        m.g(str, "appId");
        m.g(str2, "enterPath");
        m.g(str3, "sceneNote");
        Log.i("Finder.ActivityRouter", "enter we app appId:" + str + ",enterPath:" + str2 + ",scene:" + i15 + ",sceneNote:" + str3);
        if (!Util.isNullOrNil(str)) {
            om0.o oVar = new om0.o();
            oVar.f277592b = str;
            oVar.f277596f = str2;
            oVar.f277601k = i15;
            oVar.f277602l = str3;
            oVar.f277593c = ((x2) yz3.j.c(x2.class)).L();
            ((com.tencent.mm.plugin.appbrand.service.d1) yz3.j.c(com.tencent.mm.plugin.appbrand.service.d1.class)).r80(context, oVar);
        }
    }

    public final void uO0(Context context, Intent intent, long j15, String str, w53 w532, Integer num) {
        byte[] bArr;
        m.g(context, "context");
        m.g(str, "nonceId");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent = new Intent();
            }
            mP0(context, intent);
            intent.putExtra("key_feed_id", j15);
            intent.putExtra("key_nonce_id", str);
            Intent intent2 = null;
            if (w532 != null) {
                bArr = w532.toByteArray();
            } else {
                bArr = null;
            }
            intent.putExtra("key_local_media", bArr);
            if (!(context instanceof Activity)) {
                intent2 = intent;
            }
            if (intent2 != null) {
                intent2.addFlags(268435456);
            }
            intent.setClass(context, FinderMemberQAVideoUI.class);
            if (num != null) {
                Activity activity = (Activity) context;
                int intValue = num.intValue();
                k30.a aVar = new k30.a();
                ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
                aVar.c(Integer.valueOf(intValue));
                aVar.c(intent);
                j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberQAVideoUI", "(Landroid/content/Context;Landroid/content/Intent;JLjava/lang/String;Lcom/tencent/mm/protocal/protobuf/LocalFinderContent;Ljava/lang/Integer;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
                return;
            }
            k30.a aVar2 = new k30.a();
            aVar2.c(intent);
            j30.a.d(context, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberQAVideoUI", "(Landroid/content/Context;Landroid/content/Intent;JLjava/lang/String;Lcom/tencent/mm/protocal/protobuf/LocalFinderContent;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar2.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberQAVideoUI", "(Landroid/content/Context;Landroid/content/Intent;JLjava/lang/String;Lcom/tencent/mm/protocal/protobuf/LocalFinderContent;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    @Override // ek0.v2
    public void uo0(Context context, long j15, JSONObject jSONObject) {
        m.g(context, "context");
        m.g(jSONObject, "necessaryParams");
        ym1.e0.f346876a.z(context, j15, jSONObject, 0);
    }

    public final void vO0(Context context, Intent intent, String str, String str2, int i15, int i16, String str3, Integer num, Integer num2, Integer num3) {
        Intent intent2;
        Intent intent3;
        m.g(context, "context");
        m.g(str, "authorFinderUsername");
        m.g(str2, "finderMemberTicket");
        if (!oP0(context, intent)) {
            if (intent == null) {
                intent2 = new Intent();
            } else {
                intent2 = intent;
            }
            mP0(context, intent2);
            intent2.putExtra("key_author_finder_name", str);
            intent2.putExtra("key_finder_member_ticket", str2);
            intent2.putExtra("key_finder_member_visitor_status", i15);
            intent2.putExtra("key_finder_member_feed_type", i16);
            intent2.putExtra("key_member_title", str3);
            intent2.putExtra("key_member_price", num);
            intent2.putExtra("key_member_subscribe_price", num2);
            intent2.putExtra("key_remain_feed_count", num3);
            if (!(context instanceof Activity)) {
                intent3 = intent2;
            } else {
                intent3 = null;
            }
            if (intent3 != null) {
                intent3.addFlags(268435456);
            }
            intent2.setClass(context, FinderMemberTimelineUI.class);
            k30.a aVar = new k30.a();
            aVar.c(intent2);
            j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
            context.startActivity((Intent) aVar.a(0));
            j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMemberTimelineUI", "(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;IILjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        }
    }

    @Override // ek0.v2
    public void vx(Activity activity, Intent intent, int i15, boolean z15) {
        m.g(activity, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.putExtra("KEY_IS_FROM_SETTING", z15);
        c42.b bVar = c42.b.f46868a;
        intent.setClass(activity, (Class) ((n) c42.b.f46884q).getValue());
        k30.a aVar = new k30.a();
        ThreadLocal<k30.a> threadLocal = k30.c.f244265a;
        aVar.c(Integer.valueOf(i15));
        aVar.c(intent);
        j30.a.j(activity, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveVisitorRoleUI", "(Landroid/app/Activity;Landroid/content/Intent;IZ)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V");
        activity.overridePendingTransition(R.anim.f357363e0, R.anim.f357210p);
    }

    @Override // ek0.v2
    public void vz(AppCompatActivity appCompatActivity, FinderItem finderItem, Bundle bundle, int i15, l<? super List<String>, b0> lVar) {
        m.g(appCompatActivity, "context");
        m.g(finderItem, "feedObject");
        b3.f118772a.t(appCompatActivity, finderItem, bundle, i15, lVar);
    }

    public final void wO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        intent.setClass(context, FinderSettingMsgUI.class);
        r32.b.a(context, intent);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMessageSettingUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMessageSettingUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void wS(Context context, String str, String str2, String str3, long j15, long j16) {
        String str4;
        String str5;
        m.g(context, "context");
        Intent intent = new Intent();
        boolean z15 = context instanceof Activity;
        intent.addFlags(268435456);
        String str6 = "";
        if (str == null) {
            str4 = str6;
        } else {
            str4 = str;
        }
        intent.putExtra("key_anchor_finder_username", str4);
        if (str2 == null) {
            str5 = str6;
        } else {
            str5 = str2;
        }
        intent.putExtra("key_anchor_finder_nickname", str5);
        if (str3 != null) {
            str6 = str3;
        }
        intent.putExtra("key_anchor_finder_avatar", str6);
        intent.putExtra("key_anchor_finder_object_id", j15);
        intent.putExtra("key_anchor_finder_live_id", j16);
        ((zr.n) yz3.j.c(zr.n.class)).zH0(j16);
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.f46887t).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveInvitedUI", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderLiveInvitedUI", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void xO0(Context context, Intent intent) {
        m.g(context, "context");
        a42.a aVar = a42.a.f1076a;
        Activity activity = null;
        if (aVar.b("search") != 0) {
            i14.j.y(context, aVar.c("search"), "", context.getString(R.string.l_e), null);
            return;
        }
        ww2.d.INSTANCE.idkeyStat(1265, 0, 1, false);
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderMixSearchUI.class);
        k30.a aVar2 = new k30.a();
        aVar2.c(intent);
        j30.a.d(context, aVar2.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMixSearchUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar2.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMixSearchUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        if (context instanceof Activity) {
            activity = (Activity) context;
        }
        if (activity != null) {
            activity.overridePendingTransition(0, 0);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:44:0x00f4  */
    /* JADX WARNING: Removed duplicated region for block: B:47:0x0100  */
    @Override // ek0.v2
    public void xv0(Intent intent, Context context, long j15, long j16, String str, String str2, String str3, String str4, int i15, String str5, String str6, String str7, Integer num, int i16, byte[] bArr, FinderObject finderObject, boolean z15, String str8, long j17) {
        String str9;
        String str10;
        String str11;
        String str12;
        d1 d1Var;
        k53 k532;
        LinkedList<j53> linkedList;
        m.g(context, "context");
        m.g(str, "anchorUserName");
        m.g(str2, "nonceId");
        m.g(str3, "desc");
        m.g(str4, "contextId");
        LiveConfig.b bVar = new LiveConfig.b();
        q qVar = q.f119237a;
        bVar.f75965a = 1;
        bVar.f75967c = j16;
        bVar.f75980p = str2;
        bVar.f75973i = str7;
        bVar.f75974j = num != null ? num.intValue() : 1;
        bVar.f75975k = j15;
        bVar.f75970f = str;
        bVar.f75976l = str3;
        bVar.f75986v = str5;
        bVar.f75987w = str6;
        if (intent == null || (str9 = intent.getStringExtra("key_enter_live_export_id")) == null) {
            str9 = "";
        }
        bVar.f75989y = str9;
        bVar.B = bArr;
        bVar.f75977m = intent != null ? intent.getIntExtra("key_enter_live_param_bind_type", 0) : 0;
        if (intent == null || (str10 = intent.getStringExtra("key_enter_live_param_by_biz_username")) == null) {
            str10 = "";
        }
        bVar.f75978n = str10;
        if (intent == null || (str11 = intent.getStringExtra("key_enter_live_param_by_biz_nickname")) == null) {
            str11 = "";
        }
        bVar.f75979o = str11;
        if (intent == null || (str12 = intent.getStringExtra("key_enter_live_cover_url")) == null) {
            str12 = "";
        }
        bVar.f75969e = str12;
        bVar.C = intent != null ? intent.getIntExtra("KEY_ENTER_LIVE_PARAM_VR_LIVE_TYPE", 0) : 0;
        a51 a512 = new a51();
        byte[] byteArrayExtra = intent != null ? intent.getByteArrayExtra("KEY_ENTER_LIVE_PARAM_LIVE_EVENT_INFO") : null;
        if (byteArrayExtra != null) {
            try {
                a512.parseFrom(byteArrayExtra);
            } catch (Exception e15) {
                Log.printDebugStack("safeParser", "", e15);
            }
            qVar.a(bVar, "enterFinderLiveVisitorUI", a512);
            LiveConfig a15 = bVar.a();
            d1Var = new d1();
            d1Var.f14462l.add(a15);
            d1Var.f14465o = i15;
            d1Var.f14461k = i16;
            d1Var.f14468r = finderObject;
            d1Var.c(intent);
            d1Var.b(intent);
            d1Var.a(intent, j16);
            if (d1Var.A == null) {
                d1Var.A = new k53();
            }
            k532 = d1Var.A;
            if (k532 != null) {
                k532.f26971v = str8;
            }
            if (!(k532 == null || (linkedList = k532.A) == null)) {
                j53 j532 = new j53();
                j532.f25717d = "UserClick";
                j532.f25718e = j17;
                linkedList.add(j532);
            }
            v2.a.d(this, context, d1Var, str4, null, intent, z15, 8, null);
        }
        a512 = null;
        qVar.a(bVar, "enterFinderLiveVisitorUI", a512);
        LiveConfig a152 = bVar.a();
        d1Var = new d1();
        d1Var.f14462l.add(a152);
        d1Var.f14465o = i15;
        d1Var.f14461k = i16;
        d1Var.f14468r = finderObject;
        d1Var.c(intent);
        d1Var.b(intent);
        d1Var.a(intent, j16);
        if (d1Var.A == null) {
        }
        k532 = d1Var.A;
        if (k532 != null) {
        }
        j53 j5322 = new j53();
        j5322.f25717d = "UserClick";
        j5322.f25718e = j17;
        linkedList.add(j5322);
        v2.a.d(this, context, d1Var, str4, null, intent, z15, 8, null);
    }

    @Override // ek0.v2
    public void y4(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        Log.i("Finder.ActivityRouter", "enterFinderGameLiveAuthUI");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        c42.b bVar = c42.b.f46868a;
        intent.setClass(context, (Class) ((n) c42.b.E).getValue());
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLiveAuthUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderGameLiveAuthUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    @Override // ek0.v2
    public void yH0(Context context, String str, int i15, Intent intent, Integer num) {
        int i16;
        m.g(context, "context");
        m.g(str, "username");
        Log.i("Finder.ActivityRouter", "[startChattingUI] username=" + str + " scene=" + i15);
        dj1.b bVar = dj1.b.f200487e;
        int i17 = bVar.O5().f39654h;
        f5 f5Var = (f5) yz3.j.c(f5.class);
        h4.f119006a.getClass();
        int i18 = bVar.O5().f39654h;
        int i19 = 2;
        if (i18 != 1) {
            if (i18 == 2) {
                i19 = 3;
            } else if (i18 == 3) {
                i19 = 1;
            }
        }
        if (num != null) {
            i16 = num.intValue();
        } else {
            i16 = 0;
        }
        f5Var.xt(context, i19, str, i17, i16, new e(str, context, intent, i15));
    }

    public final void yO0(Context context, Intent intent) {
        Intent intent2;
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        if (!(context instanceof Activity)) {
            intent2 = intent;
        } else {
            intent2 = null;
        }
        if (intent2 != null) {
            intent2.addFlags(268435456);
        }
        r32.b.a(context, intent);
        intent.setClass(context, FinderMsgFeedDetailUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMsgFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMsgFeedDetailUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }

    public final void zO0(Context context, Intent intent) {
        m.g(context, "context");
        if (intent == null) {
            intent = new Intent();
        }
        intent.setClass(context, FinderMultiTaskRouterUI.class);
        k30.a aVar = new k30.a();
        aVar.c(intent);
        j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMultiTaskRouterUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
        context.startActivity((Intent) aVar.a(0));
        j30.a.e(context, "com/tencent/mm/plugin/finder/utils/ActivityRouter", "enterFinderMultiTaskRouterUI", "(Landroid/content/Context;Landroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V");
    }
}