package com.ss.android.ugc.aweme.bullet;

import X.7za;
import X.C0620KAx;
import X.C0665KCq;
import X.C0722KEv;
import X.C3739LWw;
import X.C3740LWx;
import X.C4672Lnj;
import X.CwZ;
import X.Cwu;
import X.HyY;
import X.HyZ;
import X.Jcl;
import X.K65;
import X.K75;
import X.KT7;
import X.M12;
import X.Spj;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.bullet.api.IBulletHostProxy;
import com.ss.android.ugc.aweme.bullet.bridge.ad.AdThirdTrackMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.DownloadAppClickMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.FeedLearnMoreButtonClick;
import com.ss.android.ugc.aweme.bullet.bridge.ad.LoadGeckoResourcesMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.LocalPhoneNoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.MessageTipMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.OpenAdUrlMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.OpenRechargePanel;
import com.ss.android.ugc.aweme.bullet.bridge.ad.SendAdLogMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.StartFeedButtonAnimationMethod;
import com.ss.android.ugc.aweme.bullet.bridge.ad.VideoFollowButtonClick;
import com.ss.android.ugc.aweme.bullet.bridge.ad.VideoFollowStatus;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.AdInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.AsyncGoodsEditInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.FetchFeedsAwemeDataMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.OpenECommerceLegalModalMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.OpenGoodDetailMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.PayMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.TaoCommandMethod;
import com.ss.android.ugc.aweme.bullet.bridge.commerce.WXMiniPayMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.AppInstalledMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.BdturingMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.BindPhoneMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.BroadcastMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.CloseCurrentPanelMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.CopyContentMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.FetchMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.FileSelectionMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.GalleryPreviewMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.GetAbTestMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.GetNativeItemMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.GetSettingsMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.GetThemeMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.IBEDidFinishInteractionMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.IBEGetViewSizeMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.IBEPreRenderReadyMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.InitPIPOSdkMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.IsAppInstalledMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.LaunchChatMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.LoginMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.LoginWithPlatform;
import com.ss.android.ugc.aweme.bullet.bridge.common.LogoutMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.MiniAppPreloadMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.NoticePermissionMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.OpenAdPanelPageMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.OpenCalendarMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.OpenPhoneAreaMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.OpenScanMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.ReloadMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.RequestMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.SetNativeItemMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.SetScrollTopMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.ShareOpenPlatformMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.ShowDmtToastMethod;
import com.ss.android.ugc.aweme.bullet.bridge.common.UploadFileMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.AppInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.BulletGetAppInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.BulletUserInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.CloseMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.ComponentDidMountMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.DarkModeMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.EditPageMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.GetAppInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.GetContainerIdMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.LoadFeedsFlowMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.LoadFeedsMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.MonitorLogMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenAwemeDetailMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenBrowserMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenFeedsFlowMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenHalfDialogMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenLongVideoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenSchemaMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.OpenShortVideoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.ReportCustomEventMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.RoutePopMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.RoutePushMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.SendLogMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.SendLogV3Method;
import com.ss.android.ugc.aweme.bullet.bridge.framework.SetStatusBarMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.ShowToastMethod;
import com.ss.android.ugc.aweme.bullet.bridge.framework.UserInfoMethod;
import com.ss.android.ugc.aweme.bullet.bridge.main.CardRelayoutMethod;
import com.ss.android.ugc.aweme.commercialize.e_commerce.service.ShoppingAdsServiceImpl;
import com.ss.android.ugc.aweme.compliance.api.a;
import com.ss.android.ugc.aweme.component.music.MusicService;
import com.ss.android.ugc.aweme.ecommerce.ECommerceService;
import com.ss.android.ugc.aweme.influencer.ECommerceLiveBridgeMethodServiceImpl;
import com.ss.android.ugc.aweme.share.ShareH5Service;
import com.ss.android.ugc.aweme.tcm.impl.anchor.GetContainerDataMethod;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlin.h.b.n;
import org.json.JSONObject;

public final class BulletHostProxy implements IBulletHostProxy {
    static {
        Covode.recordClassIndex(54873);
    }

    public final HashMap<Class<?>, HashMap<String, Class<?>>> LIZIZ() {
        HashMap<Class<?>, HashMap<String, Class<?>>> hashMap = new HashMap<>();
        Class<C0620KAx> cls = C0620KAx.class;
        HashMap hashMap2 = new HashMap();
        K75.LIZ.LIZ();
        K65.LIZ();
        HashMap hashMap3 = new HashMap();
        Map LIZ = HyY.LIZ.LIZ(HyZ.ALL, "DEFAULT");
        if (LIZ != null) {
            hashMap3.putAll(LIZ);
        }
        Map LIZ2 = HyY.LIZ.LIZ(HyZ.ALL, "Spark");
        if (LIZ2 != null) {
            hashMap3.putAll(LIZ2);
        }
        hashMap2.putAll(hashMap3);
        hashMap.put(cls, hashMap2);
        return hashMap;
    }

    public static IBulletHostProxy LIZJ() {
        MethodCollector.i(18);
        IBulletHostProxy iBulletHostProxy = (IBulletHostProxy) C4672Lnj.LIZ(IBulletHostProxy.class, false);
        if (iBulletHostProxy != null) {
            MethodCollector.o(18);
            return iBulletHostProxy;
        }
        Object LIZIZ = C4672Lnj.LIZIZ(IBulletHostProxy.class, false);
        if (LIZIZ != null) {
            IBulletHostProxy iBulletHostProxy2 = (IBulletHostProxy) LIZIZ;
            MethodCollector.o(18);
            return iBulletHostProxy2;
        }
        if (C4672Lnj.LJJLIIIIJ == null) {
            synchronized (IBulletHostProxy.class) {
                try {
                    if (C4672Lnj.LJJLIIIIJ == null) {
                        C4672Lnj.LJJLIIIIJ = new BulletHostProxy();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(18);
                    throw th;
                }
            }
        }
        BulletHostProxy bulletHostProxy = (BulletHostProxy) C4672Lnj.LJJLIIIIJ;
        MethodCollector.o(18);
        return bulletHostProxy;
    }

    public final HashMap<Class<?>, HashMap<String, Class<?>>> LIZ() {
        HashMap<Class<?>, HashMap<String, Class<?>>> hashMap = new HashMap<>();
        HashMap hashMap2 = new HashMap();
        hashMap2.putAll(C3739LWw.LIZ((Cwu<? extends K, ? extends V>[]) new Cwu[]{CwZ.LIZ("fetch", FetchMethod.class), CwZ.LIZ("request", RequestMethod.class), CwZ.LIZ("getNativeItem", GetNativeItemMethod.class), CwZ.LIZ("setNativeItem", SetNativeItemMethod.class), CwZ.LIZ("getSettings", GetSettingsMethod.class), CwZ.LIZ("broadcast", BroadcastMethod.class), CwZ.LIZ("IBEPreRenderReady", IBEPreRenderReadyMethod.class), CwZ.LIZ("IBEGetViewSize", IBEGetViewSizeMethod.class), CwZ.LIZ("IBEDidFinishInteraction", IBEDidFinishInteractionMethod.class), CwZ.LIZ("initPipo", InitPIPOSdkMethod.class), CwZ.LIZ("setScrollTop", SetScrollTopMethod.class), CwZ.LIZ("showDmtToast", ShowDmtToastMethod.class), CwZ.LIZ("openBrowser", OpenBrowserMethod.class), CwZ.LIZ("uploadFile", UploadFileMethod.class), CwZ.LIZ("gallery", GalleryPreviewMethod.class), CwZ.LIZ("scan", OpenScanMethod.class), CwZ.LIZ("fileSelection", FileSelectionMethod.class), CwZ.LIZ("bindPhone", BindPhoneMethod.class), CwZ.LIZ("isAppInstall", IsAppInstalledMethod.class), CwZ.LIZ("noticePermission", NoticePermissionMethod.class), CwZ.LIZ("login", LoginMethod.class), CwZ.LIZ("loginWithPlatform", LoginWithPlatform.class), CwZ.LIZ("accountLogout", LogoutMethod.class), CwZ.LIZ("preloadMiniApp", MiniAppPreloadMethod.class), CwZ.LIZ("choosePhoneArea", OpenPhoneAreaMethod.class), CwZ.LIZ("openRechargePanel", OpenRechargePanel.class), CwZ.LIZ("getABTestParams", GetAbTestMethod.class), CwZ.LIZ("reload", ReloadMethod.class), CwZ.LIZ("copyContent", CopyContentMethod.class), CwZ.LIZ("getTheme", GetThemeMethod.class), CwZ.LIZ("openAdPanelPage", OpenAdPanelPageMethod.class), CwZ.LIZ("calendarOperation", OpenCalendarMethod.class), CwZ.LIZ("popTuringVerifyView", BdturingMethod.class), CwZ.LIZ("launchChat", LaunchChatMethod.class), CwZ.LIZ("isAppInstalled", AppInstalledMethod.class)}));
        Map LIZIZ = C3739LWw.LIZIZ(CwZ.LIZ("close", CloseMethod.class), CwZ.LIZ("userInfo", UserInfoMethod.class), CwZ.LIZ("sendLog", SendLogMethod.class), CwZ.LIZ("sendLogV3", SendLogV3Method.class), CwZ.LIZ("monitorLog", MonitorLogMethod.class), CwZ.LIZ("openSchema", OpenSchemaMethod.class), CwZ.LIZ("showToast", ShowToastMethod.class), CwZ.LIZ("openBrowser", OpenBrowserMethod.class), CwZ.LIZ("appInfo", AppInfoMethod.class), CwZ.LIZ("getAppInfo", GetAppInfoMethod.class), CwZ.LIZ("componentDidMount", ComponentDidMountMethod.class), CwZ.LIZ("loadFeedsFlow", LoadFeedsFlowMethod.class), CwZ.LIZ("openFeedsFlow", OpenFeedsFlowMethod.class), CwZ.LIZ("openAwemeDetail", OpenAwemeDetailMethod.class), CwZ.LIZ("loadFeeds", LoadFeedsMethod.class), CwZ.LIZ("darkMode", DarkModeMethod.class), CwZ.LIZ("routePop", RoutePopMethod.class), CwZ.LIZ("routePush", RoutePushMethod.class), CwZ.LIZ("open_short_video", OpenShortVideoMethod.class), CwZ.LIZ("open_long_video", OpenLongVideoMethod.class), CwZ.LIZ("openHalfDialog", OpenHalfDialogMethod.class), CwZ.LIZ("uniUserInfo", BulletUserInfoMethod.class), CwZ.LIZ("uniAppInfo", BulletGetAppInfoMethod.class), CwZ.LIZ("openRecord", Jcl.class), CwZ.LIZ("reportCustomEvent", ReportCustomEventMethod.class), CwZ.LIZ("getContainerId", GetContainerIdMethod.class), CwZ.LIZ("loadGeckoResources", LoadGeckoResourcesMethod.class), CwZ.LIZ("shareOpenPlatform", ShareOpenPlatformMethod.class), CwZ.LIZ("openVideoEdit", EditPageMethod.class), CwZ.LIZ("setStatusBar", SetStatusBarMethod.class));
        LIZIZ.putAll(ShareH5Service.LIZ.LIZ().LIZLLL());
        hashMap2.putAll(LIZIZ);
        hashMap2.putAll(C3740LWx.LIZ(CwZ.LIZ("cardRelayout", CardRelayoutMethod.class)));
        hashMap2.putAll(MusicService.LJIJ().LJIIJ());
        hashMap2.putAll(Spj.LIZ.LIZIZ());
        hashMap2.putAll(C3739LWw.LIZ((Cwu<? extends K, ? extends V>[]) new Cwu[]{CwZ.LIZ("asyncGoodsEditInfo", AsyncGoodsEditInfoMethod.class), CwZ.LIZ("purchasePlatformGoods", OpenGoodDetailMethod.class), CwZ.LIZ("fetchFeedsAwemeData", FetchFeedsAwemeDataMethod.class), CwZ.LIZ("pay", PayMethod.class), CwZ.LIZ("launchWXMiniPro", WXMiniPayMethod.class), CwZ.LIZ("openECommerceLegalModal", OpenECommerceLegalModalMethod.class), CwZ.LIZ("fetchTaoCommand", TaoCommandMethod.class), CwZ.LIZ("adInfo", AdInfoMethod.class), CwZ.LIZ("closeCurrentPanel", CloseCurrentPanelMethod.class)}));
        hashMap2.putAll(C3739LWw.LIZ((Cwu<? extends K, ? extends V>[]) new Cwu[]{CwZ.LIZ("download_app_click", DownloadAppClickMethod.class), CwZ.LIZ("getContainerData", GetContainerDataMethod.class)}));
        hashMap2.putAll(ECommerceLiveBridgeMethodServiceImpl.LIZIZ().LIZ());
        hashMap2.put("localPhoneNo", LocalPhoneNoMethod.class);
        hashMap2.putAll(C3739LWw.LIZ((Cwu<? extends K, ? extends V>[]) new Cwu[]{CwZ.LIZ("sendAdLog", SendAdLogMethod.class), CwZ.LIZ("messageTip", MessageTipMethod.class), CwZ.LIZ("openAdUrl", OpenAdUrlMethod.class), CwZ.LIZ("sendThirdTrack", AdThirdTrackMethod.class), CwZ.LIZ("startFeedButtonAnimation", StartFeedButtonAnimationMethod.class), CwZ.LIZ("feedLearnMoreButtonClick", FeedLearnMoreButtonClick.class), CwZ.LIZ("videoFollowButtonClick", VideoFollowButtonClick.class), CwZ.LIZ("videoFollowStatus", VideoFollowStatus.class)}));
        hashMap2.putAll(C3739LWw.LIZ());
        hashMap2.putAll(ECommerceService.createIECommerceServicebyMonsterPlugin(false).getJSMethodClass());
        hashMap2.putAll(ShoppingAdsServiceImpl.LIZLLL().LIZJ());
        hashMap.put(C0665KCq.class, hashMap2);
        return hashMap;
    }

    public final List<C0665KCq> LIZ(KT7 kt7) {
        M12.LIZ((Object) kt7);
        return C0722KEv.LIZ.LIZ(kt7);
    }

    public final JSONObject LIZ(String str) {
        M12.LIZ((Object) str);
        return 7za.LIZ.LIZ(str);
    }

    public final List<C0665KCq> LIZIZ(KT7 kt7) {
        M12.LIZ((Object) kt7);
        M12.LIZ((Object) kt7);
        ArrayList arrayList = new ArrayList();
        arrayList.addAll(C0722KEv.LIZ.LIZIZ(kt7));
        arrayList.addAll(C0722KEv.LIZ.LIZJ(kt7));
        arrayList.addAll(C0722KEv.LIZ.LIZLLL(kt7));
        List LIZ = a.LJIILJJIL().LIZ(kt7);
        if (LIZ == null) {
            n.LIZIZ();
        }
        arrayList.addAll(LIZ);
        return arrayList;
    }
}
