ghost 6.44.0 → 6.44.1
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/core/boot.js +9 -13
- package/core/bridge.js +6 -10
- package/core/built/admin/assets/{PolarAngleAxis-eFuSrR7S.js → PolarAngleAxis-DWP6qq-Z.js} +2 -2
- package/core/built/admin/assets/{_baseAssignValue-XVHfKew7.js → _baseAssignValue-N9f4o_XK.js} +1 -1
- package/core/built/admin/assets/{a-large-small-DOzPDzKp.js → a-large-small-BOAtcFiE.js} +1 -1
- package/core/built/admin/assets/{account-migration-Cx45M5qm.js → account-migration-CtZx_5ib.js} +1 -1
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +1 -1
- package/core/built/admin/assets/admin-x-settings/{code-editor-view-Bi8Orhyj.mjs → code-editor-view-BMovCjer.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-1_V9g9Pt.mjs → index-BT1n-g2b.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/{index-e9saYQJa.mjs → index-BnowNBGd.mjs} +5 -5
- package/core/built/admin/assets/admin-x-settings/{index-CnvQi01U.mjs → index-CRpK6gF8.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/{index-BmU6BOfy.mjs → index-CfXS3AZ8.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/{index-EuMiBt6I.mjs → index-Cs8zML6u.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/{index-B43MPc5u.mjs → index-DmpwO1w3.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-DOgG0XZa.mjs → index-DwFIdhcR.mjs} +3 -3
- package/core/built/admin/assets/admin-x-settings/{index-CWdxMIcZ.mjs → index-sNyPiIJA.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-Ojg_pBvq.mjs → index-xTILut54.mjs} +1259 -1259
- package/core/built/admin/assets/admin-x-settings/{modals-Ckbx9UQF.mjs → modals-Cm5t13os.mjs} +9 -9
- package/core/built/admin/assets/{arrow-right-DckEQtp9.js → arrow-right-BxdHN_En.js} +1 -1
- package/core/built/admin/assets/{at-sign-BChf68aS.js → at-sign-Cajf-dOf.js} +1 -1
- package/core/built/admin/assets/{audience-BYU5Bd7D.js → audience-CHNb9mCT.js} +1 -1
- package/core/built/admin/assets/{automated-email-design-Z26Qit0_.js → automated-email-design-B9C9mKUS.js} +2 -2
- package/core/built/admin/assets/{automated-emails-aBicreLv.js → automated-emails-DhLhkq8L.js} +1 -1
- package/core/built/admin/assets/{automations-vpH-d72N.js → automations-6-cgZovk.js} +1 -1
- package/core/built/admin/assets/{automations-Ddo22yPk.js → automations-CxJ-N_YK.js} +1 -1
- package/core/built/admin/assets/{avatar-flipboard-CoI3LQ-o.js → avatar-flipboard-f5nSMmek.js} +1 -1
- package/core/built/admin/assets/{bluesky-sharing-iVDkCMKN.js → bluesky-sharing-Dm2k8qZH.js} +1 -1
- package/core/built/admin/assets/{chart-CjM1VQqH.js → chart-BbJnjWey.js} +23 -23
- package/core/built/admin/assets/{checkbox-CC5kd_Kf.js → checkbox-CT7DNFAI.js} +1 -1
- package/core/built/admin/assets/{chevron-up-D__wzyXT.js → chevron-up-BxijmTT9.js} +1 -1
- package/core/built/admin/assets/{chunk.696.79505fa556d329d6e824.js → chunk.167.37bb0d7f6ac67fefa679.js} +3184 -3523
- package/core/built/admin/assets/{chunk.696.79505fa556d329d6e824.js.LICENSE.txt → chunk.167.37bb0d7f6ac67fefa679.js.LICENSE.txt} +1 -1
- package/core/built/admin/assets/{chunk.524.1ff649a6cc62dc38f538.js → chunk.524.ed812b62217210a913d4.js} +5 -5
- package/core/built/admin/assets/{chunk.582.408a40e0095e479e3d11.js → chunk.582.7db5c9f17bca5a484049.js} +6 -6
- package/core/built/admin/assets/{chunk.945.835812fcb16029abd7f9.js → chunk.834.f9db7c62b9457db93e8c.js} +3 -3
- package/core/built/admin/assets/{code-editor-view-C735d5EA.js → code-editor-view-D8slE0IA.js} +1 -1
- package/core/built/admin/assets/{comments-DgFPax3Y.js → comments-BvfR-fA8.js} +1 -1
- package/core/built/admin/assets/{content-helpers-DjugSfvm.js → content-helpers-DUWGLvgL.js} +1 -1
- package/core/built/admin/assets/{copy-D9JONGcK.js → copy-ht18t5gu.js} +1 -1
- package/core/built/admin/assets/{data-list-QWLEHG4y.js → data-list-Daha2dIs.js} +1 -1
- package/core/built/admin/assets/{deleted-feed-item-CwSCflTW.js → deleted-feed-item-ChP5bwgi.js} +1 -1
- package/core/built/admin/assets/{dropzone-lK_4vpWS.js → dropzone-h_qyk514.js} +1 -1
- package/core/built/admin/assets/{edit-profile-BmioJZHv.js → edit-profile-BT8RQpAG.js} +1 -1
- package/core/built/admin/assets/editor-s1mqd9_o.js +8 -0
- package/core/built/admin/assets/{empty-indicator-Dg64lT_g.js → empty-indicator-BIUvv6JE.js} +1 -1
- package/core/built/admin/assets/{en-DCwBNJ98.js → en-BEcDl42w.js} +1 -1
- package/core/built/admin/assets/{eye-psLxWnjO.js → eye-TPnIdamu.js} +1 -1
- package/core/built/admin/assets/{feed-TUcCSZHL.js → feed-BK3qvLWi.js} +1 -1
- package/core/built/admin/assets/{field-Uk8NOvtc.js → field-CSFsrvVy.js} +1 -1
- package/core/built/admin/assets/{filter-query-core-CbH_VKcG.js → filter-query-core-R8cQCO2w.js} +1 -1
- package/core/built/admin/assets/{filters-DmawZ5Uu.js → filters-Cp1voB1e.js} +1 -1
- package/core/built/admin/assets/gh-chart-BFsyOJD_.js +1 -0
- package/core/built/admin/assets/{ghost-2baa7ddc3630015f41c0efd13bd586b8.js → ghost-1881362e8a92dae1e3333a0484c173a3.js} +7 -6
- package/core/built/admin/assets/{growth-BAl-TyMy.js → growth-DIigOxF1.js} +1 -1
- package/core/built/admin/assets/{hash-Q1ou0OMZ.js → hash-B3iFVeCl.js} +1 -1
- package/core/built/admin/assets/{inbox-BAOtR6tN.js → inbox-2bPMLikt.js} +1 -1
- package/core/built/admin/assets/{index-BnJp51QE.js → index-52qUC8yv.js} +5 -5
- package/core/built/admin/assets/{index-BDIwushG.js → index-9j01Aj_X.js} +1 -1
- package/core/built/admin/assets/index-B9UVpmey.js +1 -0
- package/core/built/admin/assets/{index-DTeOW3Se.js → index-BXc5OF6x.js} +1 -1
- package/core/built/admin/assets/{index-Duc21aJ7.js → index-BaGL3IFe.js} +1 -1
- package/core/built/admin/assets/{index-DKC8uXHk.js → index-BdozZbt2.js} +2 -2
- package/core/built/admin/assets/{index-z951kI4K.js → index-Bgpz7M7i.js} +1 -1
- package/core/built/admin/assets/{index-BfSvX9is.js → index-Bp4O7TVf.js} +1 -1
- package/core/built/admin/assets/{index-C5S08C6P.js → index-BuqUmpe9.js} +1 -1
- package/core/built/admin/assets/{index-D7OtVnbo.js → index-CEF_Ofn0.js} +1 -1
- package/core/built/admin/assets/{index-Bs6rUYFS.js → index-CgSVv5Up.js} +58 -58
- package/core/built/admin/assets/{index-Ro9qXetv.js → index-Cr6x2czK.js} +1 -1
- package/core/built/admin/assets/{index-DJbgQjV6.js → index-CrbZj3Ju.js} +1 -1
- package/core/built/admin/assets/{index-BTBcWw_z.js → index-CrlAPDdD.js} +2 -2
- package/core/built/admin/assets/{index-B6SD2Qs-.js → index-CtrmMGWT.js} +1 -1
- package/core/built/admin/assets/{index-Bw0oyOFd.js → index-D-V_DAdt.js} +1 -1
- package/core/built/admin/assets/{index-DAJduTBl.js → index-D0poOSjw.js} +4 -4
- package/core/built/admin/assets/{index-CGT3W8fi.js → index-DWVGCPEC.js} +3 -3
- package/core/built/admin/assets/index-Dozbr_4s.css +1 -0
- package/core/built/admin/assets/{index-FyplpnYQ.js → index-S3Ai3lDy.js} +1 -1
- package/core/built/admin/assets/{index-DLr8D_Ks.js → index-VDhA5kgU.js} +1 -1
- package/core/built/admin/assets/{index-DRA1fORQ.js → index-fnIFqFMt.js} +1 -1
- package/core/built/admin/assets/{index-BhWQZObu.js → index-kA3UcdW7.js} +1 -1
- package/core/built/admin/assets/{input-group-DH32syTz.js → input-group-Fdl0S6pw.js} +1 -1
- package/core/built/admin/assets/{koenig-lexical-CxVcbgsH.js → koenig-lexical-REiYtzGD.js} +1 -1
- package/core/built/admin/assets/{kpi-card-DBWHDi3l.js → kpi-card-BS8vEj4c.js} +1 -1
- package/core/built/admin/assets/{kpi-card-BYhzWV5F.js → kpi-card-D3HEfOCP.js} +1 -1
- package/core/built/admin/assets/{kpi-tabs-Kxc-utyg.js → kpi-tabs-8vaI7yWq.js} +1 -1
- package/core/built/admin/assets/kpis-CkD0Xteg.js +1 -0
- package/core/built/admin/assets/label-DT38Gd2T.js +1 -0
- package/core/built/admin/assets/{links-Cg8O8ZGP.js → links-BK-azjCL.js} +1 -1
- package/core/built/admin/assets/{list-page-D2KCBsiy.js → list-page-DVpac3lc.js} +1 -1
- package/core/built/admin/assets/{loader-circle-nmLqhMZL.js → loader-circle-CIq5Cv-9.js} +1 -1
- package/core/built/admin/assets/{mail-D7cxYMd5.js → mail-gdeIU06V.js} +1 -1
- package/core/built/admin/assets/{main-layout-BXdUkeCo.js → main-layout-B2t-RiNE.js} +1 -1
- package/core/built/admin/assets/members-7z-tESWd.js +10 -0
- package/core/built/admin/assets/minus-BbGfVkll.js +1 -0
- package/core/built/admin/assets/{modals-VRvX8mK0.js → modals-DVIfijEz.js} +3 -3
- package/core/built/admin/assets/{moderation-DkT8qVJs.js → moderation-DwzDOhih.js} +1 -1
- package/core/built/admin/assets/{newsletter-sUT4ciRJ.js → newsletter-D1N8bUfp.js} +1 -1
- package/core/built/admin/assets/{newsletters-BNvAF2Oi.js → newsletters-7GSeQdQe.js} +1 -1
- package/core/built/admin/assets/{note-B0JhJv7s.js → note-Bn1-ZWDE.js} +1 -1
- package/core/built/admin/assets/offers-BsuLKYy9.js +1 -0
- package/core/built/admin/assets/{onboarding-route-IrO_SCb3.js → onboarding-route-C73r9kyO.js} +1 -1
- package/core/built/admin/assets/{overview-C2nk_B6i.js → overview-6U5p38zx.js} +1 -1
- package/core/built/admin/assets/{pagemenu-BGhty1iq.js → pagemenu-DrueoEX9.js} +1 -1
- package/core/built/admin/assets/{pencil-DiA3J4m5.js → pencil-Csnv8udS.js} +1 -1
- package/core/built/admin/assets/{pin-off-HWos3YHh.js → pin-off-BDeHGsSQ.js} +1 -1
- package/core/built/admin/assets/{post-analytics-context-BJwP-XAB.js → post-analytics-context-jKeUh2Ka.js} +1 -1
- package/core/built/admin/assets/{post-analytics-header-CZF5QmAD.js → post-analytics-header-C5QLn6Lm.js} +1 -1
- package/core/built/admin/assets/{post-analytics-DBUHbt1b.js → post-analytics-ngMqqbt9.js} +1 -1
- package/core/built/admin/assets/{post-share-modal-Bb8R05dH.js → post-share-modal-04B7JT4R.js} +1 -1
- package/core/built/admin/assets/posts/{alert-dialog-mmQvJUHQ.mjs → alert-dialog-CYvHtOQ5.mjs} +4 -4
- package/core/built/admin/assets/posts/{app-utils-CD0bhOLs.mjs → app-utils-Cs-8qje1.mjs} +3 -3
- package/core/built/admin/assets/posts/{automations-BL0WaXHA.mjs → automations-DE2rwx-Z.mjs} +25 -25
- package/core/built/admin/assets/posts/{automations-BmGKngyG.mjs → automations-Dq0_cprS.mjs} +4 -4
- package/core/built/admin/assets/posts/{avatar-CeJ0Zq_A.mjs → avatar-Dt_bGEgl.mjs} +7 -7
- package/core/built/admin/assets/posts/{button-CQCNdxY6.mjs → button-DO7JrPsL.mjs} +2 -2
- package/core/built/admin/assets/posts/{chevron-up-DaikhWC2.mjs → chevron-up-B8WyJjCr.mjs} +3 -3
- package/core/built/admin/assets/posts/{comments-DUSJ25vf.mjs → comments-B3-RpqJU.mjs} +1933 -1905
- package/core/built/admin/assets/posts/{data-list-BiiYXQes.mjs → data-list-BiZFP6Co.mjs} +5 -5
- package/core/built/admin/assets/posts/{dialog-DRN6olky.mjs → dialog-Bvl2PD8s.mjs} +3 -3
- package/core/built/admin/assets/posts/{editor-DN_Zz0m2.mjs → editor-BCtdAD74.mjs} +3230 -3130
- package/core/built/admin/assets/posts/{ellipsis-BIs4PL5-.mjs → ellipsis-B5H7Hudx.mjs} +2 -2
- package/core/built/admin/assets/posts/{empty-indicator-Wiukrx4T.mjs → empty-indicator-BRoAf6Jv.mjs} +2 -2
- package/core/built/admin/assets/posts/{filters-CJl5ebXd.mjs → filters-CffYQY_8.mjs} +12 -12
- package/core/built/admin/assets/posts/{get-site-timezone-JepxGwVr.mjs → get-site-timezone-CSrPVUfX.mjs} +2 -2
- package/core/built/admin/assets/posts/{growth-cNlqbz-x.mjs → growth--LVGRPtS.mjs} +13 -13
- package/core/built/admin/assets/posts/{heading-C_V6Ckxx.mjs → heading-BRQEP7IA.mjs} +2 -2
- package/core/built/admin/assets/posts/{heart-BMBWsLs2.mjs → heart-CC2f1qWb.mjs} +2 -2
- package/core/built/admin/assets/posts/{hooks-D4pJ_p_P.mjs → hooks-J2WpDj1d.mjs} +2 -2
- package/core/built/admin/assets/posts/{index-DzWTmJMy.mjs → index-D-vhKzUJ.mjs} +3 -3
- package/core/built/admin/assets/posts/{index-CDwlVw9E.mjs → index-LnPyGojr.mjs} +2 -2
- package/core/built/admin/assets/posts/{index-BuIZkUhD.mjs → index-nxfIbREV.mjs} +11 -11
- package/core/built/admin/assets/posts/{input-DUvSHOFz.mjs → input-DTtfruk_.mjs} +3 -3
- package/core/built/admin/assets/posts/{input-surface-CO8-j6V2.mjs → input-surface-DXTGCuo2.mjs} +2 -2
- package/core/built/admin/assets/posts/{koenig-lexical-cRm7bY-6.mjs → koenig-lexical-CNcifuT7.mjs} +2 -2
- package/core/built/admin/assets/posts/{kpis-BXukzbg6.mjs → kpis-n8L4BlMi.mjs} +5843 -5854
- package/core/built/admin/assets/posts/{label-TTt0QyDb.mjs → label-yl8B8ADj.mjs} +6 -6
- package/core/built/admin/assets/posts/{links-BAXELE82.mjs → links-DDApMJfk.mjs} +4 -4
- package/core/built/admin/assets/posts/{list-page-DQIiFvFP.mjs → list-page-BJJ9amzJ.mjs} +4 -4
- package/core/built/admin/assets/posts/{loading-indicator-BsY7eGY6.mjs → loading-indicator-CQBDNvdo.mjs} +3 -3
- package/core/built/admin/assets/posts/{mail-Bi1gt3MU.mjs → mail-BHg0SvNu.mjs} +2 -2
- package/core/built/admin/assets/posts/{main-layout-DejRuxP8.mjs → main-layout-DXveCJ5W.mjs} +2 -2
- package/core/built/admin/assets/posts/{newsletter-PCUtHW6Z.mjs → newsletter-DUpVmnKN.mjs} +19 -19
- package/core/built/admin/assets/posts/{overview-f4eDWazr.mjs → overview-sv6i-2h9.mjs} +18 -18
- package/core/built/admin/assets/posts/{pencil-DDnfXQqn.mjs → pencil-DsGDLJp6.mjs} +2 -2
- package/core/built/admin/assets/posts/{plus-DW3bG6ui.mjs → plus-DjZ_REvJ.mjs} +2 -2
- package/core/built/admin/assets/posts/{popover-Du2NcggM.mjs → popover-2PA9zdiD.mjs} +4 -4
- package/core/built/admin/assets/posts/{post-analytics-BmnHyWJq.mjs → post-analytics-CKHoiJFY.mjs} +6 -6
- package/core/built/admin/assets/posts/{post-analytics-context-0fieM91Y.mjs → post-analytics-context-D17CB7nm.mjs} +6 -6
- package/core/built/admin/assets/posts/{post-analytics-header-Bxi56AWV.mjs → post-analytics-header-aQLnrdWi.mjs} +12 -12
- package/core/built/admin/assets/posts/{post-share-modal-DiuT4GFO.mjs → post-share-modal-C8-8CZw8.mjs} +6 -6
- package/core/built/admin/assets/posts/{posts-CYjfxmgX.mjs → posts-BA2vu_T2.mjs} +2 -2
- package/core/built/admin/assets/posts/posts.js +1 -1
- package/core/built/admin/assets/posts/{search-Dz7F6ifc.mjs → search-Bx6BvCRk.mjs} +2 -2
- package/core/built/admin/assets/posts/{select-FX6QYAFU.mjs → select-QOJ2OvL0.mjs} +7 -7
- package/core/built/admin/assets/posts/{separator-C7QPCSjM.mjs → separator-CHtBa4OX.mjs} +3 -3
- package/core/built/admin/assets/posts/{settings-DJqx19W1.mjs → settings-CxhTCxXg.mjs} +2 -2
- package/core/built/admin/assets/posts/{sheet-wg_8-w45.mjs → sheet-DO5nhiru.mjs} +4 -4
- package/core/built/admin/assets/posts/{site-Bxv-L5Dn.mjs → site-6g4pKVnR.mjs} +2 -2
- package/core/built/admin/assets/posts/{skeleton-DrFcKwP3.mjs → skeleton-DgWx-52p.mjs} +3 -3
- package/core/built/admin/assets/posts/{source-icon-DD_bmIqg.mjs → source-icon-_zLbYeab.mjs} +4 -4
- package/core/built/admin/assets/posts/{stats-DkOg80Vt.mjs → stats-BGJFxx5f.mjs} +4 -4
- package/core/built/admin/assets/posts/{switch-DZFGAF_Y.mjs → switch-Djipx7gc.mjs} +5 -5
- package/core/built/admin/assets/posts/{table-CZCVviNy.mjs → table-DpDCE80J.mjs} +2 -2
- package/core/built/admin/assets/posts/{tabs-1fkhM4p8.mjs → tabs-CLWGiyQ4.mjs} +4 -4
- package/core/built/admin/assets/posts/{tags-CkyGqwqi.mjs → tags-B4KIn7er.mjs} +2 -2
- package/core/built/admin/assets/posts/{tags-BAmugIR1.mjs → tags-Dn1L_Z_4.mjs} +16 -16
- package/core/built/admin/assets/posts/{toggle-group-B_ubMZvo.mjs → toggle-group-DMMjXGB3.mjs} +4 -4
- package/core/built/admin/assets/posts/{tooltip-D1X0uVas.mjs → tooltip-DlCjZwmt.mjs} +5 -5
- package/core/built/admin/assets/posts/{underline-CV8OJ7qc.mjs → underline-WN3ZSFyI.mjs} +2 -2
- package/core/built/admin/assets/posts/{value-DhEK7_uT.mjs → value-BWiEmo45.mjs} +2 -2
- package/core/built/admin/assets/posts/{virtual-list-window-DqbQUkIo.mjs → virtual-list-window-F3Tvi9H5.mjs} +3 -3
- package/core/built/admin/assets/posts/{web-5jcYGeBz.mjs → web-C8PxkHvH.mjs} +18 -18
- package/core/built/admin/assets/posts/{x-Cl72IwQm.mjs → x-BdlZ3sG3.mjs} +2 -2
- package/core/built/admin/assets/posts/{zap-BPDyHF1u.mjs → zap-BuAk2C7n.mjs} +33 -21
- package/core/built/admin/assets/{posts-D6K0FKB9.js → posts-bRma2Aji.js} +1 -1
- package/core/built/admin/assets/power-B4VCYMPn.js +1 -0
- package/core/built/admin/assets/{referrers-C9UK_aF_.js → referrers-BgXy4ZDF.js} +1 -1
- package/core/built/admin/assets/{repeat-BwgUDBQn.js → repeat-BElPLZnh.js} +1 -1
- package/core/built/admin/assets/{reply-DbknkQhJ.js → reply-qlUFZ_G8.js} +1 -1
- package/core/built/admin/assets/{rocket-1EqU2MzS.js → rocket-CXYckFbm.js} +1 -1
- package/core/built/admin/assets/{select-BGJXWb8i.js → select-MGAxyhXP.js} +1 -1
- package/core/built/admin/assets/{send-_CqvCQBY.js → send-DcU5LcPI.js} +1 -1
- package/core/built/admin/assets/{settings-Bnep890F.js → settings-DGSAz4oa.js} +4 -4
- package/core/built/admin/assets/{settings-Ct244PHl.js → settings-DI95fXs5.js} +1 -1
- package/core/built/admin/assets/{share-modal-B8pN_3tk.js → share-modal-CsNAIPeN.js} +1 -1
- package/core/built/admin/assets/{sort-button-EXsVVSdw.js → sort-button-wV9PBd2P.js} +1 -1
- package/core/built/admin/assets/{source-icon-XMs0toB0.js → source-icon-CYt4X1-M.js} +1 -1
- package/core/built/admin/assets/{sprout-uA_pVmDr.js → sprout-5QqpAoO8.js} +1 -1
- package/core/built/admin/assets/{square-atKnWQyw.js → square-YHeYyKG9.js} +1 -1
- package/core/built/admin/assets/{stats-CPNnZGD9.js → stats-PD64opSw.js} +1 -1
- package/core/built/admin/assets/{stats-view-BP8LU5rf.js → stats-view-C4fnD3uG.js} +1 -1
- package/core/built/admin/assets/{step-1-FHeGC4GW.js → step-1-BqeM_LxC.js} +1 -1
- package/core/built/admin/assets/{step-2-BFhgD2N8.js → step-2-C7AcokE9.js} +1 -1
- package/core/built/admin/assets/{step-3-BZMKjY5n.js → step-3-9Z0qkfpM.js} +2 -2
- package/core/built/admin/assets/{table-kGA62bBZ.js → table-C8Mxw8fs.js} +1 -1
- package/core/built/admin/assets/{tabs-Dl3BXr4Z.js → tabs-2KXMNRG-.js} +1 -1
- package/core/built/admin/assets/{tags-CLhASxwZ.js → tags-Cx-Jx8Yb.js} +1 -1
- package/core/built/admin/assets/{tags-D-W0kJMe.js → tags-cn7wgGit.js} +1 -1
- package/core/built/admin/assets/{textarea-DMub6CsU.js → textarea-dKwIcAK5.js} +1 -1
- package/core/built/admin/assets/{thumbs-up-DZu4SX5N.js → thumbs-up-gzGza05L.js} +1 -1
- package/core/built/admin/assets/{tiers-2bg8BCFj.js → tiers-D--LgD9v.js} +1 -1
- package/core/built/admin/assets/{toggle-group-ByS0KZ3G.js → toggle-group-C8KbiBQS.js} +1 -1
- package/core/built/admin/assets/{topic-filter-oRqwlePZ.js → topic-filter--VQn4A7D.js} +1 -1
- package/core/built/admin/assets/{trash-BHoSD8mS.js → trash-CnBwlhjN.js} +1 -1
- package/core/built/admin/assets/{underline-1YSgOpPm.js → underline-B2FjHOE0.js} +1 -1
- package/core/built/admin/assets/{undo-2-BwYMlB8G.js → undo-2-fUPuO2Zt.js} +1 -1
- package/core/built/admin/assets/{upload-BDz0_o9b.js → upload-BPOrFdtp.js} +1 -1
- package/core/built/admin/assets/{use-growth-stats-PRVcCUT7.js → use-growth-stats-By0ZDqFi.js} +1 -1
- package/core/built/admin/assets/{use-pintura-config-CROsgSEd.js → use-pintura-config-0ykvCF7U.js} +1 -1
- package/core/built/admin/assets/{use-simple-pagination-CBjKBNNI.js → use-simple-pagination-TruuCHV6.js} +1 -1
- package/core/built/admin/assets/{user-round-check-DKooQiV7.js → user-round-check-C1Vahz0b.js} +1 -1
- package/core/built/admin/assets/{user-round-x-B94nAYJb.js → user-round-x-CzKFo5GY.js} +1 -1
- package/core/built/admin/assets/{virtual-list-window-Cf_vCQFb.js → virtual-list-window-BWEknk_A.js} +1 -1
- package/core/built/admin/assets/{wallet-cards-BorRQari.js → wallet-cards-CRHrrjiy.js} +1 -1
- package/core/built/admin/assets/{web-BVHy-80k.js → web-C2H0oAut.js} +1 -1
- package/core/built/admin/index.html +7 -7
- package/core/frontend/services/llms/service.js +37 -10
- package/core/frontend/services/routing/config.js +5 -3
- package/core/frontend/services/routing/config.ts +59 -0
- package/core/frontend/services/sitemap/handler.js +2 -14
- package/core/frontend/services/sitemap/site-map-manager.js +9 -214
- package/core/server/api/endpoints/comment-replies.js +1 -2
- package/core/server/api/endpoints/members.js +4 -1
- package/core/server/api/endpoints/search-index-public.js +12 -1
- package/core/server/api/endpoints/search-index.js +13 -2
- package/core/server/lib/bootstrap-socket.js +31 -36
- package/core/server/lib/bootstrap-socket.ts +114 -0
- package/core/server/lib/common/to-plain.js +9 -21
- package/core/server/lib/common/to-plain.ts +25 -0
- package/core/server/models/role-utils.js +5 -7
- package/core/server/models/role-utils.ts +56 -0
- package/core/server/services/adapter-manager/adapter-manager.js +5 -1
- package/core/server/services/audience-feedback/audience-feedback-service.js +1 -1
- package/core/server/services/automations/automations-api.js +37 -2
- package/core/server/services/automations/automations-api.ts +43 -2
- package/core/server/services/comments/comments-controller.js +87 -55
- package/core/server/services/comments/comments-service-emails.js +1 -1
- package/core/server/services/comments/comments-service.js +249 -79
- package/core/server/services/mail/templates/notification.html +157 -0
- package/core/server/services/member-attribution/url-translator.js +1 -1
- package/core/server/services/members/members-api/services/token-service.js +21 -2
- package/core/server/services/notifications/notification-email.js +38 -0
- package/core/server/services/notifications/notification-email.ts +66 -0
- package/core/server/services/notifications/sanitize-email-html.js +37 -0
- package/core/server/services/notifications/sanitize-email-html.ts +35 -0
- package/core/server/services/route-settings/route-settings.js +2 -18
- package/core/server/services/route-settings/validate.js +2 -1
- package/core/server/services/update-check/index.js +10 -3
- package/core/server/services/update-check/update-check-service.js +18 -25
- package/core/server/services/url/index.js +1 -16
- package/core/shared/config/defaults.json +0 -1
- package/package.json +2 -1
- package/pnpm-lock.yaml +11 -1
- package/pnpm-workspace.yaml +2 -0
- package/core/built/admin/assets/editor-G3BxjP48.js +0 -8
- package/core/built/admin/assets/gh-chart-vpcpdiS9.js +0 -1
- package/core/built/admin/assets/index-BP5ial3p.js +0 -1
- package/core/built/admin/assets/index-Bd9VZ28k.css +0 -1
- package/core/built/admin/assets/kpis-B8pv3wne.js +0 -1
- package/core/built/admin/assets/label-BjHICZC1.js +0 -1
- package/core/built/admin/assets/members-DcuuSs_v.js +0 -10
- package/core/built/admin/assets/minus-Dv51QEND.js +0 -1
- package/core/built/admin/assets/offers-DKZ0qsmb.js +0 -1
- package/core/built/admin/assets/power-D5QO6MjY.js +0 -1
- package/core/server/services/url/lazy-find-resource.js +0 -49
- package/core/server/services/url/lazy-find-resource.ts +0 -62
- package/core/server/services/url/lazy-url-service.js +0 -262
- package/core/server/services/url/lazy-url-service.ts +0 -308
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e8 as gt,d2 as aa,ei as zm,cp as HL,cs as Gm,fB as WL,cR as Dg,dY as Zt,cJ as ke,cZ as fh,a8 as UL,af as YL,J as Jw,ag as $L,aa as XL,ac as ZL}from"./index-Bs6rUYFS.js";const Fm={0:"#FFFFFF",100:"#25283D"},Qw={background:{default:Fm[0]},text:{default:Fm[100]}},qL=["#27F795","#008060","#0EB1B9","#9263AF","#5A6FC0","#86BFDB","#FFC145","#FF6B6C","#DC82C8","#FFC0F1"],KL=Qw.text.default,jL=Qw.background.default,JL="Inter, sans-serif",QL="12px",tT=0,eT=1,rT=2,Hm=3;var Wm=Object.prototype.hasOwnProperty;function Id(r,e){var t,a;if(r===e)return!0;if(r&&e&&(t=r.constructor)===e.constructor){if(t===Date)return r.getTime()===e.getTime();if(t===RegExp)return r.toString()===e.toString();if(t===Array){if((a=r.length)===e.length)for(;a--&&Id(r[a],e[a]););return a===-1}if(!t||typeof r=="object"){a=0;for(t in r)if(Wm.call(r,t)&&++a&&!Wm.call(e,t)||!(t in e)||!Id(r[t],e[t]))return!1;return Object.keys(e).length===a}}return r!==r&&e!==e}const ca=new WeakMap,da=()=>{},Ce=da(),Ld=Object,Lt=r=>r===Ce,Wr=r=>typeof r=="function",on=(r,e)=>({...r,...e}),aT=r=>Wr(r.then),ev={},Wl={},Mg="undefined",Sl=typeof window!=Mg,Pd=typeof document!=Mg,t2=Sl&&"Deno"in window,e2=()=>Sl&&typeof window.requestAnimationFrame!=Mg,nT=(r,e)=>{const t=ca.get(r);return[()=>!Lt(e)&&r.get(e)||ev,a=>{if(!Lt(e)){const n=r.get(e);e in Wl||(Wl[e]=n),t[5](e,on(n,a),n||ev)}},t[6],()=>!Lt(e)&&e in Wl?Wl[e]:!Lt(e)&&r.get(e)||ev]};let Rd=!0;const r2=()=>Rd,[Ed,kd]=Sl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[da,da],a2=()=>{const r=Pd&&document.visibilityState;return Lt(r)||r!=="hidden"},n2=r=>(Pd&&document.addEventListener("visibilitychange",r),Ed("focus",r),()=>{Pd&&document.removeEventListener("visibilitychange",r),kd("focus",r)}),i2=r=>{const e=()=>{Rd=!0,r()},t=()=>{Rd=!1};return Ed("online",e),Ed("offline",t),()=>{kd("online",e),kd("offline",t)}},o2={isOnline:r2,isVisible:a2},s2={initFocus:n2,initReconnect:i2},Um=!aa.useId,so=!Sl||t2,l2=r=>e2()?window.requestAnimationFrame(r):setTimeout(r,1),rv=so?gt.useEffect:gt.useLayoutEffect,av=typeof navigator<"u"&&navigator.connection,Ym=!so&&av&&(["slow-2g","2g"].includes(av.effectiveType)||av.saveData),Ul=new WeakMap,u2=r=>Ld.prototype.toString.call(r),nv=(r,e)=>r===`[object ${e}]`;let f2=0;const Od=r=>{const e=typeof r,t=u2(r),a=nv(t,"Date"),n=nv(t,"RegExp"),i=nv(t,"Object");let o,s;if(Ld(r)===r&&!a&&!n){if(o=Ul.get(r),o)return o;if(o=++f2+"~",Ul.set(r,o),Array.isArray(r)){for(o="@",s=0;s<r.length;s++)o+=Od(r[s])+",";Ul.set(r,o)}if(i){o="#";const l=Ld.keys(r).sort();for(;!Lt(s=l.pop());)Lt(r[s])||(o+=s+":"+Od(r[s])+",");Ul.set(r,o)}}else o=a?r.toJSON():e=="symbol"?r.toString():e=="string"?JSON.stringify(r):""+r;return o},Ig=r=>{if(Wr(r))try{r=r()}catch{r=""}const e=r;return r=typeof r=="string"?r:(Array.isArray(r)?r.length:r)?Od(r):"",[r,e]};let h2=0;const Nd=()=>++h2;async function iT(...r){const[e,t,a,n]=r,i=on({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const u=v=>typeof s=="function"?s(v):s!==!1,f=i.throwOnError;if(Wr(t)){const v=t,c=[],d=e.keys();for(const p of d)!/^\$(inf|sub)\$/.test(p)&&v(e.get(p)._k)&&c.push(p);return Promise.all(c.map(h))}return h(t);async function h(v){const[c]=Ig(v);if(!c)return;const[d,p]=nT(e,c),[g,y,m,_]=ca.get(e),S=()=>{const P=g[c];return(Wr(i.revalidate)?i.revalidate(d().data,v):i.revalidate!==!1)&&(delete m[c],delete _[c],P&&P[0])?P[0](rT).then(()=>d().data):d().data};if(r.length<3)return S();let b=a,x,w=!1;const C=Nd();y[c]=[C,0];const T=!Lt(l),A=d(),M=A.data,I=A._c,L=Lt(I)?M:I;if(T&&(l=Wr(l)?l(L,M):l,p({data:l,_c:L})),Wr(b))try{b=b(L)}catch(P){x=P,w=!0}if(b&&aT(b))if(b=await b.catch(P=>{x=P,w=!0}),C!==y[c][0]){if(w)throw x;return b}else w&&T&&u(x)&&(o=!0,p({data:L,_c:Ce}));if(o&&!w)if(Wr(o)){const P=o(b,L);p({data:P,error:Ce,_c:Ce})}else p({data:b,error:Ce,_c:Ce});if(y[c][1]=Nd(),Promise.resolve(S()).then(()=>{p({_c:Ce})}),w){if(f)throw x;return}return b}}const $m=(r,e)=>{for(const t in r)r[t][0]&&r[t][0](e)},v2=(r,e)=>{if(!ca.has(r)){const t=on(s2,e),a=Object.create(null),n=iT.bind(Ce,r);let i=da;const o=Object.create(null),s=(f,h)=>{const v=o[f]||[];return o[f]=v,v.push(h),()=>v.splice(v.indexOf(h),1)},l=(f,h,v)=>{r.set(f,h);const c=o[f];if(c)for(const d of c)d(h,v)},u=()=>{if(!ca.has(r)&&(ca.set(r,[a,Object.create(null),Object.create(null),Object.create(null),n,l,s]),!so)){const f=t.initFocus(setTimeout.bind(Ce,$m.bind(Ce,a,tT))),h=t.initReconnect(setTimeout.bind(Ce,$m.bind(Ce,a,eT)));i=()=>{f&&f(),h&&h(),ca.delete(r)}}};return u(),[r,n,u,i]}return[r,ca.get(r)[4]]},c2=(r,e,t,a,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Lt(i)&&o>i||setTimeout(a,s,n)},d2=Id,[oT,p2]=v2(new Map),g2=on({onLoadingSlow:da,onSuccess:da,onError:da,onErrorRetry:c2,onDiscarded:da,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ym?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ym?5e3:3e3,compare:d2,isPaused:()=>!1,cache:oT,mutate:p2,fallback:{}},o2),y2=(r,e)=>{const t=on(r,e);if(e){const{use:a,fallback:n}=r,{use:i,fallback:o}=e;a&&i&&(t.use=a.concat(i)),n&&o&&(t.fallback=on(n,o))}return t},m2=gt.createContext({}),_2="$inf$",sT=Sl&&window.__SWR_DEVTOOLS_USE__,S2=sT?window.__SWR_DEVTOOLS_USE__:[],x2=()=>{sT&&(window.__SWR_DEVTOOLS_REACT__=aa)},b2=r=>Wr(r[1])?[r[0],r[1],r[2]||{}]:[r[0],null,(r[1]===null?r[2]:r[1])||{}],lT=()=>{const r=gt.useContext(m2);return gt.useMemo(()=>on(g2,r),[r])},w2=r=>(e,t,a)=>r(e,t&&((...i)=>{const[o]=Ig(e),[,,,s]=ca.get(oT);if(o.startsWith(_2))return t(...i);const l=s[o];return Lt(l)?t(...i):(delete s[o],l)}),a),T2=S2.concat(w2),C2=r=>function(...t){const a=lT(),[n,i,o]=b2(t),s=y2(a,o);let l=r;const{use:u}=s,f=(u||[]).concat(T2);for(let h=f.length;h--;)l=f[h](l);return l(n,i||s.fetcher||null,s)},A2=(r,e,t)=>{const a=e[r]||(e[r]=[]);return a.push(t),()=>{const n=a.indexOf(t);n>=0&&(a[n]=a[a.length-1],a.pop())}};x2();const iv=aa.use||(r=>{switch(r.status){case"pending":throw r;case"fulfilled":return r.value;case"rejected":throw r.reason;default:throw r.status="pending",r.then(e=>{r.status="fulfilled",r.value=e},e=>{r.status="rejected",r.reason=e}),r}}),ov={dedupe:!0},Xm=Promise.resolve(Ce),D2=()=>da,M2=(r,e,t)=>{const{cache:a,compare:n,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:f,refreshWhenOffline:h,keepPreviousData:v,strictServerPrefetchWarning:c}=t,[d,p,g,y]=ca.get(a),[m,_]=Ig(r),S=gt.useRef(!1),b=gt.useRef(!1),x=gt.useRef(m),w=gt.useRef(e),C=gt.useRef(t),T=()=>C.current,A=()=>T().isVisible()&&T().isOnline(),[M,I,L,P]=nT(a,m),R=gt.useRef({}).current,E=Lt(o)?Lt(t.fallback)?Ce:t.fallback[m]:o,N=(_t,Et)=>{for(const It in R){const Ht=It;if(Ht==="data"){if(!n(_t[Ht],Et[Ht])&&(!Lt(_t[Ht])||!n(Mt,Et[Ht])))return!1}else if(Et[Ht]!==_t[Ht])return!1}return!0},O=!S.current,B=gt.useMemo(()=>{const _t=M(),Et=P(),It=jt=>{const Sr=on(jt);return delete Sr._k,(()=>{if(!m||!e||T().isPaused())return!1;if(O&&!Lt(s))return s;const Wo=Lt(E)?Sr.data:E;return Lt(Wo)||l})()?{isValidating:!0,isLoading:!0,...Sr}:Sr},Ht=It(_t),se=_t===Et?Ht:It(Et);let Me=Ht;return[()=>{const jt=It(M());return N(jt,Me)?(Me.data=jt.data,Me.isLoading=jt.isLoading,Me.isValidating=jt.isValidating,Me.error=jt.error,Me):(Me=jt,jt)},()=>se]},[a,m]),G=zm.useSyncExternalStore(gt.useCallback(_t=>L(m,(Et,It)=>{N(It,Et)||_t()}),[a,m]),B[0],B[1]),H=d[m]&&d[m].length>0,W=G.data,K=Lt(W)?E&&aT(E)?iv(E):E:W,j=G.error,at=gt.useRef(K),Mt=v?Lt(W)?Lt(at.current)?K:at.current:W:K,Vt=m&&Lt(K),lt=gt.useRef(null);!so&&zm.useSyncExternalStore(D2,()=>(lt.current=!1,lt),()=>(lt.current=!0,lt));const Q=lt.current;c&&Q&&!i&&Vt&&console.warn(`Missing pre-initiated data for serialized key "${m}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ct=!m||!e||T().isPaused()||H&&!Lt(j)?!1:O&&!Lt(s)?s:i?Lt(K)?!1:l:Lt(K)||l,Z=O&&ct,it=Lt(G.isValidating)?Z:G.isValidating,zt=Lt(G.isLoading)?Z:G.isLoading,Ct=gt.useCallback(async _t=>{const Et=w.current;if(!m||!Et||b.current||T().isPaused())return!1;let It,Ht,se=!0;const Me=_t||{},jt=!g[m]||!Me.dedupe,Sr=()=>Um?!b.current&&m===x.current&&S.current:m===x.current,Ho={isValidating:!1,isLoading:!1},Wo=()=>{I(Ho)},Bm=()=>{const tr=g[m];tr&&tr[1]===Ht&&delete g[m]},Vm={isValidating:!0};Lt(M().data)&&(Vm.isLoading=!0);try{if(jt&&(I(Vm),t.loadingTimeout&&Lt(M().data)&&setTimeout(()=>{se&&Sr()&&T().onLoadingSlow(m,t)},t.loadingTimeout),g[m]=[Et(_),Nd()]),[It,Ht]=g[m],It=await It,jt&&setTimeout(Bm,t.dedupingInterval),!g[m]||g[m][1]!==Ht)return jt&&Sr()&&T().onDiscarded(m),!1;Ho.error=Ce;const tr=p[m];if(!Lt(tr)&&(Ht<=tr[0]||Ht<=tr[1]||tr[1]===0))return Wo(),jt&&Sr()&&T().onDiscarded(m),!1;const sa=M().data;Ho.data=n(sa,It)?sa:It,jt&&Sr()&&T().onSuccess(It,m,t)}catch(tr){Bm();const sa=T(),{shouldRetryOnError:Qh}=sa;sa.isPaused()||(Ho.error=tr,jt&&Sr()&&(sa.onError(tr,m,sa),(Qh===!0||Wr(Qh)&&Qh(tr))&&(!T().revalidateOnFocus||!T().revalidateOnReconnect||A())&&sa.onErrorRetry(tr,m,sa,FL=>{const tv=d[m];tv&&tv[0]&&tv[0](Hm,FL)},{retryCount:(Me.retryCount||0)+1,dedupe:!0})))}return se=!1,Wo(),!0},[m,a]),Nt=gt.useCallback((..._t)=>iT(a,x.current,..._t),[]);if(rv(()=>{w.current=e,C.current=t,Lt(W)||(at.current=W)}),rv(()=>{if(!m)return;const _t=Ct.bind(Ce,ov);let Et=0;T().revalidateOnFocus&&(Et=Date.now()+T().focusThrottleInterval);const Ht=A2(m,d,(se,Me={})=>{if(se==tT){const jt=Date.now();T().revalidateOnFocus&&jt>Et&&A()&&(Et=jt+T().focusThrottleInterval,_t())}else if(se==eT)T().revalidateOnReconnect&&A()&&_t();else{if(se==rT)return Ct();if(se==Hm)return Ct(Me)}});return b.current=!1,x.current=m,S.current=!0,I({_k:_}),ct&&(g[m]||(Lt(K)||so?_t():l2(_t))),()=>{b.current=!0,Ht()}},[m]),rv(()=>{let _t;function Et(){const Ht=Wr(u)?u(M().data):u;Ht&&_t!==-1&&(_t=setTimeout(It,Ht))}function It(){!M().error&&(f||T().isVisible())&&(h||T().isOnline())?Ct(ov).then(Et):Et()}return Et(),()=>{_t&&(clearTimeout(_t),_t=-1)}},[u,f,h,m]),gt.useDebugValue(Mt),i){if(!Um&&so&&Vt)throw new Error("Fallback data is required when using Suspense in SSR.");Vt&&(w.current=e,C.current=t,b.current=!1);const _t=y[m],Et=!Lt(_t)&&Vt?Nt(_t):Xm;if(iv(Et),!Lt(j)&&Vt)throw j;const It=Vt?Ct(ov):Xm;!Lt(Mt)&&Vt&&(It.status="fulfilled",It.value=!0),iv(It)}return{mutate:Nt,get data(){return R.data=!0,Mt},get error(){return R.error=!0,j},get isValidating(){return R.isValidating=!0,it},get isLoading(){return R.isLoading=!0,zt}}},I2=C2(M2);function Zm(r){return Object.entries(r).reduce((e,[t,a])=>a===void 0?e:Object.assign(Object.assign({},e),{[t]:a}),{})}function L2(r,e,t){let a;if(r)try{a=new URL(r);for(const[n,i]of Object.entries(t))typeof i!="string"&&typeof i!="number"||a.searchParams.set(n,String(i));a.searchParams.has("from")||a.searchParams.set("from","chart"),e&&a.searchParams.set("token",e)}catch(n){console.error(n)}return a}function P2(r,e){return HL(this,void 0,void 0,function*(){const t=new URL(r);let a=Object.assign({},e);if(t.toString().length>2048){const i={};for(const[o,s]of t.searchParams.entries())o!=="token"&&o!=="from"&&(t.searchParams.delete(o),i[o]=s);a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({},a),i))}}const n=yield fetch(t,a);if(!n.ok)throw new Error(`Error: ${(yield n.text())||"Could not fetch data"}`);return yield n.json()})}aa.createContext({backgroundColor:jL,borderColor:void 0,borderRadius:void 0,boxShadow:void 0,colorPalette:qL,padding:void 0,fontFamily:JL,fontSize:QL,textColor:KL});const R2=aa.createContext({endpoint:void 0,token:void 0});function E2(r){const{fetcher:e=P2,refreshInterval:t,onError:a,onSuccess:n}=lT(),i=aa.useContext(R2),o=Zm(r),s=Zm(Object.assign(Object.assign({},i),{fetcher:e,refreshInterval:t,onError:a,onSuccess:n}));return Object.assign(Object.assign({},s),o)}aa.createContext({fallbackLoading:void 0,fallbackError:void 0});function k2(r){var{params:e={}}=r,t=Gm(r,["params"]);const a=E2(t),{endpoint:n,token:i}=a,o=Gm(a,["endpoint","token"]),s=L2(n,i,e),{data:l,error:u,isLoading:f,mutate:h}=I2(()=>s?s.toString():null,Object.assign(Object.assign({},o),{shouldRetryOnError:!1}));return{data:l?.data||null,meta:l?.meta||null,statistics:l?.statistics||null,error:u?.message||null,loading:f,endpoint:n,token:i,refresh:h}}var Bd=function(r,e){return Bd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Bd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var O2=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),N2=(function(){function r(){this.browser=new O2,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),mt=new N2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mt.wxa=!0,mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mt.worker=!0:!mt.hasGlobalWindow||"Deno"in window?(mt.node=!0,mt.svgSupported=!0):B2(navigator.userAgent,mt);function B2(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Lg=12,uT="sans-serif",sn=Lg+"px "+uT,V2=20,z2=100,G2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function F2(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-V2)/z2;e[a]=n}return e}var H2=F2(G2),ln={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=ln.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||sn),r.measureText(t);t=t||"",a=a||sn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Lg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=H2[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},fT=Jr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),hT=Jr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ao=Object.prototype.toString,hh=Array.prototype,W2=hh.forEach,U2=hh.filter,Pg=hh.slice,Y2=hh.map,qm=(function(){}).constructor,Yl=qm?qm.prototype:null,Rg="__proto__",$2=2311;function vT(){return $2++}function Eg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=Ao.call(r);if(t==="[object Array]"){if(!Ps(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(hT[t]){if(!Ps(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!fT[t]&&!Ps(r)&&!po(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Rg&&(e[o]=rt(r[o]))}return e}function ft(r,e,t){if(!et(e)||!et(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Rg){var n=r[a],i=e[a];et(i)&&et(n)&&!z(i)&&!z(n)&&!po(i)&&!po(n)&&!Km(i)&&!Km(n)&&!Ps(i)&&!Ps(n)?ft(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function kg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ft(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Rg&&(r[t]=e[t]);return r}function tt(r,e,t){for(var a=xt(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function dt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function X2(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ne(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else tt(r,e,t)}function Ae(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===W2)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function F(r,e,t){if(!r)return[];if(!e)return Og(r);if(r.map&&r.map===Y2)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Jr(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Rt(r,e,t){if(!r)return[];if(!e)return Og(r);if(r.filter&&r.filter===U2)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Z2(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function xt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function q2(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Pg.call(arguments)))}}var $=Yl&&J(Yl.bind)?Yl.call.bind(Yl.bind):q2;function ut(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Pg.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):Ao.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function Vd(r){return Ao.call(r)==="[object String]"}function At(r){return typeof r=="number"}function et(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Km(r){return!!fT[Ao.call(r)]}function Xe(r){return!!hT[Ao.call(r)]}function po(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function vh(r){return r.colorStops!=null}function K2(r){return r.image!=null}function j2(r){return Ao.call(r)==="[object RegExp]"}function Ys(r){return r!==r}function pe(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function st(r,e){return r??e}function Kr(r,e,t){return r??e??t}function Og(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Pg.apply(r,e)}function Ng(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Be(r,e){if(!r)throw new Error(e)}function Ar(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cT="__ec_primitive__";function pf(r){r[cT]=!0}function Ps(r){return r[cT]}var J2=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return xt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),dT=typeof Map=="function";function Q2(){return dT?new Map:new J2}var tP=(function(){function r(e){var t=z(e);this.data=Q2();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return dT?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function q(r){return new tP(r)}function $s(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&V(t,e),t}function pT(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function X(r,e){return r.hasOwnProperty(e)}function te(){}var Xu=180/Math.PI;function xi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Le(r,e){return r[0]=e[0],r[1]=e[1],r}function ya(r){return[r[0],r[1]]}function eP(r,e,t){return r[0]=e,r[1]=t,r}function jm(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function zd(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function jn(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Gd(r){return Math.sqrt(rP(r))}function rP(r){return r[0]*r[0]+r[1]*r[1]}function Zu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Do(r,e){var t=Gd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Fd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var $a=Fd;function aP(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ii=aP;function qu(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function me(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Xa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Za(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Li=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),nP=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Li(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Li(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Li(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Li(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Li(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Li(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),yr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),iP=Math.log(2);function Hd(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/iP);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[t][v]*Hd(r,e-1,f,u,n|d,i),c++)}return i[o]=h,h}function Jm(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Hd(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Hd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Qm="___zrEVENTSAVED",sv=[];function oP(r,e,t,a,n){return Wd(sv,e,a,n,!0)&&Wd(r,t,sv[0],sv[1])}function Wd(r,e,t,a,n){if(e.getBoundingClientRect&&mt.domSupported&&!gT(e)){var i=e[Qm]||(e[Qm]={}),o=sP(e,i),s=lP(o,i,n);if(s)return s(r,t,a),!0}return!1}function sP(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function lP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Jm(s,o):Jm(o,s))}function gT(r){return r.nodeName.toUpperCase()==="CANVAS"}var uP=/([&<>"'])/g,fP={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ee(r){return r==null?"":(r+"").replace(uP,function(e,t){return fP[t]})}var hP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lv=[],vP=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function Ud(r,e,t,a){return t=t||{},a?t0(r,e,t):vP&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):t0(r,e,t),t}function t0(r,e,t){if(mt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(gT(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Wd(lv,r,a,n)){t.zrX=lv[0],t.zrY=lv[1];return}}t.zrX=t.zrY=0}function Bg(r){return r||window.event}function or(r,e,t){if(e=Bg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Ud(r,o,e,t)}else{Ud(r,e,e,t);var i=cP(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&hP.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function cP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Yd(r,e,t,a){r.addEventListener(e,t,a)}function dP(r,e,t,a){r.removeEventListener(e,t,a)}var ba=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function e0(r){return r.which===2||r.which===3}var pP=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Ud(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in uv)if(uv.hasOwnProperty(t)){var a=uv[t](this._track,e);if(a)return a}},r})();function r0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function gP(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var uv={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=r0(a)/r0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=gP(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function je(){return[1,0,0,1,0,0]}function dh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Vg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ma(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Qr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function bi(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function zg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function Mo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function yP(r){var e=je();return Vg(e,r),e}var ht=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),$l=Math.min,Xl=Math.max,yn=new ht,mn=new ht,_n=new ht,Sn=new ht,Uo=new ht,Yo=new ht,vt=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=$l(e.x,this.x),a=$l(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=je();return Qr(i,i,[-t.x,-t.y]),zg(i,i,[a,n]),Qr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<n?_>d&&(d=_,p<g?ht.set(Yo,-p,0):ht.set(Yo,g,0)):_<c&&(c=_,p<g?ht.set(Uo,p,0):ht.set(Uo,-g,0)),s<f||h<o?S>d&&(d=S,y<m?ht.set(Yo,0,-y):ht.set(Yo,0,m)):_<c&&(c=_,y<m?ht.set(Uo,0,y):ht.set(Uo,0,-m))}return t&&ht.copy(t,v?Uo:Yo),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}yn.x=_n.x=t.x,yn.y=Sn.y=t.y,mn.x=Sn.x=t.x+t.width,mn.y=_n.y=t.y+t.height,yn.transform(a),Sn.transform(a),mn.transform(a),_n.transform(a),e.x=$l(yn.x,mn.x,_n.x,Sn.x),e.y=$l(yn.y,mn.y,_n.y,Sn.y);var l=Xl(yn.x,mn.x,_n.x,Sn.x),u=Xl(yn.y,mn.y,_n.y,Sn.y);e.width=l-e.x,e.height=u-e.y},r})(),yT="silent";function mP(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_P}}function _P(){ba(this.event)}var SP=(function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(yr),$o=(function(){function r(e,t){this.x=e,this.y=t}return r})(),xP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fv=new vt(0,0,0,0),mT=(function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new $o(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new SP,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new nP(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(xP,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=_T(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new $o(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new $o(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=mP(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new $o(t,a);if(a0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fv.copy(v.getBoundingRect()),v.transform&&fv.applyTransform(v.transform),fv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(a0(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new pP);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new $o;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(yr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){mT.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=_T(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||$a(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function bP(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?yT:!0}return!1}function a0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=bP(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==yT)){e.target=o;break}}}function _T(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var ST=32,Xo=7;function wP(r){for(var e=0;r>=ST;)e|=r&1,r>>=1;return r+e}function n0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;TP(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function TP(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function i0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function hv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function vv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function CP(r,e){var t=Xo,a,n,i=0,o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=a[c],p=n[c],g=a[c+1],y=n[c+1];n[c]=p+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=vv(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=hv(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,C;;){x=0,w=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,w=0,--d===1){C=!0;break}while((x|w)<b);if(C)break;do{if(x=vv(r[_],o,m,d,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=hv(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(x>=Xo||w>=Xo);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var C=0,T=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){A=!0;break}while((C|T)<w);if(A)break;do{if(C=d-vv(o[_],r,c,d,d-1,e),C!==0){for(S-=C,m-=C,d-=C,x=S+1,b=m+1,y=C-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(T=g-hv(r[m],o,0,g,g-1,e),T!==0){for(S-=T,_-=T,g-=T,x=S+1,b=_+1,y=0;y<T;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}w--}while(C>=Xo||T>=Xo);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ku(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<ST){i=n0(r,t,a,e),i0(r,t,a,t+i,e);return}var o=CP(r,e),s=wP(n);do{if(i=n0(r,t,a,e),i<s){var l=n;l>s&&(l=s),i0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var qe=1,_s=2,Ji=4,o0=!1;function cv(){o0||(o0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AP=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Ku(a,s0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=qe),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(cv(),f.z=0),isNaN(f.z2)&&(cv(),f.z2=0),isNaN(f.zlevel)&&(cv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=dt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),gf;gf=mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Rs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Rs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Rs.bounceIn(r*2)*.5:Rs.bounceOut(r*2-1)*.5+.5}},Zl=Math.pow,en=Math.sqrt,yf=1e-8,xT=1e-4,l0=en(3),ql=1/3,Ur=xi(),fr=xi(),lo=xi();function qa(r){return r>-yf&&r<yf}function bT(r){return r>yf||r<-yf}function le(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function u0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function mf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(qa(f)&&qa(h))if(qa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(qa(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=en(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Zl(-_,ql):_=Zl(_,ql),S<0?S=-Zl(-S,ql):S=Zl(S,ql);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*en(f*f*f)),x=Math.acos(b)/3,w=en(f),C=Math.cos(x),d=(-s-2*w*C)/(3*o),y=(-s+w*(C+l0*Math.sin(x)))/(3*o),T=(-s+w*(C-l0*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),T>=0&&T<=1&&(i[c++]=T)}}return c}function wT(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(qa(o)){if(bT(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(qa(f))n[0]=-i/(2*o);else if(f>0){var h=en(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function un(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function TT(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Ur[0]=l,Ur[1]=u;for(var m=0;m<1;m+=.05)fr[0]=le(r,t,n,o,m),fr[1]=le(e,a,i,s,m),g=ii(Ur,fr),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<xT);_++)d=h-v,p=h+v,fr[0]=le(r,t,n,o,d),fr[1]=le(e,a,i,s,d),g=ii(fr,Ur),d>=0&&g<c?(h=d,c=g):(lo[0]=le(r,t,n,o,p),lo[1]=le(e,a,i,s,p),y=ii(lo,Ur),p<=1&&y<c?(h=p,c=y):v*=.5);return f&&(f[0]=le(r,t,n,o,h),f[1]=le(e,a,i,s,h)),en(c)}function DP(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=le(r,t,n,o,d),g=le(e,a,i,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function de(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function $d(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function MP(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(qa(i)){if(bT(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(qa(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=en(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function CT(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Xs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function AT(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Ur[0]=o,Ur[1]=s;for(var v=0;v<1;v+=.05){fr[0]=de(r,t,n,v),fr[1]=de(e,a,i,v);var c=ii(Ur,fr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<xT);d++){var p=u-f,g=u+f;fr[0]=de(r,t,n,p),fr[1]=de(e,a,i,p);var c=ii(fr,Ur);if(p>=0&&c<h)u=p,h=c;else{lo[0]=de(r,t,n,g),lo[1]=de(e,a,i,g);var y=ii(lo,Ur);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=de(r,t,n,u),l[1]=de(e,a,i,u)),en(h)}function IP(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=de(r,t,n,v),d=de(e,a,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var LP=/cubic-bezier\(([0-9,\.e ]+)\)/;function Gg(r){var e=r&&LP.exec(r);if(e){var t=e[1].split(","),a=+Ar(t[0]),n=+Ar(t[1]),i=+Ar(t[2]),o=+Ar(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:mf(0,a,i,1,l,s)&&le(0,n,o,1,s[0])}}}var PP=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||te,this.ondestroy=e.ondestroy||te,this.onrestart=e.onrestart||te,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=J(e)?e:Rs[e]||Gg(e)},r})(),DT=(function(){function r(e){this.value=e}return r})(),RP=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new DT(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),xl=(function(){function r(e){this._list=new RP,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new DT(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),f0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Mr(r){return r=Math.round(r),r<0?0:r>255?255:r}function EP(r){return r=Math.round(r),r<0?0:r>360?360:r}function Zs(r){return r<0?0:r>1?1:r}function dv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mr(parseFloat(e)/100*255):Mr(parseInt(e,10))}function oi(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Zs(parseFloat(e)/100):Zs(parseFloat(e))}function pv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ka(r,e,t){return r+(e-r)*t}function ir(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Xd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MT=new xl(20),Kl=null;function Pi(r,e){Kl&&Xd(Kl,e),Kl=MT.put(r,Kl||e.slice())}function Je(r,e){if(r){e=e||[];var t=MT.get(r);if(t)return Xd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in f0)return Xd(e,f0[a]),Pi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){ir(e,0,0,0,1);return}return ir(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Pi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){ir(e,0,0,0,1);return}return ir(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Pi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ir(e,+u[0],+u[1],+u[2],1):ir(e,0,0,0,1);f=oi(u.pop());case"rgb":if(u.length>=3)return ir(e,dv(u[0]),dv(u[1]),dv(u[2]),u.length===3?f:oi(u[3])),Pi(r,e),e;ir(e,0,0,0,1);return;case"hsla":if(u.length!==4){ir(e,0,0,0,1);return}return u[3]=oi(u[3]),Zd(u,e),Pi(r,e),e;case"hsl":if(u.length!==3){ir(e,0,0,0,1);return}return Zd(u,e),Pi(r,e),e;default:return}}ir(e,0,0,0,1)}}function Zd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=oi(r[1]),n=oi(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],ir(e,Mr(pv(o,i,t+1/3)*255),Mr(pv(o,i,t)*255),Mr(pv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function kP(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function qd(r,e){var t=Je(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return _a(t,t.length===4?"rgba":"rgb")}}function gv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Mr(Ka(o[0],s[0],l)),t[1]=Mr(Ka(o[1],s[1],l)),t[2]=Mr(Ka(o[2],s[2],l)),t[3]=Zs(Ka(o[3],s[3],l)),t}}function OP(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Je(e[n]),s=Je(e[i]),l=a-n,u=_a([Mr(Ka(o[0],s[0],l)),Mr(Ka(o[1],s[1],l)),Mr(Ka(o[2],s[2],l)),Zs(Ka(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Es(r,e,t,a){var n=Je(r);if(r)return n=kP(n),e!=null&&(n[0]=EP(e)),t!=null&&(n[1]=oi(t)),a!=null&&(n[2]=oi(a)),_a(Zd(n),"rgba")}function _f(r,e){var t=Je(r);if(t&&e!=null)return t[3]=Zs(e),_a(t,"rgba")}function _a(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Sf(r,e){var t=Je(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var h0=new xl(100);function Kd(r){if(Y(r)){var e=h0.get(r);return e||(e=qd(r,-.1),h0.put(r,e)),e}else if(vh(r)){var t=V({},r);return t.colorStops=F(r.colorStops,function(a){return{offset:a.offset,color:qd(a.color,-.1)}}),t}return r}var xf=Math.round;function qs(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Je(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var v0=1e-4;function ja(r){return r<v0&&r>-v0}function jl(r){return xf(r*1e3)/1e3}function jd(r){return xf(r*1e4)/1e4}function NP(r){return"matrix("+jl(r[0])+","+jl(r[1])+","+jl(r[2])+","+jl(r[3])+","+jd(r[4])+","+jd(r[5])+")"}var BP={left:"start",right:"end",center:"middle",middle:"middle"};function VP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function zP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function GP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function IT(r){return r&&!!r.image}function FP(r){return r&&!!r.svgElement}function Fg(r){return IT(r)||FP(r)}function LT(r){return r.type==="linear"}function PT(r){return r.type==="radial"}function RT(r){return r&&(r.type==="linear"||r.type==="radial")}function ph(r){return"url(#"+r+")"}function ET(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function kT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Xu,n=st(r.scaleX,1),i=st(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+xf(o*Xu)+"deg, "+xf(s*Xu)+"deg)"),l.join(" ")}var HP=(function(){return mt.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Jd=Array.prototype.slice;function ha(r,e,t){return(e-r)*t+r}function yv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ha(e[i],t[i],a);return r}function WP(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ha(e[o][s],t[o][s],a)}return r}function Jl(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function c0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function UP(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function YP(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Jd.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function ks(r){if(Ae(r)){var e=r.length;if(Ae(r[0])){for(var t=[],a=0;a<e;a++)t.push(Jd.call(r[a]));return t}return Jd.call(r)}return r}function ju(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function $P(r){return Ae(r&&r[0])?2:1}var Ql=0,Ju=1,OT=2,Ss=3,Qd=4,tp=5,d0=6;function p0(r){return r===Qd||r===tp}function tu(r){return r===Ju||r===OT}var Zo=[0,0,0,0],XP=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=d0,l=t;if(Ae(t)){var u=$P(t);s=u,(u===1&&!At(t[0])||u===2&&!At(t[0][0]))&&(o=!0)}else if(At(t)&&!Ys(t))s=Ql;else if(Y(t))if(!isNaN(+t))s=Ql;else{var f=Je(t);f&&(l=f,s=Ss)}else if(vh(t)){var h=V({},l);h.colorStops=F(t.colorStops,function(c){return{offset:c.offset,color:Je(c.color)}}),LT(t)?s=Qd:PT(t)&&(s=tp),l=h}i===0?this.valType=s:(s!==this.valType||s===d0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=J(a)?a:Rs[a]||Gg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=tu(n),u=p0(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?YP(v,c,n):u&&UP(v.colorStops,c.colorStops))}if(!s&&n!==tp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===Ql?a[f].additiveValue=a[f].value-d:n===Ss?a[f].additiveValue=Jl([],a[f].value,d,-1):tu(n)&&(a[f].additiveValue=n===Ju?Jl([],a[f].value,d,-1):c0([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ss,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Zo:e[l];if((tu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if(tu(i))i===Ju?yv(m,c[n],d[n],y):WP(m,c[n],d[n],y);else if(p0(i)){var _=c[n],S=d[n],b=i===Qd;e[l]={type:b?"linear":"radial",x:ha(_.x,S.x,y),y:ha(_.y,S.y,y),colorStops:F(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:ha(w.offset,T.offset,y),color:ju(yv([],w.color,T.color,y))}}),global:S.global},b?(e[l].x2=ha(_.x2,S.x2,y),e[l].y2=ha(_.y2,S.y2,y)):e[l].r=ha(_.r,S.r,y)}else if(u)yv(m,c[n],d[n],y),a||(e[l]=ju(m));else{var x=ha(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Ql?e[a]=e[a]+n:t===Ss?(Je(e[a],Zo),Jl(Zo,Zo,n,1),e[a]=ju(Zo)):t===Ju?Jl(e[a],e[a],n,1):t===OT&&c0(e[a],e[a],n,1)},r})(),Hg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Eg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,xt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new XP(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Ss&&u&&(u=ju(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ks(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ks(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new PP({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=ks(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||xt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function ao(){return new Date().getTime()}var ZP=(function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=ao()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(gf(a),!t._paused&&t.update())}gf(a)},e.prototype.start=function(){this._running||(this._time=ao(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ao(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ao()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Hg(t,a.loop);return this.addAnimator(n),n},e})(yr),qP=300,mv=mt.domSupported,_v=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=F(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),g0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},y0=!1;function ep(r){var e=r.pointerType;return e==="pen"||e==="touch"}function KP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Sv(r){r&&(r.zrByTouch=!0)}function jP(r,e){return or(r.dom,new JP(r,e),!0)}function NT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var JP=(function(){function r(e,t){this.stopPropagation=te,this.stopImmediatePropagation=te,this.preventDefault=te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Tr={mousedown:function(r){r=or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=or(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=or(this.dom,r);var e=r.toElement||r.relatedTarget;NT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){y0=!0,r=or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){y0||(r=or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=or(this.dom,r),Sv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Tr.mousemove.call(this,r),Tr.mousedown.call(this,r)},touchmove:function(r){r=or(this.dom,r),Sv(r),this.handler.processGesture(r,"change"),Tr.mousemove.call(this,r)},touchend:function(r){r=or(this.dom,r),Sv(r),this.handler.processGesture(r,"end"),Tr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<qP&&Tr.click.call(this,r)},pointerdown:function(r){Tr.mousedown.call(this,r)},pointermove:function(r){ep(r)||Tr.mousemove.call(this,r)},pointerup:function(r){Tr.mouseup.call(this,r)},pointerout:function(r){ep(r)||Tr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Tr[r]=function(e){e=or(this.dom,e),this.trigger(r,e)}});var rp={pointermove:function(r){ep(r)||rp.mousemove.call(this,r)},pointerup:function(r){rp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function QP(r,e){var t=e.domHandlers;mt.pointerEventsSupported?D(_v.pointer,function(a){Qu(e,a,function(n){t[a].call(r,n)})}):(mt.touchEventsSupported&&D(_v.touch,function(a){Qu(e,a,function(n){t[a].call(r,n),KP(e)})}),D(_v.mouse,function(a){Qu(e,a,function(n){n=Bg(n),e.touching||t[a].call(r,n)})}))}function tR(r,e){mt.pointerEventsSupported?D(g0.pointer,t):mt.touchEventsSupported||D(g0.mouse,t);function t(a){function n(i){i=Bg(i),NT(r,i.target)||(i=jP(r,i),e.domHandlers[a].call(r,i))}Qu(e,a,n,{capture:!0})}}function Qu(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Yd(r.domTarget,e,t,a)}function xv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&dP(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var m0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),eR=(function(r){k(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new m0(t,Tr),mv&&(n._globalHandlerScope=new m0(document,rp)),QP(n,n._localHandlerScope),n}return e.prototype.dispose=function(){xv(this._localHandlerScope),mv&&xv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,mv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?tR(this,a):xv(a)}},e})(yr),BT=1;mt.hasGlobalWindow&&(BT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bf=BT,ap=.4,np="#333",ip="#ccc",rR="#eee",_0=dh,S0=5e-5;function xn(r){return r>S0||r<-S0}var bn=[],Ri=[],bv=je(),wv=Math.abs,pa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return xn(this.rotation)||xn(this.x)||xn(this.y)||xn(this.scaleX-1)||xn(this.scaleY-1)||xn(this.skewX)||xn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(_0(a),this.invTransform=null);return}a=a||je(),t?this.getLocalTransform(a):_0(a),e&&(t?ma(a,e,a):Vg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(bn);var a=bn[0]<0?-1:1,n=bn[1]<0?-1:1,i=((bn[0]-a)*t+a)/bn[0]||0,o=((bn[1]-n)*t+n)/bn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||je(),Mo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||je(),ma(Ri,e.invTransform,t),t=Ri);var a=this.originX,n=this.originY;(a||n)&&(bv[4]=a,bv[5]=n,ma(Ri,t,bv),Ri[4]-=a,Ri[5]-=n,t=Ri),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&me(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&me(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&wv(e[0]-1)>1e-10&&wv(e[3]-1)>1e-10?Math.sqrt(wv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){VT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&bi(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),ta=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function VT(r,e){for(var t=0;t<ta.length;t++){var a=ta[t];r[a]=e[a]}}var x0={};function Qe(r,e){e=e||sn;var t=x0[e];t||(t=x0[e]=new xl(500));var a=t.get(r);return a==null&&(a=ln.measureText(r,e).width,t.put(r,a)),a}function b0(r,e,t,a){var n=Qe(r,e),i=gh(e),o=xs(0,n,t),s=Qi(0,i,a),l=new vt(o,s,n,i);return l}function bl(r,e,t,a){var n=((r||"")+"").split(`
|
|
1
|
+
import{eb as gt,d4 as aa,el as zm,cr as HL,cu as Gm,fF as WL,cT as Dg,d$ as Zt,cL as ke,c$ as fh,a8 as UL,af as YL,J as Jw,ag as $L,aa as XL,ac as ZL}from"./index-CgSVv5Up.js";const Fm={0:"#FFFFFF",100:"#25283D"},Qw={background:{default:Fm[0]},text:{default:Fm[100]}},qL=["#27F795","#008060","#0EB1B9","#9263AF","#5A6FC0","#86BFDB","#FFC145","#FF6B6C","#DC82C8","#FFC0F1"],KL=Qw.text.default,jL=Qw.background.default,JL="Inter, sans-serif",QL="12px",tT=0,eT=1,rT=2,Hm=3;var Wm=Object.prototype.hasOwnProperty;function Id(r,e){var t,a;if(r===e)return!0;if(r&&e&&(t=r.constructor)===e.constructor){if(t===Date)return r.getTime()===e.getTime();if(t===RegExp)return r.toString()===e.toString();if(t===Array){if((a=r.length)===e.length)for(;a--&&Id(r[a],e[a]););return a===-1}if(!t||typeof r=="object"){a=0;for(t in r)if(Wm.call(r,t)&&++a&&!Wm.call(e,t)||!(t in e)||!Id(r[t],e[t]))return!1;return Object.keys(e).length===a}}return r!==r&&e!==e}const ca=new WeakMap,da=()=>{},Ce=da(),Ld=Object,Lt=r=>r===Ce,Wr=r=>typeof r=="function",on=(r,e)=>({...r,...e}),aT=r=>Wr(r.then),ev={},Wl={},Mg="undefined",Sl=typeof window!=Mg,Pd=typeof document!=Mg,t2=Sl&&"Deno"in window,e2=()=>Sl&&typeof window.requestAnimationFrame!=Mg,nT=(r,e)=>{const t=ca.get(r);return[()=>!Lt(e)&&r.get(e)||ev,a=>{if(!Lt(e)){const n=r.get(e);e in Wl||(Wl[e]=n),t[5](e,on(n,a),n||ev)}},t[6],()=>!Lt(e)&&e in Wl?Wl[e]:!Lt(e)&&r.get(e)||ev]};let Rd=!0;const r2=()=>Rd,[Ed,kd]=Sl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[da,da],a2=()=>{const r=Pd&&document.visibilityState;return Lt(r)||r!=="hidden"},n2=r=>(Pd&&document.addEventListener("visibilitychange",r),Ed("focus",r),()=>{Pd&&document.removeEventListener("visibilitychange",r),kd("focus",r)}),i2=r=>{const e=()=>{Rd=!0,r()},t=()=>{Rd=!1};return Ed("online",e),Ed("offline",t),()=>{kd("online",e),kd("offline",t)}},o2={isOnline:r2,isVisible:a2},s2={initFocus:n2,initReconnect:i2},Um=!aa.useId,so=!Sl||t2,l2=r=>e2()?window.requestAnimationFrame(r):setTimeout(r,1),rv=so?gt.useEffect:gt.useLayoutEffect,av=typeof navigator<"u"&&navigator.connection,Ym=!so&&av&&(["slow-2g","2g"].includes(av.effectiveType)||av.saveData),Ul=new WeakMap,u2=r=>Ld.prototype.toString.call(r),nv=(r,e)=>r===`[object ${e}]`;let f2=0;const Od=r=>{const e=typeof r,t=u2(r),a=nv(t,"Date"),n=nv(t,"RegExp"),i=nv(t,"Object");let o,s;if(Ld(r)===r&&!a&&!n){if(o=Ul.get(r),o)return o;if(o=++f2+"~",Ul.set(r,o),Array.isArray(r)){for(o="@",s=0;s<r.length;s++)o+=Od(r[s])+",";Ul.set(r,o)}if(i){o="#";const l=Ld.keys(r).sort();for(;!Lt(s=l.pop());)Lt(r[s])||(o+=s+":"+Od(r[s])+",");Ul.set(r,o)}}else o=a?r.toJSON():e=="symbol"?r.toString():e=="string"?JSON.stringify(r):""+r;return o},Ig=r=>{if(Wr(r))try{r=r()}catch{r=""}const e=r;return r=typeof r=="string"?r:(Array.isArray(r)?r.length:r)?Od(r):"",[r,e]};let h2=0;const Nd=()=>++h2;async function iT(...r){const[e,t,a,n]=r,i=on({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{});let o=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const u=v=>typeof s=="function"?s(v):s!==!1,f=i.throwOnError;if(Wr(t)){const v=t,c=[],d=e.keys();for(const p of d)!/^\$(inf|sub)\$/.test(p)&&v(e.get(p)._k)&&c.push(p);return Promise.all(c.map(h))}return h(t);async function h(v){const[c]=Ig(v);if(!c)return;const[d,p]=nT(e,c),[g,y,m,_]=ca.get(e),S=()=>{const P=g[c];return(Wr(i.revalidate)?i.revalidate(d().data,v):i.revalidate!==!1)&&(delete m[c],delete _[c],P&&P[0])?P[0](rT).then(()=>d().data):d().data};if(r.length<3)return S();let b=a,x,w=!1;const C=Nd();y[c]=[C,0];const T=!Lt(l),A=d(),M=A.data,I=A._c,L=Lt(I)?M:I;if(T&&(l=Wr(l)?l(L,M):l,p({data:l,_c:L})),Wr(b))try{b=b(L)}catch(P){x=P,w=!0}if(b&&aT(b))if(b=await b.catch(P=>{x=P,w=!0}),C!==y[c][0]){if(w)throw x;return b}else w&&T&&u(x)&&(o=!0,p({data:L,_c:Ce}));if(o&&!w)if(Wr(o)){const P=o(b,L);p({data:P,error:Ce,_c:Ce})}else p({data:b,error:Ce,_c:Ce});if(y[c][1]=Nd(),Promise.resolve(S()).then(()=>{p({_c:Ce})}),w){if(f)throw x;return}return b}}const $m=(r,e)=>{for(const t in r)r[t][0]&&r[t][0](e)},v2=(r,e)=>{if(!ca.has(r)){const t=on(s2,e),a=Object.create(null),n=iT.bind(Ce,r);let i=da;const o=Object.create(null),s=(f,h)=>{const v=o[f]||[];return o[f]=v,v.push(h),()=>v.splice(v.indexOf(h),1)},l=(f,h,v)=>{r.set(f,h);const c=o[f];if(c)for(const d of c)d(h,v)},u=()=>{if(!ca.has(r)&&(ca.set(r,[a,Object.create(null),Object.create(null),Object.create(null),n,l,s]),!so)){const f=t.initFocus(setTimeout.bind(Ce,$m.bind(Ce,a,tT))),h=t.initReconnect(setTimeout.bind(Ce,$m.bind(Ce,a,eT)));i=()=>{f&&f(),h&&h(),ca.delete(r)}}};return u(),[r,n,u,i]}return[r,ca.get(r)[4]]},c2=(r,e,t,a,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Lt(i)&&o>i||setTimeout(a,s,n)},d2=Id,[oT,p2]=v2(new Map),g2=on({onLoadingSlow:da,onSuccess:da,onError:da,onErrorRetry:c2,onDiscarded:da,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ym?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ym?5e3:3e3,compare:d2,isPaused:()=>!1,cache:oT,mutate:p2,fallback:{}},o2),y2=(r,e)=>{const t=on(r,e);if(e){const{use:a,fallback:n}=r,{use:i,fallback:o}=e;a&&i&&(t.use=a.concat(i)),n&&o&&(t.fallback=on(n,o))}return t},m2=gt.createContext({}),_2="$inf$",sT=Sl&&window.__SWR_DEVTOOLS_USE__,S2=sT?window.__SWR_DEVTOOLS_USE__:[],x2=()=>{sT&&(window.__SWR_DEVTOOLS_REACT__=aa)},b2=r=>Wr(r[1])?[r[0],r[1],r[2]||{}]:[r[0],null,(r[1]===null?r[2]:r[1])||{}],lT=()=>{const r=gt.useContext(m2);return gt.useMemo(()=>on(g2,r),[r])},w2=r=>(e,t,a)=>r(e,t&&((...i)=>{const[o]=Ig(e),[,,,s]=ca.get(oT);if(o.startsWith(_2))return t(...i);const l=s[o];return Lt(l)?t(...i):(delete s[o],l)}),a),T2=S2.concat(w2),C2=r=>function(...t){const a=lT(),[n,i,o]=b2(t),s=y2(a,o);let l=r;const{use:u}=s,f=(u||[]).concat(T2);for(let h=f.length;h--;)l=f[h](l);return l(n,i||s.fetcher||null,s)},A2=(r,e,t)=>{const a=e[r]||(e[r]=[]);return a.push(t),()=>{const n=a.indexOf(t);n>=0&&(a[n]=a[a.length-1],a.pop())}};x2();const iv=aa.use||(r=>{switch(r.status){case"pending":throw r;case"fulfilled":return r.value;case"rejected":throw r.reason;default:throw r.status="pending",r.then(e=>{r.status="fulfilled",r.value=e},e=>{r.status="rejected",r.reason=e}),r}}),ov={dedupe:!0},Xm=Promise.resolve(Ce),D2=()=>da,M2=(r,e,t)=>{const{cache:a,compare:n,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:f,refreshWhenOffline:h,keepPreviousData:v,strictServerPrefetchWarning:c}=t,[d,p,g,y]=ca.get(a),[m,_]=Ig(r),S=gt.useRef(!1),b=gt.useRef(!1),x=gt.useRef(m),w=gt.useRef(e),C=gt.useRef(t),T=()=>C.current,A=()=>T().isVisible()&&T().isOnline(),[M,I,L,P]=nT(a,m),R=gt.useRef({}).current,E=Lt(o)?Lt(t.fallback)?Ce:t.fallback[m]:o,N=(_t,Et)=>{for(const It in R){const Ht=It;if(Ht==="data"){if(!n(_t[Ht],Et[Ht])&&(!Lt(_t[Ht])||!n(Mt,Et[Ht])))return!1}else if(Et[Ht]!==_t[Ht])return!1}return!0},O=!S.current,B=gt.useMemo(()=>{const _t=M(),Et=P(),It=jt=>{const Sr=on(jt);return delete Sr._k,(()=>{if(!m||!e||T().isPaused())return!1;if(O&&!Lt(s))return s;const Wo=Lt(E)?Sr.data:E;return Lt(Wo)||l})()?{isValidating:!0,isLoading:!0,...Sr}:Sr},Ht=It(_t),se=_t===Et?Ht:It(Et);let Me=Ht;return[()=>{const jt=It(M());return N(jt,Me)?(Me.data=jt.data,Me.isLoading=jt.isLoading,Me.isValidating=jt.isValidating,Me.error=jt.error,Me):(Me=jt,jt)},()=>se]},[a,m]),G=zm.useSyncExternalStore(gt.useCallback(_t=>L(m,(Et,It)=>{N(It,Et)||_t()}),[a,m]),B[0],B[1]),H=d[m]&&d[m].length>0,W=G.data,K=Lt(W)?E&&aT(E)?iv(E):E:W,j=G.error,at=gt.useRef(K),Mt=v?Lt(W)?Lt(at.current)?K:at.current:W:K,Vt=m&&Lt(K),lt=gt.useRef(null);!so&&zm.useSyncExternalStore(D2,()=>(lt.current=!1,lt),()=>(lt.current=!0,lt));const Q=lt.current;c&&Q&&!i&&Vt&&console.warn(`Missing pre-initiated data for serialized key "${m}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ct=!m||!e||T().isPaused()||H&&!Lt(j)?!1:O&&!Lt(s)?s:i?Lt(K)?!1:l:Lt(K)||l,Z=O&&ct,it=Lt(G.isValidating)?Z:G.isValidating,zt=Lt(G.isLoading)?Z:G.isLoading,Ct=gt.useCallback(async _t=>{const Et=w.current;if(!m||!Et||b.current||T().isPaused())return!1;let It,Ht,se=!0;const Me=_t||{},jt=!g[m]||!Me.dedupe,Sr=()=>Um?!b.current&&m===x.current&&S.current:m===x.current,Ho={isValidating:!1,isLoading:!1},Wo=()=>{I(Ho)},Bm=()=>{const tr=g[m];tr&&tr[1]===Ht&&delete g[m]},Vm={isValidating:!0};Lt(M().data)&&(Vm.isLoading=!0);try{if(jt&&(I(Vm),t.loadingTimeout&&Lt(M().data)&&setTimeout(()=>{se&&Sr()&&T().onLoadingSlow(m,t)},t.loadingTimeout),g[m]=[Et(_),Nd()]),[It,Ht]=g[m],It=await It,jt&&setTimeout(Bm,t.dedupingInterval),!g[m]||g[m][1]!==Ht)return jt&&Sr()&&T().onDiscarded(m),!1;Ho.error=Ce;const tr=p[m];if(!Lt(tr)&&(Ht<=tr[0]||Ht<=tr[1]||tr[1]===0))return Wo(),jt&&Sr()&&T().onDiscarded(m),!1;const sa=M().data;Ho.data=n(sa,It)?sa:It,jt&&Sr()&&T().onSuccess(It,m,t)}catch(tr){Bm();const sa=T(),{shouldRetryOnError:Qh}=sa;sa.isPaused()||(Ho.error=tr,jt&&Sr()&&(sa.onError(tr,m,sa),(Qh===!0||Wr(Qh)&&Qh(tr))&&(!T().revalidateOnFocus||!T().revalidateOnReconnect||A())&&sa.onErrorRetry(tr,m,sa,FL=>{const tv=d[m];tv&&tv[0]&&tv[0](Hm,FL)},{retryCount:(Me.retryCount||0)+1,dedupe:!0})))}return se=!1,Wo(),!0},[m,a]),Nt=gt.useCallback((..._t)=>iT(a,x.current,..._t),[]);if(rv(()=>{w.current=e,C.current=t,Lt(W)||(at.current=W)}),rv(()=>{if(!m)return;const _t=Ct.bind(Ce,ov);let Et=0;T().revalidateOnFocus&&(Et=Date.now()+T().focusThrottleInterval);const Ht=A2(m,d,(se,Me={})=>{if(se==tT){const jt=Date.now();T().revalidateOnFocus&&jt>Et&&A()&&(Et=jt+T().focusThrottleInterval,_t())}else if(se==eT)T().revalidateOnReconnect&&A()&&_t();else{if(se==rT)return Ct();if(se==Hm)return Ct(Me)}});return b.current=!1,x.current=m,S.current=!0,I({_k:_}),ct&&(g[m]||(Lt(K)||so?_t():l2(_t))),()=>{b.current=!0,Ht()}},[m]),rv(()=>{let _t;function Et(){const Ht=Wr(u)?u(M().data):u;Ht&&_t!==-1&&(_t=setTimeout(It,Ht))}function It(){!M().error&&(f||T().isVisible())&&(h||T().isOnline())?Ct(ov).then(Et):Et()}return Et(),()=>{_t&&(clearTimeout(_t),_t=-1)}},[u,f,h,m]),gt.useDebugValue(Mt),i){if(!Um&&so&&Vt)throw new Error("Fallback data is required when using Suspense in SSR.");Vt&&(w.current=e,C.current=t,b.current=!1);const _t=y[m],Et=!Lt(_t)&&Vt?Nt(_t):Xm;if(iv(Et),!Lt(j)&&Vt)throw j;const It=Vt?Ct(ov):Xm;!Lt(Mt)&&Vt&&(It.status="fulfilled",It.value=!0),iv(It)}return{mutate:Nt,get data(){return R.data=!0,Mt},get error(){return R.error=!0,j},get isValidating(){return R.isValidating=!0,it},get isLoading(){return R.isLoading=!0,zt}}},I2=C2(M2);function Zm(r){return Object.entries(r).reduce((e,[t,a])=>a===void 0?e:Object.assign(Object.assign({},e),{[t]:a}),{})}function L2(r,e,t){let a;if(r)try{a=new URL(r);for(const[n,i]of Object.entries(t))typeof i!="string"&&typeof i!="number"||a.searchParams.set(n,String(i));a.searchParams.has("from")||a.searchParams.set("from","chart"),e&&a.searchParams.set("token",e)}catch(n){console.error(n)}return a}function P2(r,e){return HL(this,void 0,void 0,function*(){const t=new URL(r);let a=Object.assign({},e);if(t.toString().length>2048){const i={};for(const[o,s]of t.searchParams.entries())o!=="token"&&o!=="from"&&(t.searchParams.delete(o),i[o]=s);a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({},a),i))}}const n=yield fetch(t,a);if(!n.ok)throw new Error(`Error: ${(yield n.text())||"Could not fetch data"}`);return yield n.json()})}aa.createContext({backgroundColor:jL,borderColor:void 0,borderRadius:void 0,boxShadow:void 0,colorPalette:qL,padding:void 0,fontFamily:JL,fontSize:QL,textColor:KL});const R2=aa.createContext({endpoint:void 0,token:void 0});function E2(r){const{fetcher:e=P2,refreshInterval:t,onError:a,onSuccess:n}=lT(),i=aa.useContext(R2),o=Zm(r),s=Zm(Object.assign(Object.assign({},i),{fetcher:e,refreshInterval:t,onError:a,onSuccess:n}));return Object.assign(Object.assign({},s),o)}aa.createContext({fallbackLoading:void 0,fallbackError:void 0});function k2(r){var{params:e={}}=r,t=Gm(r,["params"]);const a=E2(t),{endpoint:n,token:i}=a,o=Gm(a,["endpoint","token"]),s=L2(n,i,e),{data:l,error:u,isLoading:f,mutate:h}=I2(()=>s?s.toString():null,Object.assign(Object.assign({},o),{shouldRetryOnError:!1}));return{data:l?.data||null,meta:l?.meta||null,statistics:l?.statistics||null,error:u?.message||null,loading:f,endpoint:n,token:i,refresh:h}}var Bd=function(r,e){return Bd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Bd(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var O2=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),N2=(function(){function r(){this.browser=new O2,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),mt=new N2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mt.wxa=!0,mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mt.worker=!0:!mt.hasGlobalWindow||"Deno"in window?(mt.node=!0,mt.svgSupported=!0):B2(navigator.userAgent,mt);function B2(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Lg=12,uT="sans-serif",sn=Lg+"px "+uT,V2=20,z2=100,G2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function F2(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-V2)/z2;e[a]=n}return e}var H2=F2(G2),ln={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=ln.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||sn),r.measureText(t);t=t||"",a=a||sn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Lg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=H2[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},fT=Jr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),hT=Jr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ao=Object.prototype.toString,hh=Array.prototype,W2=hh.forEach,U2=hh.filter,Pg=hh.slice,Y2=hh.map,qm=(function(){}).constructor,Yl=qm?qm.prototype:null,Rg="__proto__",$2=2311;function vT(){return $2++}function Eg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=Ao.call(r);if(t==="[object Array]"){if(!Ps(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(hT[t]){if(!Ps(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!fT[t]&&!Ps(r)&&!po(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Rg&&(e[o]=rt(r[o]))}return e}function ft(r,e,t){if(!et(e)||!et(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Rg){var n=r[a],i=e[a];et(i)&&et(n)&&!z(i)&&!z(n)&&!po(i)&&!po(n)&&!Km(i)&&!Km(n)&&!Ps(i)&&!Ps(n)?ft(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function kg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ft(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Rg&&(r[t]=e[t]);return r}function tt(r,e,t){for(var a=xt(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function dt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function X2(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ne(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else tt(r,e,t)}function Ae(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===W2)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function F(r,e,t){if(!r)return[];if(!e)return Og(r);if(r.map&&r.map===Y2)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Jr(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Rt(r,e,t){if(!r)return[];if(!e)return Og(r);if(r.filter&&r.filter===U2)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Z2(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function xt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function q2(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Pg.call(arguments)))}}var $=Yl&&J(Yl.bind)?Yl.call.bind(Yl.bind):q2;function ut(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Pg.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):Ao.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function Vd(r){return Ao.call(r)==="[object String]"}function At(r){return typeof r=="number"}function et(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Km(r){return!!fT[Ao.call(r)]}function Xe(r){return!!hT[Ao.call(r)]}function po(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function vh(r){return r.colorStops!=null}function K2(r){return r.image!=null}function j2(r){return Ao.call(r)==="[object RegExp]"}function Ys(r){return r!==r}function pe(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function st(r,e){return r??e}function Kr(r,e,t){return r??e??t}function Og(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Pg.apply(r,e)}function Ng(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Be(r,e){if(!r)throw new Error(e)}function Ar(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cT="__ec_primitive__";function pf(r){r[cT]=!0}function Ps(r){return r[cT]}var J2=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return xt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),dT=typeof Map=="function";function Q2(){return dT?new Map:new J2}var tP=(function(){function r(e){var t=z(e);this.data=Q2();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return dT?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function q(r){return new tP(r)}function $s(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&V(t,e),t}function pT(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function X(r,e){return r.hasOwnProperty(e)}function te(){}var Xu=180/Math.PI;function xi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Le(r,e){return r[0]=e[0],r[1]=e[1],r}function ya(r){return[r[0],r[1]]}function eP(r,e,t){return r[0]=e,r[1]=t,r}function jm(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function zd(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function jn(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Gd(r){return Math.sqrt(rP(r))}function rP(r){return r[0]*r[0]+r[1]*r[1]}function Zu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Do(r,e){var t=Gd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Fd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var $a=Fd;function aP(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var ii=aP;function qu(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function me(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Xa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Za(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Li=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),nP=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Li(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Li(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Li(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Li(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Li(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Li(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),yr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),iP=Math.log(2);function Hd(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/iP);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[t][v]*Hd(r,e-1,f,u,n|d,i),c++)}return i[o]=h,h}function Jm(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Hd(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Hd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Qm="___zrEVENTSAVED",sv=[];function oP(r,e,t,a,n){return Wd(sv,e,a,n,!0)&&Wd(r,t,sv[0],sv[1])}function Wd(r,e,t,a,n){if(e.getBoundingClientRect&&mt.domSupported&&!gT(e)){var i=e[Qm]||(e[Qm]={}),o=sP(e,i),s=lP(o,i,n);if(s)return s(r,t,a),!0}return!1}function sP(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function lP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Jm(s,o):Jm(o,s))}function gT(r){return r.nodeName.toUpperCase()==="CANVAS"}var uP=/([&<>"'])/g,fP={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ee(r){return r==null?"":(r+"").replace(uP,function(e,t){return fP[t]})}var hP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lv=[],vP=mt.browser.firefox&&+mt.browser.version.split(".")[0]<39;function Ud(r,e,t,a){return t=t||{},a?t0(r,e,t):vP&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):t0(r,e,t),t}function t0(r,e,t){if(mt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(gT(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Wd(lv,r,a,n)){t.zrX=lv[0],t.zrY=lv[1];return}}t.zrX=t.zrY=0}function Bg(r){return r||window.event}function or(r,e,t){if(e=Bg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Ud(r,o,e,t)}else{Ud(r,e,e,t);var i=cP(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&hP.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function cP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Yd(r,e,t,a){r.addEventListener(e,t,a)}function dP(r,e,t,a){r.removeEventListener(e,t,a)}var ba=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function e0(r){return r.which===2||r.which===3}var pP=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Ud(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in uv)if(uv.hasOwnProperty(t)){var a=uv[t](this._track,e);if(a)return a}},r})();function r0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function gP(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var uv={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=r0(a)/r0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=gP(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function je(){return[1,0,0,1,0,0]}function dh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Vg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ma(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Qr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function bi(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function zg(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function Mo(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function yP(r){var e=je();return Vg(e,r),e}var ht=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),$l=Math.min,Xl=Math.max,yn=new ht,mn=new ht,_n=new ht,Sn=new ht,Uo=new ht,Yo=new ht,vt=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=$l(e.x,this.x),a=$l(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xl(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=je();return Qr(i,i,[-t.x,-t.y]),zg(i,i,[a,n]),Qr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<n?_>d&&(d=_,p<g?ht.set(Yo,-p,0):ht.set(Yo,g,0)):_<c&&(c=_,p<g?ht.set(Uo,p,0):ht.set(Uo,-g,0)),s<f||h<o?S>d&&(d=S,y<m?ht.set(Yo,0,-y):ht.set(Yo,0,m)):_<c&&(c=_,y<m?ht.set(Uo,0,y):ht.set(Uo,0,-m))}return t&&ht.copy(t,v?Uo:Yo),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}yn.x=_n.x=t.x,yn.y=Sn.y=t.y,mn.x=Sn.x=t.x+t.width,mn.y=_n.y=t.y+t.height,yn.transform(a),Sn.transform(a),mn.transform(a),_n.transform(a),e.x=$l(yn.x,mn.x,_n.x,Sn.x),e.y=$l(yn.y,mn.y,_n.y,Sn.y);var l=Xl(yn.x,mn.x,_n.x,Sn.x),u=Xl(yn.y,mn.y,_n.y,Sn.y);e.width=l-e.x,e.height=u-e.y},r})(),yT="silent";function mP(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_P}}function _P(){ba(this.event)}var SP=(function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(yr),$o=(function(){function r(e,t){this.x=e,this.y=t}return r})(),xP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fv=new vt(0,0,0,0),mT=(function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new $o(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new SP,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new nP(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(xP,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=_T(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new $o(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new $o(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=mP(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new $o(t,a);if(a0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fv.copy(v.getBoundingRect()),v.transform&&fv.applyTransform(v.transform),fv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(a0(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new pP);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new $o;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(yr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){mT.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=_T(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||$a(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function bP(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?yT:!0}return!1}function a0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=bP(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==yT)){e.target=o;break}}}function _T(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var ST=32,Xo=7;function wP(r){for(var e=0;r>=ST;)e|=r&1,r>>=1;return r+e}function n0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;TP(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function TP(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function i0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function hv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function vv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function CP(r,e){var t=Xo,a,n,i=0,o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=a[c],p=n[c],g=a[c+1],y=n[c+1];n[c]=p+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=vv(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=hv(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,C;;){x=0,w=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,w=0,--d===1){C=!0;break}while((x|w)<b);if(C)break;do{if(x=vv(r[_],o,m,d,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=hv(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(x>=Xo||w>=Xo);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var C=0,T=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){A=!0;break}while((C|T)<w);if(A)break;do{if(C=d-vv(o[_],r,c,d,d-1,e),C!==0){for(S-=C,m-=C,d-=C,x=S+1,b=m+1,y=C-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(T=g-hv(r[m],o,0,g,g-1,e),T!==0){for(S-=T,_-=T,g-=T,x=S+1,b=_+1,y=0;y<T;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}w--}while(C>=Xo||T>=Xo);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ku(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<ST){i=n0(r,t,a,e),i0(r,t,a,t+i,e);return}var o=CP(r,e),s=wP(n);do{if(i=n0(r,t,a,e),i<s){var l=n;l>s&&(l=s),i0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var qe=1,_s=2,Ji=4,o0=!1;function cv(){o0||(o0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AP=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Ku(a,s0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=qe),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(cv(),f.z=0),isNaN(f.z2)&&(cv(),f.z2=0),isNaN(f.zlevel)&&(cv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=dt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),gf;gf=mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Rs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Rs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Rs.bounceIn(r*2)*.5:Rs.bounceOut(r*2-1)*.5+.5}},Zl=Math.pow,en=Math.sqrt,yf=1e-8,xT=1e-4,l0=en(3),ql=1/3,Ur=xi(),fr=xi(),lo=xi();function qa(r){return r>-yf&&r<yf}function bT(r){return r>yf||r<-yf}function le(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function u0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function mf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(qa(f)&&qa(h))if(qa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(qa(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=en(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Zl(-_,ql):_=Zl(_,ql),S<0?S=-Zl(-S,ql):S=Zl(S,ql);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*en(f*f*f)),x=Math.acos(b)/3,w=en(f),C=Math.cos(x),d=(-s-2*w*C)/(3*o),y=(-s+w*(C+l0*Math.sin(x)))/(3*o),T=(-s+w*(C-l0*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),T>=0&&T<=1&&(i[c++]=T)}}return c}function wT(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(qa(o)){if(bT(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(qa(f))n[0]=-i/(2*o);else if(f>0){var h=en(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function un(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function TT(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Ur[0]=l,Ur[1]=u;for(var m=0;m<1;m+=.05)fr[0]=le(r,t,n,o,m),fr[1]=le(e,a,i,s,m),g=ii(Ur,fr),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<xT);_++)d=h-v,p=h+v,fr[0]=le(r,t,n,o,d),fr[1]=le(e,a,i,s,d),g=ii(fr,Ur),d>=0&&g<c?(h=d,c=g):(lo[0]=le(r,t,n,o,p),lo[1]=le(e,a,i,s,p),y=ii(lo,Ur),p<=1&&y<c?(h=p,c=y):v*=.5);return f&&(f[0]=le(r,t,n,o,h),f[1]=le(e,a,i,s,h)),en(c)}function DP(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=le(r,t,n,o,d),g=le(e,a,i,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function de(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function $d(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function MP(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(qa(i)){if(bT(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(qa(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=en(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function CT(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Xs(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function AT(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Ur[0]=o,Ur[1]=s;for(var v=0;v<1;v+=.05){fr[0]=de(r,t,n,v),fr[1]=de(e,a,i,v);var c=ii(Ur,fr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<xT);d++){var p=u-f,g=u+f;fr[0]=de(r,t,n,p),fr[1]=de(e,a,i,p);var c=ii(fr,Ur);if(p>=0&&c<h)u=p,h=c;else{lo[0]=de(r,t,n,g),lo[1]=de(e,a,i,g);var y=ii(lo,Ur);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=de(r,t,n,u),l[1]=de(e,a,i,u)),en(h)}function IP(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=de(r,t,n,v),d=de(e,a,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var LP=/cubic-bezier\(([0-9,\.e ]+)\)/;function Gg(r){var e=r&&LP.exec(r);if(e){var t=e[1].split(","),a=+Ar(t[0]),n=+Ar(t[1]),i=+Ar(t[2]),o=+Ar(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:mf(0,a,i,1,l,s)&&le(0,n,o,1,s[0])}}}var PP=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||te,this.ondestroy=e.ondestroy||te,this.onrestart=e.onrestart||te,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=J(e)?e:Rs[e]||Gg(e)},r})(),DT=(function(){function r(e){this.value=e}return r})(),RP=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new DT(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),xl=(function(){function r(e){this._list=new RP,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new DT(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),f0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Mr(r){return r=Math.round(r),r<0?0:r>255?255:r}function EP(r){return r=Math.round(r),r<0?0:r>360?360:r}function Zs(r){return r<0?0:r>1?1:r}function dv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mr(parseFloat(e)/100*255):Mr(parseInt(e,10))}function oi(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Zs(parseFloat(e)/100):Zs(parseFloat(e))}function pv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ka(r,e,t){return r+(e-r)*t}function ir(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Xd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MT=new xl(20),Kl=null;function Pi(r,e){Kl&&Xd(Kl,e),Kl=MT.put(r,Kl||e.slice())}function Je(r,e){if(r){e=e||[];var t=MT.get(r);if(t)return Xd(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in f0)return Xd(e,f0[a]),Pi(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){ir(e,0,0,0,1);return}return ir(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Pi(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){ir(e,0,0,0,1);return}return ir(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Pi(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ir(e,+u[0],+u[1],+u[2],1):ir(e,0,0,0,1);f=oi(u.pop());case"rgb":if(u.length>=3)return ir(e,dv(u[0]),dv(u[1]),dv(u[2]),u.length===3?f:oi(u[3])),Pi(r,e),e;ir(e,0,0,0,1);return;case"hsla":if(u.length!==4){ir(e,0,0,0,1);return}return u[3]=oi(u[3]),Zd(u,e),Pi(r,e),e;case"hsl":if(u.length!==3){ir(e,0,0,0,1);return}return Zd(u,e),Pi(r,e),e;default:return}}ir(e,0,0,0,1)}}function Zd(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=oi(r[1]),n=oi(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],ir(e,Mr(pv(o,i,t+1/3)*255),Mr(pv(o,i,t)*255),Mr(pv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function kP(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function qd(r,e){var t=Je(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return _a(t,t.length===4?"rgba":"rgb")}}function gv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Mr(Ka(o[0],s[0],l)),t[1]=Mr(Ka(o[1],s[1],l)),t[2]=Mr(Ka(o[2],s[2],l)),t[3]=Zs(Ka(o[3],s[3],l)),t}}function OP(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Je(e[n]),s=Je(e[i]),l=a-n,u=_a([Mr(Ka(o[0],s[0],l)),Mr(Ka(o[1],s[1],l)),Mr(Ka(o[2],s[2],l)),Zs(Ka(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Es(r,e,t,a){var n=Je(r);if(r)return n=kP(n),e!=null&&(n[0]=EP(e)),t!=null&&(n[1]=oi(t)),a!=null&&(n[2]=oi(a)),_a(Zd(n),"rgba")}function _f(r,e){var t=Je(r);if(t&&e!=null)return t[3]=Zs(e),_a(t,"rgba")}function _a(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Sf(r,e){var t=Je(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var h0=new xl(100);function Kd(r){if(Y(r)){var e=h0.get(r);return e||(e=qd(r,-.1),h0.put(r,e)),e}else if(vh(r)){var t=V({},r);return t.colorStops=F(r.colorStops,function(a){return{offset:a.offset,color:qd(a.color,-.1)}}),t}return r}var xf=Math.round;function qs(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Je(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var v0=1e-4;function ja(r){return r<v0&&r>-v0}function jl(r){return xf(r*1e3)/1e3}function jd(r){return xf(r*1e4)/1e4}function NP(r){return"matrix("+jl(r[0])+","+jl(r[1])+","+jl(r[2])+","+jl(r[3])+","+jd(r[4])+","+jd(r[5])+")"}var BP={left:"start",right:"end",center:"middle",middle:"middle"};function VP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function zP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function GP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function IT(r){return r&&!!r.image}function FP(r){return r&&!!r.svgElement}function Fg(r){return IT(r)||FP(r)}function LT(r){return r.type==="linear"}function PT(r){return r.type==="radial"}function RT(r){return r&&(r.type==="linear"||r.type==="radial")}function ph(r){return"url(#"+r+")"}function ET(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function kT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Xu,n=st(r.scaleX,1),i=st(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+xf(o*Xu)+"deg, "+xf(s*Xu)+"deg)"),l.join(" ")}var HP=(function(){return mt.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Jd=Array.prototype.slice;function ha(r,e,t){return(e-r)*t+r}function yv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ha(e[i],t[i],a);return r}function WP(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ha(e[o][s],t[o][s],a)}return r}function Jl(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function c0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function UP(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function YP(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Jd.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function ks(r){if(Ae(r)){var e=r.length;if(Ae(r[0])){for(var t=[],a=0;a<e;a++)t.push(Jd.call(r[a]));return t}return Jd.call(r)}return r}function ju(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function $P(r){return Ae(r&&r[0])?2:1}var Ql=0,Ju=1,OT=2,Ss=3,Qd=4,tp=5,d0=6;function p0(r){return r===Qd||r===tp}function tu(r){return r===Ju||r===OT}var Zo=[0,0,0,0],XP=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=d0,l=t;if(Ae(t)){var u=$P(t);s=u,(u===1&&!At(t[0])||u===2&&!At(t[0][0]))&&(o=!0)}else if(At(t)&&!Ys(t))s=Ql;else if(Y(t))if(!isNaN(+t))s=Ql;else{var f=Je(t);f&&(l=f,s=Ss)}else if(vh(t)){var h=V({},l);h.colorStops=F(t.colorStops,function(c){return{offset:c.offset,color:Je(c.color)}}),LT(t)?s=Qd:PT(t)&&(s=tp),l=h}i===0?this.valType=s:(s!==this.valType||s===d0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=J(a)?a:Rs[a]||Gg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=tu(n),u=p0(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?YP(v,c,n):u&&UP(v.colorStops,c.colorStops))}if(!s&&n!==tp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===Ql?a[f].additiveValue=a[f].value-d:n===Ss?a[f].additiveValue=Jl([],a[f].value,d,-1):tu(n)&&(a[f].additiveValue=n===Ju?Jl([],a[f].value,d,-1):c0([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ss,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Zo:e[l];if((tu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:d.rawValue;else if(tu(i))i===Ju?yv(m,c[n],d[n],y):WP(m,c[n],d[n],y);else if(p0(i)){var _=c[n],S=d[n],b=i===Qd;e[l]={type:b?"linear":"radial",x:ha(_.x,S.x,y),y:ha(_.y,S.y,y),colorStops:F(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:ha(w.offset,T.offset,y),color:ju(yv([],w.color,T.color,y))}}),global:S.global},b?(e[l].x2=ha(_.x2,S.x2,y),e[l].y2=ha(_.y2,S.y2,y)):e[l].r=ha(_.r,S.r,y)}else if(u)yv(m,c[n],d[n],y),a||(e[l]=ju(m));else{var x=ha(c[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===Ql?e[a]=e[a]+n:t===Ss?(Je(e[a],Zo),Jl(Zo,Zo,n,1),e[a]=ju(Zo)):t===Ju?Jl(e[a],e[a],n,1):t===OT&&c0(e[a],e[a],n,1)},r})(),Hg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Eg("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,xt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new XP(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Ss&&u&&(u=ju(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ks(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ks(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new PP({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=ks(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||xt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function ao(){return new Date().getTime()}var ZP=(function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=ao()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(gf(a),!t._paused&&t.update())}gf(a)},e.prototype.start=function(){this._running||(this._time=ao(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ao(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ao()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Hg(t,a.loop);return this.addAnimator(n),n},e})(yr),qP=300,mv=mt.domSupported,_v=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=F(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),g0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},y0=!1;function ep(r){var e=r.pointerType;return e==="pen"||e==="touch"}function KP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Sv(r){r&&(r.zrByTouch=!0)}function jP(r,e){return or(r.dom,new JP(r,e),!0)}function NT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var JP=(function(){function r(e,t){this.stopPropagation=te,this.stopImmediatePropagation=te,this.preventDefault=te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Tr={mousedown:function(r){r=or(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=or(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=or(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=or(this.dom,r);var e=r.toElement||r.relatedTarget;NT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){y0=!0,r=or(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){y0||(r=or(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=or(this.dom,r),Sv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Tr.mousemove.call(this,r),Tr.mousedown.call(this,r)},touchmove:function(r){r=or(this.dom,r),Sv(r),this.handler.processGesture(r,"change"),Tr.mousemove.call(this,r)},touchend:function(r){r=or(this.dom,r),Sv(r),this.handler.processGesture(r,"end"),Tr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<qP&&Tr.click.call(this,r)},pointerdown:function(r){Tr.mousedown.call(this,r)},pointermove:function(r){ep(r)||Tr.mousemove.call(this,r)},pointerup:function(r){Tr.mouseup.call(this,r)},pointerout:function(r){ep(r)||Tr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Tr[r]=function(e){e=or(this.dom,e),this.trigger(r,e)}});var rp={pointermove:function(r){ep(r)||rp.mousemove.call(this,r)},pointerup:function(r){rp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function QP(r,e){var t=e.domHandlers;mt.pointerEventsSupported?D(_v.pointer,function(a){Qu(e,a,function(n){t[a].call(r,n)})}):(mt.touchEventsSupported&&D(_v.touch,function(a){Qu(e,a,function(n){t[a].call(r,n),KP(e)})}),D(_v.mouse,function(a){Qu(e,a,function(n){n=Bg(n),e.touching||t[a].call(r,n)})}))}function tR(r,e){mt.pointerEventsSupported?D(g0.pointer,t):mt.touchEventsSupported||D(g0.mouse,t);function t(a){function n(i){i=Bg(i),NT(r,i.target)||(i=jP(r,i),e.domHandlers[a].call(r,i))}Qu(e,a,n,{capture:!0})}}function Qu(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Yd(r.domTarget,e,t,a)}function xv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&dP(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var m0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),eR=(function(r){k(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new m0(t,Tr),mv&&(n._globalHandlerScope=new m0(document,rp)),QP(n,n._localHandlerScope),n}return e.prototype.dispose=function(){xv(this._localHandlerScope),mv&&xv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,mv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?tR(this,a):xv(a)}},e})(yr),BT=1;mt.hasGlobalWindow&&(BT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bf=BT,ap=.4,np="#333",ip="#ccc",rR="#eee",_0=dh,S0=5e-5;function xn(r){return r>S0||r<-S0}var bn=[],Ri=[],bv=je(),wv=Math.abs,pa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return xn(this.rotation)||xn(this.x)||xn(this.y)||xn(this.scaleX-1)||xn(this.scaleY-1)||xn(this.skewX)||xn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(_0(a),this.invTransform=null);return}a=a||je(),t?this.getLocalTransform(a):_0(a),e&&(t?ma(a,e,a):Vg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(bn);var a=bn[0]<0?-1:1,n=bn[1]<0?-1:1,i=((bn[0]-a)*t+a)/bn[0]||0,o=((bn[1]-n)*t+n)/bn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||je(),Mo(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||je(),ma(Ri,e.invTransform,t),t=Ri);var a=this.originX,n=this.originY;(a||n)&&(bv[4]=a,bv[5]=n,ma(Ri,t,bv),Ri[4]-=a,Ri[5]-=n,t=Ri),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&me(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&me(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&wv(e[0]-1)>1e-10&&wv(e[3]-1)>1e-10?Math.sqrt(wv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){VT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-v*p*o,t[5]=-p*o-c*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&bi(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),ta=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function VT(r,e){for(var t=0;t<ta.length;t++){var a=ta[t];r[a]=e[a]}}var x0={};function Qe(r,e){e=e||sn;var t=x0[e];t||(t=x0[e]=new xl(500));var a=t.get(r);return a==null&&(a=ln.measureText(r,e).width,t.put(r,a)),a}function b0(r,e,t,a){var n=Qe(r,e),i=gh(e),o=xs(0,n,t),s=Qi(0,i,a),l=new vt(o,s,n,i);return l}function bl(r,e,t,a){var n=((r||"")+"").split(`
|
|
2
2
|
`),i=n.length;if(i===1)return b0(n[0],e,t,a);for(var o=new vt(0,0,0,0),s=0;s<n.length;s++){var l=b0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function xs(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Qi(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function gh(r){return Qe("国",r)}function Lr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function wf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Lr(a[0],t.width),u+=Lr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Tv="__zr_normal__",Cv=ta.concat(["ignore"]),aR=Jr(ta,function(r,e){return r[e]=!0,r},{ignore:!1}),Ei={},nR=new vt(0,0,0,0),yh=(function(){function r(e){this.id=vT(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=nR;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ei,a,f):wf(Ei,a,f),i.x=Ei.x,i.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Lr(h[0],f.width),c=Lr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=qe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ip:np},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Je(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,_a(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=xt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Tv)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Cv)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Tv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Tv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(dt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Eg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qe),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qe)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=dt(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=dt(n,e),o=dt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];V(t,i),i.textConfig&&(a=a||{},V(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=V({},n?this.textConfig:a.textConfig),V(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Cv.length;f++){var h=Cv[f],v=i&&aR[h];t&&t[h]!=null?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&a[h]!=null&&(v?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new pa,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=qe;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new Hg(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=dt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Av(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Av(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Av(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=qe;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();ne(yh,yr);ne(yh,pa);function Av(r,e,t,a,n){t=t||{};var i=[];zT(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),t.force&&c.duration(t.duration),c.start(t.easing)}return i}function Dv(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function iR(r){return Ae(r[0])}function oR(r,e,t){if(Ae(e[t]))if(Ae(r[t])||(r[t]=[]),Xe(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Dv(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(iR(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Dv(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Dv(i,n,o);i.length=n.length}else r[t]=e[t]}function sR(r,e){return r===e||Ae(r)&&Ae(e)&&lR(r,e)}function lR(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function zT(r,e,t,a,n,i,o,s){for(var l=xt(a),u=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!et(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(c||i[y]))if(et(m)&&!Ae(m)&&!vh(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}zT(r,y,t[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var x=b.stopTracks(p);if(x){var w=dt(d,b);d.splice(w,1)}}}if(n.force||(p=Rt(p,function(M){return!sR(a[M],t[M])}),_=p.length),_>0||n.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},v&&(C={});for(var S=0;S<_;S++){var y=p[S];T[y]=t[y],v?C[y]=a[y]:t[y]=a[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=ks(t[y]),oR(t,a,y)}}var b=new Hg(t,!1,!1,h?Rt(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&C&&b.whenWithKeys(0,C,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u??500,s?T:a,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}var nt=(function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=dt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=dt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new vt(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(vt.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(yh);nt.prototype.type="group";var tf={},GT={};function uR(r){delete GT[r]}function fR(r){if(!r)return!1;if(typeof r=="string")return Sf(r,1)<ap;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Sf(e[n].color,1);return t/=a,t<ap}return!1}var hR=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new AP,o=a.renderer||"canvas";tf[o]||(o=xt(tf)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new tf[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!mt.node&&!mt.worker&&!l?new eR(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?mt.touchEventsSupported:!!f,v=44,c;h&&(c=st(a.pointerSize,v)),this.handler=new mT(i,s,u,s.root,c),this.animation=new ZP({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=fR(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=ao();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=ao();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof nt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,uR(this.id))},r})();function w0(r,e){var t=new hR(vT(),r,e);return GT[t.id]=t,t}function vR(r,e){tf[r]=e}var op;function cR(r){if(typeof op=="function")return op(r)}function dR(r){op=r}var T0=1e-4,FT=20;function pR(r){return r.replace(/^\s+|\s+$/g,"")}function kt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function U(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?pR(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Jt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),FT),r=(+r).toFixed(e),t?r:+r}function dr(r){return r.sort(function(e,t){return e-t}),r}function $r(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return gR(r)}function gR(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function HT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yR(r,e){var t=Jr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=F(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=F(n,function(c){return Math.floor(c)}),s=Jr(o,function(c,d){return c+d},0),l=F(n,function(c,d){return c-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return F(o,function(c){return c/a})}function mR(r,e){var t=Math.max($r(r),$r(e)),a=r+e;return t>FT?a:Jt(a,t)}var C0=9007199254740991;function WT(r){var e=Math.PI*2;return(r%e+e)%e}function Ks(r){return r>-T0&&r<T0}var _R=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ea(r){if(r instanceof Date)return r;if(Y(r)){var e=_R.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function SR(r){return Math.pow(10,Wg(r))}function Wg(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function UT(r,e){var t=Wg(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Mv(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function A0(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function wa(r){var e=parseFloat(r);return e==r&&(e!==0||!Y(r)||r.indexOf("x")<=0)?e:NaN}function YT(r){return!isNaN(wa(r))}function $T(){return Math.round(Math.random()*9)}function XT(r,e){return e===0?r:XT(e,r%e)}function D0(r,e){return r==null?e:e==null?r:r*e/XT(r,e)}function Pt(r){throw new Error(r)}function M0(r,e,t){return(e-r)*t+r}var ZT="series\0",qT="\0_ec_\0";function Bt(r){return r instanceof Array?r:r==null?[]:[r]}function di(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var I0=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Io(r){return et(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function xR(r){return et(r)&&!(r instanceof Array)}function KT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=q();D(e,function(l,u){if(!et(l)){e[u]=null;return}});var s=bR(r,o,t);return(a||n)&&wR(s,r,o,e),a&&TR(s,e),a||n?CR(s,e,n):i&&AR(s,e),DR(s),s}function bR(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||js(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function wR(r,e,t,a){D(a,function(n,i){if(!(!n||n.id==null)){var o=Os(n.id),s=t.get(o);if(s!=null){var l=r[s];Be(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function TR(r,e){D(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!js(t)&&!js(i)&&jT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function CR(r,e,t){D(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||js(n.existing)||n.existing&&a.id!=null&&!jT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function AR(r,e){D(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function DR(r){var e=q();D(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),D(r,function(t){var a=t.newOption;Be(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),D(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(et(i)){if(o.name=i.name!=null?Os(i.name):n?n.name:ZT+a,n)o.id=Os(n.id);else if(i.id!=null)o.id=Os(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function jT(r,e,t){var a=ie(e[r],null),n=ie(t[r],null);return a!=null&&n!=null&&a===n}function Os(r){return ie(r,"")}function ie(r,e){return r==null?e:Y(r)?r:At(r)||Vd(r)?r+"":e}function Ug(r){var e=r.name;return!!(e&&e.indexOf(ZT))}function js(r){return r&&r.id!=null&&Os(r.id).indexOf(qT)===0}function MR(r){return qT+r}function IR(r,e,t){D(r,function(a){var n=a.newOption;et(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=LR(e,n,a.existing,t))})}function LR(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function PR(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=ie(o[u].seriesId,null);if(h==null)return;for(var v=Bt(o[u].dataIndex),c=l&&l[h],d=0,p=v.length;d<p;d++){var g=v[d];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function pi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return z(e.dataIndex)?F(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return z(e.name)?F(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function wt(){var r="__ec_inner_"+RR++;return function(e){return e[r]||(e[r]={})}}var RR=$T();function Ns(r,e,t){var a=Yg(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var h=wl(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Yg(r,e){var t;if(Y(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=q(),i={},o=!1;return D(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&dt(e.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var re={useDefault:!0,enableAll:!1,enableNone:!1},ER={useDefault:!1,enableAll:!0,enableNone:!0};function wl(r,e,t,a){a=a||re;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?(Be(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Be(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function kR(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function OR(r){return r==="auto"?mt.domSupported?"html":"richText":r||"html"}function sp(r,e){var t=q(),a=[];return D(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function JT(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(At(a)){var o=M0(t||0,a,n);return Jt(o,i?Math.max($r(t||0),$r(a)):e)}else{if(Y(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=M0(c,d,n);s[h]=Jt(o,i?Math.max($r(c),$r(d)):e)}}return s}}var NR=".",wn="___EC__COMPONENT__CONTAINER___",QT="___EC__EXTENDED_CLASS___";function Xr(r){var e={main:"",sub:""};if(r){var t=r.split(NR);e.main=t[0]||"",e.sub=t[1]||""}return e}function BR(r){Be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function VR(r){return!!(r&&r[QT])}function $g(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return zR(a)?n=(function(i){k(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},X2(n,this)),V(n.prototype,t),n[QT]=!0,n.extend=this.extend,n.superCall=HR,n.superApply=WR,n.superClass=a,n}}function zR(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function tC(r,e){r.extend=e.extend}var GR=Math.round(Math.random()*10);function FR(r){var e=["__\0is_clz",GR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function HR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function WR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function mh(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){BR(n),a.prototype.type=n;var i=Xr(n);if(!i.sub)e[i.main]=a;else if(i.sub!==wn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[wn]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Xr(a),i=[],o=e[n.main];return o&&o[wn]?D(o,function(s,l){l!==wn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Xr(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return D(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Xr(a),i=e[n.main];return i&&i[wn]};function t(a){var n=e[a.main];return(!n||!n[wn])&&(n=e[a.main]={},n[wn]=!0),n}}function gi(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&dt(n,l)>=0||i&&dt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var UR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],YR=gi(UR),$R=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return YR(this,e,t)},r})(),lp=new xl(50);function XR(r){if(typeof r=="string"){var e=lp.get(r);return e&&e.image}else return r}function Xg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=lp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!_h(e)&&i.pending.push(o)):(e=ln.loadImage(r,L0,L0),e.__zrImageSrc=r,lp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function L0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function _h(r){return r&&r.width&&r.height}var Iv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ZR(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
3
|
`);i=eC(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)rC(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
4
4
|
`),r.isTruncated=s}function eC(r,e,t,a){a=a||{};var n=V({},a);n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=Qe("国",e);var o=n.ascCharWidth=Qe("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Qe(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function rC(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Qe(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?qR(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Qe(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function qR(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function KR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=gh(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?aC(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cT as a}from"./index-CgSVv5Up.js";const c=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],o=a("pencil",c);export{o as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cT as a}from"./index-CgSVv5Up.js";const e=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],y=a("dot",e);const o=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],p=a("eye-off",o);const t=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],k=a("flag",t);const c=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4.93 4.929a10 10 0 0 0-1.938 11.412 2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 0 0 11.302-1.989",key:"7il5tn"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}]],f=a("message-circle-off",c);const s=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],M=a("message-square-text",s);const d=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],i=a("pin",d);const n=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],_=a("pin-off",n);export{y as D,p as E,k as F,f as M,i as P,M as a,_ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ft as v,eI as p,eN as y,eb as c,eM as h,fF as D,d$ as C}from"./index-CgSVv5Up.js";import{u as I}from"./posts-bRma2Aji.js";const N={TODAY:{name:"Today",value:1},LAST_7_DAYS:{name:"Last 7 days",value:7},LAST_30_DAYS:{name:"Last 30 days",value:31},LAST_90_DAYS:{name:"Last 90 days",value:91},YEAR_TO_DATE:{name:"Year to date",value:366},LAST_12_MONTHS:{name:"Last 12 months",value:372},ALL_TIME:{name:"All time",value:1e3}},U={US:"United States",TWN:"Taiwan",TW:"Taiwan",CN:"China","mobile-ios":"iOS","mobile-android":"Android",macos:"macOS","google.com":"Google","ghost.org":"Ghost","bing.com":"Bing","bsky.app":"Bluesky","yahoo.com":"Yahoo","duckduckgo.com":"DuckDuckGo"},x=["NULL","ᴺᵁᴸᴸ","","Others","Other"],t={PUBLIC:1,FREE:2,PAID:4},Y=t.PUBLIC|t.FREE|t.PAID,G=[{name:"Public visitors",value:"undefined",bit:t.PUBLIC},{name:"Free members",value:"free",bit:t.FREE},{name:"Paid members",value:"paid",bit:t.PAID}],m=c.createContext(void 0),k=()=>{const e=c.useContext(m);if(!e)throw new Error("useGlobalData must be used within a PostAnalyticsProvider");return e},w=({children:e})=>{const{postId:a}=v();if(!a)throw new Error("Post ID is required for PostAnalyticsProvider");const o=p(),s=y(),[g,A]=c.useState(N.LAST_30_DAYS.value),d=h(),n=!!o.data?.config?.stats,i=D({enabled:n}),{data:{posts:[S]}={posts:[]},isLoading:L}=I({searchParams:{filter:`id:${a}`,include:"email,authors,tags,tiers,count.clicks,count.signups,count.paid_conversions,count.positive_feedback,count.negative_feedback,newsletter"}}),u=[o,s,d],T=u.map(r=>r.error).find(Boolean),_=n?i.error:null,l=T||_,b=u.some(r=>r.isLoading),f=n?i.isLoading:!1,E=b||f;if(l)throw l;const P=s.data?.site?{url:s.data.site.url,icon:s.data.site.icon,title:s.data.site.title}:void 0;return C.jsx(m.Provider,{value:{data:o.data?.config,site:P,statsConfig:o.data?.config?.stats,tinybirdToken:i.token,isLoading:E,range:g,setRange:A,settings:d.data?.settings||[],postId:a,post:S,isPostLoading:L},children:e})},R=Object.freeze(Object.defineProperty({__proto__:null,default:w,useGlobalData:k},Symbol.toStringTag,{value:"Module"}));export{Y as A,U as S,x as U,t as a,G as b,N as c,R as p,k as u};
|