@abtnode/blocklet-services 1.16.42-beta-20250402-131159-7647e64d → 1.16.42-beta-20250403-230303-c167c6a1
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/api/index.js +4 -1
- package/api/libs/connect/session.js +4 -6
- package/api/libs/jwt.js +3 -3
- package/api/libs/push-kit/index.js +5 -2
- package/api/routes/federated.js +12 -2
- package/api/routes/user-session.js +39 -18
- package/api/routes/user.js +7 -12
- package/api/services/auth/connect/invite.js +4 -6
- package/api/services/auth/connect/issue-passport.js +4 -6
- package/api/services/auth/session.js +5 -6
- package/api/services/notification/index.js +20 -16
- package/api/socket/channel/did.js +8 -8
- package/api/state/message.js +59 -0
- package/api/util/attach-shared-utils.js +1 -0
- package/api/util/user-util.js +5 -7
- package/dist/assets/{ArrowDropDown-B6RijoMg.js → ArrowDropDown-ptWD82T6.js} +1 -1
- package/dist/assets/{CheckCircle-Bme_BHSe.js → CheckCircle-Btm_ouu-.js} +1 -1
- package/dist/assets/{ChevronLeft-CDiNoyQS.js → ChevronLeft-Dlcukg5b.js} +1 -1
- package/dist/assets/{ChevronRight-DyMxK2ti.js → ChevronRight-Dum8C8k7.js} +1 -1
- package/dist/assets/{Community-CMFBTMi_.js → Community-BuDGbplJ.js} +1 -1
- package/dist/assets/{DeleteOutline-C5oIt-tc.js → DeleteOutline-qIhkqz9A.js} +1 -1
- package/dist/assets/{Done-uAJ8-whC.js → Done-CxsGHhW2.js} +1 -1
- package/dist/assets/{Download-CAwoUjYq.js → Download-DtSKdPMo.js} +1 -1
- package/dist/assets/{EditIcon-Bgmg6UE0.js → EditIcon-BOKrjkh4.js} +1 -1
- package/dist/assets/{Email-BphlAPta.js → Email-D1oAzxhZ.js} +1 -1
- package/dist/assets/{Error-J1wFafzM.js → Error-yZoplO-q.js} +1 -1
- package/dist/assets/{ExpandLess-B0AhRxh8.js → ExpandLess-DN5VsSyP.js} +1 -1
- package/dist/assets/{Google-blbcHt2R.js → Google-Drf-_CBl.js} +1 -1
- package/dist/assets/{Holiday-DKefG3Bb.js → Holiday-CGw5hZXz.js} +1 -1
- package/dist/assets/{InfoOutlined-BjH1JBg3.js → InfoOutlined-CLOzYFOV.js} +1 -1
- package/dist/assets/{Launch-DJqhcPtC.js → Launch-BtdPv0ms.js} +1 -1
- package/dist/assets/{LaunchOutlined-CzBae9mQ.js → LaunchOutlined-Bxfn3D1k.js} +1 -1
- package/dist/assets/{Location-BuaxMxu4.js → Location-BNMzVuhr.js} +1 -1
- package/dist/assets/{LockIcon-CQ1tExIY.js → LockIcon-D-N7I3eV.js} +1 -1
- package/dist/assets/{Meeting-Cs60QtvP.js → Meeting-CHDEMp94.js} +1 -1
- package/dist/assets/{MoreHoriz-Dd-9O1iw.js → MoreHoriz-Ecf_Y2c5.js} +1 -1
- package/dist/assets/{OffSick-DinPaelp.js → OffSick-s49E5S0C.js} +1 -1
- package/dist/assets/{Phone-BmouKMyi.js → Phone-B7KVJqdR.js} +1 -1
- package/dist/assets/{PlayArrow-BEPk9nzV.js → PlayArrow-C5Hul3eK.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-Dt9XJWEe.js → QuestionMarkCircle-D9Nr1DvN.js} +1 -1
- package/dist/assets/{ServerLogo-B33ZRE5q.js → ServerLogo-CJ7KvDlS.js} +1 -1
- package/dist/assets/{Timezone-CyMhRxlx.js → Timezone-fKWN5g03.js} +1 -1
- package/dist/assets/TuneOutlined-CIVU5KTm.js +1 -0
- package/dist/assets/{ViewList-CNnrIxVS.js → ViewList-DQNBBLS5.js} +1 -1
- package/dist/assets/{WorkingRemotely-BP_VIHeM.js → WorkingRemotely-8AJSfiNI.js} +1 -1
- package/dist/assets/access-control-5GyLuYd7.js +14 -0
- package/dist/assets/{actions-pYJdaWX5.js → actions-BK1Ssw2h.js} +1 -1
- package/dist/assets/{add-component-core-CgEuYlWv.js → add-component-core-Bm9enQVM.js} +1 -1
- package/dist/assets/{add-resource-Dw_ZKqq3.js → add-resource-Cqmj5BBD.js} +1 -1
- package/dist/assets/{addon-BqlSMpSy.js → addon-Dfs1zul7.js} +1 -1
- package/dist/assets/advanced-MSBu-f81.js +49 -0
- package/dist/assets/api-DeTTY4rz.js +1 -0
- package/dist/assets/{appearance-DyZRbR6W.js → appearance-_saX27MM.js} +1 -1
- package/dist/assets/ar-Bd3GUoqC.js +3 -0
- package/dist/assets/{ar-CVzKLI4f.js → ar-DrRqcx2b.js} +1 -1
- package/dist/assets/{audit-logs-BFKcADf-.js → audit-logs-C8OHcyQY.js} +3 -3
- package/dist/assets/{base32-C0ClYUu9.js → base32-DY8fPTYx.js} +1 -1
- package/dist/assets/branding-CanOP0qb.js +40 -0
- package/dist/assets/branding-DelDZvig.js +50 -0
- package/dist/assets/{bundle-avatar-BYZp7KRE.js → bundle-avatar-CxGKqpL1.js} +1 -1
- package/dist/assets/button-GsH-bz74.js +1 -0
- package/dist/assets/{click-to-copy-BfRimSvL.js → click-to-copy-BuZpdwN0.js} +1 -1
- package/dist/assets/{complete-1MMVAc2H.js → complete-CIxsaCVT.js} +1 -1
- package/dist/assets/{component-BZKPS6he.js → component-vibwLNji.js} +102 -87
- package/dist/assets/{config-DRS6lRly.js → config-BbT0ik5t.js} +1 -1
- package/dist/assets/{config-DtYY5NrA.js → config-Bl-eQAj5.js} +1 -1
- package/dist/assets/{config-navigation-BHoOsyWp.js → config-navigation-Dw7tct52.js} +7 -7
- package/dist/assets/{config-space-DxdlQBdo.js → config-space-D3pvjnQx.js} +1 -1
- package/dist/assets/{confirm-C57Q7ZWM.js → confirm-BzL9LNyf.js} +1 -1
- package/dist/assets/{connect-PChwPX8g.js → connect-CzcOswsI.js} +1 -1
- package/dist/assets/{connect-p9koIBBk.js → connect-Czr8O47H.js} +1 -1
- package/dist/assets/{connect-to-QLfyUtYC.js → connect-to-LVtY3yeI.js} +1 -1
- package/dist/assets/{content-layout-7vu3yv_f.js → content-layout-CcLv-R_J.js} +1 -1
- package/dist/assets/dashboard-BuFzcMGR.js +213 -0
- package/dist/assets/de-4RuZHBym.js +3 -0
- package/dist/assets/{de-DIJPqt1Y.js → de-BRPos3d1.js} +1 -1
- package/dist/assets/{delete-confirm-L9JNVh3W.js → delete-confirm-Bg3_0xz8.js} +1 -1
- package/dist/assets/{did-address-Bz2Y86pP.js → did-address-Dn6n8fAo.js} +1 -1
- package/dist/assets/doc-board-bg-DWZHV9Ng.png +0 -0
- package/dist/assets/domain-C_0cRyXj.js +9 -0
- package/dist/assets/{domain-action-card-Bovam4dU.js → domain-action-card-B6WSK3W9.js} +2 -2
- package/dist/assets/domains-BQtz7ONz.js +1 -0
- package/dist/assets/{email-SVI5bjle.js → email-qq2sglAS.js} +1 -1
- package/dist/assets/{es-C5RqG0zA.js → es-D2rCdMgt.js} +1 -1
- package/dist/assets/es-DPG1emNh.js +3 -0
- package/dist/assets/{exchange-passport-B3N7KRar.js → exchange-passport-CfAHAVKI.js} +1 -1
- package/dist/assets/{fr-BHsPT43-.js → fr-DAFx50ef.js} +1 -1
- package/dist/assets/fr-u7MDLCDo.js +3 -0
- package/dist/assets/fuel-DVzKzmYw.js +32 -0
- package/dist/assets/{get-safe-url-CJRwqFgD.js → get-safe-url-CA3J0_99.js} +1 -1
- package/dist/assets/{get-safe-url-DLBNTOpr.js → get-safe-url-DnmtzIqo.js} +1 -1
- package/dist/assets/{hi-Bie09Alk.js → hi-CkD7b6N9.js} +1 -1
- package/dist/assets/{hi-CSSYN7n8.js → hi-DS9ZR9W2.js} +1 -1
- package/dist/assets/home--ykFBnb1.js +1 -0
- package/dist/assets/{id-IlcS05qm.js → id-BMWKdVei.js} +1 -1
- package/dist/assets/id-C459Zhwd.js +3 -0
- package/dist/assets/{iframe-DPBwIvsP.js → iframe-B5D34SYo.js} +1 -1
- package/dist/assets/{index-CAFqxbeJ.js → index-B1UWfhev.js} +3 -3
- package/dist/assets/{index-RuFDBiVt.js → index-B8T_6tqA.js} +1 -1
- package/dist/assets/{index-D_wVtHmh.js → index-BByO9801.js} +1 -1
- package/dist/assets/{index-DGkTgpZy.js → index-BDliasS9.js} +1 -1
- package/dist/assets/index-BPS0iHSZ.js +4 -0
- package/dist/assets/index-BQLZ0lsX.js +1 -0
- package/dist/assets/{index-DZAi-K_N.js → index-BWpwjp4L.js} +32 -32
- package/dist/assets/index-BqIq9Uma.js +138 -0
- package/dist/assets/{index-Bg3m8iJ-.js → index-C6eHDaxg.js} +11 -11
- package/dist/assets/{index-BMSA5TdD.js → index-CBhHQMgh.js} +1 -1
- package/dist/assets/{index-Db6WuAj_.js → index-CClhZ8rs.js} +1 -1
- package/dist/assets/index-CytYWl7a.js +113 -0
- package/dist/assets/{index-RSW2vc0s.js → index-D8CNdALX.js} +1 -1
- package/dist/assets/{index-B_pl8AF-.js → index-DOdTZRA4.js} +1 -1
- package/dist/assets/{index-bIuZaDHS.js → index-Da6LyIoG.js} +2 -2
- package/dist/assets/{index-Cdm81c0H.js → index-Dy3LPNyS.js} +26 -26
- package/dist/assets/{index-DAE7cdom.js → index-ItdGu4Wh.js} +1 -1
- package/dist/assets/{index-m8CaSxXx.js → index-J5kmwEca.js} +1 -1
- package/dist/assets/{index-fWGZM-oP.js → index-L3MBVAcg.js} +1 -1
- package/dist/assets/{index-Bhnq0cVQ.js → index-VUi6PKrJ.js} +1 -1
- package/dist/assets/{index-CLIxjSVZ.js → index-dCzPMsw6.js} +1 -1
- package/dist/assets/index-ndYC_y0r.js +15 -0
- package/dist/assets/{index-kAPvimmq.js → index-vxB3STPb.js} +2 -2
- package/dist/assets/{index-8I2oAbEz.js → index-y6Dw39ly.js} +9 -9
- package/dist/assets/{invitation-DG6QrvdE.js → invitation-Cp6DuOW5.js} +1 -1
- package/dist/assets/{invite-CYIssZ1G.js → invite-DjADjbzm.js} +1 -1
- package/dist/assets/{issue-passport-Cft19VvI.js → issue-passport-Bu5NvC_2.js} +1 -1
- package/dist/assets/{item-at_gI9OW.js → item-ClBhYYKW.js} +1 -1
- package/dist/assets/ja-B5tIV7r-.js +3 -0
- package/dist/assets/{ja-C2daM668.js → ja-D2jInSAT.js} +1 -1
- package/dist/assets/keyboard-arrow-down-rounded-DadBVmpO.js +1 -0
- package/dist/assets/{ko-Lni8u0p_.js → ko-BGB5KJZq.js} +1 -1
- package/dist/assets/ko-CL3JJCJN.js +3 -0
- package/dist/assets/landing-page-BfVl47YO.js +1 -0
- package/dist/assets/{launch-result-message-ByEG8r_7.js → launch-result-message-BP5yMmIB.js} +1 -1
- package/dist/assets/{layout-ChcSB0Y2.js → layout-D5G7Z8Ws.js} +1 -1
- package/dist/assets/{list-DcSgz3EU.js → list-CjtRvxdF.js} +7 -7
- package/dist/assets/{list-header-BmTDmRY0.js → list-header-Cip98Afo.js} +1 -1
- package/dist/assets/localization-Tn68766t.js +1 -0
- package/dist/assets/{log-D7ImQrI7.js → log-_cZt5s1j.js} +1 -1
- package/dist/assets/{login-B9xuIjhY.js → login-Bd9eibzl.js} +1 -1
- package/dist/assets/{login-oauth-callback-BoFezOw0.js → login-oauth-callback-Buv0sriC.js} +1 -1
- package/dist/assets/{logo-uploader-Bzpld3yG.js → logo-uploader-DGn3pkYl.js} +5 -4
- package/dist/assets/{lost-passport-j4coS07J.js → lost-passport-BplwQoPb.js} +1 -1
- package/dist/assets/omit-DYK_TtPQ.js +1 -0
- package/dist/assets/{open-window-B8cxsAbD.js → open-window-3TWqcI62.js} +1 -1
- package/dist/assets/overview-CJ3muOc6.js +84 -0
- package/dist/assets/{page-header-YN9FqnGT.js → page-header-FKKsPnE9.js} +1 -1
- package/dist/assets/{permission-CTDKdktZ.js → permission-Dd3ufGD-.js} +1 -1
- package/dist/assets/preferences-D4OSAVTW.js +1 -0
- package/dist/assets/profile-embed--1Je95gw.js +1 -0
- package/dist/assets/pt-CYRkKZmh.js +1 -0
- package/dist/assets/{pt-D6N4RLzf.js → pt-DY0Ku5W5.js} +1 -1
- package/dist/assets/publish-resource-B4kuEUIu.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-CkNk1XBJ.js → react-beautiful-dnd.esm-DxmtDCVc.js} +1 -1
- package/dist/assets/{relative-time-BCARyhz6.js → relative-time-Bp0EO1aU.js} +1 -1
- package/dist/assets/{ru-D-xvMzxI.js → ru-Cv5vRo7s.js} +1 -1
- package/dist/assets/ru-Dzg-gLvu.js +1 -0
- package/dist/assets/runtime-DCHSigWq.js +1 -0
- package/dist/assets/sdk-B4tneH2b.js +1 -0
- package/dist/assets/security-Ba0U57n2.js +95 -0
- package/dist/assets/{session-BaYtKD4f.js → session-BXc0WNE7.js} +1 -1
- package/dist/assets/setup-bc5fgvzY.js +19 -0
- package/dist/assets/{shorten-label-DkFTGSoy.js → shorten-label-BcXnCxH2.js} +1 -1
- package/dist/assets/{simple-select-CqakAZFe.js → simple-select-D7qC2duk.js} +1 -1
- package/dist/assets/{slicedToArray-BuQur6Mi.js → slicedToArray-CG0jVe85.js} +2 -2
- package/dist/assets/{start-CdXw9NWC.js → start-kkjng8Di.js} +1 -1
- package/dist/assets/status-Bcehte3I.js +1 -0
- package/dist/assets/step-actions-CAn2VbnK.js +31 -0
- package/dist/assets/studio-Dnzc2A5y.js +6 -0
- package/dist/assets/{switch-control-CpOzvDua.js → switch-control-DZceCxwF.js} +1 -1
- package/dist/assets/th-CevmRMq6.js +1 -0
- package/dist/assets/{th-CycIQ910.js → th-D6oDBVGi.js} +1 -1
- package/dist/assets/{traffic-CvAD-wB3.js → traffic-BbJxF2T-.js} +4 -4
- package/dist/assets/{transfer-BSgBIknw.js → transfer-j5hCBx8d.js} +1 -1
- package/dist/assets/{unsubscribe-I8S6Tbwg.js → unsubscribe-DJgSmFME.js} +1 -1
- package/dist/assets/{use-mobile-CUT5hy9q.js → use-mobile-DNsgYi-4.js} +1 -1
- package/dist/assets/use-mobile-DVecy9Ks.js +1 -0
- package/dist/assets/{useAsync-Cq0wbMuR.js → useAsync-Bia14KO2.js} +1 -1
- package/dist/assets/{useAsyncRetry-BNLrNsx3.js → useAsyncRetry-C-QH3IsB.js} +1 -1
- package/dist/assets/{useLocalStorage-Cligjpwl.js → useLocalStorage-BQFZ73WZ.js} +1 -1
- package/dist/assets/{user-center-C1k0oYvY.js → user-center-BZ0ZkNAA.js} +1 -1
- package/dist/assets/{util-BFBz0dr8.js → util-C9Xcu_Dq.js} +1 -1
- package/dist/assets/{util-COcKIr8L.js → util-WwcocPP-.js} +1 -1
- package/dist/assets/{vendor-arcblock-krD2mwVA.js → vendor-arcblock-B7hyNlnQ.js} +34 -34
- package/dist/assets/{vendor-hooks-BdjOQw7q.js → vendor-hooks-DnflU2EL.js} +1 -1
- package/dist/assets/{vendor-mui-core-DxqV1NVn.js → vendor-mui-core-BL-xsBvI.js} +1 -1
- package/dist/assets/{vendor-mui-x-BjL1xCkk.js → vendor-mui-x-BmOE-0pQ.js} +1 -1
- package/dist/assets/{vendor-utils-BbDUMsIF.js → vendor-utils-Cs6ARqvU.js} +1 -1
- package/dist/assets/{vendor-ux-did-connect-YqGDzQ2U.js → vendor-ux-did-connect-CWUKGZcn.js} +32 -32
- package/dist/assets/{vi-BqnfnvFP.js → vi-BKKJMbW2.js} +1 -1
- package/dist/assets/vi-PQuaKyKY.js +1 -0
- package/dist/assets/wrap-locale-DyRnlWyZ.js +1 -0
- package/dist/assets/zh-BBkG8qYp.js +4 -0
- package/dist/assets/{zh-CHmwTyCg.js → zh-D4Lak9gZ.js} +1 -1
- package/dist/assets/{zh-tw-D6K-qXNE.js → zh-tw-B08rjgK3.js} +1 -1
- package/dist/assets/zh-tw-BHJNqYL0.js +3 -0
- package/dist/index.html +6 -6
- package/dist/service-worker.js +1 -1
- package/package.json +36 -35
- package/dist/assets/access-control-PfmU_lzC.js +0 -14
- package/dist/assets/analytics-DLD8w-rR.js +0 -11
- package/dist/assets/api-0KF6Hg7c.js +0 -1
- package/dist/assets/ar-HpV-sy4C.js +0 -3
- package/dist/assets/branding-8XaHoIBD.js +0 -40
- package/dist/assets/button-K0-gOTcS.js +0 -1
- package/dist/assets/dashboard-Di0Efjh1.js +0 -216
- package/dist/assets/de-zgFs6Kvs.js +0 -3
- package/dist/assets/domain-fVU92lIu.js +0 -9
- package/dist/assets/domains-Cs6tdpUa.js +0 -1
- package/dist/assets/es-CmwByMO0.js +0 -3
- package/dist/assets/form-text-input-Cp0lmtAk.js +0 -11
- package/dist/assets/fr-CLYepc9p.js +0 -3
- package/dist/assets/fuel-DT6O2ymR.js +0 -32
- package/dist/assets/home-CQ7SI4ml.js +0 -1
- package/dist/assets/id-C5CwopKG.js +0 -3
- package/dist/assets/index-B5HkvoQC.js +0 -4
- package/dist/assets/index-BYkIfvmH.js +0 -109
- package/dist/assets/index-BzblYn_P.js +0 -138
- package/dist/assets/index-C9qItKIC.js +0 -138
- package/dist/assets/index.esm-CWepf7I_.js +0 -1
- package/dist/assets/ja-BPVyKlMZ.js +0 -3
- package/dist/assets/ko-DGmHCGCI.js +0 -3
- package/dist/assets/landing-page-CXo1fefz.js +0 -1
- package/dist/assets/localization-DXf17X8p.js +0 -1
- package/dist/assets/omit-BXVmqD4a.js +0 -1
- package/dist/assets/overview-C9x4HKRi.js +0 -12
- package/dist/assets/preferences-DM6b-Vr4.js +0 -1
- package/dist/assets/profile-embed-8sjLgVfn.js +0 -1
- package/dist/assets/pt-u5ojPOFS.js +0 -1
- package/dist/assets/publish-resource-BJIce778.js +0 -1
- package/dist/assets/ru-DBl90RHJ.js +0 -1
- package/dist/assets/sdk-DbmS8LqQ.js +0 -1
- package/dist/assets/setup-BtUUdr-p.js +0 -19
- package/dist/assets/status-B6cew_GQ.js +0 -1
- package/dist/assets/step-actions-D-RgRm8H.js +0 -31
- package/dist/assets/studio-KYZUr4tT.js +0 -6
- package/dist/assets/th-CbjesoRG.js +0 -1
- package/dist/assets/vi-xat6Zv0n.js +0 -1
- package/dist/assets/wrap-locale-BCL-ID0T.js +0 -1
- package/dist/assets/zh-BgH3IZTD.js +0 -4
- package/dist/assets/zh-tw-UWzs9p3g.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as tT,D as qm,E as Km,F as jm}from"./vendor-hooks-
|
|
1
|
+
import{B as tT,D as qm,E as Km,F as jm}from"./vendor-hooks-DnflU2EL.js";import{B as Jm}from"./vendor-utils-Cs6ARqvU.js";import{g as s2,b as l2,r as u2}from"./vendor-react-DoD83n6N.js";/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -71,4 +71,4 @@ yyyy`);var a=qe(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a
|
|
|
71
71
|
|
|
72
72
|
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=gs([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new rc;y.marker=m.makeTooltipMarker("item",pi(y.color),c);var _=E_(u.formatTooltip(f,!1,h)),S=d.get("order"),x=d.get("valueFormatter"),b=_.frag,w=b?V_(x?z({valueFormatter:x},b):b,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=rt(l),l.content=Se(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=gs(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new rc;this._showOrMove(p,function(){var m=rt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(Y(v)){var g=t.ecModel.get("useUTC"),y=V(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Bl(y.axisValue,c,g)),c=vy(c,n,!0)}else if(K(v)){var _=$(function(S,x){S===this._ticket&&(h.setContent(x,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||V(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!V(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),V(a))n=W(a[0],u),i=W(a[1],f);else if(tt(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=Z8(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=$8(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=qb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=qb(c)?h[1]/2:c==="bottom"?h[1]:0),IL(t)){var y=X8(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){bt.node||!a.getDom()||(fl(this,"_updatePosition"),this._tooltipContent.dispose(),sg("itemTooltip",a))},e.type="tooltip",e}(Vt);function gs(r,e,t){var a=e.ecModel,n;t?(n=new Pt(t,a,a),n=new Pt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Pt&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(n=new Pt(o,n,a)))}return n}function Zb(r,e){return r.dispatchAction||$(e.dispatchAction,e)}function $8(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function X8(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Z8(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function qb(r){return r==="center"||r==="middle"}function q8(r,e,t){var a=Hg(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Pl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function K8(r){pt(Zl),r.registerComponentModel(R8),r.registerComponentView(Y8),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var j8=["rect","polygon","keep","clear"];function J8(r,e){var t=Rt(r?r.brush:[]);if(t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;V(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),Q8(s),e&&!s.length&&s.push.apply(s,j8)}}function Q8(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var Kb=A;function jb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function cg(r,e,t){var a={};return Kb(e,function(i){var o=a[i]=n();Kb(r[i],function(s,l){if(ie.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ie(u),l==="opacity"&&(u=rt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ie(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function EL(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&jb(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&jb(e[n])?r[n]=rt(e[n]):delete r[n]})}function tY(r,e,t,a,n,i){var o={};A(r,function(h){var v=ie.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return by(t,s,h)}function u(h,v){jA(t,s,h,v)}t.each(f);function f(h,v){s=h;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(h,l,u)}}}function eY(r,e,t,a){var n={};return A(r,function(i){var o=ie.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(x){return by(s,h,x)}function f(x,b){jA(s,h,x,b)}for(var h,v=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var p=a!=null?v.get(l,h):h,d=t(p),g=e[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function rY(r){var e=r.brushType,t={point:function(a){return Jb[e].point(a,t,r)},rect:function(a){return Jb[e].rect(a,t,r)}};return t}var Jb={lineX:Qb(0),lineY:Qb(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Wn(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Wn(a,n,i)||Wn(a,n+o,i)||Wn(a,n,i+s)||Wn(a,n+o,i+s)||ht.create(r).contain(l[0],l[1])||Cs(n,i,n+o,i,a)||Cs(n,i,n,i+s,a)||Cs(n+o,i,n+o,i+s,a)||Cs(n,i+s,n+o,i+s,a))return!0}}};function Qb(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return ys(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),ys(s[0],o)||ys(s[1],o)||ys(o[0],s)||ys(o[1],s)}}}}function ys(r,e){return e[0]<=r&&r<=e[1]}var tw=["inBrush","outOfBrush"],mp="__ecBrushSelect",pg="__ecInBrushSelectEvent";function kL(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new zm(e.option,r);t.setInputRanges(e.areas,r)})}function aY(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),kL(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:rt(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,h=[],v=[],c=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=G(o.areas,function(x){var b=sY[x.brushType],w=J({boundingRect:b?b(x):void 0},x);return w.selectors=rY(w),w}),g=cg(o.option,tw,function(x){x.mappingMethod="fixed"});V(f)&&A(f,function(x){h[x]=1});function y(x){return f==="all"||!!h[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=c[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,C){T==="active"&&(v[C]=1)})}function S(x,b,w){if(!(!x.brushSelector||oY(o,b))&&(A(d,function(C){o.brushTargetManager.controlSeries(C,x,r)&&w.push(C),p=p||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(C){ew(x,w,T,C)&&(v[C]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=c[b],C=x.getData(),D=y(b)?function(M){return v[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return ew(x,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(b)?p:m(T))&&tY(tw,g,C,D)})}),nY(e,n,i,a,t)}function nY(r,e,t,a,n){if(n){var i=r.getZr();if(!i[pg]){i[mp]||(i[mp]=iY);var o=Go(i,mp,t,e);o(r,a)}}}function iY(r,e){if(!r.isDisposed()){var t=r.getZr();t[pg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[pg]=!1}}function ew(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function oY(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(V(t)?vt(t,e)<0:e!==t)}var sY={rect:function(r){return rw(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&rw(e)}};function rw(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var lY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new hm(a.getZr())).on("brush",$(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){kL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:rt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:rt(n),$from:a})},e.type="brush",e}(Vt),uY="#ddd",fY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&EL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:uY},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(a){return aw(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=aw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(gt);function aw(r,e){return ut({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Pt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var hY=["rect","polygon","lineX","lineY","keep","clear"],vY=function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:hY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(or);function cY(r){r.registerComponentView(lY),r.registerComponentModel(fY),r.registerPreprocessor(J8),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,aY),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},$t),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},$t),eo("brush",vY)}var pY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(gt),dY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=st(t.get("textBaseline"),t.get("textVerticalAlign")),f=new _t({style:Nt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new _t({style:Nt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Of(p,"_"+t.get("target"))}),d&&c.on("click",function(){Of(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var x=_.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new St({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Vt);function gY(r){r.registerComponentModel(pY),r.registerComponentView(dY)}var nw=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var h=Qt(Io(u),""),v;tt(u)?(v=rt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new xe([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(gt),OL=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=fn(nw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(nw);Xt(OL,Uh.prototype);var yY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Vt),mY=function(r){N(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(gr),_p=Math.PI,iw=xt(),_Y=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return se("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=xY(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":Y(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:_p/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*_p/180;var m,_,S,x=v.get("position",!0),b=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,D=h;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[D-p,0],D-=g)):(b&&(m=[D-p,0],D-=g),w&&(_=[0,0],C+=g),T&&(S=[D-p,0],D-=g));var M=[C,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Fe(),l=o.x,u=o.y+o.height;Lr(s,s,[-l,-u]),ln(s,s,-_p/2),Lr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||Y(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=SY(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new mY("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new at;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ae({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:z({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ae({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:J({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:$(o._changeTimeline,o,u.value)},g=ow(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Za(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new _t({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:$(o._changeTimeline,o,h),silent:!1,style:Nt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Nt(p),y.ensureState("progress").style=Nt(d),a.add(y),Za(y),iw(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",$(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",$(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",$(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(c){var y=Pr(st(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=bY(i,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Za(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=$(u._handlePointerDrag,u),h.ondragend=$(u._handlePointerDragend,u),sw(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){sw(h,u._progressLine,s,n,i)}};this._currentPointer=ow(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=$e(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return Mr(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",iw(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(yY);function SY(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Jh({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new By({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Sa}}function xY(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function bY(r,e,t,a){var n=a.style,i=Eo(r.get(["controlStyle",e]),a||{},new ht(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function ow(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=qt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=ut({rectHover:!0,z2:100},a,!0);var u=Fo(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=Ti(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function sw(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function wY(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),J({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function TY(r){var e=r&&r.timeline;V(e)||(e=e?[e]:[]),A(e,function(t){t&&CY(t)})}function CY(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),lw(r),$n(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});$n(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!$n(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){tt(n)&&!V(n)&&(!$n(n,"value")&&$n(n,"name")&&(n.value=n.name),lw(n))})}function lw(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!$n(n,s)&&(n[s]=o)}),t.label&&!$n(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function $n(r,e){return r.hasOwnProperty(e)}function AY(r){r.registerComponentModel(OL),r.registerComponentView(_Y),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),wY(r),r.registerPreprocessor(TY)}function Fm(r,e){if(!r)return!1;for(var t=V(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Yu(r){fi(r,"label",["show"])}var $u=xt(),ba=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(bt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=$u(s)[o];if(!l||!l.data){$u(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Yu(l),A(l.data,function(f){f instanceof Array?(Yu(f[0]),Yu(f[1])):Yu(f)}),u=this.createMarkerModelFromSeries(l,this,a),z(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),$u(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return se("section",{header:this.name,blocks:[se("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=Uh.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return $u(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(gt);Xt(ba,Uh.prototype);var DY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ba);function dg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function MY(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Xu(r,e,t,a,n,i){var o=[],s=_a(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=Hm(e,l,r),f=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,f),o[i]=e.get(l,f);var h=e.get(a,f),v=wr(e.get(a,f));return v=Math.min(v,20),v>=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Sp={min:lt(Xu,"min"),max:lt(Xu,"max"),average:lt(Xu,"average"),median:lt(Xu,"median")};function Tl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!MY(e)&&!V(e.coord)&&V(n)){var i=NL(e,t,a,r);if(e=rt(e),e.type&&Sp[e.type]&&i.baseAxis&&i.valueAxis){var o=vt(n,i.baseAxis.dim),s=vt(n,i.valueAxis.dim),l=Sp[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!V(n))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Sp[u[f]]&&(u[f]=Hm(t,t.mapDimension(n[f]),u[f]));return e}}function NL(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(IY(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function IY(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Cl(r,e){return r&&r.containData&&e.coord&&!dg(e)?r.containData(e.coord):!0}function LY(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!dg(e)&&!dg(t)?r.containZone(e.coord,t.coord):!0}function BL(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return ja(o,e[i])}:function(t,a,n,i){return ja(t.value,e[i])}}function Hm(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var xp=xt(),Wm=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Z()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){xp(s).keep=!1}),a.eachSeries(function(s){var l=ba.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!xp(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){xp(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=ba.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?_C(l):qg(l))})}})},e.type="marker",e}(Vt);function uw(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=W(i.get("x"),t.getWidth()),l=W(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var PY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markPoint");o&&(uw(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fl),h=RY(o,t,a);a.setData(h),uw(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(K(p)||K(d)||K(g)||K(y)){var _=a.getRawValue(v),S=a.getDataParams(v);K(p)&&(p=p(_,S)),K(d)&&(d=d(_,S)),K(g)&&(g=g(_,S)),K(y)&&(y=y(_,S))}var x=c.getModel("itemStyle").getItemStyle(),b=zl(l,"color");x.fill||(x.fill=b),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Wm);function RY(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return z(z({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new xe(a,t),i=G(t.get("data"),lt(Tl,e));r&&(i=Ct(i,lt(Cl,r)));var o=BL(!!r,a);return n.initData(i,null,o),n}function EY(r){r.registerComponentModel(DY),r.registerComponentView(PY),r.registerPreprocessor(function(e){Fm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var kY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ba),Zu=xt(),OY=function(r,e,t,a){var n=r.getData(),i;if(V(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=re(a.yAxis,a.xAxis);else{var u=NL(a,n,e,r);s=u.valueAxis;var f=ky(n,u.valueDataDim);l=Hm(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=rt(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&wt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Tl(r,i[0]),Tl(r,i[1]),z({},i[2])];return g[2].type=g[2].type||null,ut(g[2],g[0]),ut(g[2],g[1]),g};function lh(r){return!isNaN(r)&&!isFinite(r)}function fw(r,e,t,a){var n=1-r,i=a.dimensions[r];return lh(e[n])&&lh(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function NY(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(fw(1,t,a,r)||fw(0,t,a,r)))return!0}return Cl(r,e[0])&&Cl(r,e[1])}function bp(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get("x"),n.getWidth()),u=W(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(Ci(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;lh(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):lh(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var BY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Zu(o).from,u=Zu(o).to;l.each(function(f){bp(l,f,!0,i,n),bp(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new fm);this.group.add(f.group);var h=zY(o,t,a),v=h.from,c=h.to,p=h.line;Zu(a).from=v,Zu(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");V(d)||(d=[d,d]),V(g)||(g=[g,g]),V(y)||(y=[y,y]),V(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var x=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:x})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(x){nt(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);bp(S,x,b,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=zl(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:st(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:st(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:st(w.get("symbolSize"),g[b?0:1]),symbol:st(w.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Wm);function zY(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return z(z({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new xe(a,t),i=new xe(a,t),o=new xe([],t),s=G(t.get("data"),lt(OY,e,r,t));r&&(s=Ct(s,lt(NY,r)));var l=BL(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function VY(r){r.registerComponentModel(kY),r.registerComponentView(BY),r.registerPreprocessor(function(e){Fm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var GY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ba),qu=xt(),FY=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Tl(r,n),s=Tl(r,i),l=o.coord,u=s.coord;l[0]=re(l[0],-1/0),l[1]=re(l[1],-1/0),u[0]=re(u[0],1/0),u[1]=re(u[1],1/0);var f=yh([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function uh(r){return!isNaN(r)&&!isFinite(r)}function hw(r,e,t,a){var n=1-r;return uh(e[n])&&uh(t[n])}function HY(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Ci(r,"cartesian2d")?t&&a&&(hw(1,t,a)||hw(0,t,a))?!0:LY(r,n,i):Cl(r,n)||Cl(r,i)}function vw(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get(t[0]),n.getWidth()),u=W(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];t[0]==="x0"?p[0]=v[0]>c[0]?h[0]:f[0]:p[0]=v[0]>c[0]?f[0]:h[0],t[1]==="y0"?p[1]=v[1]>c[1]?h[1]:f[1]:p[1]=v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Ci(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);uh(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):uh(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var cw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],WY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ba.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(cw,function(h){return vw(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var h=UY(o,t,a);a.setData(h),h.each(function(v){var c=G(cw,function(T){return vw(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];$e(m),$e(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;h.setItemLayout(v,{points:c,allClipped:x});var b=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=zl(l,"color");b.fill||(b.fill=w,Y(b.fill)&&(b.fill=tl(b.fill,.4))),b.stroke||(b.stroke=w),h.setItemVisual(v,"style",b)}),h.diff(qu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Ee({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=qu(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?Tt(p,{shape:{points:d.points}},a,v):p=new Ee({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=qu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),pe(v,oe(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:Y(d.fill)?tl(d.fill,1):"#000"}),ce(v,p),Wt(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),qu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Wm);function UY(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return z(z({},h),{name:u,ordinalMeta:null})});n=G(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new xe(n,t)}else n=[{name:"value",type:"float"}],a=new xe(n,t);var s=G(t.get("data"),lt(FY,e,r,t));r&&(s=Ct(s,lt(HY,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return ja(c,n[v])}:function(u,f,h,v){return ja(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function YY(r){r.registerComponentModel(GY),r.registerComponentView(WY),r.registerPreprocessor(function(e){Fm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var $Y=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},gg=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),V(a)&&A(a,function(i,o){Y(i)&&(i={type:i}),a[o]=ut(i,$Y(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(v)),v.length?a=a.concat(v):f=!0}else f=!0;f&&Fg(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=Z(),s=G(i,function(l){return(Y(l)||wt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Pt(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;A(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;A(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&vt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(gt),$i=lt,yg=A,Ku=at,zL=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ku),this.group.add(this._selectorGroup=new Ku),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=Jt(J({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AL(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=Z(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),yg(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===`
|
|
73
73
|
`)){var g=new Ku;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,d,p,c,a,t,_,x,S,h,i);b.on("click",$i(pw,d,null,i,v)).on("mouseover",$i(mg,y.name,null,i,v)).on("mouseout",$i(_g,y.name,null,i,v)),n.ssr&&b.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),I=Me(D.fill);I&&I[3]===0&&(I[3]=.2,D=z(z({},D),{fill:Dr(I,"rgba")}));var L=this._createItem(w,d,p,c,a,t,{},D,M,h,i);L.on("click",$i(pw,null,d,i,v)).on("mouseover",$i(mg,null,d,i,v)).on("mouseout",$i(_g,null,d,i,v)),n.ssr&&L.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();yg(t,function(u){var f=u.type,h=new _t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);pe(h,{normal:v,emphasis:c},{defaultText:u.title}),Za(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=XY(f,i,l,u,c,g,v),x=new Ku,b=i.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(ZY({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,D=o.get("formatter"),M=a;Y(D)&&D?M=D.replace("{name}",a??""):K(D)&&(M=D(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new _t({style:Nt(b,{text:M,x:T,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new St({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Si({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(x),Za(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ni(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ni("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vt);function XY(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),yg(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:bo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function ZY(r){var e=r.icon||"roundRect",t=qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function pw(r,e,t,a){_g(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),mg(r,e,t,a)}function VL(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function mg(r,e,t,a){VL(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function _g(r,e,t,a){VL(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function qY(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function ms(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),dw(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),dw(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function dw(r,e){var t=e||{};return A(r.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
74
|
-
`||n==="")){var i=r.isSelected(n);X(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function KY(r){r.registerAction("legendToggleSelect","legendselectchanged",lt(ms,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",lt(ms,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",lt(ms,"inverseSelect")),r.registerAction("legendSelect","legendselected",lt(ms,"select")),r.registerAction("legendUnSelect","legendunselected",lt(ms,"unSelect"))}function GL(r){r.registerComponentModel(gg),r.registerComponentView(zL),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,qY),r.registerSubTypeDefaulter("legend",function(){return"plain"}),KY(r)}var jY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=No(t);r.prototype.init.call(this,t,a,n),gw(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),gw(this,this.option,t)},e.type="legend.scroll",e.defaultOption=fn(gg.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(gg);function gw(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,an(e,t,{type:"box",ignoreSize:!!n})}var yw=at,wp=["width","height"],Tp=["x","y"],JY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new yw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yw)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=V(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new _t({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Eo(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:$(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=wp[u],h=Tp[u],v=wp[1-u],c=Tp[1-u];o&&ni("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=rt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ni(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ni("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=d?n[o]:c[o],x[s]=Math.max(c[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-_,0),b[s]=x[s],h.setClipPath(new St({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Tt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=wp[o],l=Tp[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(zL);function QY(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function t7(r){pt(GL),r.registerComponentModel(jY),r.registerComponentView(JY),QY(r)}function e7(r){pt(GL),pt(t7)}var r7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=fn(wl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(wl),Um=xt();function a7(r,e,t){Um(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function n7(r,e){for(var t=Um(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||FL(t,o))}}}function FL(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function i7(r,e){var t={model:e,containsPoint:lt(s7,e),dispatchAction:lt(o7,r),dataZoomInfoMap:null,controller:null},a=t.controller=new $l(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function o7(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function s7(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function l7(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function u7(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Um(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=Z());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=wL(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,i7(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){FL(n,i);return}var f=l7(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Go(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var f7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),a7(n,t,{pan:$(Cp.pan,this),zoom:$(Cp.zoom,this),scrollMove:$(Cp.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){n7(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Om),Cp={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Ap[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:mw(function(r,e,t,a,n,i){var o=Ap[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:mw(function(r,e,t,a,n,i){var o=Ap[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function mw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(Di(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Ap={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function HL(r){Nm(r),r.registerComponentModel(r7),r.registerComponentView(f7),u7(r)}var h7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fn(wl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(wl),_s=St,_w=7,v7=1,Dp=30,c7=7,Ss="horizontal",Sw="vertical",p7=5,d7=["line","bar","candlestick","scatter"],g7={easing:"cubicOut",duration:100,delay:0},y7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Go(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){fl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?c7:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ss?{right:s.width-o.x-o.width,top:s.height-Dp-_w-i,width:o.width,height:Dp}:{right:_w,top:o.y,width:Dp,height:o.height},u=No(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Sw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Ss&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ss&&o?{scaleY:l?1:-1,scaleX:-1}:n===Sw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new _s({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new _s({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,D){if(_>0&&D%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:At(C,h,c,!0);M&&!S&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var x=this.dataZoomModel;function b(C){var D=x.getModel(C?"selectedDataBackground":"dataBackground"),M=new at,I=new Ee({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new ke({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=b(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&vt(d7,u.get("type"))<0)){var f=i.getComponent(Ya(o),s).axis,h=m7(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new _s({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new _s({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:v7,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!zf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=qt(S,-1,0,2,2,null,!0);x.attr({cursor:xw(this._orient),draggable:!0,drift:$(this._onDragMove,this,_),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=W(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Za(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(i[_]=new _t({silent:!0,invisible:!M,style:Nt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=W(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new St({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new St({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:xw(this._orient),drift:$(this._onDragMove,this,"all"),ondragstart:$(this._showDataInfo,this,!0),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[At(t[0],[0,100],a,!0),At(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Di(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?At(s.minSpan,l,o,!0):null,s.maxSpan!=null?At(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$e([At(i[0],o,l,!0),At(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=$e(n.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new St,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=$e(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(p){var d=qa(n.handles[p].parent,this.group),g=Nh(p===0?"right":"left",d),y=this._handleWidth/2+p7,m=Mr([v[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Ss?"middle":g,align:o===Ss?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return K(i)?i(t,s):Y(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,da(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Mr([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ft(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=$e([At(n.x,o,s,!0),At(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(da(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new _s({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?g7:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=wL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Om);function m7(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function xw(r){return r==="vertical"?"ns-resize":"ew-resize"}function WL(r){r.registerComponentModel(h7),r.registerComponentView(y7),Nm(r)}function _7(r){pt(HL),pt(WL)}var UL={get:function(r,e,t){var a=rt((S7[r]||{})[e]);return t&&V(a)?a[a.length-1]:a}},S7={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bw=ie.mapVisual,x7=ie.eachVisual,b7=V,ww=A,w7=$e,T7=At,fh=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&EL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=$(t,this),this.controllerVisuals=cg(this.option.controller,a,t),this.targetVisuals=cg(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],V(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(Y(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=w7([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ut(i,n),ut(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){b7(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},ww(p,function(g,y){if(ie.isValidType(y)){var m=UL.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";ww(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=bw(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;x7(S,function(b){b>x&&(x=b)}),_.symbolSize=bw(S,function(b){return T7(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(gt),Tw=[20,140],C7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Tw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Tw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):V(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=$e((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Cw(this,"outOfRange",this.getExtent()),n=Cw(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var h=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(a[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=fn(fh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fh);function Cw(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var YL=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=wi(a.get("padding")||0),i=t.getBoundingRect();t.add(new St({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,p){s[c]=p}var h=o.controllerVisuals[i||o.getValueState(t)],v=ie.prepareVisualTypes(h);return A(v,function(c){var p=h[c];n.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",p=h.__alphaForOpacity),ie.dependsOn(c,a)&&p&&p.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;Hh(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e}(Vt),Aw=[["left","right","width"],["top","bottom","height"]];function $L(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Aw[o],l=[0,null,10],u={},f=0;f<3;f++)u[Aw[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var h=[["x","width",3],["y","height",0]][o],v=Jt(u,i,a.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<i[h[1]]*.5?0:1]}function gf(r,e){return A(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Gr=At,A7=A,Dw=Math.min,Mp=Math.max,D7=12,M7=6,I7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),h=this._applyTransform(n===0?"bottom":"top",u),v=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new _t({style:Nt(c,{x:f[0],y:f[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=$L(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new at;u.add(f),f.add(n.outOfRange=Mw()),f.add(n.inRange=Mw(null,s?Lw(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),f.setClipPath(new St({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=a.textStyleModel.getTextRect("国"),v=Mp(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=$(this._dragHandle,this,n,!1),u=$(this._dragHandle,this,n,!0),f=Pr(t.get("handleSize"),i[0]),h=qt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=Lw(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){da(y.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(h,!0),a.add(h);var c=this.visualMapModel.textStyleModel,p=new _t({cursor:v,draggable:!0,drift:l,onmousemove:function(y){da(y.event)},ondragend:u,style:Nt(c,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=h,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,a,n,i,o){var s=Pr(t.get("indicatorSize"),n[0]),l=qt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof fe){var f=l.style;l.useStyle(z({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var h=this.visualMapModel.textStyleModel,v=new _t({silent:!0,invisible:!0,style:Nt(h,{x:0,y:0,text:""})});this.group.add(v);var c=[(o==="horizontal"?i/2:M7)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Iw(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Gr(a[0],n,i,!0),Gr(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Di(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Gr(i[0],o,s,!0),Gr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Po(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);A7([0,1],function(h){var v=o[h];v.setStyle("fill",a.handlesColor[h]),v.y=t[h];var c=Gr(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(c,"symbolSize");v.scaleX=v.scaleY=p/l[0],v.x=l[0]-p/2;var d=Mr(n.handleLabelPoints[h],qa(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Gr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Mr(f.indicatorLabelPoint,qa(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Dw(Mp(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Dw(Mp(o[0],t),o[1]);var l=L7(n,s,o),u=[t-l,t+l],f=Gr(t,o,s,!0),h=[Gr(u[0],o,s,!0),Gr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||Iw(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=cR(v,c);this._dispatchHighDown("downplay",gf(p[0],n)),this._dispatchHighDown("highlight",gf(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(jn(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gf(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=qa(a,i?null:this.group);return V(t)?Mr(t,o,n):Nh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(YL);function Mw(r,e,t,a){return new Ee({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){da(n.event)},ondragend:a})}function L7(r,e,t){var a=D7/2,n=r.get("hoverLinkDataSize");return n&&(a=Gr(n,e,t,!0)/2),a}function Iw(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Lw(r){return r==="vertical"?"ns-resize":"ew-resize"}var P7={type:"selectDataRange",event:"dataRangeSelected",update:"update"},R7=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},E7=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(eY(a.stateList,a.targetVisuals,$(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta($(k7,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function k7(r,e,t,a){for(var n=e.targetVisuals[a],i=ie.prepareVisualTypes(n),o={color:zl(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,v)}return o.color;function h(c){return o[c]}function v(c,p){o[c]=p}}var Pw=A;function O7(r){var e=r&&r.visualMap;V(e)||(e=e?[e]:[]),Pw(e,function(t){if(t){Xi(t,"splitList")&&!Xi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&V(a)&&Pw(a,function(n){tt(n)&&(Xi(n,"start")&&!Xi(n,"min")&&(n.min=n.start),Xi(n,"end")&&!Xi(n,"max")&&(n.max=n.end))})}})}function Xi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Rw=!1;function XL(r){Rw||(Rw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(P7,R7),A(E7,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(O7))}function ZL(r){r.registerComponentModel(C7),r.registerComponentView(I7),XL(r)}var N7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],B7[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=rt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ie.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=UL.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=rt(t)},e.prototype.getValueState=function(t){var a=ie.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ie.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=fn(fh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fh),B7={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),ad(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Ew(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){tt(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=t[v[c]],s[h]=l[c],f[h]=c===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ie.retrieveVisuals(t),r.push(n)},this),Ew(e,r),ad(r),A(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Ew(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var z7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=re(a.get("showLabel",!0),!h),c=!a.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(p){var d=p.piece,g=new at;g.onclick=$(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=a.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],c),v){var m=this.visualMapModel.getValueState(y);g.add(new _t({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:c}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,v,l),ni(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:gf(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return $L(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new _t({style:Nt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=rt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(YL);function qL(r){r.registerComponentModel(N7),r.registerComponentView(z7),XL(r)}function V7(r){pt(ZL),pt(qL)}var G7={label:{enabled:!0},decal:{show:!1}},kw=xt(),F7={};function H7(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=rt(G7);ut(a.label,r.getLocaleModel().get("aria"),!1),ut(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=Z();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),kw(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=_d(v.ecModel,v.name,F7,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=kw(v).scope;c.each(function(x){var b=c.getRawIndex(x);d[b]=x});var y=p.count();p.each(function(x){var b=d[x],w=p.getName(x)||x+"",T=_d(v.ecModel,w,g,y),C=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?z(z({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=J(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C<d){var D=void 0,M=T.get("name"),I=M?"withName":"withoutName";D=v>1?h.get(["series","multiple",I]):h.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=h.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),E=h.get(["data","separator","end"]),O=h.get(["data","excludeDimensionId"]),k=[],B=0;B<L.count();B++)if(B<c){var F=L.getName(B),H=O?Ct(L.getValues(B),function(j,Q){return vt(O,Q)===-1}):L.getValues(B),U=h.get(["data",F?"withName":"withoutName"]);k.push(o(U,{name:F,value:H.join(R)}))}D+=k.join(R)+E,_.push(D)}});var x=h.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!Y(u))return u;var h=u;return A(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function W7(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function U7(r){r.registerPreprocessor(W7),r.registerVisual(r.PRIORITY.VISUAL.ARIA,H7)}var Ow={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Y7=function(){function r(e){var t=this._condVal=Y(e)?new RegExp(e):sT(e)?e:null;if(t==null){var a="";Dt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return Y(t)?this._condVal.test(e):wt(t)?this._condVal.test(e+""):!1},r}(),$7=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),X7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),Z7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),q7=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),K7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r}();function Ym(r,e){if(r===!0||r===!1){var t=new $7;return t.value=r,t}var a="";return KL(r)||Dt(a),r.and?Nw("and",r,e):r.or?Nw("or",r,e):r.not?j7(r,e):J7(r,e)}function Nw(r,e,t){var a=e[r],n="";V(a)||Dt(n),a.length||Dt(n);var i=r==="and"?new X7:new Z7;return i.children=G(a,function(o){return Ym(o,t)}),i.children.length||Dt(n),i}function j7(r,e){var t=r.not,a="";KL(t)||Dt(a);var n=new q7;return n.child=Ym(t,e),n.child||Dt(a),n}function J7(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=mt(r),o=r.parser,s=o?MA(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=X(Ow,u)?Ow[u]:u,h=r[u],v=s?s(h):h,c=SO(f,v)||f==="reg"&&new Y7(v);c||Dt(t),n.push(c)}}n.length||Dt(t);var p=new K7;return p.valueGetterParam=a,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}function KL(r){return tt(r)&&!ve(r)}var Q7=function(){function r(e,t){this._cond=Ym(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function t$(r,e){return new Q7(r,e)}var e$={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=t$(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;X(s,"dimension")||Dt(l);var f=e.getDimensionInfo(u);return f||Dt(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},r$={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Rt(t);n.length||Dt(a);var i=[];A(n,function(f){var h=f.dimension,v=f.order,c=f.parser,p=f.incomparable;if(h==null&&Dt(a),v!=="asc"&&v!=="desc"&&Dt(a),p&&p!=="min"&&p!=="max"){var d="";Dt(d)}if(v!=="asc"&&v!=="desc"){var g="";Dt(g)}var y=e.getDimensionInfo(h);y||Dt(a);var m=c?MA(c):null;c&&!m&&Dt(a),i.push({dimIdx:y.index,parser:m,comparator:new LA(v,p)})});var o=e.sourceFormat;o!==we&&o!==dr&&Dt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,h){for(var v=0;v<i.length;v++){var c=i[v],p=e.retrieveValueFromItem(f,c.dimIdx),d=e.retrieveValueFromItem(h,c.dimIdx);c.parser&&(p=c.parser(p),d=c.parser(d));var g=c.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function a$(r){r.registerTransform(e$),r.registerTransform(r$)}var n$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new kA(this),B_(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),B_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qr},e}(gt),i$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Vt);function o$(r){r.registerComponentModel(n$),r.registerComponentView(i$)}var zr=Qr.CMD;function io(r,e){return Math.abs(r-e)<1e-5}function Sg(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,R,E){io(L,R)&&io(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,O,k){var B=Math.abs(P-L),F=Math.tan(B/4)*4/3,H=P<L?-1:1,U=Math.cos(L),j=Math.sin(L),Q=Math.cos(P),it=Math.sin(P),Lt=U*O+R,Yt=j*k+E,ct=Q*O+R,et=it*k+E,dt=O*F*H,q=k*F*H;n.push(Lt-dt*j,Yt+q*U,ct+dt*it,et-q*Q,ct,et)}for(var v,c,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===zr.L||y===zr.C||y===zr.Q)&&(n=[s,l])),y){case zr.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case zr.L:v=e[g++],c=e[g++],f(i,o,v,c),i=v,o=c;break;case zr.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case zr.Q:v=e[g++],c=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(v-i),o+2/3*(c-o),p+2/3*(v-p),d+2/3*(c-d),p,d),i=p,o=d;break;case zr.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];v=Math.cos(w)*x+_,c=Math.sin(w)*b+S,m?(s=v,l=c,u(s,l)):f(i,o,v,c),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var D=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=D){var I=C?Math.max(M+D,T):Math.min(M+D,T);h(M,I,_,S,x,b)}break;case zr.R:s=i=e[g++],l=o=e[g++],v=s+e[g++],c=l+e[g++],u(v,l),f(v,l,v,c),f(v,c,s,c),f(s,c,s,l),f(s,l,v,l);break;case zr.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function xg(r,e,t,a,n,i,o,s,l,u){if(io(r,t)&&io(e,a)&&io(n,o)&&io(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<h&&S<h){l.push(o,s);return}var x=v*d+c*g,b=-v*y-c*m,w=_-x*x,T=S-b*b;if(w<h&&x>=0&&T<h&&b>=0){l.push(o,s);return}var C=[],D=[];en(r,t,n,o,.5,C),en(e,a,i,s,.5,D),xg(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),xg(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function s$(r,e){var t=Sg(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],c=i[u++],p=i[u++],d=i[u++];xg(s,l,f,h,v,c,p,d,o,e),s=p,l=d}a.push(o)}return a}function jL(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=t-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function Bw(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),h=jL([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;c<h.length;c++)for(var p=(f?u:s)/h[c],d=0;d<h[c];d++){var g={};f?(g.startAngle=i+v*c,g.endAngle=i+v*(c+1),g.r0=a+p*d,g.r=a+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=a+v*c,g.r=a+v*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function l$(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=jL([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var c=r[l]/o[v],p=0;p<o[v];p++){var d={};d[u]=v*h,d[f]=p*c,d[s]=h,d[l]=c,d.x+=r.x,d.y+=r.y,t.push(d)}}function zw(r,e,t,a){return r*a-t*e}function u$(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=zw(f,h,l,u);if(Math.abs(v)<1e-6)return null;var c=r-n,p=e-i,d=zw(c,p,f,h)/v;return d<0||d>1?null:new ft(d*l+r,d*u+e)}function f$(r,e,t){var a=new ft;ft.sub(a,t,e),a.normalize();var n=new ft;ft.sub(n,r,e);var i=n.dot(a);return i}function Zi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function h$(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=u$(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:f$(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var v=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],p=[v],d=[c],i=u.idx+1;i<=f.idx;i++)Zi(p,r[i].slice());Zi(p,c),Zi(p,v);for(var i=f.idx+1;i<=u.idx+a;i++)Zi(d,r[i%a].slice());return Zi(d,v),Zi(d,c),[{points:p},{points:d}]}function Vw(r){var e=r.points,t=[],a=[];Ih(e,t,a);var n=new ht(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new ft,f=new ft;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),h$(e,u,f)}function hh(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);hh(r,i[0],n,a),hh(r,i[1],t-n,a)}return a}function v$(r,e){for(var t=[],a=0;a<e;a++)t.push(jg(r));return t}function c$(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function p$(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function d$(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":l$(a,e,t),n=St;break;case"sector":Bw(a,e,t),n=Re;break;case"circle":Bw({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Re;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(s$(r.getUpdatedPathProxy(),o),function(y){return p$(y)}),l=s.length;if(l===0)hh(Vw,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,h=G(s,function(y){var m=[],_=[];Ih(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var v=e,u=0;u<l;u++){var c=h[u];if(v<=0)break;var p=u===l-1?v:Math.ceil(c.area/f*e);p<0||(hh(Vw,{points:c.poly},p,t),v-=p)}}n=Ee;break}if(!n)return v$(r,e);for(var d=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),c$(r,g),d.push(g)}return d}function g$(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,c=2;c<s;){var p=o[c-2],d=o[c-1],g=o[c++],y=o[c++],m=o[c++],_=o[c++],S=o[c++],x=o[c++];if(v<=0){h.push(g,y,m,_,S,x);continue}for(var b=Math.min(v,f-1)+1,w=1;w<=b;w++){var T=w/b;en(p,g,m,S,T,n),en(d,y,_,x,T,i),p=n[3],d=i[3],h.push(n[1],i[1],n[2],i[2],p,d),g=n[5],y=i[5],m=n[6],_=i[6]}v-=b-1}return o===r?[h,e]:[r,h]}function Gw(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function y$(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,h=void 0;l?u?(t=g$(l,u),f=t[0],h=t[1],a=f,n=h):(h=Gw(n||l,l),f=l):(f=Gw(a||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function Fw(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;e+=h,t+=(s+u)*h,a+=(l+f)*h}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function m$(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,h=0,v=0;v<s;v+=2){var c=v===0?f:(f+v-2)%l+2,p=r[c]-t[0],d=r[c+1]-t[1],g=e[v]-a[0],y=e[v+1]-a[1],m=g-p,_=y-d;h+=m*m+_*_}h<i&&(i=h,o=u)}return o}function _$(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function S$(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=Fw(s),f=Fw(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],v=[],c=0,p=1/0,d=[],g=s.length;i&&(s=_$(s));for(var y=m$(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}h[0]=s[y]-u[0],h[1]=s[y+1]-u[1];for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_<s.length;_+=2){var D=h[_],M=h[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,R=I*w+L*T;d[_]=P,d[_+1]=R;var E=P-D,O=R-M;C+=E*E+O*O}if(C<p){p=C,c=b;for(var k=0;k<d.length;k++)v[k]=d[k]}}n.push({from:h,to:v,fromCp:u,toCp:f,rotation:-c})}return n}function vh(r){return r.__isCombineMorphing}var JL="__mOriginal_";function ch(r,e,t){var a=JL+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function qs(r,e){var t=JL+e;r[t]&&(r[e]=r[t],r[t]=null)}function Hw(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function QL(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=y$(Sg(t),Sg(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Hw(i,s),l&&Hw(o,l),ch(e,"updateTransform",{replace:u}),e.transform=null;var f=S$(i,o,10,Math.PI),h=[];ch(e,"buildPath",{replace:function(v){for(var c=e.__morphT,p=1-c,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*c,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);Os(d,x,b,c);for(var C=0;C<m.length;C+=2){var D=m[C],M=m[C+1],I=_[C],L=_[C+1],P=D*p+I*c,R=M*p+L*c;h[C]=P*T-R*w+d[0],h[C+1]=P*w+R*T+d[1]}var E=h[0],O=h[1];v.moveTo(E,O);for(var C=2;C<m.length;){var I=h[C++],L=h[C++],k=h[C++],B=h[C++],F=h[C++],H=h[C++];E===I&&O===L&&k===F&&B===H?v.lineTo(F,H):v.bezierCurveTo(I,L,k,B,F,H),E=F,O=H}}}})}function $m(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;QL(r,e),e.__morphT=0;function i(){qs(e,"buildPath"),qs(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},J({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function x$(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function ph(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:x$(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function t2(r){return d$(r.path,r.count)}function bg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function b$(r,e,t){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];vh(w)?n(w.childrenRef()):w instanceof yt&&a.push(w)}}n(r);var i=a.length;if(!i)return bg();var o=t.dividePath||t2,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),bg();a=ph(a),s=ph(s);for(var l=t.done,u=t.during,f=t.individualDelay,h=new ha,v=0;v<i;v++){var c=a[v],p=s[v];p.parent=e,p.copyTransform(h),f||QL(c,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}ch(e,"addSelfToZr",{after:function(x){d(x)}}),ch(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,qs(e,"addSelfToZr"),qs(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?J({delay:(t.delay||0)+f(v,y,a[v],s[v]),done:_},t):t;$m(a[v],s[v],S)}else e.__morphT=0,e.animateTo({__morphT:1},J({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)qs(r[x],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function w$(r,e,t){var a=e.length,n=[],i=t.dividePath||t2;function o(c){for(var p=0;p<c.length;p++){var d=c[p];vh(d)?o(d.childrenRef()):d instanceof yt&&n.push(d)}}if(vh(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(jg(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),bg()}n=ph(n),e=ph(e);for(var h=t.individualDelay,u=0;u<a;u++){var v=h?J({delay:(t.delay||0)+h(u,a,n[u],e[u])},t):t;$m(n[u],e[u],v)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function Ww(r){return V(r[0])}function Uw(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var T$={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=jg(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Ip(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Ro("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Ww(r)&&(u=r,f=e),Ww(e)&&(u=e,f=r);function h(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if(vh(T))h({many:[T],one:C},!0,_,S,!0);else{var D=s?J({delay:s(_,S)},l):l;$m(T,C,D),i(T,C,T,C,D)}}else for(var M=J({dividePath:T$[t],individualDelay:s&&function(O,k,B,F){return s(O+_,S)}},l),I=m?b$(b,w,M):w$(w,b,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;E<R;E++){var D=s?J({delay:s(E,R)},l):l;i(L[E],P[E],m?b[E]:y.one,m?y.one:b[E],D)}}for(var v=u?u===r:r.length>e.length,c=u?Uw(f,u):Uw(v?e:r,[v?r:e]),p=0,d=0;d<c.length;d++)p+=c[d].many.length;for(var g=0,d=0;d<c.length;d++)h(c[d],v,g,p),g+=c[d].many.length}function Hn(r){if(!r)return[];if(V(r)){for(var e=[],t=0;t<r.length;t++)e.push(Hn(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof yt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var e2=1e4,C$=0,Yw=1,$w=2,A$=xt();function D$(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function M$(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function Xw(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=D$(r,n);if(i){var o=M$(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function Zw(r){var e=[];return A(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>e2))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:Xw(a,o,n,!1),childGroupId:Xw(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Lp(r,e,t){r.traverse(function(a){a instanceof yt&&Gt(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Pp(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function qi(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function I$(r,e,t){var a=Ro("update",t,e);a&&r.traverse(function(n){if(n instanceof hr){var i=nk(n);i&&n.animateFrom({style:i},a)}})}function L$(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function r2(r,e,t){var a=Zw(r),n=Zw(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?z(z({},x.style),_.style):_.style},w)}var o=!1,s=C$,l=Z(),u=Z();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var h=n[f].groupId;if(u.get(h)){s=Yw;break}var v=n[f].childGroupId;if(v&&l.get(v)){s=$w;break}}function c(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===Yw?x.childGroupId:x.groupId:s===$w?x.childGroupId:x.groupId}}var p=L$(a,n),d={};if(!p)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(T===C){C&&I$(C,b.dataIndex,w);return}T&&d[T.id]||C&&(qi(C),T?(qi(T),Pp(T),o=!0,Ip(Hn(T),Hn(C),b.divide,w,_,i)):Lp(C,w,_))}new ma(a,n,c(!0,p),c(!1,p),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),C=Ct(G(S,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==T&&!d[D.id]});T&&(qi(T),C.length?(A(C,function(D){qi(D),Pp(D)}),o=!0,Ip(Hn(C),Hn(T),x.divide,w,_,i)):Lp(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&d[b.id])){var w=Ct(G(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b}),T=n[_[0]].data.hostModel;w.length&&(A(w,function(C){return qi(C)}),b?(qi(b),Pp(b),o=!0,Ip(Hn(b),Hn(w),x.divide,T,_[0],i)):A(w,function(C){return Lp(C,T,_[0])}))}}).updateManyToMany(function(_,S){new ma(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&A(e,function(_){var S=_.data,x=S.hostModel,b=x&&t.getViewOfSeriesModel(x),w=Ro("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof yt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function qw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function Kw(r){return V(r)?r.sort().join(","):r}function za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function P$(r,e){var t=Z(),a=Z(),n=Z();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=qw(i),f=Kw(u);a.set(f,{dataGroupId:s,data:l}),V(u)&&A(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),A(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qw(i),u=Kw(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:za(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:za(s),data:s}]});else if(V(l)){var h=[];A(l,function(p){var d=a.get(p);d.data&&h.push({dataGroupId:d.dataGroupId,divide:za(d.data),data:d.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:za(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:za(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:za(s)})}}}}),t}function jw(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function R$(r,e,t,a){var n=[],i=[];A(Rt(r.from),function(o){var s=jw(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:za(e.oldData[s]),groupIdDim:o.dimension})}),A(Rt(r.to),function(o){var s=jw(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:za(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&r2(n,i,a)}function E$(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Rt(a.seriesTransition),function(n){A(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][uf]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=A$(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Rt(i),function(c){R$(c,n,a,t)});else{var o=P$(n,a);A(o.keys(),function(c){var p=o.get(c);r2(p.oldSeries,p.newSeries,t)})}A(a.updatedSeries,function(c){c[uf]&&(c[uf]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<e2&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(v))}})}pt([HV]);pt([BV]);pt([l5,w5,E5,vG,wG,uF,BF,S3,H3,Z3,aH,jH,b4,E4,q4,Q4,uW,gW,DW,EW,WW,A6]);pt(Y6);pt(mU);pt(tI);pt(PU);pt(VI);pt(OU);pt(UU);pt(P8);pt(K8);pt(Zl);pt(cY);pt(gY);pt(AY);pt(EY);pt(VY);pt(YY);pt(e7);pt(_7);pt(HL);pt(WL);pt(V7);pt(ZL);pt(qL);pt(U7);pt(a$);pt(o$);pt(E$);pt(aV);const k$=Object.freeze(Object.defineProperty({__proto__:null,Axis:gr,ChartView:It,ComponentModel:gt,ComponentView:Vt,List:xe,Model:Pt,PRIORITY:uD,SeriesModel:Et,color:gP,connect:fB,dataTool:yB,dependencies:$N,disConnect:hB,disconnect:yD,dispose:vB,env:bt,extendChartView:Uz,extendComponentModel:Fz,extendComponentView:Hz,extendSeriesModel:Wz,format:Iz,getCoordinateSystemDimensions:pB,getInstanceByDom:My,getInstanceById:cB,getMap:gB,graphic:Mz,helper:Sz,init:uB,innerDrawElementOnCanvas:Ty,matrix:X2,number:Az,parseGeoJSON:kd,parseGeoJson:kd,registerAction:Er,registerCoordinateSystem:SD,registerLayout:xD,registerLoading:Ey,registerLocale:oy,registerMap:bD,registerPostInit:mD,registerPostUpdate:_D,registerPreprocessor:Ly,registerProcessor:Py,registerTheme:Iy,registerTransform:wD,registerUpdateLifecycle:Zh,registerVisual:hn,setCanvasCreator:dB,setPlatformAPI:rT,throttle:$h,time:Dz,use:pt,util:Lz,vector:E2,version:YN,zrUtil:A2,zrender:JP},Symbol.toStringTag,{value:"Module"}));var li={},Qa={},a2={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1,t=function(){return"".concat(e++)};r.default=t})(a2);var sv={},lv={},Xm={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];clearTimeout(i),i=setTimeout(function(){a.apply(o,l)},n)}};r.default=e})(Xm);var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.SizeSensorId=Kr.SensorTabIndex=Kr.SensorClassName=void 0;var O$="size-sensor-id";Kr.SizeSensorId=O$;var N$="size-sensor-object";Kr.SensorClassName=N$;var B$="-1";Kr.SensorTabIndex=B$;Object.defineProperty(lv,"__esModule",{value:!0});lv.createSensor=void 0;var z$=V$(Xm),Rp=Kr;function V$(r){return r&&r.__esModule?r:{default:r}}var G$=function(e,t){var a=void 0,n=[],i=function(){getComputedStyle(e).position==="static"&&(e.style.position="relative");var h=document.createElement("object");return h.onload=function(){h.contentDocument.defaultView.addEventListener("resize",o),o()},h.style.display="block",h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.height="100%",h.style.width="100%",h.style.overflow="hidden",h.style.pointerEvents="none",h.style.zIndex="-1",h.style.opacity="0",h.setAttribute("class",Rp.SensorClassName),h.setAttribute("tabindex",Rp.SensorTabIndex),h.type="text/html",e.appendChild(h),h.data="about:blank",h},o=(0,z$.default)(function(){n.forEach(function(f){f(e)})}),s=function(h){a||(a=i()),n.indexOf(h)===-1&&n.push(h)},l=function(){a&&a.parentNode&&(a.contentDocument&&a.contentDocument.defaultView.removeEventListener("resize",o),a.parentNode.removeChild(a),e.removeAttribute(Rp.SizeSensorId),a=void 0,n=[],t&&t())},u=function(h){var v=n.indexOf(h);v!==-1&&n.splice(v,1),n.length===0&&a&&l()};return{element:e,bind:s,destroy:l,unbind:u}};lv.createSensor=G$;var uv={};Object.defineProperty(uv,"__esModule",{value:!0});uv.createSensor=void 0;var F$=Kr,H$=W$(Xm);function W$(r){return r&&r.__esModule?r:{default:r}}var U$=function(e,t){var a=void 0,n=[],i=(0,H$.default)(function(){n.forEach(function(f){f(e)})}),o=function(){var h=new ResizeObserver(i);return h.observe(e),i(),h},s=function(h){a||(a=o()),n.indexOf(h)===-1&&n.push(h)},l=function(){a.disconnect(),n=[],a=void 0,e.removeAttribute(F$.SizeSensorId),t&&t()},u=function(h){var v=n.indexOf(h);v!==-1&&n.splice(v,1),n.length===0&&a&&l()};return{element:e,bind:s,destroy:l,unbind:u}};uv.createSensor=U$;Object.defineProperty(sv,"__esModule",{value:!0});sv.createSensor=void 0;var Y$=lv,$$=uv,X$=typeof ResizeObserver<"u"?$$.createSensor:Y$.createSensor;sv.createSensor=X$;Object.defineProperty(Qa,"__esModule",{value:!0});Qa.removeSensor=Qa.getSensor=Qa.Sensors=void 0;var Z$=K$(a2),q$=sv,wg=Kr;function K$(r){return r&&r.__esModule?r:{default:r}}var po={};Qa.Sensors=po;function n2(r){r&&po[r]&&delete po[r]}var j$=function(e){var t=e.getAttribute(wg.SizeSensorId);if(t&&po[t])return po[t];var a=(0,Z$.default)();e.setAttribute(wg.SizeSensorId,a);var n=(0,q$.createSensor)(e,function(){return n2(a)});return po[a]=n,n};Qa.getSensor=j$;var J$=function(e){var t=e.element.getAttribute(wg.SizeSensorId);e.destroy(),n2(t)};Qa.removeSensor=J$;Object.defineProperty(li,"__esModule",{value:!0});li.ver=o2=li.clear=i2=li.bind=void 0;var Tg=Qa,Q$=function(e,t){var a=(0,Tg.getSensor)(e);return a.bind(t),function(){a.unbind(t)}},i2=li.bind=Q$,t9=function(e){var t=(0,Tg.getSensor)(e);(0,Tg.removeSensor)(t)},o2=li.clear=t9,e9="1.0.2";li.ver=e9;function Jw(r,e){var t={};return e.forEach(function(a){t[a]=r[a]}),t}function Ep(r){return typeof r=="function"}function Qw(r){return typeof r=="string"}var r9=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var a,n,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(n=a;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t};const Ki=s2(r9);var a9=function(r){tT(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=t.echarts,a.ele=null,a.isInitialResize=!0,a}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var a=this.props.shouldSetOption;if(!(Ep(a)&&!a(t,this.props))){if(!Ki(t.theme,this.props.theme)||!Ki(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();Ki(t.onEvents,this.props.onEvents)||(this.offEvents(n,t.onEvents),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Ki(Jw(this.props,i),Jw(t,i))||this.updateEChartsOption(),(!Ki(t.style,this.props.style)||!Ki(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return qm(this,void 0,void 0,function(){var t=this;return jm(this,function(a){return[2,new Promise(function(n){t.echarts.init(t.ele,t.props.theme,t.props.opts);var i=t.getEchartsInstance();i.on("finished",function(){var o=t.ele.clientWidth,s=t.ele.clientHeight;t.echarts.dispose(t.ele);var l=Km({width:o,height:s},t.props.opts);n(t.echarts.init(t.ele,t.props.theme,l))})})]})})},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},e.prototype.dispose=function(){if(this.ele){try{o2(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return qm(this,void 0,void 0,function(){var t,a,n,i,o,s,l=this;return jm(this,function(u){switch(u.label){case 0:return t=this.props,a=t.onEvents,n=t.onChartReady,i=t.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,a||{}),Ep(n)&&n(s),this.ele&&o&&i2(this.ele,function(){l.resize()}),[2]}})})},e.prototype.bindEvents=function(t,a){function n(o,s){Qw(o)&&Ep(s)&&t.on(o,function(l){s(l,t)})}for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&n(i,a[i])},e.prototype.offEvents=function(t,a){if(a)for(var n in a)Qw(n)&&t.off(n)},e.prototype.updateEChartsOption=function(){var t=this.props,a=t.option,n=t.notMerge,i=n===void 0?!1:n,o=t.replaceMerge,s=o===void 0?null:o,l=t.lazyUpdate,u=l===void 0?!1:l,f=t.showLoading,h=t.loadingOption,v=h===void 0?null:h,c=this.getEchartsInstance();return c.setOption(a,{notMerge:i,replaceMerge:s,lazyUpdate:u}),f?c.showLoading(v):c.hideLoading(),c},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(a){console.warn(a)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,a=this.props,n=a.style,i=a.className,o=i===void 0?"":i,s=Km({height:300},n);return l2.createElement("div",{ref:function(l){t.ele=l},style:s,className:"echarts-for-react ".concat(o)})},e}(u2.PureComponent),s9=function(r){tT(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=k$,a}return e}(a9);export{s9 as E};
|
|
74
|
+
`||n==="")){var i=r.isSelected(n);X(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function KY(r){r.registerAction("legendToggleSelect","legendselectchanged",lt(ms,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",lt(ms,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",lt(ms,"inverseSelect")),r.registerAction("legendSelect","legendselected",lt(ms,"select")),r.registerAction("legendUnSelect","legendunselected",lt(ms,"unSelect"))}function GL(r){r.registerComponentModel(gg),r.registerComponentView(zL),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,qY),r.registerSubTypeDefaulter("legend",function(){return"plain"}),KY(r)}var jY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=No(t);r.prototype.init.call(this,t,a,n),gw(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),gw(this,this.option,t)},e.type="legend.scroll",e.defaultOption=fn(gg.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(gg);function gw(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,an(e,t,{type:"box",ignoreSize:!!n})}var yw=at,wp=["width","height"],Tp=["x","y"],JY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new yw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yw)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=V(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new _t({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Eo(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:$(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=wp[u],h=Tp[u],v=wp[1-u],c=Tp[1-u];o&&ni("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=rt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ni(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ni("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=d?n[o]:c[o],x[s]=Math.max(c[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-_,0),b[s]=x[s],h.setClipPath(new St({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Tt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=wp[o],l=Tp[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(zL);function QY(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function t7(r){pt(GL),r.registerComponentModel(jY),r.registerComponentView(JY),QY(r)}function e7(r){pt(GL),pt(t7)}var r7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=fn(wl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(wl),Um=xt();function a7(r,e,t){Um(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function n7(r,e){for(var t=Um(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||FL(t,o))}}}function FL(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function i7(r,e){var t={model:e,containsPoint:lt(s7,e),dispatchAction:lt(o7,r),dataZoomInfoMap:null,controller:null},a=t.controller=new $l(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function o7(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function s7(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function l7(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function u7(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Um(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=Z());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=wL(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,i7(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){FL(n,i);return}var f=l7(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Go(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var f7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),a7(n,t,{pan:$(Cp.pan,this),zoom:$(Cp.zoom,this),scrollMove:$(Cp.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){n7(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Om),Cp={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Ap[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:mw(function(r,e,t,a,n,i){var o=Ap[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:mw(function(r,e,t,a,n,i){var o=Ap[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function mw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(Di(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Ap={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function HL(r){Nm(r),r.registerComponentModel(r7),r.registerComponentView(f7),u7(r)}var h7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fn(wl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(wl),_s=St,_w=7,v7=1,Dp=30,c7=7,Ss="horizontal",Sw="vertical",p7=5,d7=["line","bar","candlestick","scatter"],g7={easing:"cubicOut",duration:100,delay:0},y7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Go(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){fl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?c7:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ss?{right:s.width-o.x-o.width,top:s.height-Dp-_w-i,width:o.width,height:Dp}:{right:_w,top:o.y,width:Dp,height:o.height},u=No(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Sw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Ss&&!o?{scaleY:l?1:-1,scaleX:1}:n===Ss&&o?{scaleY:l?1:-1,scaleX:-1}:n===Sw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new _s({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new _s({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,a[1]],p=[0,a[0]],d=[[a[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,D){if(_>0&&D%_){m+=y;return}var M=C==null||isNaN(C)||C==="",I=M?0:At(C,h,c,!0);M&&!S&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var x=this.dataZoomModel;function b(C){var D=x.getModel(C?"selectedDataBackground":"dataBackground"),M=new at,I=new Ee({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new ke({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var w=0;w<3;w++){var T=b(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&vt(d7,u.get("type"))<0)){var f=i.getComponent(Ya(o),s).axis,h=m7(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new _s({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new _s({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:v7,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!zf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=qt(S,-1,0,2,2,null,!0);x.attr({cursor:xw(this._orient),draggable:!0,drift:$(this._onDragMove,this,_),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=W(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Za(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(i[_]=new _t({silent:!0,invisible:!M,style:Nt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=W(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new St({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new St({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:xw(this._orient),drift:$(this._onDragMove,this,"all"),ondragstart:$(this._showDataInfo,this,!0),ondragend:$(this._onDragEnd,this),onmouseover:$(this._showDataInfo,this,!0),onmouseout:$(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[At(t[0],[0,100],a,!0),At(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Di(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?At(s.minSpan,l,o,!0):null,s.maxSpan!=null?At(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=$e([At(i[0],o,l,!0),At(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=$e(n.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new St,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=$e(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(p){var d=qa(n.handles[p].parent,this.group),g=Nh(p===0?"right":"left",d),y=this._handleWidth/2+p7,m=Mr([v[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Ss?"middle":g,align:o===Ss?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return K(i)?i(t,s):Y(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,da(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Mr([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ft(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=$e([At(n.x,o,s,!0),At(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(da(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new _s({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?g7:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=wL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Om);function m7(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function xw(r){return r==="vertical"?"ns-resize":"ew-resize"}function WL(r){r.registerComponentModel(h7),r.registerComponentView(y7),Nm(r)}function _7(r){pt(HL),pt(WL)}var UL={get:function(r,e,t){var a=rt((S7[r]||{})[e]);return t&&V(a)?a[a.length-1]:a}},S7={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bw=ie.mapVisual,x7=ie.eachVisual,b7=V,ww=A,w7=$e,T7=At,fh=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&EL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=$(t,this),this.controllerVisuals=cg(this.option.controller,a,t),this.targetVisuals=cg(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],V(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if(Y(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=w7([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ut(i,n),ut(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){b7(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},ww(p,function(g,y){if(ie.isValidType(y)){var m=UL.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";ww(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=bw(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;x7(S,function(b){b>x&&(x=b)}),_.symbolSize=bw(S,function(b){return T7(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(gt),Tw=[20,140],C7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Tw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Tw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):V(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=$e((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=Cw(this,"outOfRange",this.getExtent()),n=Cw(this,"inRange",this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var h=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(a[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=fn(fh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fh);function Cw(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var YL=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=wi(a.get("padding")||0),i=t.getBoundingRect();t.add(new St({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,p){s[c]=p}var h=o.controllerVisuals[i||o.getValueState(t)],v=ie.prepareVisualTypes(h);return A(v,function(c){var p=h[c];n.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",p=h.__alphaForOpacity),ie.dependsOn(c,a)&&p&&p.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;Hh(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e}(Vt),Aw=[["left","right","width"],["top","bottom","height"]];function $L(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Aw[o],l=[0,null,10],u={},f=0;f<3;f++)u[Aw[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var h=[["x","width",3],["y","height",0]][o],v=Jt(u,i,a.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<i[h[1]]*.5?0:1]}function gf(r,e){return A(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Gr=At,A7=A,Dw=Math.min,Mp=Math.max,D7=12,M7=6,I7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=$(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),h=this._applyTransform(n===0?"bottom":"top",u),v=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new _t({style:Nt(c,{x:f[0],y:f[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=$L(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new at;u.add(f),f.add(n.outOfRange=Mw()),f.add(n.inRange=Mw(null,s?Lw(this._orient):null,$(this._dragHandle,this,"all",!1),$(this._dragHandle,this,"all",!0))),f.setClipPath(new St({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=a.textStyleModel.getTextRect("国"),v=Mp(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=$(this._dragHandle,this,n,!1),u=$(this._dragHandle,this,n,!0),f=Pr(t.get("handleSize"),i[0]),h=qt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=Lw(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){da(y.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(h,!0),a.add(h);var c=this.visualMapModel.textStyleModel,p=new _t({cursor:v,draggable:!0,drift:l,onmousemove:function(y){da(y.event)},ondragend:u,style:Nt(c,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=h,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,a,n,i,o){var s=Pr(t.get("indicatorSize"),n[0]),l=qt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof fe){var f=l.style;l.useStyle(z({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var h=this.visualMapModel.textStyleModel,v=new _t({silent:!0,invisible:!0,style:Nt(h,{x:0,y:0,text:""})});this.group.add(v);var c=[(o==="horizontal"?i/2:M7)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Iw(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Gr(a[0],n,i,!0),Gr(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Di(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Gr(i[0],o,s,!0),Gr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Po(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new at(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);A7([0,1],function(h){var v=o[h];v.setStyle("fill",a.handlesColor[h]),v.y=t[h];var c=Gr(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(c,"symbolSize");v.scaleX=v.scaleY=p/l[0],v.x=l[0]-p/2;var d=Mr(n.handleLabelPoints[h],qa(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Gr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Mr(f.indicatorLabelPoint,qa(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Dw(Mp(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Dw(Mp(o[0],t),o[1]);var l=L7(n,s,o),u=[t-l,t+l],f=Gr(t,o,s,!0),h=[Gr(u[0],o,s,!0),Gr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(a||Iw(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=cR(v,c);this._dispatchHighDown("downplay",gf(p[0],n)),this._dispatchHighDown("highlight",gf(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(jn(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gf(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=qa(a,i?null:this.group);return V(t)?Mr(t,o,n):Nh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(YL);function Mw(r,e,t,a){return new Ee({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){da(n.event)},ondragend:a})}function L7(r,e,t){var a=D7/2,n=r.get("hoverLinkDataSize");return n&&(a=Gr(n,e,t,!0)/2),a}function Iw(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Lw(r){return r==="vertical"?"ns-resize":"ew-resize"}var P7={type:"selectDataRange",event:"dataRangeSelected",update:"update"},R7=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},E7=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(eY(a.stateList,a.targetVisuals,$(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta($(k7,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function k7(r,e,t,a){for(var n=e.targetVisuals[a],i=ie.prepareVisualTypes(n),o={color:zl(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,v)}return o.color;function h(c){return o[c]}function v(c,p){o[c]=p}}var Pw=A;function O7(r){var e=r&&r.visualMap;V(e)||(e=e?[e]:[]),Pw(e,function(t){if(t){Xi(t,"splitList")&&!Xi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&V(a)&&Pw(a,function(n){tt(n)&&(Xi(n,"start")&&!Xi(n,"min")&&(n.min=n.start),Xi(n,"end")&&!Xi(n,"max")&&(n.max=n.end))})}})}function Xi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Rw=!1;function XL(r){Rw||(Rw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(P7,R7),A(E7,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(O7))}function ZL(r){r.registerComponentModel(C7),r.registerComponentView(I7),XL(r)}var N7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],B7[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=rt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ie.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=UL.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=rt(t)},e.prototype.getValueState=function(t){var a=ie.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ie.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=fn(fh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fh),B7={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),ad(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Ew(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){tt(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=t[v[c]],s[h]=l[c],f[h]=c===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ie.retrieveVisuals(t),r.push(n)},this),Ew(e,r),ad(r),A(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Ew(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var z7=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=re(a.get("showLabel",!0),!h),c=!a.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(p){var d=p.piece,g=new at;g.onclick=$(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=a.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],c),v){var m=this.visualMapModel.getValueState(y);g.add(new _t({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:c}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,v,l),ni(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:gf(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return $L(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new _t({style:Nt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=qt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=rt(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(YL);function qL(r){r.registerComponentModel(N7),r.registerComponentView(z7),XL(r)}function V7(r){pt(ZL),pt(qL)}var G7={label:{enabled:!0},decal:{show:!1}},kw=xt(),F7={};function H7(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=rt(G7);ut(a.label,r.getLocaleModel().get("aria"),!1),ut(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=Z();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),kw(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=_d(v.ecModel,v.name,F7,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=kw(v).scope;c.each(function(x){var b=c.getRawIndex(x);d[b]=x});var y=p.count();p.each(function(x){var b=d[x],w=p.getName(x)||x+"",T=_d(v.ecModel,w,g,y),C=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?z(z({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=J(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C<d){var D=void 0,M=T.get("name"),I=M?"withName":"withoutName";D=v>1?h.get(["series","multiple",I]):h.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=h.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),E=h.get(["data","separator","end"]),O=h.get(["data","excludeDimensionId"]),k=[],B=0;B<L.count();B++)if(B<c){var F=L.getName(B),H=O?Ct(L.getValues(B),function(j,Q){return vt(O,Q)===-1}):L.getValues(B),U=h.get(["data",F?"withName":"withoutName"]);k.push(o(U,{name:F,value:H.join(R)}))}D+=k.join(R)+E,_.push(D)}});var x=h.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!Y(u))return u;var h=u;return A(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function W7(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function U7(r){r.registerPreprocessor(W7),r.registerVisual(r.PRIORITY.VISUAL.ARIA,H7)}var Ow={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Y7=function(){function r(e){var t=this._condVal=Y(e)?new RegExp(e):sT(e)?e:null;if(t==null){var a="";Dt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return Y(t)?this._condVal.test(e):wt(t)?this._condVal.test(e+""):!1},r}(),$7=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),X7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),Z7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),q7=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),K7=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r}();function Ym(r,e){if(r===!0||r===!1){var t=new $7;return t.value=r,t}var a="";return KL(r)||Dt(a),r.and?Nw("and",r,e):r.or?Nw("or",r,e):r.not?j7(r,e):J7(r,e)}function Nw(r,e,t){var a=e[r],n="";V(a)||Dt(n),a.length||Dt(n);var i=r==="and"?new X7:new Z7;return i.children=G(a,function(o){return Ym(o,t)}),i.children.length||Dt(n),i}function j7(r,e){var t=r.not,a="";KL(t)||Dt(a);var n=new q7;return n.child=Ym(t,e),n.child||Dt(a),n}function J7(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=mt(r),o=r.parser,s=o?MA(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=X(Ow,u)?Ow[u]:u,h=r[u],v=s?s(h):h,c=SO(f,v)||f==="reg"&&new Y7(v);c||Dt(t),n.push(c)}}n.length||Dt(t);var p=new K7;return p.valueGetterParam=a,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}function KL(r){return tt(r)&&!ve(r)}var Q7=function(){function r(e,t){this._cond=Ym(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function t$(r,e){return new Q7(r,e)}var e$={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=t$(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;X(s,"dimension")||Dt(l);var f=e.getDimensionInfo(u);return f||Dt(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},r$={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Rt(t);n.length||Dt(a);var i=[];A(n,function(f){var h=f.dimension,v=f.order,c=f.parser,p=f.incomparable;if(h==null&&Dt(a),v!=="asc"&&v!=="desc"&&Dt(a),p&&p!=="min"&&p!=="max"){var d="";Dt(d)}if(v!=="asc"&&v!=="desc"){var g="";Dt(g)}var y=e.getDimensionInfo(h);y||Dt(a);var m=c?MA(c):null;c&&!m&&Dt(a),i.push({dimIdx:y.index,parser:m,comparator:new LA(v,p)})});var o=e.sourceFormat;o!==we&&o!==dr&&Dt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,h){for(var v=0;v<i.length;v++){var c=i[v],p=e.retrieveValueFromItem(f,c.dimIdx),d=e.retrieveValueFromItem(h,c.dimIdx);c.parser&&(p=c.parser(p),d=c.parser(d));var g=c.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function a$(r){r.registerTransform(e$),r.registerTransform(r$)}var n$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new kA(this),B_(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),B_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qr},e}(gt),i$=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Vt);function o$(r){r.registerComponentModel(n$),r.registerComponentView(i$)}var zr=Qr.CMD;function io(r,e){return Math.abs(r-e)<1e-5}function Sg(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,R,E){io(L,R)&&io(P,E)||n.push(L,P,R,E,R,E)}function h(L,P,R,E,O,k){var B=Math.abs(P-L),F=Math.tan(B/4)*4/3,H=P<L?-1:1,U=Math.cos(L),j=Math.sin(L),Q=Math.cos(P),it=Math.sin(P),Lt=U*O+R,Yt=j*k+E,ct=Q*O+R,et=it*k+E,dt=O*F*H,q=k*F*H;n.push(Lt-dt*j,Yt+q*U,ct+dt*it,et-q*Q,ct,et)}for(var v,c,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===zr.L||y===zr.C||y===zr.Q)&&(n=[s,l])),y){case zr.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case zr.L:v=e[g++],c=e[g++],f(i,o,v,c),i=v,o=c;break;case zr.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case zr.Q:v=e[g++],c=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(v-i),o+2/3*(c-o),p+2/3*(v-p),d+2/3*(c-d),p,d),i=p,o=d;break;case zr.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];v=Math.cos(w)*x+_,c=Math.sin(w)*b+S,m?(s=v,l=c,u(s,l)):f(i,o,v,c),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var D=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=D){var I=C?Math.max(M+D,T):Math.min(M+D,T);h(M,I,_,S,x,b)}break;case zr.R:s=i=e[g++],l=o=e[g++],v=s+e[g++],c=l+e[g++],u(v,l),f(v,l,v,c),f(v,c,s,c),f(s,c,s,l),f(s,l,v,l);break;case zr.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function xg(r,e,t,a,n,i,o,s,l,u){if(io(r,t)&&io(e,a)&&io(n,o)&&io(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<h&&S<h){l.push(o,s);return}var x=v*d+c*g,b=-v*y-c*m,w=_-x*x,T=S-b*b;if(w<h&&x>=0&&T<h&&b>=0){l.push(o,s);return}var C=[],D=[];en(r,t,n,o,.5,C),en(e,a,i,s,.5,D),xg(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),xg(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function s$(r,e){var t=Sg(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],c=i[u++],p=i[u++],d=i[u++];xg(s,l,f,h,v,c,p,d,o,e),s=p,l=d}a.push(o)}return a}function jL(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=t-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function Bw(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),h=jL([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;c<h.length;c++)for(var p=(f?u:s)/h[c],d=0;d<h[c];d++){var g={};f?(g.startAngle=i+v*c,g.endAngle=i+v*(c+1),g.r0=a+p*d,g.r=a+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=a+v*c,g.r=a+v*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function l$(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=jL([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var c=r[l]/o[v],p=0;p<o[v];p++){var d={};d[u]=v*h,d[f]=p*c,d[s]=h,d[l]=c,d.x+=r.x,d.y+=r.y,t.push(d)}}function zw(r,e,t,a){return r*a-t*e}function u$(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=zw(f,h,l,u);if(Math.abs(v)<1e-6)return null;var c=r-n,p=e-i,d=zw(c,p,f,h)/v;return d<0||d>1?null:new ft(d*l+r,d*u+e)}function f$(r,e,t){var a=new ft;ft.sub(a,t,e),a.normalize();var n=new ft;ft.sub(n,r,e);var i=n.dot(a);return i}function Zi(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function h$(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=u$(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:f$(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var v=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],p=[v],d=[c],i=u.idx+1;i<=f.idx;i++)Zi(p,r[i].slice());Zi(p,c),Zi(p,v);for(var i=f.idx+1;i<=u.idx+a;i++)Zi(d,r[i%a].slice());return Zi(d,v),Zi(d,c),[{points:p},{points:d}]}function Vw(r){var e=r.points,t=[],a=[];Ih(e,t,a);var n=new ht(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new ft,f=new ft;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),h$(e,u,f)}function hh(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);hh(r,i[0],n,a),hh(r,i[1],t-n,a)}return a}function v$(r,e){for(var t=[],a=0;a<e;a++)t.push(jg(r));return t}function c$(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function p$(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function d$(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":l$(a,e,t),n=St;break;case"sector":Bw(a,e,t),n=Re;break;case"circle":Bw({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Re;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(s$(r.getUpdatedPathProxy(),o),function(y){return p$(y)}),l=s.length;if(l===0)hh(Vw,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,h=G(s,function(y){var m=[],_=[];Ih(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var v=e,u=0;u<l;u++){var c=h[u];if(v<=0)break;var p=u===l-1?v:Math.ceil(c.area/f*e);p<0||(hh(Vw,{points:c.poly},p,t),v-=p)}}n=Ee;break}if(!n)return v$(r,e);for(var d=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),c$(r,g),d.push(g)}return d}function g$(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,c=2;c<s;){var p=o[c-2],d=o[c-1],g=o[c++],y=o[c++],m=o[c++],_=o[c++],S=o[c++],x=o[c++];if(v<=0){h.push(g,y,m,_,S,x);continue}for(var b=Math.min(v,f-1)+1,w=1;w<=b;w++){var T=w/b;en(p,g,m,S,T,n),en(d,y,_,x,T,i),p=n[3],d=i[3],h.push(n[1],i[1],n[2],i[2],p,d),g=n[5],y=i[5],m=n[6],_=i[6]}v-=b-1}return o===r?[h,e]:[r,h]}function Gw(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function y$(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,h=void 0;l?u?(t=g$(l,u),f=t[0],h=t[1],a=f,n=h):(h=Gw(n||l,l),f=l):(f=Gw(a||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function Fw(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;e+=h,t+=(s+u)*h,a+=(l+f)*h}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function m$(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,h=0,v=0;v<s;v+=2){var c=v===0?f:(f+v-2)%l+2,p=r[c]-t[0],d=r[c+1]-t[1],g=e[v]-a[0],y=e[v+1]-a[1],m=g-p,_=y-d;h+=m*m+_*_}h<i&&(i=h,o=u)}return o}function _$(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function S$(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=Fw(s),f=Fw(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],v=[],c=0,p=1/0,d=[],g=s.length;i&&(s=_$(s));for(var y=m$(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}h[0]=s[y]-u[0],h[1]=s[y+1]-u[1];for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_<s.length;_+=2){var D=h[_],M=h[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,R=I*w+L*T;d[_]=P,d[_+1]=R;var E=P-D,O=R-M;C+=E*E+O*O}if(C<p){p=C,c=b;for(var k=0;k<d.length;k++)v[k]=d[k]}}n.push({from:h,to:v,fromCp:u,toCp:f,rotation:-c})}return n}function vh(r){return r.__isCombineMorphing}var JL="__mOriginal_";function ch(r,e,t){var a=JL+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function qs(r,e){var t=JL+e;r[t]&&(r[e]=r[t],r[t]=null)}function Hw(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function QL(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=y$(Sg(t),Sg(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Hw(i,s),l&&Hw(o,l),ch(e,"updateTransform",{replace:u}),e.transform=null;var f=S$(i,o,10,Math.PI),h=[];ch(e,"buildPath",{replace:function(v){for(var c=e.__morphT,p=1-c,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*c,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);Os(d,x,b,c);for(var C=0;C<m.length;C+=2){var D=m[C],M=m[C+1],I=_[C],L=_[C+1],P=D*p+I*c,R=M*p+L*c;h[C]=P*T-R*w+d[0],h[C+1]=P*w+R*T+d[1]}var E=h[0],O=h[1];v.moveTo(E,O);for(var C=2;C<m.length;){var I=h[C++],L=h[C++],k=h[C++],B=h[C++],F=h[C++],H=h[C++];E===I&&O===L&&k===F&&B===H?v.lineTo(F,H):v.bezierCurveTo(I,L,k,B,F,H),E=F,O=H}}}})}function $m(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;QL(r,e),e.__morphT=0;function i(){qs(e,"buildPath"),qs(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},J({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function x$(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function ph(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=G(i,function(s,l){return{cp:s,z:x$(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function t2(r){return d$(r.path,r.count)}function bg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function b$(r,e,t){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];vh(w)?n(w.childrenRef()):w instanceof yt&&a.push(w)}}n(r);var i=a.length;if(!i)return bg();var o=t.dividePath||t2,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),bg();a=ph(a),s=ph(s);for(var l=t.done,u=t.during,f=t.individualDelay,h=new ha,v=0;v<i;v++){var c=a[v],p=s[v];p.parent=e,p.copyTransform(h),f||QL(c,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}ch(e,"addSelfToZr",{after:function(x){d(x)}}),ch(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,qs(e,"addSelfToZr"),qs(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?J({delay:(t.delay||0)+f(v,y,a[v],s[v]),done:_},t):t;$m(a[v],s[v],S)}else e.__morphT=0,e.animateTo({__morphT:1},J({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)qs(r[x],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function w$(r,e,t){var a=e.length,n=[],i=t.dividePath||t2;function o(c){for(var p=0;p<c.length;p++){var d=c[p];vh(d)?o(d.childrenRef()):d instanceof yt&&n.push(d)}}if(vh(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(jg(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),bg()}n=ph(n),e=ph(e);for(var h=t.individualDelay,u=0;u<a;u++){var v=h?J({delay:(t.delay||0)+h(u,a,n[u],e[u])},t):t;$m(n[u],e[u],v)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function Ww(r){return V(r[0])}function Uw(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var T$={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=jg(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Ip(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Ro("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Ww(r)&&(u=r,f=e),Ww(e)&&(u=e,f=r);function h(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if(vh(T))h({many:[T],one:C},!0,_,S,!0);else{var D=s?J({delay:s(_,S)},l):l;$m(T,C,D),i(T,C,T,C,D)}}else for(var M=J({dividePath:T$[t],individualDelay:s&&function(O,k,B,F){return s(O+_,S)}},l),I=m?b$(b,w,M):w$(w,b,M),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;E<R;E++){var D=s?J({delay:s(E,R)},l):l;i(L[E],P[E],m?b[E]:y.one,m?y.one:b[E],D)}}for(var v=u?u===r:r.length>e.length,c=u?Uw(f,u):Uw(v?e:r,[v?r:e]),p=0,d=0;d<c.length;d++)p+=c[d].many.length;for(var g=0,d=0;d<c.length;d++)h(c[d],v,g,p),g+=c[d].many.length}function Hn(r){if(!r)return[];if(V(r)){for(var e=[],t=0;t<r.length;t++)e.push(Hn(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof yt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var e2=1e4,C$=0,Yw=1,$w=2,A$=xt();function D$(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function M$(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function Xw(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=D$(r,n);if(i){var o=M$(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function Zw(r){var e=[];return A(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>e2))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:Xw(a,o,n,!1),childGroupId:Xw(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Lp(r,e,t){r.traverse(function(a){a instanceof yt&&Gt(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Pp(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function qi(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function I$(r,e,t){var a=Ro("update",t,e);a&&r.traverse(function(n){if(n instanceof hr){var i=nk(n);i&&n.animateFrom({style:i},a)}})}function L$(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function r2(r,e,t){var a=Zw(r),n=Zw(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?z(z({},x.style),_.style):_.style},w)}var o=!1,s=C$,l=Z(),u=Z();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var h=n[f].groupId;if(u.get(h)){s=Yw;break}var v=n[f].childGroupId;if(v&&l.get(v)){s=$w;break}}function c(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===Yw?x.childGroupId:x.groupId:s===$w?x.childGroupId:x.groupId}}var p=L$(a,n),d={};if(!p)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(T===C){C&&I$(C,b.dataIndex,w);return}T&&d[T.id]||C&&(qi(C),T?(qi(T),Pp(T),o=!0,Ip(Hn(T),Hn(C),b.divide,w,_,i)):Lp(C,w,_))}new ma(a,n,c(!0,p),c(!1,p),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),C=Ct(G(S,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==T&&!d[D.id]});T&&(qi(T),C.length?(A(C,function(D){qi(D),Pp(D)}),o=!0,Ip(Hn(C),Hn(T),x.divide,w,_,i)):Lp(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&d[b.id])){var w=Ct(G(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b}),T=n[_[0]].data.hostModel;w.length&&(A(w,function(C){return qi(C)}),b?(qi(b),Pp(b),o=!0,Ip(Hn(b),Hn(w),x.divide,T,_[0],i)):A(w,function(C){return Lp(C,T,_[0])}))}}).updateManyToMany(function(_,S){new ma(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&A(e,function(_){var S=_.data,x=S.hostModel,b=x&&t.getViewOfSeriesModel(x),w=Ro("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof yt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function qw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function Kw(r){return V(r)?r.sort().join(","):r}function za(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function P$(r,e){var t=Z(),a=Z(),n=Z();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=qw(i),f=Kw(u);a.set(f,{dataGroupId:s,data:l}),V(u)&&A(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),A(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qw(i),u=Kw(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:za(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:za(s),data:s}]});else if(V(l)){var h=[];A(l,function(p){var d=a.get(p);d.data&&h.push({dataGroupId:d.dataGroupId,divide:za(d.data),data:d.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:za(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:za(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:za(s)})}}}}),t}function jw(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function R$(r,e,t,a){var n=[],i=[];A(Rt(r.from),function(o){var s=jw(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:za(e.oldData[s]),groupIdDim:o.dimension})}),A(Rt(r.to),function(o){var s=jw(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:za(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&r2(n,i,a)}function E$(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Rt(a.seriesTransition),function(n){A(Rt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][uf]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=A$(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Rt(i),function(c){R$(c,n,a,t)});else{var o=P$(n,a);A(o.keys(),function(c){var p=o.get(c);r2(p.oldSeries,p.newSeries,t)})}A(a.updatedSeries,function(c){c[uf]&&(c[uf]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<e2&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(v))}})}pt([HV]);pt([BV]);pt([l5,w5,E5,vG,wG,uF,BF,S3,H3,Z3,aH,jH,b4,E4,q4,Q4,uW,gW,DW,EW,WW,A6]);pt(Y6);pt(mU);pt(tI);pt(PU);pt(VI);pt(OU);pt(UU);pt(P8);pt(K8);pt(Zl);pt(cY);pt(gY);pt(AY);pt(EY);pt(VY);pt(YY);pt(e7);pt(_7);pt(HL);pt(WL);pt(V7);pt(ZL);pt(qL);pt(U7);pt(a$);pt(o$);pt(E$);pt(aV);const k$=Object.freeze(Object.defineProperty({__proto__:null,Axis:gr,ChartView:It,ComponentModel:gt,ComponentView:Vt,List:xe,Model:Pt,PRIORITY:uD,SeriesModel:Et,color:gP,connect:fB,dataTool:yB,dependencies:$N,disConnect:hB,disconnect:yD,dispose:vB,env:bt,extendChartView:Uz,extendComponentModel:Fz,extendComponentView:Hz,extendSeriesModel:Wz,format:Iz,getCoordinateSystemDimensions:pB,getInstanceByDom:My,getInstanceById:cB,getMap:gB,graphic:Mz,helper:Sz,init:uB,innerDrawElementOnCanvas:Ty,matrix:X2,number:Az,parseGeoJSON:kd,parseGeoJson:kd,registerAction:Er,registerCoordinateSystem:SD,registerLayout:xD,registerLoading:Ey,registerLocale:oy,registerMap:bD,registerPostInit:mD,registerPostUpdate:_D,registerPreprocessor:Ly,registerProcessor:Py,registerTheme:Iy,registerTransform:wD,registerUpdateLifecycle:Zh,registerVisual:hn,setCanvasCreator:dB,setPlatformAPI:rT,throttle:$h,time:Dz,use:pt,util:Lz,vector:E2,version:YN,zrUtil:A2,zrender:JP},Symbol.toStringTag,{value:"Module"}));var li={},Qa={},a2={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1,t=function(){return"".concat(e++)};r.default=t})(a2);var sv={},lv={},Xm={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];clearTimeout(i),i=setTimeout(function(){a.apply(o,l)},n)}};r.default=e})(Xm);var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});Kr.SizeSensorId=Kr.SensorTabIndex=Kr.SensorClassName=void 0;var O$="size-sensor-id";Kr.SizeSensorId=O$;var N$="size-sensor-object";Kr.SensorClassName=N$;var B$="-1";Kr.SensorTabIndex=B$;Object.defineProperty(lv,"__esModule",{value:!0});lv.createSensor=void 0;var z$=V$(Xm),Rp=Kr;function V$(r){return r&&r.__esModule?r:{default:r}}var G$=function(e,t){var a=void 0,n=[],i=function(){getComputedStyle(e).position==="static"&&(e.style.position="relative");var h=document.createElement("object");return h.onload=function(){h.contentDocument.defaultView.addEventListener("resize",o),o()},h.style.display="block",h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.height="100%",h.style.width="100%",h.style.overflow="hidden",h.style.pointerEvents="none",h.style.zIndex="-1",h.style.opacity="0",h.setAttribute("class",Rp.SensorClassName),h.setAttribute("tabindex",Rp.SensorTabIndex),h.type="text/html",e.appendChild(h),h.data="about:blank",h},o=(0,z$.default)(function(){n.forEach(function(f){f(e)})}),s=function(h){a||(a=i()),n.indexOf(h)===-1&&n.push(h)},l=function(){a&&a.parentNode&&(a.contentDocument&&a.contentDocument.defaultView.removeEventListener("resize",o),a.parentNode.removeChild(a),e.removeAttribute(Rp.SizeSensorId),a=void 0,n=[],t&&t())},u=function(h){var v=n.indexOf(h);v!==-1&&n.splice(v,1),n.length===0&&a&&l()};return{element:e,bind:s,destroy:l,unbind:u}};lv.createSensor=G$;var uv={};Object.defineProperty(uv,"__esModule",{value:!0});uv.createSensor=void 0;var F$=Kr,H$=W$(Xm);function W$(r){return r&&r.__esModule?r:{default:r}}var U$=function(e,t){var a=void 0,n=[],i=(0,H$.default)(function(){n.forEach(function(f){f(e)})}),o=function(){var h=new ResizeObserver(i);return h.observe(e),i(),h},s=function(h){a||(a=o()),n.indexOf(h)===-1&&n.push(h)},l=function(){a.disconnect(),n=[],a=void 0,e.removeAttribute(F$.SizeSensorId),t&&t()},u=function(h){var v=n.indexOf(h);v!==-1&&n.splice(v,1),n.length===0&&a&&l()};return{element:e,bind:s,destroy:l,unbind:u}};uv.createSensor=U$;Object.defineProperty(sv,"__esModule",{value:!0});sv.createSensor=void 0;var Y$=lv,$$=uv,X$=typeof ResizeObserver<"u"?$$.createSensor:Y$.createSensor;sv.createSensor=X$;Object.defineProperty(Qa,"__esModule",{value:!0});Qa.removeSensor=Qa.getSensor=Qa.Sensors=void 0;var Z$=K$(a2),q$=sv,wg=Kr;function K$(r){return r&&r.__esModule?r:{default:r}}var po={};Qa.Sensors=po;function n2(r){r&&po[r]&&delete po[r]}var j$=function(e){var t=e.getAttribute(wg.SizeSensorId);if(t&&po[t])return po[t];var a=(0,Z$.default)();e.setAttribute(wg.SizeSensorId,a);var n=(0,q$.createSensor)(e,function(){return n2(a)});return po[a]=n,n};Qa.getSensor=j$;var J$=function(e){var t=e.element.getAttribute(wg.SizeSensorId);e.destroy(),n2(t)};Qa.removeSensor=J$;Object.defineProperty(li,"__esModule",{value:!0});li.ver=o2=li.clear=i2=li.bind=void 0;var Tg=Qa,Q$=function(e,t){var a=(0,Tg.getSensor)(e);return a.bind(t),function(){a.unbind(t)}},i2=li.bind=Q$,t9=function(e){var t=(0,Tg.getSensor)(e);(0,Tg.removeSensor)(t)},o2=li.clear=t9,e9="1.0.2";li.ver=e9;function Jw(r,e){var t={};return e.forEach(function(a){t[a]=r[a]}),t}function Ep(r){return typeof r=="function"}function Qw(r){return typeof r=="string"}var r9=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var a,n,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(n=a;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t};const Ki=s2(r9);var a9=function(r){tT(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=t.echarts,a.ele=null,a.isInitialResize=!0,a}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var a=this.props.shouldSetOption;if(!(Ep(a)&&!a(t,this.props))){if(!Ki(t.theme,this.props.theme)||!Ki(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();Ki(t.onEvents,this.props.onEvents)||(this.offEvents(n,t.onEvents),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Ki(Jw(this.props,i),Jw(t,i))||this.updateEChartsOption(),(!Ki(t.style,this.props.style)||!Ki(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return qm(this,void 0,void 0,function(){var t=this;return jm(this,function(a){return[2,new Promise(function(n){t.echarts.init(t.ele,t.props.theme,t.props.opts);var i=t.getEchartsInstance();i.on("finished",function(){var o=t.ele.clientWidth,s=t.ele.clientHeight;t.echarts.dispose(t.ele);var l=Km({width:o,height:s},t.props.opts);n(t.echarts.init(t.ele,t.props.theme,l))})})]})})},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},e.prototype.dispose=function(){if(this.ele){try{o2(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return qm(this,void 0,void 0,function(){var t,a,n,i,o,s,l=this;return jm(this,function(u){switch(u.label){case 0:return t=this.props,a=t.onEvents,n=t.onChartReady,i=t.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,a||{}),Ep(n)&&n(s),this.ele&&o&&i2(this.ele,function(){l.resize()}),[2]}})})},e.prototype.bindEvents=function(t,a){function n(o,s){Qw(o)&&Ep(s)&&t.on(o,function(l){s(l,t)})}for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&n(i,a[i])},e.prototype.offEvents=function(t,a){if(a)for(var n in a)Qw(n)&&t.off(n)},e.prototype.updateEChartsOption=function(){var t=this.props,a=t.option,n=t.notMerge,i=n===void 0?!1:n,o=t.replaceMerge,s=o===void 0?null:o,l=t.lazyUpdate,u=l===void 0?!1:l,f=t.showLoading,h=t.loadingOption,v=h===void 0?null:h,c=this.getEchartsInstance();return c.setOption(a,{notMerge:i,replaceMerge:s,lazyUpdate:u}),f?c.showLoading(v):c.hideLoading(),c},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(a){console.warn(a)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,a=this.props,n=a.style,i=a.className,o=i===void 0?"":i,s=Km({height:300},n);return l2.createElement("div",{ref:function(l){t.ele=l},style:s,className:"echarts-for-react ".concat(o)})},e}(u2.PureComponent),n9=function(r){tT(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=k$,a}return e}(a9);const l9=n9;export{l9 as R};
|