@acedatacloud/nexior 3.126.0 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Auth-CK0eyCoK.js → Auth-BMzo33RR.js} +1 -1
- package/dist/assets/{BotPlaceholder-DlfRUv0O.js → BotPlaceholder-5oNK0Ith.js} +1 -1
- package/dist/assets/{Callback-DbK3hlLF.js → Callback-BC3tTOVf.js} +1 -1
- package/dist/assets/{Console-Cbk23aF4.js → Console-BNMxI5up.js} +1 -1
- package/dist/assets/{Consumption-2SCer7if.js → Consumption-DEJXi9Yk.js} +1 -1
- package/dist/assets/{Conversation-DNdu6hJN.js → Conversation-DNsT5Ae7.js} +1 -1
- package/dist/assets/{CopyToClipboard-B7-KeYEa.js → CopyToClipboard-DB2Z-HRU.js} +1 -1
- package/dist/assets/Detail-BmO6q1-G.js +2 -0
- package/dist/assets/{Detail-CtZKrEZO.css → Detail-C5qcvWJz.css} +1 -1
- package/dist/assets/EditArray-B3wGTZaR.js +1 -0
- package/dist/assets/{Extra-C7QpOEzU.css → Extra-B5TAfeSk.css} +1 -1
- package/dist/assets/Extra-D_AhvmOn.js +1 -0
- package/dist/assets/{FilePreview-DDHy9nvq.js → FilePreview-BJg4x3AQ.js} +1 -1
- package/dist/assets/{History-Bra_7NSr.js → History-BYiQh6_S.js} +1 -1
- package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-BKzK9ROo.js → IconPark.vue_vue_type_script_setup_true_lang-EQKHPSAQ.js} +1 -1
- package/dist/assets/{ImagePreview-BqOZVFOc.js → ImagePreview-BuuE19Gy.js} +1 -1
- package/dist/assets/{ImageWrapper-CS6AkrVd.js → ImageWrapper-B87viqTL.js} +1 -1
- package/dist/assets/Index-B5_jv8pV.js +1 -0
- package/dist/assets/{Index-DTifUo2F.css → Index-BF4na9P8.css} +1 -1
- package/dist/assets/Index-BZ-U_CDb.js +1 -0
- package/dist/assets/{Index-C3kx_wD6.js → Index-BZ4CRgdi.js} +1 -1
- package/dist/assets/{Index-BWrcp9HB.js → Index-BilmOncm.js} +1 -1
- package/dist/assets/Index-ByQZPDSs.js +1 -0
- package/dist/assets/Index-C4CWnW3t.js +1 -0
- package/dist/assets/{Index-DVOpCcPt.js → Index-C8Nu7xsC.js} +1 -1
- package/dist/assets/Index-C8aZkwob.js +1 -0
- package/dist/assets/Index-C9baZsOc.js +1 -0
- package/dist/assets/Index-CEm5mQt9.js +1 -0
- package/dist/assets/Index-CRbqucZB.js +1 -0
- package/dist/assets/Index-CZ2Mk99K.js +1 -0
- package/dist/assets/Index-CaqP8Yuf.js +1 -0
- package/dist/assets/Index-Cb97gM-B.js +1 -0
- package/dist/assets/Index-CuuMu3n2.js +1 -0
- package/dist/assets/{Index-x-4srtZb.css → Index-Cvf0GCDC.css} +1 -1
- package/dist/assets/{Index-nJ3LnWFn.js → Index-CvxcxmnK.js} +1 -1
- package/dist/assets/{Index-ynjJ8df2.js → Index-Czx0T0dE.js} +1 -1
- package/dist/assets/{Index-BDeBsVfV.css → Index-D-_j9hVy.css} +1 -1
- package/dist/assets/{Index-3tL_3lJG.css → Index-D4QL_nhG.css} +1 -1
- package/dist/assets/{Index-Bo0GNmu7.js → Index-DLbbmdH5.js} +1 -1
- package/dist/assets/Index-DOBsNAIR.js +1 -0
- package/dist/assets/{Index-D5180EIw.js → Index-DU9__5sQ.js} +2 -2
- package/dist/assets/Index-O0C6DD-b.js +1 -0
- package/dist/assets/Index-iohZz7y_.js +1 -0
- package/dist/assets/Index-kbM7rrvI.js +1 -0
- package/dist/assets/Index-sD4xC_4s.js +1 -0
- package/dist/assets/{Index-jKhtDc4E.css → Index-waLozOi7.css} +1 -1
- package/dist/assets/{Invitees-dmJOKcCW.js → Invitees-CpwkMcrL.js} +1 -1
- package/dist/assets/{List-D51hfSlR.js → List-B3kyG9X_.js} +1 -1
- package/dist/assets/{List-B5hG-AUR.js → List-DUd5spYA.js} +1 -1
- package/dist/assets/{List-DyWyu672.js → List-qZl2FZ2J.js} +1 -1
- package/dist/assets/{Main-Cx2N2VYD.js → Main-DRzryMUS.js} +1 -1
- package/dist/assets/Navigator-BAOLBJR9.css +1 -0
- package/dist/assets/{Navigator-C5YNuPf9.js → Navigator-DH2CsZgN.js} +1 -1
- package/dist/assets/{NoTasks-DAQdgPfw.js → NoTasks-ZpQi0TyE.js} +1 -1
- package/dist/assets/{NotFound-GVvpjNER.js → NotFound-Bmg82IiX.js} +1 -1
- package/dist/assets/{OAuthCallback-DAuFhLs3.js → OAuthCallback-CKC04WA3.js} +1 -1
- package/dist/assets/{Pagination-DCdP9i09.js → Pagination-BGlPlWIy.js} +1 -1
- package/dist/assets/{ScrollList-CHnK-_Zf.js → ScrollList-DKlPMNZT.js} +1 -1
- package/dist/assets/{Status-LLI0jFxs.js → Status-Cs6beKU6.js} +1 -1
- package/dist/assets/Subscribe-C2DAW_Fj.css +1 -0
- package/dist/assets/Subscribe-FR1fBm-n.js +1 -0
- package/dist/assets/{TransportWebHID-B-flqsNo.js → TransportWebHID-CGHLGUa4.js} +1 -1
- package/dist/assets/{VideoPlayer-B9VegMOO.js → VideoPlayer-Dd86J0Gg.js} +1 -1
- package/dist/assets/{_Uint8Array-DRvMUjgu.js → _Uint8Array-ByIiAerw.js} +1 -1
- package/dist/assets/{_baseClone-DHvm9rFa.js → _baseClone-DZS2KndZ.js} +1 -1
- package/dist/assets/{_baseIteratee-BnAvS_YM.js → _baseIteratee-DWXq1g8X.js} +1 -1
- package/dist/assets/{_initCloneObject-Bu_Ps2rC.js → _initCloneObject-CuynXAWC.js} +1 -1
- package/dist/assets/{add-BsQnbDFT.js → add-Dlnk29GG.js} +1 -1
- package/dist/assets/aegis.min-CyBmduI0.js +67 -0
- package/dist/assets/{all-wallets-C9hhfuR6.js → all-wallets-CQElnySF.js} +1 -1
- package/dist/assets/{app-store-C92v9rD2.js → app-store-PdJQ-IN4.js} +1 -1
- package/dist/assets/{apple-BhIWxugh.js → apple-DYTTljit.js} +1 -1
- package/dist/assets/{arrow-bottom-BE8wL_fb.js → arrow-bottom-B4iC7k_x.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-BJRDumtA.js → arrow-bottom-circle-DHAoj62t.js} +1 -1
- package/dist/assets/{arrow-left-DiOawSIk.js → arrow-left-BJIElBiB.js} +1 -1
- package/dist/assets/{arrow-right-D46n-PmF.js → arrow-right-oTeCiqXH.js} +1 -1
- package/dist/assets/{arrow-top-D9SYpQSE.js → arrow-top-h7HEs_ua.js} +1 -1
- package/dist/assets/{avatar-CrIr_c_x.js → avatar-CcNXPTqK.js} +1 -1
- package/dist/assets/{bank-CO3PdTeh.js → bank-CFwg2DY1.js} +1 -1
- package/dist/assets/{basic-B6w4QRx9.js → basic-B-L0hrHz.js} +1 -1
- package/dist/assets/{browser-ZnMI6q1R.js → browser-DeTVbWhl.js} +1 -1
- package/dist/assets/{byokCredential-DieNRQLZ.js → byokCredential-yEsNpz0J.js} +1 -1
- package/dist/assets/{card-DeZlXNKh.js → card-CB_EJqZO.js} +1 -1
- package/dist/assets/{castArray-axZqAjPR.js → castArray-Dy2e0JbB.js} +1 -1
- package/dist/assets/{chat-DOJ1n8LK.js → chat-BM9B5rm-.js} +1 -1
- package/dist/assets/{checkmark-CtdkpjkQ.js → checkmark-BTW78uHG.js} +1 -1
- package/dist/assets/{checkmark-bold-C8VH5bfg.js → checkmark-bold-CoLnJYOy.js} +1 -1
- package/dist/assets/{chevron-bottom-C4Gm5jpL.js → chevron-bottom-s8SnVs06.js} +1 -1
- package/dist/assets/{chevron-left-D1EcFohK.js → chevron-left-CIi44YLE.js} +1 -1
- package/dist/assets/{chevron-right-CgZqZ1_4.js → chevron-right-BCGXKj96.js} +1 -1
- package/dist/assets/{chevron-top-DAsb01F8.js → chevron-top-BqV8ade_.js} +1 -1
- package/dist/assets/{chrome-store-CtTMe5Rx.js → chrome-store-DDHTIy24.js} +1 -1
- package/dist/assets/{clock-CyRzJ-lK.js → clock-BwlCy5Iu.js} +1 -1
- package/dist/assets/{close-DPuY2-1P.js → close-WgguUBLs.js} +1 -1
- package/dist/assets/{coinPlaceholder-BUZ2SXX7.js → coinPlaceholder-8cut9Fa-.js} +1 -1
- package/dist/assets/{compass-BDvx2BRc.js → compass-Dn7n8jop.js} +1 -1
- package/dist/assets/{copy-CVly_jYZ.js → copy-BHa6Ptil.js} +1 -1
- package/dist/assets/{cursor-sHyvfort.js → cursor-C8Ux6Rzo.js} +1 -1
- package/dist/assets/{cursor-transparent-DKLCw1f0.js → cursor-transparent-Bn7Xrx49.js} +1 -1
- package/dist/assets/{debounce-6H9hQ_8r.js → debounce-Cu_Jtjpm.js} +1 -1
- package/dist/assets/{desktop-CuUd8EC8.js → desktop-EpjTjuon.js} +1 -1
- package/dist/assets/{disconnect-C-lyKO_K.js → disconnect-FnOrJghM.js} +1 -1
- package/dist/assets/{discord-DkOckBC_.js → discord-5SARw18s.js} +1 -1
- package/dist/assets/{distribution-C_l2GXjA.js → distribution-BkXq6sX-.js} +1 -1
- package/dist/assets/{dropdown-C39jh5I2.js → dropdown-BP_ej-SX.js} +1 -1
- package/dist/assets/{etherscan-CTTldXFh.js → etherscan-cux-dhcl.js} +1 -1
- package/dist/assets/{exclamation-triangle-C1e14Jb0.js → exclamation-triangle-XrbX3TYD.js} +1 -1
- package/dist/assets/{extension-Bfha9jes.js → extension-Cj40EbIY.js} +1 -1
- package/dist/assets/{external-link-CCm6kPvb.js → external-link-DNtVmuRC.js} +1 -1
- package/dist/assets/{facebook-Czpe8-Y_.js → facebook-CMe_Zte3.js} +1 -1
- package/dist/assets/{farcaster-DgRng9y-.js → farcaster-BoKGgj82.js} +1 -1
- package/dist/assets/{filters-C4s7LsGQ.js → filters-Be4tOW_G.js} +1 -1
- package/dist/assets/{flux-GDTcL3Y8.js → flux-MJJJeGdQ.js} +1 -1
- package/dist/assets/{github-CL-TlrU_.js → github-DMFcTvOd.js} +1 -1
- package/dist/assets/{google-CkC0P0qn.js → google-7jxGmkGd.js} +1 -1
- package/dist/assets/{hailuo-DDf4qr0T.js → hailuo-C2DAgWRq.js} +1 -1
- package/dist/assets/{headshots-BVZ327z5.js → headshots-BbqgI9h9.js} +1 -1
- package/dist/assets/{help-circle-V-8X-gpu.js → help-circle-D5HNn9tu.js} +1 -1
- package/dist/assets/{id-cT6DNkyX.js → id-DD-6Aoqo.js} +1 -1
- package/dist/assets/{image-BQpnGyBt.js → image-DOLvzBT4.js} +1 -1
- package/dist/assets/{index-CWFXg_X1.js → index-1ks7CUYl.js} +1 -1
- package/dist/assets/index-5GxMphke.js +1 -0
- package/dist/assets/{index-FGtghnWy.js → index-9SbBDGPs.js} +1 -1
- package/dist/assets/{index-DVOmusD-.js → index-B3UfVG_d.js} +1 -1
- package/dist/assets/{index-Dv6QyHaZ.js → index-B4Tz7YfZ.js} +1 -1
- package/dist/assets/{index-BZR8_DSa.js → index-B4u9m5KW.js} +1 -1
- package/dist/assets/{index-Bm9mp7O0.js → index-B5UvkoVZ.js} +1 -1
- package/dist/assets/{index-BASDcP6I.js → index-B8Wsd2do.js} +1 -1
- package/dist/assets/{index-QyG3nIPP.js → index-B90YNXz4.js} +3 -3
- package/dist/assets/index-BAlXF3lp.js +569 -0
- package/dist/assets/{index-DkkHzDGe.js → index-BEbgH5il.js} +1 -1
- package/dist/assets/{index-DVbc0Vrh.js → index-BIIkgwju.js} +6 -6
- package/dist/assets/{index-BryBtsEu.js → index-BJwefJmT.js} +1 -1
- package/dist/assets/{index-DYjefzUv.js → index-BNrf8OA9.js} +1 -1
- package/dist/assets/{index-CAqvkga9.js → index-BPFaQ_s8.js} +1 -1
- package/dist/assets/{index-CWruZUiW.js → index-BVj6npzc.js} +1 -1
- package/dist/assets/{index-Cd8sDMCz.js → index-BWtgvNsd.js} +1 -1
- package/dist/assets/{index-CS2m-geT.js → index-Bb59aSYy.js} +1 -1
- package/dist/assets/{index-CU4sUWWg.js → index-Bd83o_xd.js} +1 -1
- package/dist/assets/{index-CI_6vpCN.js → index-BjR1xkY6.js} +1 -1
- package/dist/assets/{index-Dtt8ouL1.js → index-BlT4xa9T.js} +1 -1
- package/dist/assets/{index-BMJca4Bl.js → index-BsAWh0kj.js} +1 -1
- package/dist/assets/{index-8h-37xBG.js → index-BtBl6GQu.js} +1 -1
- package/dist/assets/{index-CMLj8CN0.js → index-C1HKY4Q8.js} +1 -1
- package/dist/assets/{index-exFkA7_5.js → index-C2sZXfFW.js} +1 -1
- package/dist/assets/{index-MTyfSE0z.js → index-C3HcWVsL.js} +1 -1
- package/dist/assets/index-C9pbuvyJ.js +1 -0
- package/dist/assets/{index-CLp5vSCu.js → index-C9y6Qn-P.js} +1 -1
- package/dist/assets/{index-CbNvApeR.js → index-CDkjWK7c.js} +1 -1
- package/dist/assets/index-CDkwLyG4.js +1 -0
- package/dist/assets/{index-Dslp0Fkx.js → index-CWF_Pcdb.js} +1 -1
- package/dist/assets/{index-pSgN9JRv.js → index-CcnMKyw7.js} +1 -1
- package/dist/assets/{index-DWH28JJ_.js → index-CtySKs9Q.js} +1 -1
- package/dist/assets/{index-DlvgfaQ6.js → index-Cy0v6DrL.js} +1 -1
- package/dist/assets/{index-BF7e4Gsu.js → index-D-YgqEsL.js} +1 -1
- package/dist/assets/{index-LUMROQQk.js → index-D-krlzAy.js} +1 -1
- package/dist/assets/{index-DfotvhGi.js → index-D2uEfxFl.js} +1 -1
- package/dist/assets/{index-DPsTqLdo.js → index-D2zmio0m.js} +1 -1
- package/dist/assets/{index-CIWOQedx.js → index-D53OHe6n.js} +1 -1
- package/dist/assets/{index-DilrDkhS.js → index-D5lu46ap.js} +1 -1
- package/dist/assets/{index-B2F3uxnO.js → index-DA-DwjoG.js} +1 -1
- package/dist/assets/{index-6nuthkVN.js → index-DFMs40N-.js} +1 -1
- package/dist/assets/{index-Dvjgl8Yd.js → index-DHE-zvMr.js} +1 -1
- package/dist/assets/{index-BV-DrqqR.js → index-DOZj5eEY.js} +1 -1
- package/dist/assets/{index-DO8jOExu.css → index-DPfHqUC7.css} +1 -1
- package/dist/assets/{index-BxXZ7J01.js → index-DSub3p13.js} +1 -1
- package/dist/assets/{index-CsxP271_.js → index-DWiPtPwc.js} +1 -1
- package/dist/assets/{index-ClTkiZ4h.js → index-DhStH-hF.js} +1 -1
- package/dist/assets/{index-BKPnt2DE.js → index-DlKK7xr9.js} +1 -1
- package/dist/assets/{index-DgXPG9z0.js → index-DnRWA3xQ.js} +1 -1
- package/dist/assets/{index-BopH8qeF.js → index-DqLO_LT6.js} +1 -1
- package/dist/assets/{index-Eaf6Kjbv.js → index-Dt0y3LtV.js} +1 -1
- package/dist/assets/{index-C9ntWV_2.js → index-Dz6jYLFM.js} +1 -1
- package/dist/assets/{index-BEw3-0nE.js → index-FQXQEEy6.js} +1 -1
- package/dist/assets/{index-x2118unH.js → index-Hxc7n4HD.js} +1 -1
- package/dist/assets/{index-BsMSlq4q.js → index-bJyGALvw.js} +1 -1
- package/dist/assets/{index-BeVLLRlv.js → index-bQIOVtse.js} +1 -1
- package/dist/assets/{index-BkusqiYR.js → index-czzMfzSq.js} +1 -1
- package/dist/assets/{index-DJy6Z7De.js → index-fxyUeDwr.js} +1 -1
- package/dist/assets/{index-Bai7WUSZ.js → index-n5Z6KNBS.js} +1 -1
- package/dist/assets/{index-oCvG8MkE.js → index-pm_F56KR.js} +1 -1
- package/dist/assets/{index-DQFSboaS.js → index-wAnOYUjA.js} +1 -1
- package/dist/assets/{index-CyN1FNTd.js → index-z3iphkru.js} +1 -1
- package/dist/assets/{index.browser.esm-DmWVJBg8.js → index.browser.esm-Dfr8LG5m.js} +1 -1
- package/dist/assets/{index.es-BQu1ml1n.js → index.es-CqUFafZ-.js} +1 -1
- package/dist/assets/{info-9QjIHq34.js → info-DdT0G4Ot.js} +1 -1
- package/dist/assets/{info-circle-ItW5Rhdm.js → info-circle-Db5UBjst.js} +1 -1
- package/dist/assets/{isEqual-D1wtsHnv.js → isEqual-CIKj9pK6.js} +1 -1
- package/dist/assets/{isPlainObject-Bsbu_Bc8.js → isPlainObject-DmlMwz4l.js} +1 -1
- package/dist/assets/{kling-q-TVCWSp.js → kling-SEl8x51b.js} +1 -1
- package/dist/assets/{lightbulb-C5I2bhtL.js → lightbulb-B4xbVPvl.js} +1 -1
- package/dist/assets/{luma-D9XbzlV0.js → luma-DGn6nqV7.js} +1 -1
- package/dist/assets/{mail-DZwfCklB.js → mail-ByKxrMPw.js} +1 -1
- package/dist/assets/{midjourney-CBTq93iq.js → midjourney-BSWqUGQQ.js} +1 -1
- package/dist/assets/{mobile-1VjyzD9J.js → mobile-rHRia3aj.js} +1 -1
- package/dist/assets/{more-BpGRjgoy.js → more-B4I-SO1Q.js} +1 -1
- package/dist/assets/{nanobanana-BB7TEoCw.js → nanobanana-DewrOPDP.js} +1 -1
- package/dist/assets/{network-placeholder-Ciz5jhv7.js → network-placeholder-CEYIzFQj.js} +1 -1
- package/dist/assets/{nftPlaceholder-Cyu80O1d.js → nftPlaceholder-Ctxw7Mli.js} +1 -1
- package/dist/assets/{off-J3xwi1sK.js → off-Dv478v24.js} +1 -1
- package/dist/assets/{openaiimage-Be9R_PTq.js → openaiimage-3xfIWOkR.js} +1 -1
- package/dist/assets/{order-CveGjhjU.js → order-enu14tu8.js} +1 -1
- package/dist/assets/{pika-D5eJj-eg.js → pika-D3yfT-c8.js} +1 -1
- package/dist/assets/{pixverse-CwoASU2E.js → pixverse-vDZ8uqHW.js} +1 -1
- package/dist/assets/{play-store-DANo7b5K.js → play-store-B-PP3MyR.js} +1 -1
- package/dist/assets/{plus-D_LXGr2r.js → plus-CeeYvJhl.js} +1 -1
- package/dist/assets/{price-Dj2jz5FR.js → price-Bs-d-Bvz.js} +1 -1
- package/dist/assets/{producer-DOBQ3-4t.js → producer-B49TcM9P.js} +1 -1
- package/dist/assets/{qr-code-CVmnGC4J.js → qr-code-qM1T9bcv.js} +1 -1
- package/dist/assets/{qrart-DLoD7v-v.js → qrart-BE7gP9Sz.js} +1 -1
- package/dist/assets/{recycle-horizontal-Ce3_pZVZ.js → recycle-horizontal-BQgUj8lg.js} +1 -1
- package/dist/assets/{refresh-BFUKbvTh.js → refresh-DPBcR56r.js} +1 -1
- package/dist/assets/{reown-logo-DIbLTS6i.js → reown-logo-DCs1vcN3.js} +1 -1
- package/dist/assets/{search-Xk18nCfU.js → search-C-vCUCIZ.js} +1 -1
- package/dist/assets/{secp256k1-BYL51Ui3.js → secp256k1-DPRwQ62w.js} +1 -1
- package/dist/assets/{secp256k1-DbG0_Tkc.js → secp256k1-DYa8itNv.js} +1 -1
- package/dist/assets/{seedance-BpQ08Z9a.js → seedance-MDz_-hre.js} +1 -1
- package/dist/assets/{seedream-BxFVB2DW.js → seedream-BeTQj6-2.js} +1 -1
- package/dist/assets/{send-C8bBoEz-.js → send-CQd-5Anp.js} +1 -1
- package/dist/assets/{service-DjYWOBru.js → service-DqR1SsrS.js} +1 -1
- package/dist/assets/{solana-wallets-Dm9O0L55.js → solana-wallets-CvvurVgA.js} +2 -2
- package/dist/assets/{solana-wallets-vue-BWeKoX3x.js → solana-wallets-vue-B1CuH8rk.js} +1 -1
- package/dist/assets/{solanaEmbed.esm-BButWfif.js → solanaEmbed.esm-BAFw5Kew.js} +1 -1
- package/dist/assets/{sora-BdZYGl6x.js → sora-DJzE9qk-.js} +1 -1
- package/dist/assets/{string_decoder-DkKb5FIW.js → string_decoder-Qt1yWfpl.js} +1 -1
- package/dist/assets/{suno-BPe7ml4G.js → suno-RxwwPeb3.js} +1 -1
- package/dist/assets/{swapHorizontal-6EKXwjXU.js → swapHorizontal-qOYrsKcy.js} +1 -1
- package/dist/assets/{swapHorizontalBold-C0yKL4N_.js → swapHorizontalBold-C23FJdW6.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-CTFqNQ11.js → swapHorizontalMedium-Dw33R_YX.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-BSacEfhL.js → swapHorizontalRoundedBold-DXAIqBfA.js} +1 -1
- package/dist/assets/{swapVertical-CpBmBBbc.js → swapVertical-CLL_wH2T.js} +1 -1
- package/dist/assets/{telegram-B9un4I1c.js → telegram-qaIYbaMw.js} +1 -1
- package/dist/assets/{three-dots-_avq4H_o.js → three-dots-CBqjBJxZ.js} +1 -1
- package/dist/assets/{twitch-BaVvYG9_.js → twitch-CKaRzziJ.js} +1 -1
- package/dist/assets/{twitterIcon-CsNN3eeB.js → twitterIcon-7nYx2boi.js} +1 -1
- package/dist/assets/{typescript-BKUBJBk_.js → typescript-DGijeo9F.js} +1 -1
- package/dist/assets/{use-form-item-BKUNk7WT.js → use-form-item-DooKcsta.js} +1 -1
- package/dist/assets/validator-BbzUjG__.js +1 -0
- package/dist/assets/{veo-BEAxs_MW.js → veo-BpjTBfa7.js} +1 -1
- package/dist/assets/{verify-filled-Bc64HGdx.js → verify-filled-CfVn0iGz.js} +1 -1
- package/dist/assets/{verify-INehEJ9-.js → verify-sxm-YcaK.js} +1 -1
- package/dist/assets/{w3m-modal-GWISe3ot.js → w3m-modal-BN39GbH4.js} +1 -1
- package/dist/assets/{wallet-BH7brmdP.js → wallet-DqpHM8tl.js} +1 -1
- package/dist/assets/{wallet-placeholder-BMlH35pB.js → wallet-placeholder-DbZVjWDe.js} +1 -1
- package/dist/assets/{walletconnect-D-pqpvuO.js → walletconnect-DjpJOcfy.js} +1 -1
- package/dist/assets/{wan-t3fNfgQv.js → wan-biTqax26.js} +1 -1
- package/dist/assets/{warning-circle-EghSFKPj.js → warning-circle-Dxz0DLuZ.js} +1 -1
- package/dist/assets/{web-CuC3Jkam.js → web-BxKPaBjY.js} +1 -1
- package/dist/assets/{web-BJVd1Uxt.js → web-sAw_tSKv.js} +1 -1
- package/dist/assets/{x-qAkoCQdm.js → x-CHlrndhE.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +2 -1
- package/dist/assets/Detail-CsEchzoH.js +0 -2
- package/dist/assets/EditArray-CKjqG2cf.js +0 -1
- package/dist/assets/Extra-CNtz7asQ.js +0 -1
- package/dist/assets/Index-5c5l80Ak.js +0 -1
- package/dist/assets/Index-8rBSXu3N.js +0 -1
- package/dist/assets/Index-BD9p0GoV.js +0 -1
- package/dist/assets/Index-BNfRpb2f.js +0 -1
- package/dist/assets/Index-CGxt00Hm.js +0 -1
- package/dist/assets/Index-CNm3LDJA.js +0 -1
- package/dist/assets/Index-CZnF0xUS.js +0 -1
- package/dist/assets/Index-Caqm80Ju.js +0 -1
- package/dist/assets/Index-CcKlOVdh.js +0 -1
- package/dist/assets/Index-Cl3ttVgf.js +0 -1
- package/dist/assets/Index-Cw02EvBL.js +0 -1
- package/dist/assets/Index-CwOuzXrD.js +0 -1
- package/dist/assets/Index-DCbNqe6M.js +0 -1
- package/dist/assets/Index-DaCob0q3.js +0 -1
- package/dist/assets/Index-UPkhNAIS.js +0 -1
- package/dist/assets/Index-Wi5epqWf.js +0 -1
- package/dist/assets/Index-rlR3x0xt.js +0 -1
- package/dist/assets/Navigator-DnDgXXVK.css +0 -1
- package/dist/assets/Subscribe-CCBG-9BB.css +0 -1
- package/dist/assets/Subscribe-CQy13vdH.js +0 -1
- package/dist/assets/index-9hwQedJg.js +0 -1
- package/dist/assets/index-B8vDBdQ6.js +0 -1
- package/dist/assets/index-BtHZ_oNC.js +0 -1
- package/dist/assets/index-ZD8KYucs.js +0 -569
- package/dist/assets/validator-Dh8QM3tt.js +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import{g as Zi}from"./vendor-dayjs-Cvgzdobq.js";function eo(Ye,Xt){for(var we=0;we<Xt.length;we++){const oe=Xt[we];if(typeof oe!="string"&&!Array.isArray(oe)){for(const ae in oe)if(ae!=="default"&&!(ae in Ye)){const Ne=Object.getOwnPropertyDescriptor(oe,ae);Ne&&Object.defineProperty(Ye,ae,Ne.get?Ne:{enumerable:!0,get:()=>oe[ae]})}}}return Object.freeze(Object.defineProperty(Ye,Symbol.toStringTag,{value:"Module"}))}var $t={exports:{}},to=$t.exports,si;function no(){return si||(si=1,(function(Ye,Xt){((we,oe)=>{Ye.exports=oe()})(to,function(){var we,oe;function ae(e){this.name="__st"+(1e9*Math.random()>>>0)+we+"__",e?.forEach(this.add,this),we+=1}Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(this===null)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(typeof e!="function")throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i+=1}}}),window.WeakSet||(we=Date.now()%1e9,ae.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},ae.prototype.delete=function(e){return!!e[this.name]&&!(e[this.name]=void 0)},ae.prototype.has=function(e){return!!e[this.name]},oe=ae,Object.defineProperty(window,"WeakSet",{value:function(e){return new oe(e)}})),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!=null)for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],u=Object.getOwnPropertyDescriptor(r,s);u!=null&&u.enumerable&&(t[s]=r[s])}return t}});var Ne=function(e,t){return(Ne=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){n.__proto__=r}:function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}))(e,t)},O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ee(e,t,n,r){return new(n=n||Promise)(function(i,o){function a(l){try{u(r.next(l))}catch(c){o(c)}}function s(l){try{u(r.throw(l))}catch(c){o(c)}}function u(l){var c;l.done?i(l.value):((c=l.value)instanceof n?c:new n(function(f){f(c)})).then(a,s)}u((r=r.apply(e,[])).next())})}function te(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){var c=[u,l];if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((i=0<(i=o.trys).length&&i[i.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(c[0]===6&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function G(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var S,L,Q,ui=/_?t(\d)?(imestamp)?=\d+&?/g,Un=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","tdm.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","galileotelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","baidu.com","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8","flv"],ci=["ResizeObserver loop limit exceeded","ResizeObserver loop completed","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],Dn=["ext1","ext2","ext3","ext4","ext5","ext6","ext7","ext8","ext9","ext10","level","trace","tag","seq","code"],fi=["static","fetch"],J="unknown";(E=S=S||{}).INFO_ALL="-1",E.API_RESPONSE="1",E.INFO="2",E.ERROR="4",E.PROMISE_ERROR="8",E.AJAX_ERROR="16",E.SCRIPT_ERROR="32",E.IMAGE_ERROR="64",E.CSS_ERROR="128",E.CONSOLE_ERROR="256",E.MEDIA_ERROR="512",E.RET_ERROR="1024",E.PAGE_LOAD="1025",E.SLOW_PAGE_LOAD="1026",E.SLOW_NET_REQUEST="1027",E.ASSERT_REQUEST="1028",E.SLOW_ASSET_REQUEST="1029",E.CLICK_EVENT="1030",E.CONSOLE_LOG="1031",E.BLANK_SCREEN="1032",E.MEMORY_OOM="1033",E.LAG_MONITOR="1034",E.NORESPONSE_LOG="1035",E.REPORT="2048",E.PV="4096",E.EVENT="8192",E.SPEED_EVENT="8193",E.PAGE_NOT_FOUND_ERROR="16384",E.WEBSOCKET_ERROR="32768",E.BRIDGE_ERROR="65536",E.LAZY_LOAD_ERROR="131072",E.CRASH_ERROR="262144",(E=L=L||{}).LOG="log",E.SPEED="speed",E.PERFORMANCE="performance",E.OFFLINE="offline",E.WHITE_LIST="whiteList",E.VITALS="vitals",E.PV="pv",E.CUSTOM_PV="customPV",E.EVENT="event",E.CUSTOM="custom",E.SDK_ERROR="sdkError",E.SET_DATA="setData",E.LOAD_PACKAGE="loadPackage",E.MEMORY="memory",(E=Q=Q||{}).production="production",E.development="development",E.gray="gray",E.pre="pre",E.daily="daily",E.local="local",E.test="test",E.others="others";function Kt(e,t){var n;return typeof e!="string"?"":typeof t=="object"&&t?(n=Object.getOwnPropertyNames(t).map(function(r){var i=t[r];return r+"="+encodeURIComponent(typeof i=="string"?i:JSON.stringify(i))}).join("&").replace(/eval/gi,"evaI"),e+(e.indexOf("?")===-1?"?":"&")+n):e}_e.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},_e.prototype.on=function(e,t,n){var r;if(n===void 0&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),this.indexOf(r,t)===-1&&r.push({name:e,type:n||0,callback:t}),this},_e.prototype.one=function(e,t){this.on(e,t,1)},_e.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch{}}return null}},_e.prototype.clear=function(){this.eventsList={}};var Ze,di=_e,jn=function(e){if(!e||e.length===0)return"{}";e=Array.isArray(e)?e:[e];var t=Array.from(new Set(e.flatMap(function(r){return Object.keys(r)}))),n={};return t.forEach(function(r){n[r]=e.map(function(i){return i[r]||""})}),n.count=e.length,se(n)};function _e(){var e=this;this.emit=function(t){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(e){if((o=e.eventsList[t])!=null&&o.length)for(var o=o.slice(),a=0;a<o.length;a++){n=o[a];try{var s=n.callback.apply(e,r);if(n.type===1&&e.remove(t,n.callback),s===!1)break}catch(u){throw u}}return e}},this.eventsList={}}(E=Ze=Ze||{})[E.number=-1]="number",E.string="";function vt(e,t){return typeof e=="number"||typeof e=="string"?e:Ze.number}function Fe(e,t){return typeof e=="string"?e.split("?")[t?1:0]||"":e}function qn(e,t){return t===void 0&&(t=2048),String(e).replace(ui,"").slice(0,t)}function yt(e){return typeof e=="string"&&/^\//.test(e)?location?.protocol==="https:":/^https/.test(e)}function Wn(e,t,n){var r,i,o;try{if(typeof t?.retCodeHandler=="function")return{code:(o=(i=t.retCodeHandler(e,n?.url,n?.ctx,n?.payload)||{}).code)===void 0?J:o,isErr:i.isErr};if(!(e=typeof e=="string"?JSON.parse(e):e))return{code:J,isErr:!1};typeof((r=t?.ret)==null?void 0:r.join)=="function"&&(bt=[].concat(t.ret.map(function(s){return s.toLowerCase()})));var a=Object.getOwnPropertyNames(e).filter(function(s){return bt.indexOf(s.toLowerCase())!==-1});return a.length?{code:""+(o=(o=e[a[0]])!=="未知"&&o!==""?o:J),isErr:o!==0&&o!=="0"&&o!==J}:{code:J,isErr:!1}}catch{return{code:J,isErr:!1}}}function et(e,t,n){try{var r=typeof t=="function"?t(e,n?.url,n?.ctx)||"":e;return Yt(r).slice(0,10240)}catch{return""}}function Bn(e,t){var n,r={fetch:[],static:[],bridge:[]},i={};return Array.isArray(e)?e.forEach(function(o){var a;(a=r[o.type])!=null&&a.push(o)}):(n=r[e.type])!=null&&n.push(e),i.payload=JSON.stringify(O({duration:r},t)),i}function He(e,t){return typeof e!="string"||!e||t&&-1<e.indexOf(t)||wi.test(e)||Un.some(function(n){return-1<e.indexOf(n)})}function zn(e,t,n,r){var i=e.rateLimitConfigs;i?r===L.LOG&&Array.isArray(t)?(e=t.filter(function(o){return o=Xn(r,o.level),Kn(i[o])})).length&&n(e):(e=Xn(r),Kn(i[e])&&n(t)):n(t)}function wt(e,t){var n,r=[],i=e.config;return e.lifeCycle.on("destroy",function(){r.length=0}),function(o,a){Array.isArray(o)?r=r.concat(o):r.push(o),t&&r.length>=t||e.sendNow&&0<r.length?(r=Qn(r),0<(r=Array.isArray(r)?r:[]).length&&a(r.splice(0,r.length)),n&&clearTimeout(n)):(n&&clearTimeout(n),n=setTimeout(function(){n=null,r=Qn(r),0<(r=Array.isArray(r)?r:[]).length&&a(r.splice(0,r.length))},i.delay))}}function hi(e,t){return Array.isArray(e)?t(e.map(function(n){return r=O(O({},n),{msg:typeof n.msg=="string"?n.msg:[].concat(n.msg).map(pe).join(" ")}),Dn.forEach(function(i){r[i]||delete r[i]}),r;var r})):t([O(O({},e),{msg:typeof e.msg=="string"?e.msg:pe(e.msg)})])}function Gn(e,t){return function(n,r){var i,o,a,s,u;n!=null&&n.log&&n!=null&&n.type?(i=function(l,c,f){switch(c){case L.LOG:return jn(Zn(l));case L.SPEED:var h=l,d=f;return d=d&&d!=="undefined"?O(O({},e.bean),{from:d}):O({},e.bean),se(Bn(h,d));case L.EVENT:return se({payload:se(Array.isArray(l)?l:[l])});case L.CUSTOM:return se({payload:se({custom:Array.isArray(l)?l:[l]})});default:return{}}},(a=Array.isArray(n.log)?n.log:[n.log]).length!==1?(o={},a.forEach(function(l){var c=l.from||"undefined";delete l.from,o[c]||(o[c]=[]),o[c].push(l)}),Object.keys(o).forEach(function(l){var c,f=o[l],h=(h=n.url)!=null&&h.includes("?")?"&":"?";l==="undefined"?(c=""+n.url,r(O(O({},n),{url:c,log:f.length===1?f[0]:f,data:i(f,t,"")}))):(c=n.url+h+"from="+l,r(O(O({},n),{url:c,log:f.length===1?f[0]:f,beanFilter:G(n.beanFilter||[],["from"]),data:i(f,t,l)})))})):(s=(a=a[0]).from,delete a.from,u=(u=n.url)!=null&&u.includes("?")?"&":"?",s?(u=n.url+u+"from="+s,r(O(O({},n),{url:u,log:a,beanFilter:G(n.beanFilter||[],["from"]),data:i(a,t,s)}))):(u=""+n.url,r(O(O({},n),{url:u,log:a,data:i(a,t,"")}))))):r(n)}}function pi(e,t){return function(n,r){var i,o,a,s=Array.isArray(n),u=s?n:[n],l=(e.lifeCycle.emit("beforeRequest",n),e.config.beforeRequest);(u=typeof l=="function"?u.map(function(c){try{var f=l({logs:c,logType:t});return f?.logType===t&&f!=null&&f.logs?f.logs:f!==!1&&c}catch{return c}}).filter(function(c){return c!==!1}):u).length&&(i=u,n=Dn,!Array.isArray(i)||i.length<=1||(o=[],a=[],!(a=typeof n=="string"?[n]:n))||a.length<=0||(a.forEach(function(c){i.forEach(function(f){f!=null&&f[c]&&o.push(c)})}),0<o.length&&(i=i.map(function(c){var f={};return o.forEach(function(h){f[h]=""}),O(O({},f),c)}))),u=i,r(s?u:u[0]))}}function Vn(e){return function(t,n){e.lifeCycle.emit("modifyRequest",t);var r=e.config.modifyRequest;if(typeof r=="function")try{var i=r(t);typeof i=="object"&&"url"in i&&(t=i)}catch(o){console.error(o)}n(t)}}function Jn(e){return function(t,n){(r=e.lifeCycle)!=null&&r.emit("afterRequest",t);var r=(e.config||{}).afterRequest;typeof r=="function"&&r(t)===!1||n(t)}}var mi=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],gi=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/i,bt=["ret","retcode","code","errcode"],Qt=function(){var e=new WeakSet;return function(t,n){if(n instanceof Error)return"Error.message: "+n.message+`
|
|
2
|
+
Error.stack: `+n.stack;if(typeof n=="object"&&n!==null){if(e.has(n))return"[Circular "+(t||"root")+"]";e.add(n)}return n}},pe=function(e){if(typeof e=="string")return e;try{return e instanceof Error?(JSON.stringify(e,Qt(),2)||"undefined").replace(/"/gim,""):JSON.stringify(e,Qt(),2)||"undefined"}catch(t){return`error happen when aegis stringify:
|
|
3
|
+
`+t.message+`
|
|
4
|
+
`+t.stack}},se=function(e){if(typeof e=="string")return e;try{return JSON.stringify(e,Qt())||"undefined"}catch(t){return`error happen when aegis stringify:
|
|
5
|
+
`+t.message+`
|
|
6
|
+
`+t.stack}},Yt=function(e,t){t===void 0&&(t=3);var n,r,i,o="";return Array.isArray(e)?(o+="[",n=e.length,e.forEach(function(a,s){o=(o+=typeof a=="object"&&1<t?Yt(a,t-1):yi(a))+(s===n-1?"":",")}),o+="]"):e instanceof Object||typeof e=="object"?(o="{",r=Object.keys(e),i=r.length,r.forEach(function(a,s){typeof e[a]=="object"&&1<t?o+='"'+a+'":'+Yt(e[a],t-1):o+=vi(a,e[a]),o+=s===i-1||s<i-1&&e[r[s+1]]===void 0?"":","}),o+="}"):o+=e,o},vi=function(e,t){var n=typeof t,r="";return n=="string"||n=="object"?r+='"'+e+'":"'+t+'"':typeof t=="function"?r+='"'+e+'":"function '+t.name+'"':typeof t=="symbol"?r+='"'+e+'":"symbol"':typeof t!="number"&&n!="boolean"||(r+='"'+e+'": '+t),r},yi=function(e){var t=typeof e;return""+(t=="undefined"||t=="symbol"||t=="function"?"null":t=="string"||t=="object"?'"'+e+'"':e)},wi=/data:(image|text|application|font)\/.*;base64/,bi=((E={})[L.LOG]="log",E[L.MEMORY]="log",E[L.SPEED]="speed",E[L.PERFORMANCE]="performance",E[L.VITALS]="webvitals",E[L.PV]="pv",E[L.EVENT]="event",E[L.CUSTOM]="custom",E[L.SET_DATA]="miniProgramData",E[L.LOAD_PACKAGE]="miniProgramData",E),$n=((E={})[S.ERROR]="jsError",E[S.PROMISE_ERROR]="jsError",E[S.BLANK_SCREEN]="whiteScreen",E[S.SCRIPT_ERROR]="assetsException",E[S.IMAGE_ERROR]="assetsException",E[S.CSS_ERROR]="assetsException",E[S.MEDIA_ERROR]="assetsException",E),Xn=function(e,t){return e===L.LOG&&t&&$n[t]?$n[t]:bi[e]||""},Kn=function(e){return e==null||!(e<=0)&&(100<=e||100*Math.random()<e)},Qn=function(e){return e.filter(function(t,n){return t.type!=="static"||!e.find(function(r,i){return t.url===r.url&&t.status===200&&n<i})})},Yn=function(e){e.level===S.INFO_ALL&&(e.level=S.INFO)},Ce={},Ue={},Zt=function(e){return Ce[e]||(Ce[e]=setTimeout(function(){Ue[e]={},Ce[e]=null},6e4)),Ce[e]},Zn=function(e){return(Array.isArray(e)?e:[e]).map(function(t){return Object.getOwnPropertyNames(t).reduce(function(n,r){return r!=="ctx"&&(n[r]=t[r]),n},{level:S.INFO,msg:""})})},er=function(e){return function(t){return e.sendPipeline([function(n,r){return r({url:e.config.url||"",data:jn(Zn(n)),method:"post",contentType:"application/json",type:L.LOG,log:n,requestConfig:{timeout:5e3},success:function(){var i=e.config.onReport;typeof i=="function"&&n.forEach(function(o){i(o)}),typeof r=="function"&&r([])}})}],L.LOG)(t)}},Et={generateTraceId:tr(16),generateSpanId:tr(8)},St=Array(32);function tr(e){return function(){for(var t=0;t<2*e;t++)St[t]=Math.floor(16*Math.random())+48,58<=St[t]&&(St[t]+=39);return String.fromCharCode.apply(null,St.slice(0,2*e))}}function en(){return("10000000100040008000"+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}function tn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)})}function Ei(e){for(var t,n,r,i="",o=0,a=(e=String(e)).length%3;o<e.length;){if(255<(t=e.charCodeAt(o++))||255<(n=e.charCodeAt(o++))||255<(r=e.charCodeAt(o++)))throw new TypeError("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");i+=be.charAt((t=t<<16|n<<8|r)>>18&63)+be.charAt(t>>12&63)+be.charAt(t>>6&63)+be.charAt(63&t)}return a?i.slice(0,a-3)+"===".substring(a):i}function Si(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ri.test(e))throw new TypeError("Failed to execute 'atob': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",o=0;o<e.length;)t=be.indexOf(e.charAt(o++))<<18|be.indexOf(e.charAt(o++))<<12|(n=be.indexOf(e.charAt(o++)))<<6|(r=be.indexOf(e.charAt(o++))),i+=n===64?String.fromCharCode(t>>16&255):r===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}function nn(e){var t,n="";return n=typeof e=="object"&&(t=(e=((r,i)=>{for(var o=0;o<i.length;o++){var a=i[o],s=r[a]||typeof r.get=="function"&&r.get(a);if(s)return[a,s]}return["",""]})(e,Object.keys(nr)))[0])?nr[t](e[1]):n}function De(e){if(e&&e.reduce&&e.length)return e.length===1?function(t,n){e[0](t,n||rr)}:e.reduce(function(t,n){return function(r,i){return i===void 0&&(i=rr),t(r,function(o){return n?.(o,i)})}});throw new TypeError("createPipeline need at least one function param")}function rn(e,t){Object.getOwnPropertyNames(e).forEach(function(n){var r;n==="constructor"||!(r=Object.getOwnPropertyDescriptor(e,n))||r.get||r.set||typeof r.value=="function"&&(t?t[n]=n==="sendPipeline"?function(){return function(){}}:function(){}:e[n]=function(){})})}var be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ri=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ti=(me.prototype.generate=function(e,t,n){if(t===void 0&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8(n);break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},me.prototype.createTraceparent=function(){var e=Et.generateSpanId();return"00-"+Et.generateTraceId()+"-"+e+"-0"+this.traceFlag.toString(16)},me.prototype.createB3=function(){var e=Et.generateSpanId();return Et.generateTraceId()+"-"+e+"-"+this.traceFlag},me.prototype.createSw8=function(r){var t=typeof btoa=="function"?btoa:Ei,r=r||{},n=r.host,n=n===void 0?"":n,r=r.pathname,r=r===void 0?"":r,i=tn(),o=tn();return"1-"+String(t(o))+"-"+String(t(i))+"-1-"+String(t("aegis"))+"-"+String(t("1.41.13"))+"-"+String(t(encodeURI(r)))+"-"+String(t(n))},me.prototype.createSentryTrace=function(){var e=en().substring(16);return en()+"-"+e+"-"+this.traceFlag},me.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&this.ignoreUrls.length!==0)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},me.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(this.urls.length===0)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},me.prototype.urlMatches=function(e,t){return typeof t=="string"?e===t:!!e.match(t)},me),nr={sw8:function(n){var t=typeof atob=="function"?atob:Si,n=n.split("-")[1];return n?t(n):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},rr=function(){};function me(e,t,n,r){n===void 0&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n,this.traceFlag=r==null?1:+!!r}function on(e,t){return e?t?"gzip":"identity":null}function tt(){return window.performance!==void 0&&typeof performance.getEntriesByType=="function"&&typeof performance.now=="function"}function ir(e){var t;return-1<((t=(t=window.PerformanceObserver)==null?void 0:t.supportedEntryTypes)==null?void 0:t.indexOf(e))}function q(e){return Pi.indexOf(e)!==-1}x.use=function(e){x.installedPlugins.indexOf(e)===-1&&e.aegisPlugin&&x.installedPlugins.push(e)},x.unuse=function(e){e=x.installedPlugins.indexOf(e),e!==-1&&x.installedPlugins.splice(e,1)},x.prototype.init=function(e){function t(){o||(r&&clearTimeout(r),r=setTimeout(function(){o=!0,l()},n.config.uin?50:500))}var n,r,i,o,a,s,u,l,c,f;this.setConfig(e),this.config=(f=this.config,e=e.hostUrl,f.url=(e=typeof(e=e===void 0?"https://rumt-zh.com":e)!="string"?"https://rumt-zh.com":e)+"/collect",f.offlineUrl=e+"/offline",f.whiteListUrl=e+"/collect/whitelist",f.rateLimitUrl=e+"/rateConfig",f.pvUrl=e+"/collect/pv",f.eventUrl=e+"/collect/events",f.speedUrl=e+"/speed",f.customTimeUrl=e+"/speed/custom",f.performanceUrl=e+"/speed/performance",f.performanceUrlForHippy=e+"/speed/hippyPerformance",f.webVitalsUrl=e+"/speed/webvitals",f.setDataReportUrl=e+"/speed/miniProgramData",f.memoryUrl=e+"/memory",f),this.resetWhitelistGzipState(),n=this,o=!1,a=[3,30,300],s=0,u=function(){d=a[Math.min(s,a.length-1)],s+=1;var d;n.rateLimitSampled||(n.rateLimitReady=!0,n.rateLimitPool&&n.rateLimitPool.length&&n.rateLimitPool.splice(0).forEach(function(p){p.resolve(p.logs)})),c(d)},l=function(){var d=n.config.rateLimitUrl,p=d===void 0?"":d;p&&n.sendPipeline([function(m,g){g({url:""+p,type:L.WHITE_LIST,success:function(b){try{var y,w=b.data||JSON.parse(b),v=w.retcode,T=w.configs,I=w.ttl;v===0&&Array.isArray(T)?(y={},T.forEach(function(P){var C=P.limit_type;y[C]=P.sample_rate}),n.rateLimitConfigs=y,n.rateLimitReady=!0,n.rateLimitSampled=!0,n.rateLimitPool&&n.rateLimitPool.length&&n.rateLimitPool.splice(0).forEach(function(P){zn(n,P.logs,P.resolve,P.sendType)}),0<I&&c(I)):u()}catch{u()}},fail:function(){u()}})}],L.WHITE_LIST)(null)},c=function(d){i&&clearTimeout(i),i=setTimeout(function(){o=!1,l()},1e3*d)},t(),n.lifeCycle.on("onConfigChange",function(){o=!1,s=0,t()}),n.lifeCycle.on("destroy",function(){r&&clearTimeout(r),i&&clearTimeout(i),n.rateLimitPool&&(n.rateLimitPool.length=0)});for(var h=0;h<x.installedPlugins.length;h++)try{x.installedPlugins[h].patch(this)}catch(d){this.sendSDKError(d)}this.lifeCycle.emit("onInited")},x.prototype.destroy=function(e){e===void 0&&(e=!1);var t,n,r=x.instances.indexOf(this);r!==-1&&x.instances.splice(r,1);for(var i=x.installedPlugins.length-1;0<=i;i--)try{x.installedPlugins[i].unpatch(this)}catch(a){this.sendSDKError(a)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(a){n[a].writable&&(t[a]=null)}),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&rn(o,this),o=Object.getPrototypeOf(o););x.instances.length===0&&(r=Object.getPrototypeOf(this).constructor,rn(r),rn(x))}},x.prototype.setConfig=function(c){Object.assign(this.config,c);var c=this.config,t=c.id,n=c.uin,r=c.version,i=c.ext1,o=c.ext2,a=c.ext3,s=c.aid,l=c.env,u=l===void 0?"production":l,l=c.pageUrl,c=this.bean.id!==t||this.bean.uin!==n||this.bean.aid!==s;return this.bean.id=t||"",this.bean.uin=n||"",this.bean.version=r||"1.41.13",this.bean.aid=s||"",this.bean.env=(()=>{switch(u){case Q.production:case Q.development:case Q.gray:case Q.pre:case Q.daily:case Q.local:case Q.test:case Q.others:return 1;default:return}})()?u:Q.others,l&&this.extendBean("from",encodeURIComponent(l.slice(0,2048))),i&&this.extendBean("ext1",encodeURIComponent(i)),o&&this.extendBean("ext2",encodeURIComponent(o)),a&&this.extendBean("ext3",encodeURIComponent(a)),c&&this.lifeCycle.emit("onConfigChange",this.config),this.config},x.prototype.extendBean=function(e,t){this.bean[e]=t},x.prototype.resetWhitelistGzipState=function(){this.whitelistUseGzip=!0,this.whitelistUseGzipReady=!0},x.prototype.updateWhitelistGzipState=function(e){this.whitelistUseGzip=e==null||e===""||Number(e)===1,this.whitelistUseGzipReady=!0},x.prototype.disableWhitelistGzipState=function(){this.whitelistUseGzip=!1,this.whitelistUseGzipReady=!0},x.prototype.isGzipReportEnabled=function(e){return!!e&&(!this.config.whiteListUrl||this.whitelistUseGzipReady&&this.whitelistUseGzip)},x.prototype.send=function(e,t,n){var r=this;return De([Vn(this),Gn(this,e?.type),function(i,o){r.request(i,function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];o({isErr:!1,result:a,logType:i.type,logs:i.log}),t?.apply(void 0,a)},function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];o({isErr:!0,result:a,logType:i.type,logs:i.log}),n?.apply(void 0,a)})},Jn(this)])(e)},x.prototype.sendSDKError=function(e){var t=this;this.sendPipeline([function(n,r){r({url:t.config.url+"?id=1085&msg[0]="+encodeURIComponent(pe(n))+"&level[0]=2&from="+t.config.id+"&count=1&version="+t.config.id+"(1.41.13)",addBean:!1,method:"get",type:L.SDK_ERROR,log:n})}],L.SDK_ERROR)(e)},x.prototype.sendPipeline=function(e,t){var n,r,i,o=this;return De(G([function(a,s){if(typeof n.config.random!="number"&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||s(a);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,s(a);n.isHidden=!0}},function(a,s){if(i!==L.SDK_ERROR&&i!==L.WHITE_LIST)return r.rateLimitReady?void zn(r,a,s,i):(r.rateLimitPool||(r.rateLimitPool=[]),void(r.rateLimitPool.length<200&&r.rateLimitPool.push({logs:a,resolve:s,sendType:i})));s(a)},pi(r=n=this,i=t)],e,[Gn(this,t),Vn(this),function(a,s){var u;a.url&&o.rateLimitSampled&&(u=a.url.indexOf("?")===-1?"?":"&",a.url=a.url+u+"sampled=1"),s(a)},function(a,s){o.request(a,function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var c=!1;-1<(""+u[o.failRequestCount=0]).indexOf("403 forbidden")&&(c=!0,o.destroy()),s({isErr:c,result:u,logType:a?.type,logs:a?.log}),(c=a?.success)!=null&&c.call.apply(c,G([a],u))},function(){for(var u,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];60<=++o.failRequestCount&&o.destroy(),-1<(""+l[0]).indexOf("403 forbidden")&&o.destroy(),s({isErr:!0,result:l,logType:a?.type,logs:a?.log}),(u=a?.fail)!=null&&u.call.apply(u,G([a],l))})},Jn(this)]))},x.prototype.validateRange=function(e){return 0<=e&&e<=127?e:-1},x.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:S.INFO,msg:e,originFrom:this.getOriginFrom()};e.length===1&&e[0].msg&&Object.assign(n,O({},e[0]),{level:S.INFO,originFrom:this.getOriginFrom()}),this.normalLogPipeline(n)},x.prototype.infoAll=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:S.INFO_ALL,msg:e,originFrom:this.getOriginFrom()};e.length===1&&e[0].msg&&Object.assign(n,O({},e[0]),{level:S.INFO_ALL,originFrom:this.getOriginFrom()}),this.normalLogPipeline(n)},x.prototype.report=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:S.REPORT,msg:e,originFrom:this.getOriginFrom()};e.length===1&&e[0].msg&&Object.assign(n,O({},e[0]),{originFrom:this.getOriginFrom()}),this.normalLogPipeline(n)},x.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:S.ERROR,msg:e,originFrom:this.getOriginFrom()};e.length===1&&e[0].msg&&Object.assign(n,O({},e[0]),{level:S.ERROR,originFrom:this.getOriginFrom()}),this.normalLogPipeline(n)},x.prototype.reportEvent=function(e){e&&((e=typeof e=="string"?{name:e,ext1:this.config.ext1||"",ext2:this.config.ext2||"",ext3:this.config.ext3||"",originFrom:this.getOriginFrom()}:O(O({},e),{originFrom:e.originFrom||this.getOriginFrom()})).name?(typeof e.name!="string"&&(console.warn("reportEvent params name must be string"),e.name=String(e.name)),this.eventPipeline(e)):console.warn("reportEvent params error"))},x.prototype.reportT=function(d){var t=d.name,n=d.duration,r=d.ext1,r=r===void 0?"":r,i=d.ext2,i=i===void 0?"":i,o=d.ext3,o=o===void 0?"":o,a=d.ext4,s=d.ext5,u=d.ext6,l=d.ext7,c=d.ext8,f=d.ext9,h=d.ext10,d=d.from;if(typeof t=="string"&&typeof n=="number"&&typeof r=="string"&&typeof i=="string"&&typeof o=="string"){if(!(n<0||2147483646<n))return this.submitCustomTime(t,n,r,i,o,a===void 0?"":a,s===void 0?"":s,u===void 0?"":u,l===void 0?"":l,c===void 0?"":c,f===void 0?"":f,h===void 0?"":h,d===void 0?"":d);console.warn("reportTime: duration must between 0 and 2147483646")}else console.warn("reportTime: params error")},x.prototype.reportTime=function(e,t){if(typeof e=="object")return this.reportT(e);typeof e=="string"?typeof t=="number"?t<0||2147483646<t?console.warn("reportTime: duration must between 0 and 2147483646"):(this.submitCustomTime(e,t),this.normalLogPipeline({level:S.SPEED_EVENT,msg:"key:"+e+"\\n duration:"+t,errorMsg:"",originFrom:this.getOriginFrom()})):console.warn("reportTime: second param must be number"):console.warn("reportTime: first param must be a string")},x.prototype.time=function(e){typeof e=="string"?this.timeMap[e]?console.warn("Timer "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("time: first param must be a string")},x.prototype.timeEnd=function(e){var t;typeof e!="object"||e===null?typeof e=="string"?(t=this.getTimeEventDuration(e))!==void 0?(this.submitCustomTime(e,t),delete this.timeMap[e]):console.warn("Timer "+e+" does not exist"):console.warn("timeEnd: first param must be a string"):(t=this.getTimeEventDuration(e.name))!==void 0?(this.reportT(O(O({},e),{duration:t})),delete this.timeMap[e.name]):console.warn("Timer "+e.name+" does not exist")},x.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},x.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},x.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},x.prototype.getOriginFrom=function(){throw new Error('You need to override "getOriginFrom" method')},Object.defineProperty(x.prototype,"__version__",{get:function(){return"1.41.13"},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"LogType",{get:function(){return S},enumerable:!1,configurable:!0}),x.prototype.reportPv=function(e){e&&console.warn("reportPv is deprecated, please use reportEvent")},x.prototype.submitCustomTime=function(e,t,n,r,i,o,a,s,u,l,c,f,h){e={name:e,duration:t,ext1:String(n||this.config.ext1||"").slice(0,1024),ext2:String(r||this.config.ext2||"").slice(0,1024),ext3:String(i||this.config.ext3||"").slice(0,1024),ext4:o||this.config.ext4,ext5:a||this.config.ext5,ext6:s||this.config.ext6,ext7:u||this.config.ext7,ext8:l||this.config.ext8,ext9:c||this.config.ext9,ext10:f||this.config.ext10,from:h||void 0},this.customTimePipeline(e)},x.prototype.getTimeEventDuration=function(e){if(e!==void 0&&this.timeMap[e])return Date.now()-this.timeMap[e]},x.version="1.41.13",x.instances=[],x.logType=S,x.environment=Q,x.installedPlugins=[];var E=x,A=(ne.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewAegis(e))},ne.prototype.unpatch=function(e){var t=this.instances.indexOf(e);t!==-1&&(this.instances.splice(t,1),this.instances.length===0)&&this.uninstall(e)},ne.prototype.countInstance=function(){return this.instances.length},ne.prototype.uninstall=function(e){var t;(t=(t=this.option)==null?void 0:t.destroy)!=null&&t.apply(this,[e])},ne.prototype.walk=function(e){var t=this;this.instances.forEach(function(n){var r=t.canUse(n);r&&e(n,r)})},ne.prototype.canUse=function(e){return e=this.getConfig(e),!(!e||typeof e!="object")||!!e},ne.prototype.getConfig=function(e){return(e=e.config)==null?void 0:e[this.name]},ne.prototype.exist=function(e){return this.instances.indexOf(e)===-1},ne.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,(t=(t=this.option)==null?void 0:t.init)==null)||t.call(this.option,this.getConfig(e))},ne.prototype.triggerOnNewAegis=function(e){var t;(t=(t=this.option)==null?void 0:t.onNewAegis)!=null&&t.call(this.option,e,this.getConfig(e))},ne),Oi=new A({name:"aid",aid:"",init:function(e){try{var t=e!==!0&&e||window.localStorage.getItem("AEGIS_ID");t||(t=tn(),window.localStorage.setItem("AEGIS_ID",t)),this.aid=t}catch{}},onNewAegis:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),Rt=new A({name:"reportAssetSpeed"}),xi=Rt=new A({name:"reportAssetSpeed",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],getFromParam:function(e){return e.getCurrentPageUrl()},onNewAegis:function(e){var t=this;tt()&&(setTimeout(function(){t.collectSuccessLog(e),t.collectFailLog(e)},5e3),performance.onresourcetimingbufferfull=function(){typeof performance.clearResourceTimings=="function"&&(t.collectCur=0,performance.clearResourceTimings())})},processLog:function(e,u){var n=u.duration||0,r=u.transferSize||0,i=!1,a=e.config;if((s=a?.api)!=null&&s.isSlowAsset&&typeof((s=a?.api)==null?void 0:s.isSlowAsset)=="function")try{i=(o=a?.api)==null?void 0:o.isSlowAsset(u)}catch(l){return void console.warn("[Aegis] isSlowAsset function happen error:",l,", this data will not be reported.")}else i=(s=a?.api)!=null&&s.assetSlowThreshold&&typeof((o=a?.api)==null?void 0:o.assetSlowThreshold)=="number"?n>((s=a?.api)==null?void 0:s.assetSlowThreshold):1e3<n;var o=["ASSET_REQUEST: "+u.url,"status: "+u.status,"duration: "+n+"ms","type: "+u.type,"domainLookup: "+u.domainLookup+"ms","connectTime: "+u.connectTime+"ms","transferSize: "+(0<r?r+"bytes":"unknown")].filter(Boolean).join(`
|
|
7
|
+
|
|
8
|
+
`),a=e.isWhiteList&&e.config.assetLog,s=e.config.slowAssetLog&&i,u={level:i?e.LogType.SLOW_ASSET_REQUEST:e.LogType.ASSERT_REQUEST,msg:o,ext1:n.toString()||"",errorMsg:"",originFrom:e.getOriginFrom()};(a||s)&&e.normalLogPipeline(u)},publish:function(e,t){var n=this;this.$walk(function(r){r===t&&(r.speedLogPipeline(e),Array.isArray(e)?e.forEach(n.processLog):n.processLog(t,e))})},publishMany:function(e,t){for(var n=t.config,r=this.getFromParam(t),i=0,o=e.length;i<o;i++){var a=e[i];this.ASSETS_INITIATOR_TYPE.indexOf(a.initiatorType)===-1||He(a.name,n.hostUrl)||this.publish(this.generateLog(a,n,r),t)}},collectSuccessLog:function(e){var t,n,r=this;typeof window.PerformanceObserver=="function"?(this.publishMany(performance.getEntriesByType(this.collectEntryType),e),(t=new window.PerformanceObserver(function(i){r.publishMany(i.getEntries(),e)})).observe({entryTypes:[this.collectEntryType]}),e.lifeCycle.on("destroy",function(){Rt.countInstance()===0&&t.disconnect()})):(n=setInterval(function(){var i=performance.getEntriesByType(r.collectEntryType),o=i.slice(r.collectCur);r.collectCur=i.length,r.publishMany(o,e)},3e3),e.lifeCycle.on("destroy",function(){Rt.countInstance()===0&&clearInterval(n)}))},collectFailLog:function(e){function t(i){var o,a,s,u;i&&(i=i.target||i.srcElement,!(o=i?.src||i?.href)||typeof o!="string"||-1<window.location.href.indexOf(o)||(i=typeof((i=r.api)==null?void 0:i.resourceTypeHandler)=="function"?(i=r.api)==null?void 0:i.resourceTypeHandler(o):"",a=performance.getEntriesByType(n.collectEntryType).find(function(l){return l.name===o}),He(o,r.hostUrl))||(s=n.getFromParam(e),u=Number((u=a)==null?void 0:u.responseStatus),u=Number.isFinite(u)&&0<u?u:400,u={url:qn(o),status:u,duration:Number((a?.duration||0).toFixed(2)),method:"get",type:i||"static",isHttps:yt(o),urlQuery:Fe(o,!0),nextHopProtocol:"",domainLookup:0,connectTime:0,from:s},n.publish(u,e)))}var n=this,r=e.config;window.document.addEventListener("error",t,!0),e.lifeCycle.on("destroy",function(){Rt.countInstance()===0&&window.document.removeEventListener("error",t,!0)})},generateLog:function(e,r,n){var r=typeof((i=r.api)==null?void 0:i.resourceTypeHandler)=="function"?(i=r.api)==null?void 0:i.resourceTypeHandler(e.name):"",i=e.transferSize,o=Number(e.responseStatus),o=Number.isFinite(o)&&0<o?o:200;return{url:qn(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:o,type:r||"static",isHttps:yt(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:Fe(e.name,!0),domainLookup:vt(e.domainLookupEnd-e.domainLookupStart),connectTime:vt(e.connectEnd-e.connectStart),transferSize:0<i?i:-1,from:n}},collectNotReportedLog:function(e){var t,n;tt()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,typeof window.PerformanceObserver!="function")&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e))},destroy:function(){this.option.publish=function(){}}}),Pi=window.navigator.userAgent.toLowerCase(),R={};function ne(e){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}function x(e){var t,n,r,i,o,a,s,u,l,c,f,h,d,p=this;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,hostUrl:"https://rumt-zh.com",env:"production",url:"",offlineUrl:"",whiteListUrl:"",rateLimitUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",performanceUrlForHippy:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:"",memoryUrl:"",reportImmediately:!0,gzip:!0},this.isWhiteList=!1,this.whitelistUseGzip=!0,this.whitelistUseGzipReady=!1,this.lifeCycle=new di,this.bean={},this.rateLimitConfigs=null,this.rateLimitReady=!1,this.rateLimitSampled=!1,this.rateLimitPool=[],this.normalLogPipeline=De([wt(this,5),hi,function(m,g){var b=t.config;g(m=m.map(function(y){var w,v=b.maxLength||10240;try{if(!y.msg||y.msg.length<=v)return y;y.msg=(w=y.msg)==null?void 0:w.substring(0,v)}catch{y.msg=pe(y.msg).substring(0,b.maxLength)}return y}))},(d=(t=this).config,function(m,g){var b=typeof d.repeat=="number"?d.repeat:60;if(b<=0)return g(m);var y=d?.id+"_error",w=Ue[y]||{};g(m.filter(function(v){if(v.level===S.ERROR||v.level===S.PROMISE_ERROR||v.level===S.AJAX_ERROR||v.level===S.SCRIPT_ERROR||v.level===S.IMAGE_ERROR||v.level===S.CSS_ERROR||v.level===S.MEDIA_ERROR||v.level===S.RET_ERROR||v.level===S.BRIDGE_ERROR||v.level===S.PAGE_NOT_FOUND_ERROR||v.level===S.WEBSOCKET_ERROR||v.level===S.LAZY_LOAD_ERROR){if(v=v.msg.slice(0,200),w[v]>b)return Ce[y]||Zt(y),!1;w[v]=1+~~w[v],Ue[y]=w}return!0}))}),(f=this.lifeCycle.emit,h=this.config,function(m,g){var b,y=h.logCreated;return typeof y=="function"?(b=m.filter(function(w){return y(w)!==!1}),f("beforeWrite",b),g(b)):(f("beforeWrite",m),g(m))}),(c=this,setTimeout(function(){var b=c.config,g=b.pvUrl,m=g===void 0?"":g,g=b.spa,b=-1<["web-sdk","mp-sdk","rn-sdk"].indexOf("web-sdk");m&&(b&&!g||!b)&&c.sendPipeline([function(y,w){var v=c.getOriginFrom(),T=m!=null&&m.includes("?")?"&":"?";w({url:v?m+T+"originFrom="+encodeURIComponent(v):m,type:L.PV})}],L.PV)(null)},100),function(m,g){g(m)}),(u=s=a=!1,l=[],(i=this).lifeCycle.on("onConfigChange",function(){o&&clearTimeout(o),o=setTimeout(function(){var m,g;!u&&i.config&&(u=!0,m=i.config.whiteListUrl,(g=m===void 0?"":m)&&i.sendPipeline([function(b,y){y({url:g,type:L.WHITE_LIST,success:function(w){s=!0;try{var v=w.data||JSON.parse(w),T=v.retcode,I=v.result,P=I===void 0?{}:I,C=(T===0?(a=P.is_in_white_list,i.isWhiteList=a,i.updateWhitelistGzipState(P.use_gzip),0<=P.rate&&P.rate<=1&&(i.config.random=P.rate,i.isGetSample=!1)):i.disableWhitelistGzipState(),i.isWhiteList&&l.length?er(i)(l.splice(0),function(){}):!i.isWhiteList&&l.length&&(l.length=0),i.config.onWhitelist);typeof C=="function"&&C(a)}catch{}},fail:function(){s=!0}})}],L.WHITE_LIST)(null),u=!1)},i.config.uin?50:500)}),i.lifeCycle.on("destroy",function(){l.length=0}),function(m,g){var b;a||(b=(b=i.config)==null?void 0:b.api)!=null&&b.reportRequest?g(m.concat(l.splice(0)).map(function(y){return Yn(y),y})):(b=m.filter(function(y){return y.level!==S.INFO&&y.level!==S.API_RESPONSE?(Yn(y),!0):(s||(l.push(y),200<=l.length&&(l.length=200)),!1)})).length&&g(b)}),function(m,g){try{var b=m.filter(function(v){return[S.ERROR,S.PROMISE_ERROR,S.AJAX_ERROR,S.SCRIPT_ERROR,S.IMAGE_ERROR,S.CSS_ERROR,S.MEDIA_ERROR,S.WEBSOCKET_ERROR,S.BRIDGE_ERROR,S.BLANK_SCREEN,S.RET_ERROR,S.PAGE_NOT_FOUND_ERROR,S.LAZY_LOAD_ERROR].includes(v.level)}),y=(b.length&&p.lifeCycle.emit("errorOccurred",b),m.forEach(function(v){["ext1","ext2","ext3"].forEach(function(T){v[T]&&typeof v[T]=="string"&&(v[T]=v[T].slice(0,1024))}),["ext4","ext5","ext6","ext7","ext8","ext9","ext10"].forEach(function(T){v[T]&&typeof v[T]!="string"&&(v[T]=String(v[T]))})}),JSON.parse(JSON.stringify(m))),w=(p.lifeCycle.emit("beforeReport",y),p.config.beforeReport);(m=typeof w=="function"?m.filter(function(v){return w(v)!==!1}):m).length&&g(m)}catch{}},er(this)]),this.eventPipeline=De([wt(this,10),(r=this,function(m){r.sendPipeline([function(g,b){var y=g.map(function(w){return{name:w.name,originFrom:w.originFrom,ext1:String(w.ext1||r.config.ext1||"").slice(0,1024),ext2:String(w.ext2||r.config.ext2||"").slice(0,1024),ext3:String(w.ext3||r.config.ext3||"").slice(0,1024),ext4:String(w.ext4||r.config.ext4||""),ext5:String(w.ext5||r.config.ext5||""),ext6:String(w.ext6||r.config.ext6||""),ext7:String(w.ext7||r.config.ext7||""),ext8:String(w.ext8||r.config.ext8||""),ext9:String(w.ext9||r.config.ext9||""),ext10:String(w.ext10||r.config.ext10||"")}});b({url:r.config.eventUrl,method:"post",contentType:"application/json",data:se({payload:se(y)}),type:L.EVENT,log:g})}],L.EVENT)(m)})]),this.customTimePipeline=De([wt(this,10),(n=this,function(m){return n.sendPipeline([function(g,b){b({url:n.config.customTimeUrl,method:"post",contentType:"application/json",data:se({payload:se({custom:g})}),type:L.CUSTOM,log:g})}],L.CUSTOM)(m)})]),this.timeMap={},this.failRequestCount=0,x.instances.push(this)}R.macos=function(){return q("mac")},R.ios=function(){return R.iphone()||R.ipod()||R.ipad()},R.iphone=function(){return!R.windows()&&q("iphone")},R.ipod=function(){return q("ipod")},R.ipad=function(){var e=navigator.platform==="MacIntel"&&1<navigator.maxTouchPoints;return q("ipad")||e},R.android=function(){return!R.windows()&&q("android")},R.androidPhone=function(){return R.android()&&q("mobile")},R.androidTablet=function(){return R.android()&&!q("mobile")},R.blackberry=function(){return q("blackberry")||q("bb10")},R.blackberryPhone=function(){return R.blackberry()&&!q("tablet")},R.blackberryTablet=function(){return R.blackberry()&&q("tablet")},R.windows=function(){return q("windows")},R.windowsPhone=function(){return R.windows()&&q("phone")},R.windowsTablet=function(){return R.windows()&&q("touch")&&!R.windowsPhone()},R.fxos=function(){return(q("(mobile")||q("(tablet"))&&q(" rv:")},R.fxosPhone=function(){return R.fxos()&&q("mobile")},R.fxosTablet=function(){return R.fxos()&&q("tablet")},R.meego=function(){return q("meego")},R.cordova=function(){return window.cordova&&location.protocol==="file:"},R.nodeWebkit=function(){return typeof window.process=="object"},R.mobile=function(){return R.androidPhone()||R.iphone()||R.ipod()||R.windowsPhone()||R.blackberryPhone()||R.fxosPhone()||R.meego()},R.tablet=function(){return R.ipad()||R.androidTablet()||R.blackberryTablet()||R.windowsTablet()||R.fxosTablet()},R.desktop=function(){return!R.tablet()&&!R.mobile()};function or(){return{host:new URL(location.href).host,pathname:location.pathname}}function nt(e,t,n){return t!=null&&t.length&&typeof e=="object"?t.reduce(function(r,i){var o=window.Headers&&e instanceof Headers?e.get(i):e[i];return o?r+(r===""?"":`
|
|
9
|
+
|
|
10
|
+
`)+n+" header "+i+": "+o:r},""):""}function Tt(e,t){return e&&["null","undefined"].indexOf(e)===-1?t+": "+e:""}function an(o,t,n){t===void 0&&(t="");var r,i,o=typeof((i=o.api)==null?void 0:i.resourceTypeHandler)=="function"?(i=o.api)==null?void 0:i.resourceTypeHandler(n):"";return fi.indexOf(o)===-1&&(r=t===void 0?"":t,i=(n===void 0?"":n).split("?")[0],o=gi.test(i)||mi.some(function(a){return String(r).indexOf(a)!==-1})?"static":"fetch"),o}function ar(e,t){return e?S.AJAX_ERROR:t?S.RET_ERROR:S.API_RESPONSE}function sr(e,t,n){var r,i;if(!e)return!1;if((r=t?.api)!=null&&r.isSlowApi&&typeof((r=t?.api)==null?void 0:r.isSlowApi)=="function")try{return(i=t?.api)==null?void 0:i.isSlowApi(n||{duration:e})}catch(o){return console.warn("[Aegis] isSlowApi function happen error:",o,", this data will not be reported."),!1}return(r=t?.api)!=null&&r.apiSlowThreshold&&typeof((i=t?.api)==null?void 0:i.apiSlowThreshold)=="number"?e>((n=t?.api)==null?void 0:n.apiSlowThreshold):1e3<e}function Ot(e,t){return(e=e.api)!=null&&e.usePerformanceTiming&&typeof t.url=="string"&&(e=(e=performance.getEntriesByName(t.url))==null?void 0:e.pop(),e)?{url:t.url,isHttps:yt(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:vt(e.domainLookupEnd-e.domainLookupStart),connectTime:vt(e.connectEnd-e.connectStart)}:{url:t.url,isHttps:yt(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:Ze.number,connectTime:Ze.number}}function lr(){return window.location.href}function Li(e){return(e=(t=>{var n="",r=t.nodeType;if(r===1||r===9||r===11){if(typeof t.textContent=="string")return t.textContent;for(var i=t.firstChild;i;i=i.nextSibling)n+=Er(t)}else if(r===3||r===4)return t.nodeValue;return n})(e))?e.replace(/^\s+|\s+$/g,""):""}var ur,cr,sn,ln,Y,xt,Pt,Ee,rt,fr,Lt,je,dr,un,cn,hr,fn,dn,pr=!(R.isIE=function(){return"ActiveXObject"in window}),Se=[],mr=/^\/[^/]/,gr=!1,le=[],qe={maxRetryCount:10,retryInterval:function(e){return 1e3*(2<<e)},whenRetryEndStillFail:"discard",maxStorageCount:50},Ci=(new A({name:"reportApiSpeed"}),new A({name:"reportApiSpeed",override:!1,onNewAegis:function(e){var t,n;this.override||(this.override=!0,(n=e.config.api)!=null&&n.injectTraceHeader&&(this.traceRequestHeader=new Ti(n.injectTraceHeader,(t=n?.injectTraceIgnoreUrls)!=null?t:[],n?.injectTraceUrls,n?.traceFlag)),this.overrideFetch(e.config,e),this.overrideXhr(e.config,e))},getFromParam:function(e){return e.getCurrentPageUrl()},overrideFetch:function(e,t){var n=this,r=e.api,r={name:this.name,traceRequestHeader:r!=null&&r.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return n.getFromParam(t)},then:function(a,s,u,l,c,f,h){var d,p;He(u,e.hostUrl)||(d=a.headers?a.headers.get("content-type"):"",(p=an(e,d||"",u))==="fetch"?a.clone().text().then(function(m){var g,b=a.status<=0||400<=a.status,P=((P=e.api)==null?void 0:P.reqHeaders)||[],y=nt(l?.headers,P,"req"),P=((P=e.api)==null?void 0:P.resHeaders)||[],w=nt(a.headers,P,"res"),v=nn(l?.headers),P=Wn(m,e.api,{url:u,ctx:a,payload:l?.body}),T=P.code,I=P.isErr,P=(P=e.api)==null?void 0:P.apiDetail,C=P?et(l?.body,(g=e.api)==null?void 0:g.reqParamHandler,{url:u}):"",M=P?et(m,(g=e.api)==null?void 0:g.resBodyHandler,{url:u,ctx:a}):"";setTimeout(function(){var U=Ot(e,{url:u,duration:s,type:p,status:a.status||0,method:l?.method||"get"}),V=[b?"FETCH_ERROR: "+m:"","fetch req url: "+u,"res status: "+(U.status||0),"res duration: "+U.duration+"ms","res startTime: "+c,y,w,"req method: "+(U.method||"GET"),"res retcode: "+T,Tt(C,"req param"),Tt(M,"res data")].filter(function(_){return _}).join(`
|
|
11
|
+
|
|
12
|
+
`),V=(U.payload=l?.body,U.ret=T,U.isErr=+I,U.from=f||n.getFromParam(t),{msg:V,code:T,trace:v,errorMsg:"",from:f||n.getFromParam(t),originFrom:h,level:S.API_RESPONSE}),N=e.slowApiLog&&sr(U?.duration,e,U);V.level=N?S.SLOW_NET_REQUEST:ar(b,I),(N||V.level!==S.API_RESPONSE||t.isWhiteList||(N=(N=t.config)==null?void 0:N.api)!=null&&N.reportRequest)&&n.publishNormalLog(V,t),n.publishSpeed(U,t)},0)}).catch(function(m){console.info("ignore something error when process resp "+m)}):setTimeout(function(){var m=Ot(e,{url:u,duration:s,type:p,status:a.status||0,method:l?.method||"get"});m.type="static",m.urlQuery=Fe(u,!0),m.from=f||n.getFromParam(t),n.publishSpeed(m,t)},0))},catch:function(a,s,u,l,c,f,h){var d,p,m,g,b;throw He(u,e.hostUrl)||(d=an(e,"",u),p=((p=e.api)==null?void 0:p.reqHeaders)||[],m=nt(l?.headers,p,"req"),g=nn(l?.headers),b=(p=e.api)!=null&&p.apiDetail?et(l?.body,(p=e.api)==null?void 0:p.reqParamHandler,{url:u}):"",setTimeout(function(){var y=Ot(e,{url:u,duration:s,type:d,status:0,method:l?.method||"get"}),y=(y.from=f||n.getFromParam(t),n.publishSpeed(y,t),"AJAX_ERROR: "+a+`
|
|
13
|
+
|
|
14
|
+
req url: `+u+`
|
|
15
|
+
|
|
16
|
+
res status: 0
|
|
17
|
+
|
|
18
|
+
res duration: `+y.duration+`ms
|
|
19
|
+
|
|
20
|
+
req method: `+(l?.method||"get")+`
|
|
21
|
+
|
|
22
|
+
req param: `+b+`
|
|
23
|
+
|
|
24
|
+
res startTime: `+c+`
|
|
25
|
+
|
|
26
|
+
`+m);n.publishNormalLog({msg:y,level:S.AJAX_ERROR,code:-400,trace:g,errorMsg:"",from:f||n.getFromParam(t),originFrom:h},t)},0)),a}},i=(this.hackFetchOptions=r,this.hackFetchOptions),o=(r=e.api)==null?void 0:r.ignoreHackReg;if(o===void 0&&(o=/\.flv(\?|$)/i),le.find(function(a){return a.name===i.name}))throw new Error("name '"+i.name+"' is already in hackFetch option list");le.push(i),!gr&&window.fetch&&(gr=!0,ln=window.fetch,window.fetch=function(a,s){s===void 0&&(s={});var u=typeof a=="string"?a:a?.url;if((h=o?.test)!=null&&h.call(o,u))return ln(u,s);mr.test(u)&&(u=""+location.origin+u);var l,c,f,h=(i||{}).traceRequestHeader;h&&(l=(l=(s||{}).headers)===void 0?{}:l,c=(f=or()).host,c=(h=h.generate(u,l,{host:c,pathname:f.pathname})||{}).name,f=h.value)&&c&&(s.headers=Object.assign(l,((h={})[c]=f,h)));for(var d=new Map,p=window.location.href,m=0;m<le.length;m++){var g=le[m];try{typeof g.beforeFetch=="function"&&g.beforeFetch(u,s),typeof g.getCurrentFrom=="function"&&d.set(g.name,g.getCurrentFrom())}catch{}}var b=Date.now();return ln(a,s).then(function(y){for(var w=y.clone(),v=0;v<le.length;v++){var T=le[v];try{typeof T.then=="function"&&T.then(w,Date.now()-b,u,s,b,d.get(T.name),p)}catch{}}return w}).catch(function(y){for(var w=0;w<le.length;w++){var v=le[w];try{typeof v.catch=="function"&&v.catch(y,Date.now()-b,u,s,b,d.get(v.name),p)}catch{}}throw y})})},overrideXhr:function(e,t){var n,r=this,i={name:this.name,ignoreHackReg:(i=e.api)==null?void 0:i.ignoreHackReg,traceRequestHeader:(i=e.api)!=null&&i.injectTraceHeader?this.traceRequestHeader:null,getCurrentFrom:function(){return r.getFromParam(t)},send:function(o,a,s,u){var l,c,f=Date.now(),h=((e?.api||{}).injectTraceHeader&&(c=(l=or()).host,l=(c=r.traceRequestHeader.generate(o.aegisUrl,{},{host:c,pathname:l.pathname})||{}).name,c=c.value,l)&&c&&o.setRequestHeader(l,c),o.addEventListener("loadend",function(){var m,g,b,y,w=o.aegisUrl||"";He(w,e.hostUrl)||o.failType==="abort"||(m="",(o.failType||!o.status||400<=o.status)&&(m=o.failType||"failed"),g=Date.now()-f,b=o.getResponseHeader("content-type")||"",y=an(e,b,w),setTimeout(function(){var v=Ot(e,{url:w,duration:g,type:y,status:o.status,method:o.aegisMethod||"get"});if(v.from=s||r.getFromParam(t),y==="fetch"){var M=((M=e.api)==null?void 0:M.reqHeaders)||[],T=nt(o.aegisXhrReqHeader,M,"req"),M=((M=e.api)==null?void 0:M.resHeaders)||[],I=o.getAllResponseHeaders().split(`\r
|
|
27
|
+
`).reduce(function(N,_){return _=_.split(": "),_[0]&&_[1]&&(N[_[0]]=_[1]),N},{}),P=nt(I,M,"res"),C=nn(o.aegisXhrReqHeader),M=(I=e.api)==null?void 0:I.apiDetail,U=M?et(a,(I=e.api)==null?void 0:I.reqParamHandler,{url:w}):"",V=M?et(o.response,(I=e.api)==null?void 0:I.resBodyHandler,{url:w}):"";try{((N,_,H,B)=>{var Oe,$e,$;try{if(typeof _?.retCodeHandlerAsync=="function")return _.retCodeHandlerAsync(N,H?.url,H?.ctx,function(X){var xe=X.code;B?.({code:xe===void 0?J:xe,isErr:X.isErr})});if(typeof _?.retCodeHandler=="function")return $=($e=_.retCodeHandler(N,H?.url,H?.ctx,H?.payload)||{}).code,B!=null&&B({code:$===void 0?J:$,isErr:$e.isErr});if(!(N=typeof N=="string"?JSON.parse(N):N))return B!=null&&B({code:J,isErr:!1});typeof((Oe=_?.ret)==null?void 0:Oe.join)=="function"&&(bt=[].concat(_.ret.map(function(X){return X.toLowerCase()})));var ut=Object.getOwnPropertyNames(N).filter(function(X){return bt.indexOf(X.toLowerCase())!==-1});if(ut.length)return($=N[ut[0]])!=="未知"&&$!==""||($=J),B!=null&&B({code:""+$,isErr:$!==0&&$!=="0"&&$!==J});B?.({code:J,isErr:!1})}catch{B?.({code:J,isErr:!1})}})(o.response,e.api,{url:w,ctx:o,payload:a},function(H){var _=H.code,H=H.isErr,B=[m?"AJAX_ERROR: request "+m:"","fetch req url: "+w,"res status: "+(v.status||0),"res duration: "+v.duration+"ms","res startTime: "+f,T,P,"req method: "+(v.method||"GET"),"res retcode: "+_,Tt(U,"req param"),Tt(V,"res data")].filter(function(Oe){return Oe}).join(`
|
|
28
|
+
|
|
29
|
+
`);v.ret=_,v.isErr=+H,v.payload=a,e.slowApiLog&&sr(v?.duration,e,v)?r.publishNormalLog({msg:B,level:S.SLOW_NET_REQUEST,code:_,trace:C,errorMsg:"",from:s||r.getFromParam(t),originFrom:u},t):r.publishNormalLog({msg:B,level:ar(!!m,H),code:_,trace:C,errorMsg:"",from:s||r.getFromParam(t),originFrom:u},t),r.publishSpeed(v,t)})}catch{v.ret=J,r.publishSpeed(v,t)}}else v.type="static",v.urlQuery=Fe(w,!0),r.publishSpeed(v,t);o.removeEventListener("abort",h),o.removeEventListener("error",d),o.removeEventListener("timeout",p)},0))}),function(){o.failType="abort"}),d=function(){o.failType="error"},p=function(){o.failType="timeout"};o.addEventListener("abort",h),o.addEventListener("error",d),o.addEventListener("timeout",p)}};this.hackXHROptions=i,n=this.hackXHROptions,Se.find(function(o){return o.name===n.name})||(Se.push(n),!pr&&window.XMLHttpRequest&&(ur=window.XMLHttpRequest.prototype.send,cr=window.XMLHttpRequest.prototype.open,sn=window.XMLHttpRequest.prototype.setRequestHeader,pr=!0,window.XMLHttpRequest.prototype.open=function(){this.aegisMethod=arguments[0];var o,a=arguments[1];if(mr.test(a)&&(a=""+location.origin+a),this.aegisUrl=a,(a=(o=n.ignoreHackReg)==null?void 0:o.test)==null||!a.call(o,this.aegisUrl))if(this.aegisXhrStartTime=Date.now(),this.sendByAegis)R.isIE()||(this.timeout=5e3);else for(var s=0;s<Se.length;s++){var u=Se[s];try{typeof u.open=="function"&&u.open(this)}catch{}}return cr.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var o,a,s;return(a=(s=n.ignoreHackReg)==null?void 0:s.test)!=null&&a.call(s,this.aegisUrl)?sn.apply(this,arguments):(a=arguments[0],s=arguments[1],this.aegisXhrReqHeader=(o=this.aegisXhrReqHeader)!=null?o:{},n!=null&&n.traceRequestHeader&&-1<["traceparent","b3","sw8","sentry-trace"].indexOf(a)&&(this.aegisXhrReqHeader[a]||(arguments[1]=s),this.aegisXhrReqHeader[a])?void 0:(this.aegisXhrReqHeader[a]=arguments[1],sn.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var o,a;if(!((a=(o=n.ignoreHackReg)==null?void 0:o.test)!=null&&a.call(o,this.aegisUrl)||this.sendByAegis))for(var s=0;s<Se.length;s++){var u=Se[s];try{typeof u.send=="function"&&u.send(this,arguments[0],typeof u.getCurrentFrom=="function"?u.getCurrentFrom():void 0,window.location.href)}catch{}}return ur.apply(this,arguments)}))},publishSpeed:function(e){var t=this;this.$walk(function(n){var r=t.$getConfig(n);e.type!=="fetch"||typeof r?.urlHandler!="function"?(e.url=Fe(e.url),n.speedLogPipeline(e)):n.speedLogPipeline(O(O({},e),{url:Fe(r.urlHandler(e.url,e.payload))}))})},publishNormalLog:function(e){this.$walk(function(t){t.normalLogPipeline(e)})},destroy:function(){var e,t,n;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(e=this.option.hackXHROptions,(n=Se.findIndex(function(r){return r.name===e.name}))!==-1)&&Se.splice(n,1),this.option.hackFetchOptions&&(t=this.option.hackFetchOptions,(n=le.findIndex(function(r){return r.name===t.name}))!==-1)&&le.splice(n,1),this.option.override=!1}})),it={},ki=new A({name:"reportBridgeSpeed",override:!1,onNewAegis:function(e){this.override||(this.override=!0,this.overrideBridge(e))},getFromParam:function(e){return e.getCurrentPageUrl()},publishSpeed:function(e,t){this.$walk(function(n){n===t&&n.speedLogPipeline(e)})},overrideBridge:function(e){var t=this,n=e.config;n.reportBridgeSpeed&&n.h5Bridge&&n.h5BridgeFunc.length&&n.h5BridgeFunc.forEach(function(r){var i=n.h5Bridge[r];it[r]=i,n.h5Bridge[r]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=o[0],u=o[1],l=o[2],c=o[3],f=Date.now(),h=t.getFromParam(e);i(s,u,l,function(d){var p=Wn(d,n.api),m=p.code,p=p.isErr,m={url:s+"-"+u,name:s+"-"+u,duration:Date.now()-f,type:"bridge",ret:m,isErr:+p,from:h};t.publishSpeed(m,e),c(d)})}})},unHackBridge:function(e){Object.keys(it).forEach(function(t){it[t]&&(e.config.h5Bridge[t]=it[t])}),it={}},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}}),k=((k=Y=Y||{})[k.unknown=100]="unknown",k[k.wifi=1]="wifi",k[k.net2g=2]="net2g",k[k.net3g=3]="net3g",k[k.net4g=4]="net4g",k[k.net5g=5]="net5g",k[k.net6g=6]="net6g",(k=xt=xt||{})[k.android=1]="android",k[k.ios=2]="ios",k[k.windows=3]="windows",k[k.macos=4]="macos",k[k.linux=5]="linux",k[k.other=100]="other",(k=Pt=Pt||{})[k.unknown=100]="unknown",k[k.normal=0]="normal",k[k.weak=1]="weak",k[k.disconnected=2]="disconnected",new A({name:"device",onNewAegis:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",Y.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var e={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},t=Object.keys(e).find(function(n){return e[n].test(navigator.userAgent)});return t?xt[t]:xt.other},refreshNetworkTypeToBean:function(e){var t=this,n=e.config;n&&(typeof n.getNetworkType=="function"?n.getNetworkType:vr)(function(r){Y[r]||(r=Y.unknown),e.extendBean("netType",r),t.NetworkRefreshTimer=setTimeout(function(){t.refreshNetworkTypeToBean(e),clearTimeout(t.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(e){var t,n=this,r=e.config;r&&(t=typeof r.getNetworkStatus=="function"?r.getNetworkStatus:t)!=null&&t(function(i){Pt[i]===void 0&&(i=Pt.unknown),e.extendBean("netStatus",i),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(e),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}})),vr=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||J,0<=(n=String(n).toLowerCase()).indexOf("4g")?Y.net4g:0<=n.indexOf("wifi")?Y.wifi:0<=n.indexOf("5g")?Y.net5g:0<=n.indexOf("6g")?Y.net6g:0<=n.indexOf("3g")?Y.net3g:0<=n.indexOf("2g")?Y.net2g:Y.unknown))},Ii=window.WebSocket,ge=[],Ai={construct:function(e,t){var n=new e(t[0],t[1]);return n.originSend=n.send,n.addEventListener("error",function(i){var i=i?.currentTarget||{},o=i.url,a=i.readyState;ge?.forEach(function(s){s=s.onErr,s?.({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:a,connectUrl:o})})}),Object.defineProperty(n,"send",{get:function(){return function(r){(i=n.originSend)!=null&&i.call(n,r);var i=n.readyState;if(i!==WebSocket.OPEN){var o={readyState:i,connectUrl:n.url};switch(i){case WebSocket.CLOSED:ge.forEach(function(a){a=a.sendErr,a?.(O({msg:"消息发送失败,连接已关闭!"},o))});break;case WebSocket.CONNECTING:ge.forEach(function(a){(0,a.sendErr)(O({msg:"消息发送失败,正在连接中!"},o))});break;case WebSocket.CLOSING:ge.forEach(function(a){(0,a.sendErr)(O({msg:"消息发送失败,连接正在关闭!"},o))})}}}}}),n}},yr=new A({name:"onError"}),Mi=yr=new A({name:"onError",onNewAegis:function(e){this.startListen(e)},getFromParam:function(e){return e.getCurrentPageUrl()},startListen:function(e){function t(l){var c,f=l&&pe(l.reason);f&&s.publishErrorLog({msg:"PROMISE_ERROR: "+f,errorMsg:(c=(l=((c=l.reason)==null?void 0:c.message)||((c=l.reason)==null?void 0:c.errMsg)||f)==null?void 0:l.slice)==null?void 0:c.call(l,0,150),level:S.PROMISE_ERROR,from:s.getFromParam(e),originFrom:e.getOriginFrom()},e)}function n(l){var c;if(l=l?.target||l?.srcElement){var f=l.src||l.href||"",h=l.tagName,h=(h===void 0?"script":h).toLowerCase(),d=["audio","video"].includes(h);if(!d||l!=null&&l.error){if(!(He(c=f,e.config.hostUrl)||-1<window.location.href.indexOf(c))){var p={msg:h+" load fail: "+f+" "+(d?`
|
|
30
|
+
|
|
31
|
+
error code: `+((c=l?.error)==null?void 0:c.code)+(((d=l?.error)==null?void 0:d.message)!==""?`
|
|
32
|
+
error msg: `+((c=l?.error)==null?void 0:c.message):""):""),level:S.INFO,from:s.getFromParam(e),originFrom:e.getOriginFrom()};if(/\.js$/.test(f))p.level=S.SCRIPT_ERROR;else if(/\.css$/.test(f))p.level=S.CSS_ERROR;else switch(h){case"script":p.level=S.SCRIPT_ERROR;break;case"link":p.level=S.CSS_ERROR;break;case"img":p.level=S.IMAGE_ERROR;break;case"audio":case"video":p.level=S.MEDIA_ERROR;break;default:return}s.publishErrorLog(p,e)}}else console.log("may be media load success because error is undefine")}}var r,i,o,a,s=this,u=window.onerror;window.onerror=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var f,h=pe(l[0]);typeof(f=h)!="string"||!f||ci.some(function(d){return-1<f.indexOf(d)})||Un.some(function(d){return-1<f.indexOf(d)})||s.publishErrorLog({msg:(h||"")+" @ ("+(pe(l[1])||"")+":"+(l[2]||0)+":"+(l[3]||0)+`)
|
|
33
|
+
|
|
34
|
+
`+pe(l[4]||""),level:S.ERROR,from:s.getFromParam(e),originFrom:e.getOriginFrom()},e),u?.call.apply(u,G([window],l))},window.addEventListener("unhandledrejection",t),window.document.addEventListener("error",n,!0),e.lifeCycle.on("destroy",function(){yr.countInstance()===0&&(window.document.removeEventListener("unhandledrejection",t),window.document.removeEventListener("error",n,!0))}),e.config.websocketHack&&(r={key:e.config.id+"-"+this.name,onErr:function(l){var c;(c=s.publishWsErrorLog)!=null&&c.call(s,l,e)},sendErr:function(l){var c;(c=s.publishWsErrorLog)!=null&&c.call(s,l,e)}},this.hackWebsocketConfig=r,r=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(i=window.WebSocket,window&&!i.isHack&&(o=new Proxy(WebSocket,Ai),i.isHack=!0,window.WebSocket=o),a=r,ge.find(function(l){return l.key===a.key})||a&&ge.push(a))},publishErrorLog:function(e,t){this.$walk(function(n){n===t&&n.normalLogPipeline(e)})},publishWsErrorLog:function(e,t){var n=e.connectUrl;this.publishErrorLog({msg:`WEBSOCKET_ERROR:
|
|
35
|
+
connect: `+n+`
|
|
36
|
+
readyState: `+e.readyState+`
|
|
37
|
+
msg: `+e.msg,level:S.WEBSOCKET_ERROR,from:this.getFromParam(t),originFrom:t.getOriginFrom()},t)},destroy:function(){var e,t;this.option.publishErrorLog=function(){},this.option.hackWebsocketConfig&&(e=this.option.hackWebsocketConfig,window.WebSocket=Ii,(t=ge.findIndex(function(n){return n.key===e.key}))!==-1)&&ge.splice(t,1)}}),wr=(new A({name:"clickElementLog"}),function(e){if(e.id!==""&&e.id)return'id("'+e.id+'")';if(e===document.body)return e.tagName;if(e instanceof Document)return"document";var t=0;if(e.parentNode)for(var n=e.parentNode.childNodes,r=0;r<n.length;r+=1){var i=n[r];if(i===e)return wr(e.parentNode)+"/"+e.tagName+"["+(t+1)+"]";i.nodeType===1&&i.tagName===e.tagName&&(t+=1)}return 0}),br=function(e){return e instanceof Array?new Map(e.map(function(t){return[t,!0]})):new Map},Ct=function(e,t){return typeof e=="string"?e.split(t):[]},Er=function(e){if(e.nodeType===3||e.nodeType===4)return e.nodeValue||"";if(e.nodeType!==1)return"";if(typeof e.textContent=="string")return e.textContent;for(var t="",n=e.firstChild;n;n=n.nextSibling)t+=Er(n);return t},Ni=new A({name:"clickElementLog",listeners:[],onNewAegis:function(e){this.startListen(e)},startListen:function(e){for(var t=function(o){n.listeners.push(((a,s,u,l)=>{function c(f){var h=document.documentElement;h&&u.call(h,f,f.target)}return a.addEventListener(s,c,l),{destroy:function(){a.removeEventListener(s,c,l)}}})(document,o,function(a,s){var u,l,c;s&&!((f,h)=>{d=br(((d=(f=f).ignoreElements)==null?void 0:d.ignoreClasses)||[])||new Map;for(var d,p=(f={ignoreIds:br(((f=f.ignoreElements)==null?void 0:f.ignoreIds)||[])||new Map,ignoreClasses:d}).ignoreClasses,m=f.ignoreIds,g=!(m.size===0&&p.size===0),b=h,y=(Ct(h.getAttribute("id")||""," "),Ct(h.getAttribute("class")||"",""),0),w=!1;b&&g&&b.getAttribute;){if(w)return!0;if(10<=y)break;for(var v=Ct(b.getAttribute("id")||""," "),T=Ct(b.getAttribute("class")||"",""),I=0,P=v;I<P.length;I++){var C=P[I];if(m.has(C)){w=!0;break}}for(var M=0,U=T;M<U.length;M++){var V=U[M];if(p.has(V)){w=!0;break}}y+=1,b=b.parentNode||b.parentElement}return!1})(e.config,s)&&(u=wr(s),l=Li(s),c=s.getBoundingClientRect&&s.getBoundingClientRect(),s={op:o,view_type:s?.nodeName||"",view_text:l.slice(0,127),view_tag:u,page:lr(),page_id:lr(),view_pos:{p0:(parseInt(String(c.left),10)||-1)+","+(parseInt(String(c.top),10)||-1),p1:(parseInt(String(c.left+window.scrollX),10)||-1)+","+(parseInt(String(c.top+window.scrollY),10)||-1)}},e.normalLogPipeline({msg:s,level:S.CLICK_EVENT,errorMsg:"",originFrom:e.getOriginFrom()}))},!0))},n=this,r=0,i=Object.entries({click:1,longpress:2});r<i.length;r++)t(i[r][0])},destroy:function(){this.listeners.forEach(function(e){return e.destroy()}),this.listeners=[]}}),kt=(new A({name:"consoleLog"}),{log:console.log,error:console.error,warn:console.warn,info:console.info,debug:console.debug,trace:console.trace}),_i=new A({name:"consoleLog",onNewAegis:function(e){this.startListen(e)},startListen:function(e){var t;t=e,["log","error","warn","info","debug","trace"].forEach(function(n){var r=kt[n];console[n]=function(){for(var i,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];try{r.apply(console,o),!t.isWhiteList&&["log","info","debug","trace"].includes(n)||(i=o.map(function(s){if(typeof s=="object"&&s!==null)try{return JSON.stringify(s)}catch{}return String(s)}).join(" "),t.normalLogPipeline({msg:"method: console."+n+`
|
|
38
|
+
message: `+i,level:S.CONSOLE_LOG,errorMsg:"",originFrom:t.getOriginFrom()}))}catch(s){kt.error("Console hook error:",s)}}})},destroy:function(){Object.keys(kt).forEach(function(e){console[e]=kt[e]})}});function Sr(){Lt=[],rt=-1,Ee=null,fn(addEventListener)}je={passive:!0,capture:!0},dr=new Date,un=function(e,t){Ee||(Ee=t,rt=e,fr=new Date,fn(removeEventListener),cn())},cn=function(){var e;0<=rt&&rt<fr-dr&&(e={entryType:"first-input",name:Ee.type,target:Ee.target,cancelable:Ee.cancelable,startTime:Ee.timeStamp,processingStart:Ee.timeStamp+rt},Lt.forEach(function(t){t(e)}),Lt=[])},hr=function(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,e.type=="pointerdown"?(n=t,r=e,i=function(){un(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,je),removeEventListener("pointercancel",o,je)},addEventListener("pointerup",i,je),addEventListener("pointercancel",o,je)):un(t,e))},fn=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,hr,je)})},dn=document.visibilityState==="hidden"?0:1/0,addEventListener("visibilitychange",function e(t){document.visibilityState==="hidden"&&(dn=t.timeStamp,removeEventListener("visibilitychange",e,!0))},!0),Sr(),self.webVitals={firstInputPolyfill:function(e){Lt.push(e),cn()},resetFirstInputPolyfill:Sr,get firstHiddenTime(){return dn}};function ue(e,t){var n=Lr(),r="navigate";return 0<=Pr?r="back-forward-cache":n&&(document.prerendering||0<yn()?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}}function We(e,t,n){try{var r;if(PerformanceObserver.supportedEntryTypes.includes(e))return(r=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})})).observe(Object.assign({type:e,buffered:!0},n||{})),r}catch{}}function ce(e,t,n,r){var i,o;return function(a){0<=t.value&&(a||r)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=(a=t.value)>n[1]?"poor":a>n[0]?"needs-improvement":"good",e(t))}}function hn(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})}function It(e){function t(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)}addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)}function pn(e){var t=!1;return function(n){t||(e(n),t=!0)}}function mn(){return Ge<0&&(Ge=Cr(),kr(),ze(function(){setTimeout(function(){Ge=Cr(),kr()},0)})),{get firstHiddenTime(){return Ge}}}function At(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()}function Rr(e,t){t=t||{},At(function(){var n,r=mn(),i=ue("FCP"),o=We("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<r.firstHiddenTime)&&(i.value=Math.max(s.startTime-yn(),0),i.entries.push(s),n(!0))})});o&&(n=ce(e,i,Ir,t.reportAllChanges),ze(function(a){i=ue("FCP"),n=ce(e,i,Ir,t.reportAllChanges),hn(function(){i.value=performance.now()-a.timeStamp,n(!0)})}))})}function Fi(e){var t,n,r,i,o,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,e.type=="pointerdown"?(n=t,r=e,i=function(){Mr(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,at),removeEventListener("pointercancel",o,at)},addEventListener("pointerup",i,at),addEventListener("pointercancel",o,at)):Mr(t,e))}function Hi(e){e.forEach(function(t){t.interactionId&&(wn=Math.min(wn,t.interactionId),Ht=Math.max(Ht,t.interactionId),Hr=Ht?(Ht-wn)/7+1:0)})}function Tr(){return Ur()-jr}function Or(e){var t=de[de.length-1],n=bn[e.interactionId];(n||de.length<10||e.duration>t.latency)&&(n?(n.entries.push(e),n.latency=Math.max(n.latency,e.duration)):(t={id:e.interactionId,latency:e.duration,entries:[e]},bn[t.id]=t,de.push(t)),de.sort(function(r,i){return i.latency-r.latency}),de.splice(10).forEach(function(r){delete bn[r.id]}))}function gn(e,t){function n(i,o,a,s){function u(l){i==="visibilitychange"&&document.visibilityState!=="hidden"||(s?setTimeout(function(){return o(l)},s):o(l),a&&removeEventListener(i,u,!0))}addEventListener(i,u,!0)}var r;n("visibilitychange",e,t?.once,(r=t?.delay)==null?void 0:r.visibilitychange),n("pagehide",e,t?.once,(r=t?.delay)==null?void 0:r.pagehide),n("beforeunload",e,t?.once,(r=t?.delay)==null?void 0:r.beforeunload)}function Be(e){var t=e.name;0<(e=e.value)&&(Te[t]=e)}function fe(e,t,n,r){return n===void 0&&(n=15e3),r===void 0&&(r=0),(t=t===void 0?0:t)<=e&&e<=n?e:r}function Mt(e,t){t===void 0&&(t=[]);try{var n=localStorage.getItem(e);if(n!=null){var r=JSON.parse(n);if(Array.isArray(t)&&!Array.isArray(r))try{localStorage.removeItem(e)}catch{}else{if(Array.isArray(t)||typeof t!="object"||t===null||typeof r=="object"&&r!==null&&!Array.isArray(r))return r;try{localStorage.removeItem(e)}catch{}}}return t}catch{try{localStorage.removeItem(e)}catch{}return t}}function Nt(e,t){try{localStorage.setItem(e,t)}catch{}}var Re,ot,xr,_t,vn,ke,Pr=-1,ze=function(e){addEventListener("pageshow",function(t){t.persisted&&(Pr=t.timeStamp,e(t))},!0)},Lr=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},yn=function(){var e=Lr();return e&&e.activationStart||0},Ge=-1,Cr=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ft=function(e){document.visibilityState==="hidden"&&-1<Ge&&(Ge=e.type==="visibilitychange"?e.timeStamp:0,Ui())},kr=function(){addEventListener("visibilitychange",Ft,!0),addEventListener("prerenderingchange",Ft,!0)},Ui=function(){removeEventListener("visibilitychange",Ft,!0),removeEventListener("prerenderingchange",Ft,!0)},Ir=[1800,3e3],Ar=[.1,.25],at={passive:!0,capture:!0},Di=new Date,Mr=function(e,t){Re||(Re=t,ot=e,xr=new Date,_r(removeEventListener),Nr())},Nr=function(){var e;0<=ot&&ot<xr-Di&&(e={entryType:"first-input",name:Re.type,target:Re.target,cancelable:Re.cancelable,startTime:Re.timeStamp,processingStart:Re.timeStamp+ot},_t.forEach(function(t){t(e)}),_t=[])},_r=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,Fi,at)})},Fr=[100,300],Hr=0,wn=1/0,Ht=0,Ur=function(){return vn?Hr:performance.interactionCount||0},Dr=[200,500],jr=0,de=[],bn={},qr=[2500,4e3],En={},ji=(Ie.prototype.start=function(){var e=this,t=new PerformanceObserver(function(n){n=n.getEntriesByName("first-contentful-paint"),0<n.length&&(e.fcp=n[0].startTime,e.slientWindowStartTime=e.fcp,t.disconnect(),setTimeout(function(){e.checkTTI()},Math.max(e.slienceTimeInterval-(performance.now()-e.fcp)+20,1)))});t.observe({entryTypes:["paint"]}),this.longtaskObserver=new PerformanceObserver(function(n){n=n.getEntries(),e.longTaskEntries=e.longTaskEntries.concat(n)}),this.longtaskObserver.observe({entryTypes:["longtask"]}),this.resourceObserver=new PerformanceObserver(function(n){n=n.getEntries(),e.resourceEntries=e.resourceEntries.concat(n)}),this.resourceObserver.observe({entryTypes:["resource"]})},Ie.prototype.checkTTI=function(){var e=this;this.hasSlientWindow()?(this.calculateTTI(),this.longtaskObserver.disconnect(),this.resourceObserver.disconnect()):setTimeout(function(){e.checkTTI()},this.checkInterval)},Ie.prototype.hasSlientWindow=function(){var e,t=performance.now();return!(t-this.slientWindowStartTime<5e3||((e=this.getLastLongTaskEndTime())>this.slientWindowStartTime?(this.slientWindowStartTime=e,this.resourceEntries=[]):this.getRequestCount(this.slientWindowStartTime,t)<=2?(this.lastLongtaskEndTime=e,0):(t=this.resourceEntries.sort(function(n,r){return n.startTime-r.startTime}),this.slientWindowStartTime=t[this.resourceEntries.length-2].startTime,1)))},Ie.prototype.getLastLongTaskEndTime=function(){var e;return this.longTaskEntries.length===0?-1:(e=0,this.longTaskEntries.forEach(function(t){t.startTime+t.duration>e&&(e=t.startTime+t.duration)}),e)},Ie.prototype.getRequestCount=function(e,t){var n=0;return this.resourceEntries.forEach(function(r){r.startTime>=e&&r.startTime+r.duration<=t&&(n+=1)}),n},Ie.prototype.calculateTTI=function(){var t=this.lastLongtaskEndTime===-1?this.slientWindowStartTime:this.lastLongtaskEndTime,e=performance.timing.domContentLoadedEventEnd-performance.timing.navigationStart,t=Math.max(e,t);this.onTTICallback(t)},Ie),Te=(new A({name:"webVitals"}),{FCP:-1,LCP:-1,FID:-1,CLS:-1,INP:-1,TTI:-1,from:void 0}),Sn=new Map,qi=new A({name:"webVitals",onNewAegis:function(e){var t,n,r,i,o,a,s,u,l,c,f=this;if(tt()&&typeof window.PerformanceObserver=="function"&&typeof performance.getEntriesByName=="function")try{Sn.set(e,{isWebVitalsReported:!1,hasFirstEntry:!1,custom:null}),Rr(Be),l=Be,c={},At(function(){function h(y){(y=y[y.length-1])&&y.startTime<m.firstHiddenTime&&(g.value=Math.max(y.startTime-yn(),0),g.entries=[y],d())}var d,p,m=mn(),g=ue("LCP"),b=We("largest-contentful-paint",h);b&&(d=ce(l,g,qr,c.reportAllChanges),p=pn(function(){En[g.id]||(h(b.takeRecords()),b.disconnect(),En[g.id]=!0,d(!0))}),["keydown","click"].forEach(function(y){addEventListener(y,function(){return setTimeout(p,0)},!0)}),It(p),ze(function(y){g=ue("LCP"),d=ce(l,g,qr,c.reportAllChanges),hn(function(){g.value=performance.now()-y.timeStamp,En[g.id]=!0,d(!0)})}))}),s=Be,u={},At(function(){function h(y){y.startTime<p.firstHiddenTime&&(m.value=y.processingStart-y.startTime,m.entries.push(y),b(!0))}function d(y){y.forEach(h)}var p=mn(),m=ue("FID"),g=We("first-input",d),b=ce(s,m,Fr,u.reportAllChanges);g&&It(pn(function(){d(g.takeRecords()),g.disconnect()})),g&&ze(function(){m=ue("FID"),b=ce(s,m,Fr,u.reportAllChanges),_t=[],ot=-1,Re=null,_r(addEventListener),_t.push(h),Nr()})}),o=Be,a={},Rr(pn(function(){function h(y){y.forEach(function(w){var v,T;w.hadRecentInput||(v=g[0],T=g[g.length-1],m&&w.startTime-T.startTime<1e3&&w.startTime-v.startTime<5e3?(m+=w.value,g.push(w)):(m=w.value,g=[w]))}),m>p.value&&(p.value=m,p.entries=g,d())}var d,p=ue("CLS",0),m=0,g=[],b=We("layout-shift",h);b&&(d=ce(o,p,Ar,a.reportAllChanges),It(function(){h(b.takeRecords()),d(!0)}),ze(function(){p=ue("CLS",m=0),d=ce(o,p,Ar,a.reportAllChanges),hn(function(){return d()})}),setTimeout(d,0))})),r=Be,i={},At(function(){var h;"interactionCount"in performance||(vn=vn||We("event",Hi,{type:"event",buffered:!0,durationThreshold:0}));function d(b){b.forEach(function(y){y.interactionId&&Or(y),y.entryType!=="first-input"||de.some(function(w){return w.entries.some(function(v){return y.duration===v.duration&&y.startTime===v.startTime})})||Or(y)}),b=Math.min(de.length-1,Math.floor(Tr()/50)),(b=de[b])&&b.latency!==p.value&&(p.value=b.latency,p.entries=b.entries,g())}var p=ue("INP"),m=We("event",d,{durationThreshold:(h=i.durationThreshold)!=null?h:40}),g=ce(r,p,Dr,i.reportAllChanges);m&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&m.observe({type:"first-input",buffered:!0}),It(function(){d(m.takeRecords()),p.value<0&&0<Tr()&&(p.value=0,p.entries=[]),g(!0)}),ze(function(){de=[],jr=Ur(),p=ue("INP"),g=ce(r,p,Dr,i.reportAllChanges)}))}),n=function(h){Be({name:"TTI",value:h})},tt()&&new ji(n).start(),gn(function(){f.tryReport(e,null,"onHidden")},{once:!0,delay:{visibilitychange:10}}),Te.from=(t=e)==null?void 0:t.getCurrentPageUrl()}catch{}},tryReport:function(e,t,n){var r=this;n===void 0&&(n="manual"),this.$walk(function(i){i===e&&(typeof(i=r.$getConfig(e))=="object"&&i.manualReport===!0||n!=="onHidden"?(i=Sn.get(e))&&!i.hasFirstEntry?(i.hasFirstEntry=!0,n==="manual"&&t&&(i.custom=t)):r.doReport(e,i?.custom||t):r.doReport(e,null))})},doReport:function(e,t){var n=Sn.get(e);if(n){if(n!=null&&n.isWebVitalsReported)return;n.isWebVitalsReported=!0}this.$walk(function(r){var i,o;r===e&&(o=O({},Te),t&&Object.keys(t).forEach(function(a){t[a]!=null&&(o[a]=t[a])}),(i=r.sendPipeline)!=null)&&i.call(r,[function(a,s){var u,l=[];for(u in a)u!=="from"&&l.push(u+"="+a[u]);var c=((c=(c=r.config)==null?void 0:c.performanceUrl)==null?void 0:c.indexOf("?"))===-1?"?":"&";s({url:r.config.webVitalsUrl+c+l.join("&"),type:L.VITALS,log:a,sendBeacon:!0})}],L.VITALS)(o)})},publish:function(e,t){this.tryReport(e,t,"manual")},destroy:function(){this.option.publish=function(){}}}),Wr=(new A({name:"pagePerformance"}),3),st=new Map,Wi=new A({name:"pagePerformance",performanceMap:{},onNewAegis:function(e){var t;tt()&&(st.set(e,{isPagePerformanceReported:!1}),ke?this.publish(ke,e):this.startCalcPerformance(e),t=this.publishWhenObHidden.bind(this,e),gn(t,{once:!0}),e.lifeCycle.on("destroy",function(){var n=st.get(e);n&&(n.isPagePerformanceReported=!1)}))},publishWhenObHidden:function(e){var t,n=st.get(e);if(n==null||!n.isPagePerformanceReported){if(n=0,(t=e.firstScreenInfo)!=null&&t.timing)n=e.firstScreenInfo.timing;else if(ir("paint"))try{var r,i=performance.getEntriesByName("first-contentful-paint");i&&0<i.length&&(r=i[0])&&0<r.startTime&&(n=r.startTime)}catch{}(ke=this.buildPerformanceLog(e,n,this.getPageUrl(e),window.location.href))&&this.publish(ke,e,!0)}},buildPerformanceLog:function(e,t,n,r){var i=performance.timing;if(i)return n={from:n,originFrom:r,dnsLookup:fe(i.domainLookupEnd-i.domainLookupStart),tcp:fe(i.connectEnd-i.connectStart),ssl:fe(i.secureConnectionStart===0?0:i.requestStart-i.secureConnectionStart),ttfb:fe(i.responseStart-i.requestStart),contentDownload:fe(i.responseEnd-i.responseStart),domParse:fe(i.domInteractive-i.domLoading,0,15e3,1070),resourceDownload:fe(i.loadEventStart-i.domInteractive,0,15e3,1070),firstScreenTiming:fe(Math.floor(t),0,15e3,15e3)},(r=e.config).extraPerformanceData&&JSON.stringify(r.extraPerformanceData)!=="{}"&&(t=(i=r.extraPerformanceData).engineInit,e=i.bundleLoad,n=O(O({},n),{engineInit:fe(t,0,1e4),bundleLoad:fe(e,0,1e4)})),n},publish:function(e,t,n){var r=this;n===void 0&&(n=!1),this.$walk(function(i){var o,a;i===t&&((o=st.get(i))&&(o.isPagePerformanceReported=!0),a=e.originFrom||window.location.href,e.originFrom&&delete e.originFrom,i.sendPipeline([function(s,u){var l,c,f=[];for(l in s)l!=="from"&&f.push(l+"="+s[l]);if(r.$getConfig(i))return c=((c=i.config.performanceUrl)==null?void 0:c.indexOf("?"))===-1?"?":"&",u({url:i.config.performanceUrl+c+f.join("&"),type:L.PERFORMANCE,log:s,sendBeacon:n})}],L.PERFORMANCE)(O({},e)),setTimeout(function(){var c=["duration: "+(e.dnsLookup+e.tcp+e.ssl+e.ttfb+e.contentDownload+e.domParse+e.resourceDownload)+"ms","firstScreenTiming: "+e.firstScreenTiming+"ms","dnsLookup: "+e.dnsLookup+"ms","tcp: "+e.tcp+"ms","ssl: "+e.ssl+"ms","ttfb: "+e.ttfb+"ms","contentDownload: "+e.contentDownload+"ms","domParse: "+e.domParse+"ms","resourceDownload: "+e.resourceDownload+"ms","lcp: "+Te.LCP+"ms","fid: "+Te.FID+"ms","cls: "+Te.CLS+"ms","fcp: "+Te.FCP+"ms",e.engineInit?"engineInit: "+e.engineInit+"ms":"",e.bundleLoad?"bundleLoad: "+e.bundleLoad+"ms":""].filter(function(f){return f}).join(`
|
|
39
|
+
|
|
40
|
+
`),u=r.$getConfig(i),s=!1;if(typeof u?.isSlowPage=="function")try{s=u?.isSlowPage(e,Te)}catch(f){return void console.warn("[Aegis] isSlowPage function happen error:",f,", this data will not be reported.")}else u!=null&&u.slowPageThreshold&&typeof u.slowPageThreshold=="number"?e.firstScreenTiming>u?.slowPageThreshold&&(s=!0):s=1e3<e.firstScreenTiming;var u=t.config.pageLoadLog,l=t.config.slowPageLoadLog&&s,c={msg:c,ext1:((c=e.firstScreenTiming)==null?void 0:c.toString())||"",level:s?S.SLOW_PAGE_LOAD:S.PAGE_LOAD,errorMsg:"",originFrom:a};(u||l)&&i.normalLogPipeline(c)},3e3))})},getPageUrl:function(e){var t=this.$getConfig(e);return t!=null&&t.urlHandler&&typeof t?.urlHandler=="function"&&(t=t?.urlHandler(),t)?encodeURIComponent(t):e.getCurrentPageUrl()},startCalcPerformance:function(e){var t=this;try{var n=this.getPageUrl(e),r=e.getOriginFrom();this.getFirstScreenTiming(e,function(i){ke=t.buildPerformanceLog(e,i,n,r),i=st.get(e),!ke||i!=null&&i.isPagePerformanceReported||t.publish(ke,e)})}catch{}},getFirstScreenTiming:function(e,t){var n=this;e.lifeCycle.on("destroy",function(){c&&clearTimeout(c)});var r,i=this,o=["script","style","link","br"],a=[],s={},u=(ir("paint")&&(r=new PerformanceObserver(function(f){f.getEntries().forEach(function(h){var d;h.entryType==="paint"&&h.name==="first-contentful-paint"&&0<(d=document.querySelectorAll("[AEGIS-FIRST-SCREEN-TIMING]")).length&&e.config.id&&!n.performanceMap[e.config.id]&&(n.setFirstScreenInfo(e,h.startTime,d[0],d),t?.(h.startTime),u.disconnect(),r.disconnect(),c)&&clearTimeout(c)})})).observe({entryTypes:["paint"]}),new MutationObserver(function(f){var h={roots:[],ignores:[],rootsDomNum:[],time:performance.now()};f.forEach(function(d){d&&d.addedNodes&&Array.prototype.slice.call(d.addedNodes).forEach(function(p){i.isEleInArray(p,h.ignores)?h.ignores.push(p):p.nodeType===1&&p.hasAttribute("AEGIS-FIRST-SCREEN-TIMING")?(Object.prototype.hasOwnProperty.apply(s,[h.time])||(s[h.time]=[]),s[h.time].push(p)):p.nodeType===1&&(i.hasAncestorOrSelfWithAttribute(p,"AEGIS-IGNORE-FIRST-SCREEN-TIMING")?h.ignores.push(p):o.indexOf(p.nodeName.toLocaleLowerCase())!==-1||i.isEleInArray(p,h.roots)||(h.roots.push(p),h.rootsDomNum.push(i.walkAndCount(p)||0)))})}),h.roots.length&&a.push(h)})),l=(u.observe(document,{childList:!0,subtree:!0}),function(f){(f=f===void 0?0:f)||(h=0,p=Object.keys(s),d=null,p.length?(f=Math.max.apply(null,p),d=(p=s[f])==null?void 0:p[0]):a.forEach(function(w){for(var v=0;v<w.roots.length;v++)w.rootsDomNum[v]>h&&i.isInFirstScreen(w.roots[v])&&(h=w.rootsDomNum[v],f=w.time,d=w.roots[v])}),d&&n.setFirstScreenInfo(e,f,d,s),a.length=0,Object.keys(s).forEach(function(w){s[w]=s[w].map(function(v){var T={tagName:v.tagName},I=v.attributes;if(!I)return v;for(var P=0;P<I.length;P++){var C=I[P];C.name&&(T[C.name]=v.getAttribute(C.name))}return T})}));var h,d,p=performance.timing,m=p.domInteractive-p.domLoading,g=f;c=null;for(var b=0,y=[m,p.loadEventStart-p.domInteractive,g];b<y.length;b++)if(y[b]<=0&&0<Wr){c=setTimeout(function(){return l(g)},3e3);break}c?--Wr:(u.disconnect(),r?.disconnect(),t?.(f))}),c=setTimeout(function(){return l()},3e3)},setFirstScreenInfo:function(e,t,n,r){var i;e.config.id&&this.performanceMap[e.config.id]||(e.config.id&&(this.performanceMap[e.config.id]=!0),(typeof((i=e.config)==null?void 0:i.pagePerformance)!="object"||(i=e.config.pagePerformance)!=null&&i.firstScreenInfo)&&(e.firstScreenInfo={element:n,timing:t,markDoms:r}))},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(t.indexOf(e)!==-1||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t;return!(!e||typeof e.getBoundingClientRect!="function")&&(e=e.getBoundingClientRect(),t=window.innerHeight,0<=e.left)&&e.left<window.innerWidth&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&e.nodeType===1){t+=1;var n=e.children;if(n!=null&&n.length)for(var r=0;r<n.length;r++)n[r].nodeType===1&&n[r].hasAttribute("AEGIS-IGNORE-FIRST-SCREEN-TIMING")||(t+=this.walkAndCount(n[r]))}return t},hasAncestorOrSelfWithAttribute:function(e,t){for(var n=e;n&&n!==document.body;){if(n.hasAttribute(t))return!0;n=n.parentElement}return!1}}),Bi=(new A({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),zi=new A({name:"spa",originFireUrl:"",onNewAegis:function(e){var t=this;history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),e.config.spa&&this.sendPv(e),Bi.forEach(function(n){return window.addEventListener(n,function(){return t.sendPv.call(t,e)})})},wr:function(e){var t=history[e],n="__"+e+"__hasWrittenByTamSpa";return typeof t=="function"&&!history[n]&&(Object.defineProperty(history,n,{value:!0,enumerable:!1}),function(){var r=t.apply(this,arguments),i=null;return typeof Event=="function"?i=new Event(e):(i=document.createEvent("HTMLEvents")).initEvent(e,!1,!0),window.dispatchEvent(i),r})},sendPv:function(e){var t=this;setTimeout(function(){var n=location.pathname+location.hash+e.config.id;t.$walk(function(r){var i;r===e&&(i=r.config.pvUrl)&&n&&n!==t.originFireUrl&&(r.sendPipeline([function(o,a){var s=i!=null&&i.includes("?")?"&":"?";a({url:i+s+"originFrom="+encodeURIComponent(e.getOriginFrom()),type:L.PV})}],L.PV)(null),t.originFireUrl=n)})},0)},destroy:function(){this.option.sendPv=function(){}}});function Ie(e){this.slienceTimeInterval=5e3,this.checkInterval=100,this.fcp=0,this.longTaskEntries=[],this.resourceEntries=[],this.slientWindowStartTime=performance.now(),this.onTTICallback=e}function Br(e){return ee(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return te(this,function(u){switch(u.label){case 0:t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),t=t.getReader(),n=[],u.label=1;case 1:return[4,t.read()];case 2:if(r=u.sent(),i=r.done,r=r.value,i)return[3,4];n.push(r),u.label=3;case 3:return[3,1];case 4:if(n.length===1)return[2,n[0]];for(i=n.reduce(function(l,c){return l+c.length},0),o=new Uint8Array(i),s=a=0;s<n.length;s+=1)o.set(n[s],a),a+=n[s].length;return[2,o]}})})}var ve=null,Rn=!1,Gi=0,ye=new Map,Tn="__MONITOR_SESSION_V1__";function On(e){try{sessionStorage.setItem("__MONITOR_SESSION_V1__",JSON.stringify(e))}catch{}}function Vi(e,t){var n;return typeof window>"u"?{sessionId:t(),createdAt:Date.now(),lastActivity:Date.now(),source:e,version:1}:(n=window[Tn])!=null&&n.sessionId?(n.lastActivity=Date.now(),On(n),n):(n=(()=>{try{var r,i,o=sessionStorage.getItem("__MONITOR_SESSION_V1__");return o?typeof(r=JSON.parse(o)).sessionId!="string"||typeof r.createdAt!="number"||typeof r.lastActivity!="number"||36e5<(i=Date.now())-r.createdAt||9e5<i-r.lastActivity?null:(r.lastActivity=i,r):null}catch{return null}})())?(On(window[Tn]=n),n):(n={sessionId:t(),createdAt:Date.now(),lastActivity:Date.now(),source:e,version:1},On(window[Tn]=n),n)}Ne(xn=F,E=zr=E),xn.prototype=E===null?Object.create(E):(Gr.prototype=E.prototype,new Gr),F.resolveGzipConfig=function(e){var t,n={enable:!0,threshold:1024,debug:!1,useWorker:!0,workerThreshold:4096};return e===!1?O(O({},n),{enable:!1}):e===!0||e==null?n:{enable:e.enable!==!1,threshold:(t=e.threshold)!=null?t:n.threshold,debug:(t=e.debug)!=null?t:n.debug,useWorker:(t=e.useWorker)!=null?t:n.useWorker,workerThreshold:(t=e.workerThreshold)!=null?t:n.workerThreshold}},F.prototype.addExtBean=function(e,t){t&&this.extendBean(e,encodeURIComponent(typeof t=="string"&&["ext1","ext2","ext3"].includes(e)?t.slice(0,1024):t))},F.prototype.getBean=function(e){var t=this;return e===void 0&&(e=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(n){return e.indexOf(n)===-1}).map(function(n){return n==="from"?"from="+t.getCurrentPageUrl():n+"="+t.bean[n]}).join("&")},F.prototype.getCurrentPageUrl=function(){var e=this.config.pageUrl||location.href,e=(e=typeof this.config.urlHandler=="function"?this.config.urlHandler()||location.href:e).slice(0,2048);return encodeURIComponent(e)},F.prototype.getOriginFrom=function(){try{return(typeof window<"u"&&window.location?window.location.href:"").slice(0,2048)}catch{return""}},F.prototype.reportPageView=function(e){var t,n,r=this.config.pvUrl;r&&(t=this.getOriginFrom(),n=typeof e=="string"&&e?e.slice(0,2048):"",this.sendPipeline([function(i,o){var a=t?Kt(r,{originFrom:t}):r;o({url:n?Kt(a,{from:n}):a,type:L.PV,beanFilter:n?["from"]:void 0})}],L.PV)(null))},F.prototype.ready=function(){function e(){var n,r,i,o;t.reportRequestQueue.length&&(n=t.reportRequestQueue.splice(0,1)[0],r=n.options,i=n.success,o=n.fail,t.$request(r,function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];try{return i?.apply(r,a)}finally{e()}},function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];try{return o?.apply(r,a)}finally{e()}}))}var t=this;e(),this.isReportReady=!0},F.prototype.request=function(e,t,n){var r,i,o=this;this.config.reportImmediately||this.isReportReady?this.$request(e,r=function(a){var s,u=Mt("aegis-web-retry-report-requests");u!=null&&u.length&&e.extraRetryOptions&&(0<=(s=u.findIndex(function(l){return l.extraRetryOptions.requestId===e.extraRetryOptions.requestId}))&&(u.splice(s,1),Nt("aegis-web-retry-report-requests",JSON.stringify(u))),delete window[e.extraRetryOptions.success],delete window[e.extraRetryOptions.fail]),t?.(a)},i=function(a){if(!o.config.reportRetry||e.type===L.WHITE_LIST||e.type===L.SDK_ERROR)return n?.(a);var s=typeof o.config.reportRetry=="boolean"?qe:O(O({},qe),o.config.reportRetry),l=s.maxRetryCount,u=l===void 0?qe.maxRetryCount:l,l=s.retryInterval,l=l===void 0?qe.retryInterval:l,f=s.whenRetryEndStillFail,c=f===void 0?qe.whenRetryEndStillFail:f,f=s.maxStorageCount,h=Math.min(100,Math.max(20,f===void 0?qe.maxStorageCount:f)),d=(e.extraRetryOptions||(e.extraRetryOptions={requestId:"",retriedCount:0,success:"",fail:""}),e.extraRetryOptions),p=(d.requestId=d.requestId||e.url+"-"+Date.now()+"-"+Math.random(),d.requestId),m=(d.retriedCount=d.retriedCount||0,d.success=d.success||p+"_successCallback",d.fail=d.fail||p+"_failCallback",Mt("aegis-web-retry-report-requests"));if(m.find(function(g){return g.extraRetryOptions.requestId===p}))s=m.findIndex(function(g){return g.extraRetryOptions.requestId===p}),m[s]=e;else for(m.push(e);m.length>h;)m.shift();Nt("aegis-web-retry-report-requests",JSON.stringify(m)),setTimeout(function(){var g,b;d.retriedCount<u?(e.extraRetryOptions.retriedCount+=1,o.$request(e,r,i)):((b=(g=Mt("aegis-web-retry-report-requests")).findIndex(function(y){return((y=y.extraRetryOptions)==null?void 0:y.requestId)===p}))!==-1&&c==="discard"&&(g.splice(b,1),Nt("aegis-web-retry-report-requests",JSON.stringify(g))),n?.(a),delete window[d.success],delete window[d.fail])},typeof l=="function"?l(e.extraRetryOptions.retriedCount):l),window[d.success]||(window[d.success]=r),window[d.fail]||(window[d.fail]=i)}):this.reportRequestQueue.push({options:e,success:t,fail:n})},F.prototype.$request=function(e,t,n){var r,i;if(e&&typeof e.url=="string"&&e.url!==""&&this.bean.id)return r=e.url,e.addBean!==!1&&(r=((o,a)=>{var s,u,l,c=o,f=e.beanFilter||[];for(s in a)f.indexOf(s)===-1&&((l=(u=new RegExp("([?&])"+s+"(=([^&]*))?(?=&|$)")).exec(c))?l[2]&&l[3]!==""&&l[3]!=="undefined"||(c=c.replace(u,"$1"+s+"="+a[s])):(l=-1<c.indexOf("?")?"&":"?",c+=l+s+"="+a[s]));return c})(r,O(O({},this.bean),{from:this.getCurrentPageUrl()}))),e.url=r,r=e.method||"get",i=this.config.onBeforeRequest,(e=i?i(e,this):e)?e.url?void((e!=null&&e.sendBeacon||this.sendNow)&&typeof navigator?.sendBeacon=="function"?navigator.sendBeacon(e.url,e.data):(typeof e.data=="string"&&(e.data=e.data.replace(/eval/gi,"evaI")),(i=this.isGzipReportEnabled(this.resolvedGzipConfig.enable))&&F.compressionSupported&&r.toLowerCase()!=="get"&&typeof e.data=="string"&&e.data.length>=this.resolvedGzipConfig.threshold?this.sendWithGzip(e,r,i,t,n):this.sendXhr(e,r,e.data,on(i,!1),t,n))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},F.prototype.sendWithGzip=function(e,t,n,r,i){return ee(this,void 0,void 0,function(){var o,a,s,u;return te(this,function(l){switch(l.label){case 0:if(l.trys.push([0,9,,10]),o=new TextEncoder,o=o.encode(e.data),s=this.resolvedGzipConfig,a=s.useWorker,s=s.workerThreshold,u=void 0,!(a&&o.byteLength>=s))return[3,6];l.label=1;case 1:return l.trys.push([1,3,,5]),[4,(h=o,new Promise(function(d,p){var m,g,b,y=(()=>{if(Rn)return null;if(ve)return ve;try{var w=new Blob([`
|
|
41
|
+
self.onmessage=async function(e){
|
|
42
|
+
try{
|
|
43
|
+
var d=e.data,id=d.id,raw=d.data;
|
|
44
|
+
var s=new Blob([raw]).stream().pipeThrough(new CompressionStream("gzip"));
|
|
45
|
+
var r=s.getReader(),chunks=[];
|
|
46
|
+
for(;;){var res=r.read();var p=await res;if(p.done)break;chunks.push(p.value);}
|
|
47
|
+
var len=0;for(var i=0;i<chunks.length;i++)len+=chunks[i].length;
|
|
48
|
+
var out=new Uint8Array(len),off=0;
|
|
49
|
+
for(var i=0;i<chunks.length;i++){out.set(chunks[i],off);off+=chunks[i].length;}
|
|
50
|
+
self.postMessage({id:id,compressed:out},[out.buffer]);
|
|
51
|
+
}catch(err){
|
|
52
|
+
self.postMessage({id:id,error:err.message||"compress error"});
|
|
53
|
+
}
|
|
54
|
+
};`],{type:"application/javascript"}),v=URL.createObjectURL(w);return ve=new Worker(v),URL.revokeObjectURL(v),ve.onmessage=function(C){var C=C.data,I=C.id,P=C.compressed,C=C.error,M=ye.get(I);M&&(ye.delete(I),C?M.reject(new Error(C)):M.resolve(P))},ve.onerror=function(){Rn=!0,ye.forEach(function(T){return T.reject(new Error("gzip worker error"))}),ye.clear(),ve&&(ve.terminate(),ve=null),ye.forEach(function(T){return T.reject(new Error("worker terminated"))}),ye.clear()},ve}catch{return Rn=!0,null}})();y?(m=Gi+=1,g=setTimeout(function(){var w=ye.get(m);w&&(ye.delete(m),w.reject(new Error("gzip worker timeout")))},5e3),ye.set(m,{resolve:function(w){clearTimeout(g),d(w)},reject:function(w){clearTimeout(g),p(w)}}),b=h.buffer.slice(h.byteOffset,h.byteOffset+h.byteLength),y.postMessage({id:m,data:new Uint8Array(b)},[b])):p(new Error("worker unavailable"))}))];case 2:return u=l.sent(),[3,5];case 3:return l.sent(),[4,Br(o)];case 4:return u=l.sent(),[3,5];case 5:return[3,8];case 6:return[4,Br(o)];case 7:u=l.sent(),l.label=8;case 8:return this.resolvedGzipConfig.debug&&console.info("[Aegis gzip] before="+(c=o.byteLength)+"B after="+(f=u.byteLength)+"B saved="+(c-f)+"B ratio="+(0<c?(f/c*100).toFixed(1):"0.0")+"%"),this.sendXhr(e,t,u,on(n,!0),r,i),[3,10];case 9:return l.sent(),this.sendXhr(e,t,e.data,on(n,!1),r,i),[3,10];case 10:return[2]}var c,f,h})})},F.prototype.sendXhr=function(e,t,n,r,i,o){var a=new XMLHttpRequest;a.sendByAegis=!0,a.addEventListener("readystatechange",function(){a.readyState===4&&(400<=a.status||a.status===0?o?.(a.response):i?.(a.response))}),t.toLocaleLowerCase()==="get"?(a.open("get",Kt(e.url,e.data)),a.send()):(a.open("post",e.url),e.contentType&&a.setRequestHeader("Content-Type",e.contentType),r&&a.setRequestHeader("Content-Encoding",r),a.send(n))},F.prototype.publishPluginsLogs=function(){var e=F.installedPlugins.find(function(t){return t.name==="reportAssetSpeed"});e?.option.collectNotReportedLog(this)},F.prototype.uploadLogs=function(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={}),(n=this.lifeCycle)!=null&&n.emit("uploadLogs",e,t)},F.prototype.reportWebVitals=function(e){try{var t=F.installedPlugins.find(function(n){return n.name==="webVitals"});t&&this.config.webVitals&&this.config.webVitals.manualReport&&t.option.publish(this,e)}catch{}},F.sessionID=Vi("aegis",en).sessionId,F.compressionSupported=null;var zr,xn,E=F;function F(e){var t,n,r,i,o,a,s=zr.call(this,e)||this;s.sendNow=!1,s.isReportReady=!1,s.reportRequestQueue=[],s.speedLogPipeline=De([wt(s),(i=s.config,function(f,h){var d,p,m,g=typeof i.repeat=="number"?i.repeat:60;!i.speedSample||g<=0?h(f):(d=i?.id||"0",p=Ue[d]||{},Array.isArray(f)?(m=f.filter(function(b){var y=!p[b.url]||p[b.url]<g;return y?(p[b.url]=1+~~p[b.url],Ue[d]=p):Ce[d]||Zt(d),y})).length&&h(m):!p[f.url]||p[f.url]<g?(p[f.url]=1+~~p[f.url],Ue[d]=p,h(f)):Ce[d]||Zt(d))}),(r=s,function(f,h){vr(function(d){r.extendBean("netType",d),h(f)})}),function(f,h){(d=s.lifeCycle)!=null&&d.emit("beforeReportSpeed",f);var d,p=s.config.beforeReportSpeed;if((f=typeof p=="function"?f.filter(function(m){return p(m)!==!1}):f).length)return h(f)},function(f,h){h(f.map(function(d){return d.payload!==void 0&&delete d.payload,d}))},function(f){return s.sendPipeline([function(h,d){d({type:L.SPEED,url:""+s.config.speedUrl,method:"post",contentType:"application/json",data:Bn(h,O(O({},s.bean),{from:s.getCurrentPageUrl()})),log:h})}],L.SPEED)(f)}]),e.asyncPlugin=!0;try{typeof document<"u"&&(e.uin=e.uin||((t=document.cookie.match(/\buin=\D+(\d*)/))!=null?t:[])[1]||((n=document.cookie.match(/\bilive_uin=\D*(\d+)/))!=null?n:[])[1]||""),s.init(e),s.resolvedGzipConfig=F.resolveGzipConfig(s.config.gzip),F.compressionSupported===null&&(F.compressionSupported=(()=>{try{return typeof CompressionStream=="function"}catch{return!1}})()),s.extendBean("sessionId",F.sessionID),s.extendBean("from",s.getCurrentPageUrl()),typeof document<"u"&&s.extendBean("referer",encodeURIComponent(document.referrer||"")),o=function(f,h){h!=="aegis"&&f&&f!==F.sessionID&&(F.sessionID=f,s.extendBean("sessionId",f))};var u=typeof window>"u"?function(){}:(window.addEventListener("monitor-session-update",a=function(f){o(f.detail.sessionId,f.detail.source)}),function(){return window.removeEventListener("monitor-session-update",a)}),l=(s.lifeCycle.on("destroy",u),function(){function f(){var d;h.length&&(d=h.splice(0,1)[0],Nt("aegis-web-retry-report-requests",JSON.stringify(h)),s.$request(d,function(){for(var p,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];try{return(p=window[d.extraRetryOptions.success])==null?void 0:p.apply(d,m)}finally{f()}},function(){for(var p,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];try{return(p=window[d.extraRetryOptions.fail])==null?void 0:p.apply(d,m)}finally{f()}}))}var h=Mt("aegis-web-retry-report-requests");f()});"requestIdleCallback"in window?window.requestIdleCallback(function(){return ee(s,void 0,void 0,function(){return te(this,function(f){return l(),[2]})})}):setTimeout(l,5e3);for(var c=1;c<=10;c++)s.addExtBean("ext"+c,e["ext"+c])}catch(f){console.warn(f),console.log(`%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.
|
|
55
|
+
It is recommended that you contact us for feedback and thank you for your support.`,"color: red"),s.sendSDKError(f)}return s}function Gr(){this.constructor=xn}new A({name:"ie"}),new A({name:"onClose"});var Ji=new A({name:"onClose",onNewAegis:function(e){var t,n=this;R.desktop()?(t=window.onunload,window.onunload=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.publishNotReportedLog(e),t?.call.apply(t,G([window],r))}):gn(this.publishNotReportedLog.bind(this,e),{once:!0})},publishNotReportedLog:function(e){var t=this;this.$walk(function(n){n===e&&(n.sendNow=!0,n.publishPluginsLogs(),t.publishThrottlePipeLogs(n))})},publishThrottlePipeLogs:function(e){e?.speedLogPipeline([]),e?.eventPipeline([]),e?.customTimePipeline([]),e?.normalLogPipeline([])}});new A({name:"aid"});var Ve,Je={containers:["body","html","#app","#root"],ignoreContainers:[],containerMatchers:{tagName:["body","html"],id:["app","root"],className:[]},ignoreMatchers:{tagName:[],id:[],className:[]},detectStartPosition:{x:0,y:0},emptyElementsPercent:70,sameElementsPercent:70,debounceDuration:2e3,everySideSampleNumber:9,disableSameElementsCheck:!0,ignoreElesWhenDomChange:[],reDetectInterval:2e3,samePointDepth:5,customBlankScreenDector:null,enableScreenshot:!1,needScreenShotMeta:!1,screenshotQuality:.1,screenshotFormat:"image/webp",onBlankScreenCapture:null,clientScreenshotTimeout:1e4},$i=["canvas","img","svg","iframe"],Xi=((Ae=Ve=Ve||{})[Ae.UNKNOWN=0]="UNKNOWN",Ae[Ae.ERROR=1]="ERROR",Ae[Ae.DOM_CHANGE=2]="DOM_CHANGE",new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE","HEAD","META","LINK","BR","WBR"])),Ki=(W.prototype.capture=function(){return ee(this,void 0,void 0,function(){var e,t,n,r,i,o,a,s,u,l,c,f,h,d,p,m,g,b,y;return te(this,function(w){switch(w.label){case 0:return w.trys.push([0,7,,8]),e=performance.now(),this.tasks=[],this.nodeCounter=0,this.resourcePool.clear(),this.maxDepthReached=0,this.depthLimitHitCount=0,l=window.innerWidth,m=window.innerHeight,this.vw=l,this.vh=m,s=window.devicePixelRatio||1,n=l*this.options.scale,u=m*this.options.scale,r=Math.min(1,this.options.maxWidth/n,this.options.maxHeight/u),t=n*r,n=u*r,u=s*this.options.scale,this.canvas.width=l*u,this.canvas.height=m*u,this.ctx.scale(u,u),r=t/(l*u),this.totalScale=u*r,this.ctx.beginPath(),this.ctx.rect(0,0,l,m),this.ctx.clip(),this.collectTasks(document.body,0,[],0),this.tasks.sort(function(v,T){return v.zIndex!==T.zIndex?v.zIndex-T.zIndex:v.domOrder-T.domOrder}),i=[],this.resourcePool.forEach(function(v){v instanceof Promise&&i.push(v)}),0<i.length?[4,Promise.all(i)]:[3,2];case 1:w.sent(),w.label=2;case 2:o="",a=0,w.label=3;case 3:return a<this.tasks.length?(s=this.tasks[a],(u=0<s.clipRects.length?s.clipRects.map(function(v){return v.left+","+v.top}).join("|"):"")!==o&&(o&&this.ctx.restore(),u&&(this.ctx.save(),this.applyClipRects(s.clipRects)),o=u),[4,s.render()]):[3,6];case 4:w.sent(),w.label=5;case 5:return a++,[3,3];case 6:if(o&&this.ctx.restore(),l=this.canvas,r<.99){if(c=this.canvas,f=this.canvas.width,h=this.canvas.height,3*t<f)for(;2*t<f&&(f=Math.floor(f/2),h=Math.floor(h/2),(d=document.createElement("canvas")).width=f,d.height=h,p=d.getContext("2d"));)p.imageSmoothingEnabled=!0,p.imageSmoothingQuality="medium",p.drawImage(c,0,0,f,h),c=d;(m=document.createElement("canvas")).width=t,m.height=n,(g=m.getContext("2d"))&&(g.imageSmoothingEnabled=!0,g.imageSmoothingQuality="medium",g.drawImage(c,0,0,t,n),l=m)}return g=this.options.format==="jpg"?"jpeg":this.options.format,b=l.toDataURL("image/"+g,this.options.quality),this.options.debug&&(y=0<this.depthLimitHitCount?" ⚠️ 深度限制触发"+this.depthLimitHitCount+"次":"",console.log("%c🚀 截图完成 ("+Math.round(performance.now()-e)+"ms) 尺寸:"+l.width+"x"+l.height+" 节点:"+this.nodeCounter+" 任务:"+this.tasks.length+" 最大深度:"+this.maxDepthReached+"/100"+y,"color: #673AB7; font-weight: bold;")),this.cleanup(),[2,b];case 7:return y=w.sent(),this.cleanup(),this.options.debug&&console.error("Screenshot capture failed:",y),[2,""];case 8:return[2]}})})},W.prototype.isElementVisible=function(e,t){return 0<t.length?(t=t[t.length-1],!(e.right<t.left||e.left>t.right)&&(!(e.bottom<t.top||e.top>t.bottom)||Math.abs(e.width-t.width)<50)):!(e.bottom<0||e.top>this.vh||e.right<0||e.left>this.vw)},W.prototype.applyClipRects=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.ctx.beginPath(),this.ctx.rect(r.left,r.top,r.width,r.height),this.ctx.clip()}},W.prototype.collectTasks=function(e,t,n,r){var i=this;if(t===void 0&&(t=0),n===void 0&&(n=[]),(r=r===void 0?0:r)>this.maxDepthReached&&(this.maxDepthReached=r),100<r)this.depthLimitHitCount++;else{this.nodeCounter++;var o=this.nodeCounter;if(e.nodeType!==3){if(e instanceof Element){var a=e.tagName;if(!Xi.has(a)){var s=getComputedStyle(e);if(s.display!=="none"&&s.visibility!=="hidden"&&parseFloat(s.opacity)!==0){var u=e.getBoundingClientRect(),g=s.position,l=g==="fixed"||g==="sticky",d=t,f=s.zIndex,c=(f!=="auto"&&(f=parseInt(f,10),isNaN(f)||(d=f)),l&&d<2e4&&(d+=2e4),2e4<=t&&d<2e4&&(d+=2e4),d=d<t?t:d),f=2e4<=t,h=g==="fixed"?[]:n,d=0<=u.bottom&&u.top<=this.vh&&0<=u.right&&u.left<=this.vw;if(this.options.viewportOnly&&(u.width===0&&u.height===0&&!l&&!f||!(d||l||f||e.parentElement===document.body||this.isElementVisible(u,h))))return;var p,m,g=s.overflow||s.overflowX||s.overflowY,g=g==="hidden"||g==="scroll"||g==="auto"||g==="clip",b=(this.checkAndPreload(s),(d||l||f)&&(0<u.width||0<u.height)&&(p=parseFloat(s.opacity),this.addTask(c,o,h,function(){return i.drawBox(s,u,l,p)})),["::before","::after"].forEach(function(_){var H=getComputedStyle(e,_);H.content==="none"&&H.backgroundImage==="none"&&H.webkitMaskImage==="none"||(i.checkAndPreload(H),i.addTask(c,o,h,function(){return i.drawPseudoElement(H,u)}))}),e instanceof HTMLImageElement?(this.preloadImage(e.src),this.addTask(c,o,h,function(){return i.drawImageFromUrl(e.src,u)})):e instanceof SVGElement?(m=this.preloadSVG(e),this.addTask(c,o,h,function(){return i.drawImageFromUrl(m,u)})):e instanceof HTMLCanvasElement&&e!==this.canvas?this.addTask(c,o,h,function(){return i.drawCanvas(e,u)}):(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&this.addTask(c,o,h,function(){return i.drawInputText(e,s,u)}),g?G(h,[{left:u.left,top:u.top,right:u.right,bottom:u.bottom,width:u.width,height:u.height}]):h),y=r+1;if(e.shadowRoot)for(var w=0,v=Array.from(e.shadowRoot.childNodes);w<v.length;w++)N=v[w],this.collectTasks(N,c,b,y);else if(a==="SLOT")for(var T=0,I=e.assignedNodes();T<I.length;T++){var P=I[T];this.collectTasks(P,c,b,y)}else for(var C=0,M=Array.from(e.childNodes);C<M.length;C++)N=M[C],this.collectTasks(N,c,b,y)}}}else if(e.childNodes)for(var U=0,V=Array.from(e.childNodes);U<V.length;U++){var N=V[U];this.collectTasks(N,t,n,r+1)}}else(d=e.textContent)!=null&&d.trim()&&this.addTask(t,o,n,function(){return i.drawTextNode(e)})}},W.prototype.addTask=function(e,t,n,r){this.tasks.push({zIndex:e,domOrder:t,clipRects:n,render:r})},W.prototype.drawBox=function(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r=1);var i,o=e.backgroundColor,a=e.borderColor,s=e.borderWidth,u=e.borderRadius,l=e.backgroundImage,c=e.boxShadow,f=e.webkitMaskImage||e.maskImage,h=o!=="transparent"&&o!=="rgba(0, 0, 0, 0)",d=0<parseFloat(s),p=l&&l!=="none",m=f&&f!=="none",g=c&&c!=="none"&&!c.includes("inset");(h||d||p||m||g||n)&&(this.ctx.save(),r<1&&(this.ctx.globalAlpha*=r),g&&(i=c.match(/(-?\d+px)\s+(-?\d+px)\s+(\d+px)\s*(\d+px)?\s*(rgba?\(.*?\)|#\w+|\w+)/)||c.match(/(rgba?\(.*?\)|#\w+|\w+)\s+(-?\d+px)\s+(-?\d+px)\s+(\d+px)\s*(\d+px)?/))&&(r=isNaN(parseFloat(i[1])),this.ctx.shadowOffsetX=parseFloat(r?i[2]:i[1]),this.ctx.shadowOffsetY=parseFloat(r?i[3]:i[2]),this.ctx.shadowBlur=parseFloat(r?i[4]:i[3]),this.ctx.shadowColor=r?i[1]:i[5]||"transparent"),g=Math.min(parseFloat(u)||0,Math.min(t.width,t.height)/2),this.ctx.beginPath(),0<g?this.roundRectPath(t.left,t.top,t.width,t.height,g):this.ctx.rect(t.left,t.top,t.width,t.height),c=p&&l.includes("gradient"),h?(this.ctx.fillStyle=o,this.ctx.fill()):(n||c)&&(t.bottom>.85*this.vh&&t.height<.5*this.vh||c)&&(this.ctx.fillStyle="#ffffff",this.ctx.fill()),m&&this.drawMaskImage(f,e,t),p&&!c&&(i=l.match(/url\(["']?(.*?)["']?\)/))&&(r=this.resourcePool.get(i[1]))&&r instanceof HTMLImageElement&&this.ctx.drawImage(r,t.left,t.top,t.width,t.height),d&&(this.ctx.shadowColor="transparent",this.ctx.strokeStyle=a,u=parseFloat(s),g=1/this.totalScale,this.ctx.lineWidth=Math.max(u,g),this.ctx.stroke()),this.ctx.restore())},W.prototype.drawMaskImage=function(a,t,n){var r,i,o,a=a.match(/url\(["']?(.*?)["']?\)/);a&&(a=this.resourcePool.get(a[1]))&&a instanceof HTMLImageElement&&((r=document.createElement("canvas")).width=n.width,r.height=n.height,i=r.getContext("2d"))&&(o=t.backgroundColor!=="transparent"&&t.backgroundColor!=="rgba(0, 0, 0, 0)",i.fillStyle=o?t.backgroundColor:t.color||"#000",i.fillRect(0,0,n.width,n.height),i.globalCompositeOperation="destination-in",i.drawImage(a,0,0,n.width,n.height),this.ctx.drawImage(r,n.left,n.top))},W.prototype.drawPseudoElement=function(e,t){var n=e.content,r=e.backgroundImage,s=e.opacity,i=e.fontSize,o=e.color,a=e.webkitMaskImage||e.maskImage,s=(this.ctx.save(),this.ctx.globalAlpha*=parseFloat(s),a&&a!=="none"?this.drawMaskImage(a,e,t):r&&r!=="none"&&(s=r.match(/url\(["']?(.*?)["']?\)/))&&(a=this.resourcePool.get(s[1]))&&a instanceof HTMLImageElement&&(r=parseFloat(i)||16,this.ctx.drawImage(a,t.left+(t.width-r)/2,t.top+(t.height-r)/2,r,r)),(n||"").replace(/^["']|["']$/g,""));s&&!["none","normal","on","off",""," "].includes(s.toLowerCase())&&(this.ctx.font=e.fontStyle+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily,this.ctx.fillStyle=o,this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(s,t.left+t.width/2,t.top+t.height/2)),this.ctx.restore()},W.prototype.drawInputText=function(e,t,n){if(e instanceof HTMLInputElement){var r=(r=e.type)==null?void 0:r.toLowerCase();if(r==="checkbox"||r==="radio"||r==="file"||r==="submit"||r==="button"||r==="reset"||r==="image"||r==="hidden"||r==="color"||r==="range")return}var r=e.value,i=r||e.placeholder;i&&(this.ctx.save(),this.ctx.globalAlpha*=parseFloat(t.opacity),this.ctx.font=t.fontStyle+" "+t.fontWeight+" "+t.fontSize+" "+t.fontFamily,this.ctx.fillStyle=r?t.color:"rgba(153, 153, 153, 0.7)",this.ctx.textBaseline="middle",this.ctx.textAlign=t.textAlign==="center"?"center":"left",r=this.ctx.textAlign==="center"?n.left+n.width/2:n.left+10,t=n.top+(e instanceof HTMLTextAreaElement?18:n.height/2),this.ctx.fillText(i,r,t),this.ctx.restore())},W.prototype.drawTextNode=function(e){var t=e.parentElement;if(t){var n=e.textContent;if(n&&n.trim()&&!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement))try{var r=document.createRange(),i=(r.selectNodeContents(e),r.getClientRects());if(i.length!==0){var o=getComputedStyle(t);if(this.ctx.save(),this.ctx.globalAlpha*=parseFloat(o.opacity),this.ctx.font=o.fontStyle+" "+o.fontWeight+" "+o.fontSize+" "+o.fontFamily,this.ctx.fillStyle=o.color,this.ctx.textBaseline="top",this.ctx.textAlign="left",i.length===1)this.ctx.fillText(n.trim(),i[0].left,i[0].top);else for(var a=n.replace(/\n\s*/g," "),s=0,u=0;u<i.length;u++){var l=i[u];if(!(l.width<1)){for(var c=s,f=a.length,h="";c<=f;){var d=c+f>>1,p=a.substring(s,d);this.ctx.measureText(p).width<=l.width+2?(h=p,c=1+d):f=d-1}if(h&&(this.ctx.fillText(h,l.left,l.top),s+=h.length),s>=a.length)break}}this.ctx.restore()}}catch{}}},W.prototype.drawCanvas=function(e,t){try{this.ctx.drawImage(e,t.left,t.top,t.width,t.height)}catch{}},W.prototype.preloadImage=function(e){var t,n=this;return!e||this.resourcePool.has(e)?(t=this.resourcePool.get(e))instanceof Promise?t:Promise.resolve(t||null):(t=new Promise(function(r){function i(s){a||(a=!0,n.resourcePool.set(e,s),r(s))}var o=new Image,a=!1;n.options.useCORS&&!e.startsWith("data:")&&(o.crossOrigin="anonymous"),o.onload=function(){return i(o)},o.onerror=function(){return i(null)},o.src=e,setTimeout(function(){return i(null)},2e3)}),this.resourcePool.set(e,t),t)},W.prototype.preloadSVG=function(e){try{var t=new XMLSerializer().serializeToString(e),n=URL.createObjectURL(new Blob([t],{type:"image/svg+xml;charset=utf-8"}));return this.blobUrls.add(n),this.preloadImage(n),n}catch{return""}},W.prototype.cleanup=function(){this.blobUrls.forEach(function(e){try{URL.revokeObjectURL(e)}catch{}}),this.blobUrls.clear(),this.resourcePool.clear(),this.tasks=[]},W.prototype.drawImageFromUrl=function(e,t){e&&(e=this.resourcePool.get(e))&&e instanceof HTMLImageElement&&this.ctx.drawImage(e,t.left,t.top,t.width,t.height)},W.prototype.checkAndPreload=function(e){var n=e.backgroundImage;n&&n!=="none"&&(t=n.match(/url\(["']?(.*?)["']?\)/))&&this.preloadImage(t[1]);var t,n=e.webkitMaskImage||e.maskImage;n&&n!=="none"&&(t=n.match(/url\(["']?(.*?)["']?\)/))&&this.preloadImage(t[1])},W.prototype.roundRectPath=function(e,t,n,r,i){this.ctx.beginPath(),this.ctx.moveTo(e+i,t),this.ctx.lineTo(e+n-i,t),this.ctx.quadraticCurveTo(e+n,t,e+n,t+i),this.ctx.lineTo(e+n,t+r-i),this.ctx.quadraticCurveTo(e+n,t+r,e+n-i,t+r),this.ctx.lineTo(e+i,t+r),this.ctx.quadraticCurveTo(e,t+r,e,t+r-i),this.ctx.lineTo(e,t+i),this.ctx.quadraticCurveTo(e,t,e+i,t),this.ctx.closePath()},W),Vr={THRESHOLDS:{SMALL:3e5},LEVELS:[{maxArea:1e5,scale:1,defaultQuality:.7},{maxArea:3e5,scale:1,defaultQuality:.6},{maxArea:8e5,scale:.7,defaultQuality:.6},{maxArea:15e5,scale:.5,defaultQuality:.65},{maxArea:25e5,scale:.45,defaultQuality:.65},{maxArea:1/0,scale:.45,defaultQuality:.65}]};function W(n){n===void 0&&(n={}),this.tasks=[],this.nodeCounter=0,this.resourcePool=new Map,this.blobUrls=new Set,this.vw=0,this.vh=0,this.totalScale=1,this.maxDepthReached=0,this.depthLimitHitCount=0,this.options={useCORS:(t=n.useCORS)==null||t,scale:(t=n.scale)!=null?t:1,quality:(t=n.quality)!=null?t:.8,format:(t=n.format)!=null?t:"webp",viewportOnly:(t=n.viewportOnly)==null||t,maxWidth:(t=n.maxWidth)!=null?t:1920,maxHeight:(t=n.maxHeight)!=null?t:1080,debug:(t=n.debug)!=null&&t},this.canvas=document.createElement("canvas");var t,n=this.canvas.getContext("2d",{alpha:!0});if(!n)throw new Error("Failed to get 2D canvas context");this.ctx=n}function Pn(e){return Vr.LEVELS.find(function(t){return e<=t.maxArea})}function Jr(e){return{tagName:G(e.tagName||[]),id:G(e.id||[]),className:G(e.className||[])}}function $r(e){return Array.isArray(e)?e.filter(function(t){return typeof t=="string"}).map(function(t){return t.trim()}).filter(Boolean):[]}function Ut(e,t,n,r,i){var o,a,s=(e=e.map(function(u){return Qr(u)})).map(function(u){return u.selector});return(e=e[0])?(a=o=!1,a=ei(r)?(o=Yr(e,r),Yr(e,i)):(o=Zr(e,t),Zr(e,n)),{isWhitePoint:o&&!a,selectorPointers:s}):{isWhitePoint:!1,selectorPointers:s}}function Xr(e){try{var t,n,r,i,o,a,s=e.config.blankScreen;return s===!0?O({},Je):(n="containerMatchers"in(t=s)||"ignoreMatchers"in t,r="containers"in t||"ignoreContainers"in t,i=Ln(O({},Je),t),n?(ei(i.containerMatchers)||(i.containerMatchers=Jr(Je.containerMatchers)),typeof i.ignoreMatchers=="object"&&i.ignoreMatchers!==null||(i.ignoreMatchers=Jr(Je.ignoreMatchers)),i.containers=[],i.ignoreContainers=[]):r&&(o=$r(i.containers),a=$r(i.ignoreContainers),i.containers=o.length?o:G(Je.containers),i.ignoreContainers=a,i.containerMatchers={tagName:[],id:[],className:[]},i.ignoreMatchers={tagName:[],id:[],className:[]}),i)}catch{return O({},Je)}}function Dt(e,t){function n(i){var o=i[0];return o&&o.shadowRoot!==null&&(o=((o=o?.shadowRoot)==null?void 0:o.elementsFromPoint(e,t))||[]).length>i.length?n(o||[]):i}var r=document.elementsFromPoint(e,t);return n(r)}function Kr(e,t,n,r){return t===void 0&&(t="image/webp"),n===void 0&&(n=1920),r===void 0&&(r=1080),ee(void 0,void 0,void 0,function(){var i,o;return te(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),i=Math.min(window.innerWidth,n),o=Math.min(window.innerHeight,r),i=Pn(i*o),o=i.scale,i=i.defaultQuality,[4,new Ki(s=(s={scale:o,quality:e??i,format:{"image/webp":"webp","image/jpeg":"jpeg","image/png":"png"}[t]||"webp",maxWidth:n,maxHeight:r,useCORS:!0,viewportOnly:!0,debug:!1})===void 0?{}:s).capture()];case 1:return[2,a.sent()];case 2:return[2,(o=a.sent())instanceof Error?o:new Error(String(o))];case 3:return[2]}var s})})}var Qr=function(r){var t=r.nodeName.toLowerCase(),n=r.id||"",r=typeof(r=r).className=="string"?r.className:r.getAttribute("class")||"",i=t;return n&&(i+="#"+n),r&&(i+=r.split(" ").filter(function(o){return!!o}).map(function(o){return"."+o}).join("")),{tagName:t,id:n,className:r,selector:i}},Yr=function(e,t){var n;if((n=t?.tagName)!=null&&n.length){var r=e.tagName.toLowerCase();if(t.tagName.some(function(o){return r===o.toLowerCase().trim()}))return!0}if((n=t?.id)!=null&&n.length&&e.id&&t.id.some(function(o){return e.id===o.trim()}))return!0;if((n=t?.className)!=null&&n.length&&e.className){var i=e.className.split(" ").map(function(o){return o.trim()}).filter(Boolean);if(t.className.some(function(o){return o=o.trim(),!!o&&i.includes(o)}))return!0}return!1},Zr=function(e,t){return!(t==null||!t.length)&&t.some(function(n){return e.selector.includes(n)})},ei=function(e){var t;return!(!e||!((t=e.tagName)!=null&&t.length||(t=e.id)!=null&&t.length||(t=e.className)!=null&&t.length))},Ln=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)return e;var r=t.shift();if(r)for(var i in r){var o=r[i];Array.isArray(o)?e[i]=G(o):typeof o=="object"&&o!==null&&Object.prototype.hasOwnProperty.call(e,i)&&typeof e[i]=="object"&&e[i]!==null&&!Array.isArray(e[i])?Ln(e[i],o):e[i]=o}return Ln.apply(void 0,G([e],t))},Ae=new A({name:"blankScreen",captureScreenshotWithStrategy:function(){return ee(this,void 0,void 0,function(){var e,t,n,r,i,o;return te(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),e=window.innerWidth,e=e*window.innerHeight,t=Date.now(),[4,Kr()];case 1:return o=a.sent(),i=Date.now()-t,typeof o=="object"&&o!==null?[2,{error:"capture_failed",details:{firstCaptureTime:i,errorMessage:o?.message}}]:o?!(r=((n=o)==null?void 0:n.length)/1024)||r<=0||!isFinite(r)?[2,{error:"invalid_size",details:{reason:"screenshot_size_invalid",size:r}}]:90<r?[2,{error:"complex_page",details:{firstSize:Math.round(r),threshold:90}}]:r<=30?[2,n]:(i=26/r)<.5?[2,{error:"over_compression",details:{firstSize:Math.round(r),requiredRatio:Math.round(100*i),minRatio:Math.round(50)}}]:(u=i,l=Pn(s=e).defaultQuality,s=s<=Vr.THRESHOLDS.SMALL?.25:.3,o=Math.max(s,l*u),[4,Kr(o)]):[2,{error:"capture_failed",details:{reason:"empty_result"}}];case 2:return typeof(i=a.sent())=="object"&&i!==null?[2,{error:"retry_capture_failed",details:{firstSize:Math.round(r),errorMessage:i?.message}}]:(n=i)?n&&n?.length<=30720?[2,n]:[2,{error:"retry_failed",details:{firstSize:Math.round(r),finalSize:n?Math.round(n?.length/1024):0,maxSize:30}}]:[2,{error:"retry_capture_failed",details:{reason:"empty_result"}}];case 3:return[2,{error:"exception",details:{message:(o=a.sent())instanceof Error?o.message:String(o),stack:o instanceof Error?o.stack:void 0}}];case 4:return[2]}var s,u,l})})},isDestroyed:!1,isAwaitingClientScreenshot:!1,pendingTimeouts:[],notifyClientScreenshot:function(e,t,n,r){var i=this;if(!this.isDestroyed){var o=!(this.isAwaitingClientScreenshot=!0),a=t.timestamp+"_"+Math.random().toString(36).slice(2,10),t=O(O({},t),{requestId:a}),s=setTimeout(function(){i.pendingTimeouts=i.pendingTimeouts.filter(function(l){return l!==s}),i.isDestroyed?i.isAwaitingClientScreenshot=!1:o||(o=!0,i.isAwaitingClientScreenshot=!1,r(null,{success:!1,source:"client",reason:"timeout",timeout:n,requestId:a}))},n);this.pendingTimeouts.push(s);try{e(t,function(l){i.isDestroyed?(i.isAwaitingClientScreenshot=!1,clearTimeout(s)):o||(o=!0,i.isAwaitingClientScreenshot=!1,clearTimeout(s),i.pendingTimeouts=i.pendingTimeouts.filter(function(c){return c!==s}),l&&typeof l=="string"?r(l,{success:!0,source:"client",requestId:a}):r(null,{success:!1,source:"client",reason:"client_returned_null",requestId:a}))})}catch(l){o||this.isDestroyed||(o=!0,this.isAwaitingClientScreenshot=!1,clearTimeout(s),this.pendingTimeouts=this.pendingTimeouts.filter(function(c){return c!==s}),r(null,{success:!1,source:"client",reason:"callback_error",error:l instanceof Error?l.message:String(l),requestId:a}))}}},onNewAegis:function(e){var t,n,r,i,o,a,s,u,l,c,f,h,d,p,m,g,b,y,w,v,T,I,P,C,M,U,V,N,_,H,B,Oe,$e,$,ut,X,xe,Xe,In,jt=this;document.elementFromPoint&&(this.pendingTimeouts.forEach(function(D){clearTimeout(D)}),this.pendingTimeouts=[],this.isDestroyed=!1,this.isAwaitingClientScreenshot=!1,r=Xr(e),i=r.everySideSampleNumber,o=r.sameElementsPercent,a=r.containers,s=r.ignoreContainers,u=r.containerMatchers,l=r.ignoreMatchers,c=r.detectStartPosition,f=r.ignoreElesWhenDomChange,h=r.reDetectInterval,d=r.disableSameElementsCheck,p=r.samePointDepth,m=r.enableScreenshot,g=r.needScreenShotMeta,b=r.onBlankScreenCapture,y=r.clientScreenshotTimeout,w=4*i-3,v=Math.floor(w*r.emptyElementsPercent/100),T=Math.floor(w*o/100),I=Ve.UNKNOWN,C=null,M=P=!1,U=function(){return ee(jt,void 0,void 0,function(){var D,z,Pe,he,ti,ni,qt,ct,Me,An,Ke,ft,Wt,re,Bt,ie,Mn,ri,Z,Nn,_n,zt,Gt,ii,Le,dt,ht,pt,mt,Vt,Fn,Qe,Yi=this;return te(this,function(gt){switch(gt.label){case 0:if(D=window.innerHeight,z=window.innerWidth,Pe=c.x,he=c.y,z<=Pe||D<=he)return[2];for(ti=Pe+(z-Pe)/2,ni=he+(D-he)/2,qt=[],ct=i+1,An=Me=0,Ke=1;Ke<ct;Ke++)re=he+(D-he)*Ke/ct,ie=Dt(ft=Pe+(z-Pe)*Ke/ct,ni),Wt=Dt(ti,re),Bt=Dt(ft,re),ft=Dt(ft,D-re),re=Ut(ie,a,s,u,l),re.isWhitePoint&&(Me+=1),qt.push(re.selectorPointers),Ke!==ct/2&&(ie=Ut(Wt,a,s,u,l),re=ie.isWhitePoint,Wt=ie.selectorPointers,re&&(Me+=1),ie=Ut(Bt,a,s,u,l),re=ie.isWhitePoint,Bt=ie.selectorPointers,re&&(Me+=1),ie=Ut(ft,a,s,u,l),ie.isWhitePoint&&(Me+=1),qt.push(Wt,Bt,ie.selectorPointers));return ht=v<=Me,pt=!1,Mn={samePointerMap:{},maximumSamePointer:{}},d||(Z=qt.map(function(j){return j.slice(0,p)}),Jt=Z.map(function(j){return j.join(" < ")}).reduce(function(j,K){return j[K]=j[K]?j[K]+1:1,j},{}),Hn=Object.keys(Jt).map(function(j){return[j,Jt[j]]}).sort(function(j,K){return K[1]-j[1]})[0],oi=Hn[0],Z={samePointerMap:Jt,maximumSamePointerClass:oi,maximumSamePointerCounter:Hn[1]},Mn={samePointerMap:Z.samePointerMap,maximumSamePointer:((Qe={})[ri=Z.maximumSamePointerClass]=Z=Z.maximumSamePointerCounter,Qe)},An=Z,Qe=$i.some(function(j){return ri.startsWith(j)}),pt=T<=Z&&!Qe),ht||pt?[3,1]:(P=!1,C=null,[3,8]);case 1:return P?(Z=C?.whitePointCount>=v,Qe=C?.samePointCount>=T,Nn=Z&&Qe?"both":Z?"whitePoint":"sameElement",_n=t?"error":"domChange",zt=window.innerWidth,Gt=window.innerHeight,ii=Math.round(C?.samePointCount/w*100),Le={whitePointCount:C?.whitePointCount,samePointCount:C?.samePointCount,maximumSamePointer:C?.maximumSamePointer,linkMsg:C?.linkMsg},dt=function(j,K){K={msg:"decect blankscreen triggerReason: "+Nn+" triggerType: "+_n+`
|
|
56
|
+
|
|
57
|
+
whitePointCount: `+Le.whitePointCount+" whitePointerThreshold: "+v+(d?"":`
|
|
58
|
+
|
|
59
|
+
sameElementsCount: `+Le.samePointCount+" samePointerThreshold: "+T+" sameElementPercent: "+ii+"%")+`
|
|
60
|
+
|
|
61
|
+
viewport: `+zt+"x"+Gt+" totalSamplePoints: "+w+(d?"":`
|
|
62
|
+
|
|
63
|
+
maxSameElement: `+pe(Le.maximumSamePointer))+(g&&m&&K?`
|
|
64
|
+
|
|
65
|
+
screenShotMeta: `+JSON.stringify(K):"")+(Le.linkMsg?`
|
|
66
|
+
|
|
67
|
+
linkError: `+Le.linkMsg:""),level:S.BLANK_SCREEN,errorMsg:j||null,originFrom:e.getOriginFrom()},e.normalLogPipeline(K)},m?b?(ht=Pn(zt*Gt),pt={triggerReason:Nn,triggerType:_n,whitePointCount:Le.whitePointCount||0,samePointCount:Le.samePointCount||0,viewportWidth:zt,viewportHeight:Gt,url:window.location.href,timestamp:Date.now(),recommendedScale:ht.scale,recommendedQuality:ht.defaultQuality,maxSizeKB:30},this.notifyClientScreenshot(b,pt,y,function(j,K){if(j&&typeof j=="string"){var ai=j.length/1024;if(30<ai)return void dt(null,O(O({},K),{success:!1,reason:"size_exceeded",size:Math.round(ai),maxSize:30}))}dt(j,K)}),[3,4]):[3,2]:[3,5]):[3,7];case 2:return[4,this.captureScreenshotWithStrategy()];case 3:mt=gt.sent(),Fn=Vt=null,Fn=typeof mt=="string"?(Vt=mt,{success:!0,source:"sdk"}):(Vt=null,{success:!1,source:"sdk",error:mt.error,details:mt.details}),dt(Vt,Fn),gt.label=4;case 4:return[3,6];case 5:dt(null,null),gt.label=6;case 6:return P=!1,C=null,[3,8];case 7:C=O(O({msg:"blank_screen",level:S.BLANK_SCREEN,whitePointCount:Me,samePointCount:An},Mn),t?{linkLogType:t?.type,linkLogLevel:t?.level,linkErrorMsg:t?.errorMsg,linkMsg:t?.msg}:{}),P=!0,n=setTimeout(function(){return ee(Yi,void 0,void 0,function(){return te(this,function(j){switch(j.label){case 0:return[4,V()];case 1:return j.sent(),[2]}})})},h),gt.label=8;case 8:return[2]}var Jt,Hn,oi})})},V=function(){return ee(jt,void 0,void 0,function(){var D=this;return te(this,function(z){switch(z.label){case 0:return"requestIdleCallback"in window?(window.requestIdleCallback(function(Pe){return ee(D,void 0,void 0,function(){return te(this,function(he){switch(he.label){case 0:return 0<Pe.timeRemaining()?[4,U()]:[3,2];case 1:he.sent(),he.label=2;case 2:return[2]}})})}),[3,3]):[3,1];case 1:return[4,U()];case 2:z.sent(),z.label=3;case 3:return[2]}})})},N=function(){var D;P||jt.isAwaitingClientScreenshot||I===Ve.ERROR&&!t||(I=t?Ve.ERROR:Ve.DOM_CHANGE,clearTimeout(n),D=Xr(e).debounceDuration,n=setTimeout(function(){return ee(jt,void 0,void 0,function(){return te(this,function(z){switch(z.label){case 0:return clearTimeout(n),[4,V()];case 1:return z.sent(),[2]}})})},D))},e.lifeCycle.on("errorOccurred",_=function(D){D=D.filter(function(z){return z.level!==S.BLANK_SCREEN}),0<D.length&&(t=D[D.length-1],N())}),H=null,window.MutationObserver&&(X=xe=null,B=window.cancelAnimationFrame||function(D){clearTimeout(D)},Oe=window.requestAnimationFrame||function(D){return setTimeout(D,1e3/60)},$e=function(){(H=new MutationObserver(function(D){var z=Qr(D[0].target),z=f.includes(z.selector);D.length===1&&z||N()})).observe(document.body,{childList:!0,subtree:!0})},$=function(){xe&&(clearTimeout(xe),xe=null),X&&(B(X),X=null)},document.body?$e():(X=Oe(ut=function(){document.body?($(),$e()):X=Oe(ut)}),xe=setTimeout(function(){$()},1e4))),Xe=function(){M&&(M=!0,P)&&(clearTimeout(n),U())},In=function(){document.visibilityState==="visible"&&(M=!1),document.visibilityState==="hidden"&&Xe()},window.addEventListener("pagehide",Xe),window.addEventListener("beforeunload",Xe),window.addEventListener("visibilitychange",In),this.destroyBlanckScreenDetect=function(){window.removeEventListener("pagehide",Xe),window.removeEventListener("beforeunload",Xe),window.removeEventListener("visibilitychange",In),e.lifeCycle.remove("errorOccurred",_),H?.disconnect()})},destroy:function(){this.isDestroyed=!0,this.isAwaitingClientScreenshot=!1,this.pendingTimeouts.forEach(function(e){clearTimeout(e)}),this.pendingTimeouts=[],this.destroyBlanckScreenDetect()}}),Qi=(new A({name:"lagMonitor"}),new A({name:"lagMonitor",observer:null,lagRecords:[],onNewAegis:function(e){var t,n=this.$getConfig(e);n&&n.enabled&&typeof PerformanceObserver<"u"&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")&&(t=n.sampleRate||1,Math.random()<t)&&this.initLagMonitor(e,n)},initLagMonitor:function(e,t){var n=this,r=t.threshold||2e3,i=t.noResponseThreshold||5e3;try{this.observer=new PerformanceObserver(function(o){o.getEntries().forEach(function(a){var s;a.duration>r&&(s=a.scripts&&0<a.scripts.length?a.scripts[0]:null,a={name:a.name,timestamp:Date.now(),entryType:a.entryType,startTime:a.startTime,duration:a.duration,invoker:s?.invoker,sourceURL:s?.sourceURL},n.lagRecords.push(a),100<n.lagRecords.length&&n.lagRecords.shift(),n.publishLagLog(a,e,i<=a.duration))})}),this.observer.observe({type:"long-animation-frame",buffered:!1}),typeof window<"u"&&(window.__longTasks=this.lagRecords)}catch(o){if(typeof console<"u"&&console.warn&&console.warn("Lag monitor initialization failed:",o),this.observer){try{this.observer.disconnect()}catch{}this.observer=null}}},publishLagLog:function(e,t,n){n===void 0&&(n=!1);try{this.$walk(function(r){if(r===t){var i={msg:JSON.stringify({type:n?"NORESPONSE_DETECTED":"LAG_DETECTED",duration:Math.round(100*e.duration)/100,startTime:Math.round(100*e.startTime)/100,entryType:e.entryType,sourceURL:e.sourceURL||"unknown",invoker:e.invoker||"unknown",timestamp:e.timestamp}),level:n?S.NORESPONSE_LOG:S.LAG_MONITOR,time:e.timestamp,originFrom:r.getOriginFrom()};try{r.normalLogPipeline(i)}catch(o){typeof console<"u"&&console.warn&&console.warn("Lag log pipeline failed:",o)}}})}catch(r){typeof console<"u"&&console.warn&&console.warn("Lag log publish failed:",r)}},getLagRecords:function(){return G(this.lagRecords)},clearLagRecords:function(){this.lagRecords.length=0,typeof window<"u"&&(window.__longTasks=[])},destroy:function(){if(this.observer){try{this.observer.disconnect()}catch(e){typeof console<"u"&&console.warn&&console.warn("Observer disconnect failed:",e)}this.observer=null}this.clearLagRecords()}}));function Cn(){try{return typeof window<"u"&&window.performance&&window.performance.memory&&typeof window.performance.memory.usedJSHeapSize=="number"}catch{}}function kn(){try{var e,t,n;return Cn()?(t=(e=window.performance.memory).usedJSHeapSize||0,n=e.jsHeapSizeLimit||0,{usedJSHeapSize:t,totalJSHeapSize:e.totalJSHeapSize||0,jsHeapSizeLimit:n,usageRatio:0<n?Math.round(t/n*1e4)/100:0,timestamp:Date.now()}):null}catch{return null}}function lt(e){return Math.round(e/1048576*100)/100}return new A({name:"memoryMonitor"}),A=new A({name:"memoryMonitor",memoryReportTimer:null,oomCheckTimer:null,lastOOMTime:0,memoryRecords:[],onNewAegis:function(e){var t,n,r=this.$getConfig(e);r&&r.enabled&&Cn()&&(t=r.sampleRate||1,Math.random()<t)&&(!(t=r.monitorPages)||t.length===0||(n=typeof window<"u"?window.location.href:"",t.some(function(i){return typeof i=="string"?n.includes(i):i instanceof RegExp&&i.test(n)})))&&this.initMemoryMonitor(e,r)},initMemoryMonitor:function(e,t){var n,r=this,i=t.enableMemoryReport!==!1,o=t.enableOOMReport!==!1,a=t.memoryReportInterval||6e4,s=t.oomCheckInterval||1e4,u=t.oomThreshold||(()=>{try{var l,c;return Cn()&&0<(l=window.performance.memory.jsHeapSizeLimit||0)?(c=lt(l),Math.round(.9*c)):100}catch{return 100}})();try{i&&(this.memoryReportTimer=setInterval(function(){r.reportCurrentMemory(e,"MEMORY_REPORT")},a)),o&&(this.oomCheckTimer=setInterval(function(){r.checkOOMCondition(e,u)},s)),typeof window<"u"&&(window.addEventListener("beforeunload",n=function(){r.cleanup()}),window.addEventListener("pagehide",n))}catch(l){typeof console<"u"&&console.warn&&console.warn("Memory monitor initialization failed:",l),this.cleanup()}},reportCurrentMemory:function(e,t){try{var n,r=kn();r&&(n={type:t,memoryInfo:r,url:typeof window<"u"?window.location.href:"",userAgent:typeof navigator<"u"?navigator.userAgent:"",timestamp:Date.now()},this.memoryRecords.push(n),50<this.memoryRecords.length&&this.memoryRecords.shift(),this.publishMemoryLog(n,e))}catch(i){typeof console<"u"&&console.warn&&console.warn("Memory report failed:",i)}},checkOOMCondition:function(e,t){try{var n,r,i=kn();i&&(n=lt(i.usedJSHeapSize),r=Date.now(),t<n)&&3e5<r-this.lastOOMTime&&(this.lastOOMTime=r,this.reportCurrentMemory(e,"MEMORY_OOM"))}catch(o){typeof console<"u"&&console.warn&&console.warn("OOM check failed:",o)}},publishMemoryLog:function(e,t){try{e.type==="MEMORY_REPORT"?this.publishMemoryReport(e,t):e.type==="MEMORY_OOM"&&this.publishOOMLog(e,t)}catch(n){typeof console<"u"&&console.warn&&console.warn("Memory log publish failed:",n)}},publishMemoryReport:function(e,t){try{var n={memoryUsed:e.memoryInfo.usedJSHeapSize,memoryAllocated:e.memoryInfo.totalJSHeapSize,memoryUsage:e.memoryInfo.usageRatio};this.$walk(function(r){var i;if(r===t)try{(i=r.sendPipeline)!=null&&i.call(r,[function(o,a){var s=r.config.memoryUrl||r.config.hostUrl+"/memory",u=new URLSearchParams;Object.keys(o).forEach(function(l){var c=o[l];c!=null&&c!==""&&u.append(l,String(c))}),a({url:s+"?"+u.toString(),method:"post",type:L.MEMORY,log:o,success:function(){typeof console<"u"&&console.debug&&console.debug("Memory report success:",o.memory_used,"bytes")},fail:function(l){typeof console<"u"&&console.warn&&console.warn("Memory report failed:",l)}})}],L.MEMORY)(n)}catch(o){typeof console<"u"&&console.warn&&console.warn("Memory pipeline failed:",o)}})}catch(r){typeof console<"u"&&console.warn&&console.warn("Memory report publish failed:",r)}},publishOOMLog:function(e,t){try{var n=e.memoryInfo,r="Memory OOM detected: Used "+lt(n.usedJSHeapSize)+"MB / Total "+lt(n.totalJSHeapSize)+"MB / Limit "+lt(n.jsHeapSizeLimit)+"MB ("+n.usageRatio+"%)",i={msg:r,level:S.MEMORY_OOM,time:e.timestamp,originFrom:t.getOriginFrom()};this.$walk(function(o){var a;if(o===t)try{(a=o.normalLogPipeline)!=null&&a.call(o,i),typeof console<"u"&&console.warn&&console.warn("OOM detected and reported:",r)}catch(s){typeof console<"u"&&console.warn&&console.warn("OOM pipeline failed:",s)}})}catch(o){typeof console<"u"&&console.warn&&console.warn("OOM log publish failed:",o)}},getMemoryRecords:function(){return G(this.memoryRecords)},getCurrentMemoryStatus:kn,clearMemoryRecords:function(){this.memoryRecords.length=0},cleanup:function(){this.memoryReportTimer&&(clearInterval(this.memoryReportTimer),this.memoryReportTimer=null),this.oomCheckTimer&&(clearInterval(this.oomCheckTimer),this.oomCheckTimer=null)},destroy:function(){this.cleanup(),this.clearMemoryRecords(),this.lastOOMTime=0}}),E.use(Mi),E.use(Ci),E.use(xi),E.use(Wi),E.use(qi),E.use(Oi),E.use(k),E.use(zi),E.use(Ji),E.use(Ni),E.use(_i),E.use(Qi),E.use(A),E.use(ki),E.use(Ae),E})})($t)),$t.exports}var li=no();const ro=Zi(li),oo=eo({__proto__:null,default:ro},[li]);export{oo as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const c=o`<svg fill="none" viewBox="0 0 24 24">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-accent-100);"
|
|
4
4
|
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as t}from"./index-
|
|
1
|
+
import{w as t}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const f=t`
|
|
2
2
|
<svg width="36" height="36">
|
|
3
3
|
<path
|
|
4
4
|
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./index-
|
|
1
|
+
import{w as i}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const g=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const L=o`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 21 20"
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,H as e,E as s,q as r}from"./vendor-vue-NSDaktjZ.js";import{E as i}from"./index-
|
|
1
|
+
import{d as a,H as e,E as s,q as r}from"./vendor-vue-NSDaktjZ.js";import{E as i}from"./index-BAlXF3lp.js";const l=a({props:{collapsed:{type:Boolean,default:!1}},emits:["click"],computed:{siteTitle(){return this.$store.state.site?.title||"AceData"},url(){const t=this.$store.state.site,o="https://platform.acedata.cloud/favicon.ico";return this.collapsed?t?.favicon||t?.logo||o:t?.logo||t?.favicon||o}}}),A=["aria-label"],c=["src","alt"];function d(t,o,n,u,f,m){return r(),e("button",{type:"button",class:"brand-logo","aria-label":t.siteTitle,onClick:o[0]||(o[0]=V=>t.$emit("click"))},[s("img",{src:t.url,class:"brand-logo__image",alt:t.siteTitle},null,8,c)],8,A)}const p=i(l,[["render",d],["__scopeId","data-v-fefbbe27"]]),x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAMFBMVEX///+3t7f4+Pi8vLzAwMDExMTS0tLIyMjk5OTz8/PY2NjOzs7u7u7d3d3p6enh4eFVKkJDAAAIfUlEQVR4nNVd15akOAylyRRQ9f9/O02BZJtgBQszfR/2zPahsJCvguVUFJYop35ux66pq6r6+fn9T910bTv3U2najBXK9zw2PxE07fz+n0Qf+raOyetL3g9PS7vgzRUYULfvZyXuR5nAgLF/SuK3UuJN7gf0PbyErDiieuU1zKmLyFJ3Y9u+vmh//V9dXT/b5VN3f+HbFq82nGivHH6999Vv8rC7P+NFzfBlF56xvl/sEy1Xbc8mZ9m3R7bcrO0jl+vXJH7J0YY78UvYKNuDjpWNTQd9tzd5ks9ePUm92u877WMlp4dhR+Y2OYkYdh3XmKclc9iATVwoXyFLZouXIobuBpEXlK+QcYbK7gOF2NpMaN2Vmfdr71LGirAbW5N3lr4F1rckC0GQbQw6cqrM1XACvzOr5EjT+2q+L24Vk6/sRGL7no6t5un9eQE+7JG4r+wk3+e9iGfXwzyeZHLjzDGFt0fEBB564ymOeRwzCg8dHaZ9kx8NZGZ8+UyOv0bSW3o9q5Tac5+0luajjGfqpsT2krIuTeaKZGQf4UUIKpx6xFbo2nGD9HSlpJZAGfSQILVjV02Z4CQsJhD2UdbcJ/dwyRfpNvozwaLo4q/0nMhLIrMThJSZZ4EhiJd6Ugti43SvzCTlPKnZmUNZMV+u4cYKwp85XlfcTBi/s6Z+MZ2LxADhGZzUDU9m5zjIr0woQhLxasAHWS7E9TgZU/Z1EBEIjbzxQYYxOudOxu73qTBcUGEaIzqD1hi96W6JTgzRoDSI/UhmITP7yUPFSYqaagD1R4wJkP8VnT8nTwVQqnauN06QjvtCvYt2IL3Zm/Uk9jjDz0RmMLggwx3SOuIUSniGpJv3bAJo1SAFr9mKH8aI+LqkI0RFtoIh9/L76Cc8GLCDoxxSjyAHgxxFYSEzJ18Ggly4YHQHnCQ2LRoCGINXQirim0JYUJpDatf/p24PP4mVwSblSg6MEhDGuzNVg6J5o8nEvAPAGZiAfk5MDRXNqxcmx/AVHPMprx8G1TEHwOzqTByseTgoDRxYDT6akSh9YSMzr6aLidOeTGCj3EqDkdC8GU9Q9c6voYlyJzxy0sOxOnRs8C3sQpSR92DOO4EDCXkAzoA935bPTy8AIgTBCIIyvyZsExF/uM2Byfk9A7VafuksfdyygFmJcc35NZ7tT5xUYMNwJYcI/FouGP7xOyT1YBOh+aVcsCHHBWCHZHLTxOfxF6ZA8HP82P7ASv4BJj5PMNMO/g3+H9ghqrtnGm4hIJLAd7byVxg5asGCA+AH2N2meYHvKPxZmQRIGtyMaOMweC/ZXJJJdJE0CF27Bm0oK8kWLKSWHxeILB8s7xN8gmxFi0VIFAkNqd5KiI3S7JBqJ7Ssycb70vAL2LAofMiE9hkBrQvX4OTXNLS4eGpwA8KlaxaGKHOy4OWWcSVoXSZz9ohYYLaxpB8bv4V2aFGeFiYOvqTb74V2mHkQ8IXjBKhMuKrMJIoLOQlmVGIiIlyPmXdguwJ6d8J/CZ1H0m4iB1Gr4D569HjCZalPaNoxeWtd5jKf4TRkpy30syh3KbLXPVZsWdIIQUK6dO8Jl+dkbUB6GfRranwIWx3hUzeVi5fRmggtDA6b/dWO3ELkLiF4QldqoXOPxhe8QOjt57LUpXhguGUhtEUFUtq9EBzUQluQWrphIV1oA1JLm0R6VFqh0z21eH30XmjFdofbF14dgC5PG1zS0w9pjuYFF2UYL9KHiXJGYhhXJkwLEk1RvrEMZVWmpgvSVC1XtEtNlYOAL1JYrdESOg3lcGtFQsVGs+Nu++msHdiu0BNEQQ5vYKssIWxQx3JNc1AqnbTFmg3qSoKmYz0mb//S7QDU1k5Vdu+VSnUFyA3aBES1ca9zkqb4PPVQUUVG74OVRfUNSqencXh+UR1sUnfqgy6+qLrVn75QThRt0I26VG0FU4dbRNfE1ULpqVVBIZBTN/kJ0PBDxY6QEbpp5v27JFCxI5xm1k3oIxT+Q+Wowgl93dIJhHzqVrW5erd0QrdIxUE8wFXxcL9IBXSlSRcLuSnq3NR+OZBq4ZWD1FXr8sn9wivVEjcPwtVuKtd6XOKmWUzoQeY/dCczHBcTKpZtnr2QB104gN70ukm+QNaHzBJV7DhbIAt/040ERMMXnbUDAwOtgvZVsUo0KaCi9Omib/SCqleKhE7KSsNIIt7IkFXoi40MSBrNO28X+ooHOKxWqPpuoVHRh7FDo3+pyHsorOZyG5R0w5kPUZmJffYFIrLhTLi1DzFJT0X+aWaZ3JGtfcJNlCvesTOuIpAcLBrdRIms5g4s+jFlM0PFPYY6ul1VtDG4PJzwqQHnGGpKKlA1fVKN0VqxX31Tx1DjOTBXaRFvs3vaWdkniPIEF3hdGgEmxpev0VpeHNf8ZuiROMBhet0hMch9qkogR2wXbeSojHI22jd5ifp1cLbY9dHB8NWhJCbOgkYzBxpFzxH3wu74F++ro8ckWsM7a5l7/IuzVnAxJX1MojGQ3shHslKCPPimY+b+jYfmU0qONPIOj5rzK9lDi33OyQttVpEaglXXMFoabQVmqny3QxaBW4opM3o4CtwDJazWGZtAUMi12ONkAtGMrNGS/1QI5yb+CxciLmc8EwoDKEokefK6CBKPRf47Mj/MEIujvv+MzA/6kKQLCR7y18q5Y8AjiWryrR1T9uwp/RqJ3YUdGWBxYUeR2RzN7gThn6ifCrtLaA7X/dwG4xtusvg+24uVihzKtr/Cqrh7OFPdcVlYcXItmyHS7x67ROwyxxTceAHegqsLHVOQ4WLH00sdE5DhUsev2IbaznR95gKrCnDGi0oXDOmTRrmvhP3i712+u+LvXXO84u9dKL2Cf3V33X7+i6u7N/y5S9IdvOvoF0G/19GP9tfR/wPQ21eEI8clLwAAAABJRU5ErkJggg==";export{p as L,x as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const v=o`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{z as k,E as G,A as q,B as O,C as c,P as N,U as M,O as me,X as A,M as ee,R as U,ae as Je,I as K,L as D,af as dt,Y as vi,ag as on,J as bn,V as Qt,T as Qe,N as ni,ah as Oe,w as je,G as mn,$ as vn,F as yi}from"./index-
|
|
1
|
+
import{z as k,E as G,A as q,B as O,C as c,P as N,U as M,O as me,X as A,M as ee,R as U,ae as Je,I as K,L as D,af as dt,Y as vi,ag as on,J as bn,V as Qt,T as Qe,N as ni,ah as Oe,w as je,G as mn,$ as vn,F as yi}from"./index-BIIkgwju.js";import{n as u,c as S,o as E,r as P,U as de,e as xi,f as Ci,a as Ri}from"./index-B90YNXz4.js";import{g as $i}from"./vendor-dayjs-Cvgzdobq.js";import{ei as Ii}from"./index-BAlXF3lp.js";import"./index.browser.esm-Dfr8LG5m.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";const Ei=k`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const n=o`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./vendor-axios-B8_nURbH.js";import{B as r,g as c}from"./index-
|
|
1
|
+
import{a}from"./vendor-axios-B8_nURbH.js";import{B as r,g as c}from"./index-BAlXF3lp.js";const s="/aichat2/credentials";function n(o){const e={"content-type":"application/json",authorization:`Bearer ${o}`,"x-record-exempt":"true"},t=c();return t&&(e["x-site-origin"]=t),e}class p{async providers(e){return await a.post(s,{action:"providers"},{headers:n(e.token),baseURL:r})}async list(e){return await a.post(s,{action:"list"},{headers:n(e.token),baseURL:r})}async create(e,t){return await a.post(s,{action:"create",...e},{headers:n(t.token),baseURL:r})}async update(e,t,i){return await a.post(s,{action:"update",id:e,...t},{headers:n(i.token),baseURL:r})}async delete(e,t){return await a.post(s,{action:"delete",id:e},{headers:n(t.token),baseURL:r})}async test(e,t){return await a.post(s,{action:"test",...e},{headers:n(t.token),baseURL:r})}}const h=new p;export{h as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as C}from"./index-
|
|
1
|
+
import{w as C}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const v=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./index-
|
|
1
|
+
import{c as a}from"./index-BAlXF3lp.js";function e(){if(!arguments.length)return[];var r=arguments[0];return a(r)?r:[r]}export{e as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as E}from"./vendor-axios-B8_nURbH.js";import{E as R}from"./errorCode-Cqj9Td_Z.js";import{B as c,g as v}from"./index-
|
|
1
|
+
import{a as E}from"./vendor-axios-B8_nURbH.js";import{E as R}from"./errorCode-Cqj9Td_Z.js";import{B as c,g as v}from"./index-BAlXF3lp.js";const O=500;var b=(t=>(t.PENDING="pending",t.ANSWERING="answering",t.FINISHED="finished",t.FAILED="failed",t))(b||{}),d=(t=>(t.CHAT="chat",t.RETRIEVE="retrieve",t.UPDATE="update",t.DELETE="delete",t.RETRIEVE_BATCH="retrieve_batch",t))(d||{});class w extends Error{status;code;detail;extraData;constructor(e,a,p,n){super(),this.status=e,this.code=a,this.detail=p,this.extraData=n}get message(){return`${this.code} - ${this.detail}`}}class A extends w{constructor(e,a){super(O,R,e,a)}}function D(){const t=v();return t?{"x-site-origin":t}:{}}class B{async chatConversation(e,a){return new Promise(async(p,n)=>{try{const o=await fetch(`${c}/aichat2/conversations`,{method:"POST",headers:{authorization:`Bearer ${a.token}`,"Content-Type":"application/json",Accept:"text/event-stream",...D()},signal:a.signal,body:JSON.stringify(e)});if(!o.ok){const m=await o.text(),h=o.status,i=m?JSON.parse(m):{},l=i?.error?.message||"An error occurred",s=i?.error?.code||R;console.error("Error message:",l,"Error code:",s),n(new w(h,s,l));return}if(!o.body)throw new A("ReadableStream not supported.");const g=o.body.getReader(),x=new TextDecoder;let u="",y,_="";for(;;){const{done:m,value:h}=await g.read();if(m)break;_+=x.decode(h,{stream:!0});const i=_.split(`
|
|
2
2
|
`);_=i.pop()||"";for(const l of i){const s=l.trim();if(s&&s.startsWith("data: ")){const f=s.substring(6).trim();if(f==="[DONE]"){p({answer:u,delta_answer:""});return}try{const r=JSON.parse(f);if(r.delta_answer&&(u+=r.delta_answer),r.id&&(y=r.id),r.type==="error"){const T=typeof r.message=="string"&&r.message.trim()?r.message.trim():"An error occurred";await g.cancel().catch(()=>{}),n(new w(500,R,T));return}a?.stream&&a.stream({answer:u,delta_answer:r.delta_answer||"",id:y,type:r.type,message:r.message,tool_id:r.tool_id,tool_name:r.tool_name,tool_display_name:r.tool_display_name,input:r.input,output:r.output,is_error:r.is_error,duration_ms:r.duration_ms,content:r.content,artifact:r.artifact,card:r.card,citation:r.citation})}catch(r){console.error("JSON parse error:",r)}}}}p({answer:u,delta_answer:""})}catch(o){console.error("Error:",o),n(o)}})}async getConversations(e,a){return await E.post("/aichat2/conversations",{action:d.RETRIEVE_BATCH,...e.ids?{ids:e.ids}:{},...e.applicationId?{application_id:e.applicationId}:{},...e.userId?{user_id:e.userId}:{},...e.modelGroup?{model_group:e.modelGroup}:{},...e.model?{model:e.model}:{},...e.offset!==void 0?{offset:e.offset}:{},...e.limit!==void 0?{limit:e.limit}:{}},{headers:{"content-type":"application/json",authorization:`Bearer ${a.token}`,"x-record-exempt":"true"},baseURL:c})}async getConversation(e,a){return await E.post("/aichat2/conversations",{action:d.RETRIEVE,id:e},{headers:{"content-type":"application/json",authorization:`Bearer ${a.token}`,"x-record-exempt":"true"},baseURL:c})}async deleteConversation(e,a){return await E.post("/aichat2/conversations",{action:d.DELETE,id:e},{headers:{"content-type":"application/json",authorization:`Bearer ${a.token}`,"x-record-exempt":"true"},baseURL:c})}async updateConversation(e,a){return await E.post("/aichat2/conversations",{action:d.UPDATE,...e},{headers:{"content-type":"application/json",authorization:`Bearer ${a.token}`,"x-record-exempt":"true"},baseURL:c,signal:a.signal})}}const S=new B;export{w as B,b as I,S as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const C=o`<svg
|
|
2
2
|
width="28"
|
|
3
3
|
height="28"
|
|
4
4
|
viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-BIIkgwju.js";import"./index.browser.esm-Dfr8LG5m.js";import"./vendor-dayjs-Cvgzdobq.js";import"./index-BAlXF3lp.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CVHPJfCy.js";import"./signer-Bt6hppoz.js";import"./types-Cvj5H4DH.js";const v=o`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|