package com.tencent.mm.plugin.webview.modeltools;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.vt;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.r;
import com.tencent.mm.model.u;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.sns.b.i;
import com.tencent.mm.pointers.PString;
import com.tencent.mm.sdk.b.c;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.ytcommon.BuildConfig;
import java.net.URLEncoder;
import java.util.ArrayList;

class g$2 extends c<vt> {
    final /* synthetic */ g upm;

    g$2(g gVar) {
        this.upm = gVar;
        AppMethodBeat.i(6961);
        this.xxI = vt.class.getName().hashCode();
        AppMethodBeat.o(6961);
    }

    private static boolean a(vt vtVar) {
        AppMethodBeat.i(6962);
        if (vtVar instanceof vt) {
            String str;
            String Yz = r.Yz();
            ArrayList arrayList = new ArrayList();
            arrayList.add(vtVar.cSG.cSH);
            arrayList.add(vtVar.cSG.cSI);
            arrayList.add(vtVar.cSG.cSJ);
            arrayList.add(vtVar.cSG.cSK);
            arrayList.add(vtVar.cSG.url);
            arrayList.add(vtVar.cSG.cSL);
            arrayList.add(vtVar.cSG.cSM);
            arrayList.add(vtVar.cSG.cSN);
            arrayList.add(vtVar.cSG.cSO);
            arrayList.add(vtVar.cSG.cSP);
            arrayList.add(Yz);
            arrayList.add(vtVar.cSG.cSQ);
            arrayList.add(vtVar.cSG.cSR);
            PString pString = new PString();
            String a = ((i) g.K(i.class)).a(vtVar.cSG.cSS, pString);
            arrayList.add(a);
            arrayList.add(BuildConfig.FLAVOR);
            arrayList.add(BuildConfig.FLAVOR);
            arrayList.add(BuildConfig.FLAVOR);
            int ad = u.ad(vtVar.cSG.cSJ, vtVar.cSG.cSK);
            int ad2 = u.ad(Yz, vtVar.cSG.cSM);
            arrayList.add(String.valueOf(ad));
            arrayList.add(String.valueOf(ad2));
            Object obj = vtVar.cSG.cST;
            try {
                obj = URLEncoder.encode(obj, "UTF-8");
            } catch (Exception e) {
                ab.printErrStackTrace("MicroMsg.SubCoreTools", e, BuildConfig.FLAVOR, new Object[0]);
            }
            arrayList.add(obj);
            arrayList.add(pString.value);
            String str2 = "MicroMsg.SubCoreTools";
            String str3 = "report(11954) : prePublishId : %s, curPublishId : %s, preUsername : %s, preChatName : %s, url : %s, preMsgIndex : %s, curChatName : %s, curChatTitle : %s, curChatMemberCount : %s, sendAppMsgScene : %s, curUserName : %s, getA8KeyScene : %s, referUrl : %s. : statExtStr:%s(%s), preChatType:%d, curChatType:%d, webViewTitle:%s, sourceAppId:%s";
            Object[] objArr = new Object[19];
            objArr[0] = vtVar.cSG.cSH;
            objArr[1] = vtVar.cSG.cSI;
            objArr[2] = vtVar.cSG.cSJ;
            objArr[3] = vtVar.cSG.cSK;
            if (vtVar.cSG.url == null) {
                str = vtVar.cSG.url;
            } else {
                str = vtVar.cSG.url.replace(",", "!");
            }
            objArr[4] = str;
            objArr[5] = Integer.valueOf(vtVar.cSG.cSL);
            objArr[6] = vtVar.cSG.cSM;
            objArr[7] = vtVar.cSG.cSN;
            objArr[8] = Integer.valueOf(vtVar.cSG.cSO);
            objArr[9] = Integer.valueOf(vtVar.cSG.cSP);
            objArr[10] = Yz;
            objArr[11] = Integer.valueOf(vtVar.cSG.cSQ);
            if (vtVar.cSG.cSR == null) {
                str = vtVar.cSG.cSR;
            } else {
                str = vtVar.cSG.cSR.replace(",", "!");
            }
            objArr[12] = str;
            objArr[13] = vtVar.cSG.cSS;
            objArr[14] = a;
            objArr[15] = Integer.valueOf(ad);
            objArr[16] = Integer.valueOf(ad2);
            objArr[17] = vtVar.cSG.cST;
            objArr[18] = pString.value;
            ab.d(str2, str3, objArr);
            if (vtVar.cSG.cSU != 2) {
                h hVar = h.pYm;
                h.g(11954, arrayList);
            }
            AppMethodBeat.o(6962);
            return true;
        }
        AppMethodBeat.o(6962);
        return false;
    }
}
