@datalayer/agent-runtimes 1.6.83 → 1.6.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{AgentDetails-LhuDov4Q.js → AgentDetails-BRhO9qA_.js} +1 -1
- package/dist-embed/chunks/AgentDetailsDialog-DAWAmYS1.js +1 -0
- package/dist-embed/chunks/{CellSidebarExtension-DwGg7VbR.js → CellSidebarExtension-BMTA9AQz.js} +1 -1
- package/dist-embed/chunks/{CollapsiblePlugin-DS2HZl7a.js → CollapsiblePlugin-D_fVK4i3.js} +1 -1
- package/dist-embed/chunks/ContextPie-h_II4EDU.js +1 -0
- package/dist-embed/chunks/{DeckComponent-1aJoEglD.js → DeckComponent-CGFO-xGa.js} +2 -2
- package/dist-embed/chunks/{DocumentView-CaVDL8X7.js → DocumentView-BzBCyOZP.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-SeXQLZbi.js → EphemeralDocument-spGg7WCy.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-DrL1r8Nx.js → EphemeralNotebook-BqUNh0zm.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CoZvA0u7.js → ExcalidrawComponent-Cb0JOQDr.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-Czd2Kx8H.js → ExcalidrawModal-MG-b9Tus.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-Du1Loz2o.js → JupyterLexicalExtension-lz41mjjY.js} +29 -29
- package/dist-embed/chunks/{KernelVariables-CmWkosM8.js → KernelVariables-BXCbgHG5.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-BZUJ9wvF.js → LexicalToolRegistry-rXaW8uXA.js} +4 -4
- package/dist-embed/chunks/{NotebookToolSurfaces-m37Crb7c.js → NotebookToolSurfaces-BT_hNR4k.js} +1 -1
- package/dist-embed/chunks/{NotebookView-DeCxHOph.js → NotebookView-wYwtORMB.js} +1 -1
- package/dist-embed/chunks/{Output-CJVIj3Io.js → Output-BfjIM99o.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-B4_0r2A_.js → SandboxDetailsDialog-B_nI8zH_.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-9JmMbUiD.js → SchemaForm-1QzMu6Zk.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-DJLVReVo.js → SheetTabs-DJG69znU.js} +2 -2
- package/dist-embed/chunks/{SpreadsheetPreviewView-BGdz5D65.js → SpreadsheetPreviewView-5marsdKE.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-BvCWGCsx.js → SpreadsheetView-CmD-dAjn.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-B9KgSbhv.js → WidgetVariableView-Dqsy8MDf.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-DtVTIrdm.js → YouTubePlugin-BLdLNfNB.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DN0kRlog.js → abnfDiagram-VCTEODGH-BSmEjUJk.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BG9Jt7Hr.js → abnfDiagram-VCTEODGH-CF8QpiZa.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CvZ8usho.js → abnfDiagram-VCTEODGH-GnaR64st.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-C-nP9nq8.js → ar-SA-G6X2FPQ2-Boa4jpGN.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Bwqgkba9.js → architectureDiagram-5GKGNRK7-ByAYkSMW.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DRfUn2vu.js → architectureDiagram-5GKGNRK7-Cy6c9GhS.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-87FtCsnw.js → architectureDiagram-5GKGNRK7-b_EnmOeS.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-WoAwmwN_.js → az-AZ-76LH7QW2-DS7v8DUm.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-SLqAK6qo.js → bg-BG-XCXSNQG7-CPWbvkhp.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CH6k87Wa.js → blockDiagram-868be97b-C6Xxmbgc.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BWHrrqXo.js → blockDiagram-I7D4REHJ-BBd_q6Z7.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUfJri3_.js → blockDiagram-I7D4REHJ-Clrwi7_Q.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjLfxD7u.js → blockDiagram-I7D4REHJ-zXh6gZYF.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DfCeTaG1.js → bn-BD-2XOGV67Q-DJlv8gSj.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-ufrtLRrD.js → c4Diagram-3f4bdde3-BhBNs69f.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BK8yvli2.js → c4Diagram-7LVT6UL2-BWQ9xHoN.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-C-0ZQ8Xa.js → c4Diagram-7LVT6UL2-DcCc8HaH.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-O_rZefrz.js → c4Diagram-7LVT6UL2-p14SIG7V.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-1rV8dCez.js → ca-ES-6MX7JW3Y-_XMb5PXx.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-B_UScIax.js → celltoolbartracker-8YTtJOxD.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BX9u1bBi.js → chunk-2Q5K7J3B-BkzWX8eg.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DiqqlJZw.js → chunk-2Q5K7J3B-CWx-QJ0-.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BFUbUsBE.js → chunk-2Q5K7J3B-CtmdieBX.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-D4N_xxBJ.js → chunk-5VM5RSS4-C7mbT2Vq.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BbOPwJfe.js → chunk-5VM5RSS4-Ciba-ybC.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-box8kQsT.js → chunk-5VM5RSS4-O8p7luYq.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BUeWPnw5.js → chunk-F27PBJKO-Bo5boRfj.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-CQM02DXR.js → chunk-F27PBJKO-CZHz6AS9.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DPF3nC8g.js → chunk-F27PBJKO-WqHcL2s0.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CPIe37ka.js → chunk-IMKFNOWR-BJR6rkFo.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DAOxV09i.js → chunk-IMKFNOWR-CPdtPffh.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-rg2BEcj6.js → chunk-IMKFNOWR-Csfu1kFU.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BGdc9-bH.js → chunk-JWPE2WC7-BVXd-ICe.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-NvLQtuoq.js → chunk-JWPE2WC7-Bf4pFlIJ.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-QIDUQRBr.js → chunk-JWPE2WC7-Cq6Q947j.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-Cl1oUaAM.js → chunk-POPQ4Y6H-B_rWRGt2.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-BgR92oKl.js → chunk-POPQ4Y6H-DhNnPwZp.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DWWKSDND.js → chunk-POPQ4Y6H-s1yt1ZtK.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BGHt1HDi.js → chunk-SVP7TREG-8oKVa2mm.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-DtwPtAP8.js → chunk-SVP7TREG-CHN6fclq.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-lMq3S-u-.js → chunk-SVP7TREG-CsFEUe5B.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-CaVrVRpm.js → chunk-TICWLB2K-BsCtCkEM.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BdUzhQPw.js → chunk-TICWLB2K-CSCMv_QA.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-D6WJ64X6.js → chunk-TICWLB2K-InZQ5ZEH.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-BU32lP3z.js → chunk-XXDRQBXY-Y8pSpMzF.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CjAMT3RS.js → chunk-XXDRQBXY-sm2AIgJ5.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CtNPThT-.js → chunk-XXDRQBXY-z8go8Kjf.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-Cy9bb-Ja.js → classDiagram-ZZMXUADV-BjEOw29S.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-9x2pAf81.js → classDiagram-ZZMXUADV-DJ40c8si.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-HBhnoh6h.js → classDiagram-ZZMXUADV-G9WI_1Zg.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-DKREECyJ.js → classDiagram-f62afe4f-Blm1wT1_.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-CQ5TgOQe.js → classDiagram-v2-604399ef-DtWqjJhW.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Cy9bb-Ja.js → classDiagram-v2-VYDZK3BY-BjEOw29S.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-9x2pAf81.js → classDiagram-v2-VYDZK3BY-DJ40c8si.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-HBhnoh6h.js → classDiagram-v2-VYDZK3BY-G9WI_1Zg.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-B1q5VFMK.js → code-block-IT6T5CEO-Rra2QX20.js} +1 -1
- package/dist-embed/chunks/{component-CHd9jmXQ.js → component-DxhBhMYf.js} +1 -1
- package/dist-embed/chunks/{index-BhCoJe__.js → core-BrYTRvTy.js} +13 -13
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DFWJgtSE.js → cose-bilkent-JH36ORCC-C73aLaB-.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DGrxjlJ4.js → cose-bilkent-JH36ORCC-DCtKiRmD.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-F97qu5nX.js → cose-bilkent-JH36ORCC-j_7L0NF5.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-B1Tmb4Mr.js → createText-aed3d8b3-B0tLexrf.js} +2 -2
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-SF5YII-L.js → cs-CZ-2BRQDIVT-Cc6P0HN5.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DhFh7Gts.js → cynefinDiagram-5FMLGOSQ-BSwaTAfL.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BZ1LtKUy.js → cynefinDiagram-5FMLGOSQ-DLyDkFEh.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CR7crOrC.js → cynefinDiagram-5FMLGOSQ-DXr1M_CB.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-nd3n1KuA.js → da-DK-5WZEPLOC-BPgmzhCM.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BpWd0wTo.js → dagre-GXQ25YYZ-Bfxayyi1.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-4P90jeEC.js → dagre-GXQ25YYZ-CPu-St26.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-MXGi4287.js → dagre-GXQ25YYZ-DTWZ8vY1.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-DxoPxuG0.js → de-DE-XR44H4JA-DjNk3C1Q.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-DhLnfG8J.js → diagram-S7CK7UJ4-Biw5mnoN.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-Ccq8-Zxr.js → diagram-S7CK7UJ4-ERKr1j6v.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-xgW0lqt_.js → diagram-S7CK7UJ4-ewBgYmRN.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-Csc8IuSs.js → diagram-UQ7AKVKN-B-f2Afei.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-vfaPVBIp.js → diagram-UQ7AKVKN-C-6kzgTn.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DM05uJg0.js → diagram-UQ7AKVKN-CGNA7gub.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-BpkflTV8.js → diagram-VSXAHHWV-7M08zFHc.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-ChcqzpvG.js → diagram-VSXAHHWV-CTQu2IBp.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-C0Dte6B4.js → diagram-VSXAHHWV-DRVoe_PH.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DA3s85ZI.js → diagram-VX7I27RA-B_LkfTnq.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DFBWpFKi.js → diagram-VX7I27RA-DHwSWNj4.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-D3eZ6yyK.js → diagram-VX7I27RA-vkcQI8-t.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DpwpLNON.js → diagram-Z3DM3KII-BZ9tmKdd.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-CWv5dRb1.js → diagram-Z3DM3KII-D0Xt6xwn.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-BPDco9BP.js → diagram-Z3DM3KII-YAo8QSYR.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BrHZve2O.js → ebnfDiagram-PWID7BFC-C2oLjL45.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CeZcQDV3.js → ebnfDiagram-PWID7BFC-DN2tb-X8.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-ZbRTmpLY.js → ebnfDiagram-PWID7BFC-Dk5WVIim.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-CHQtJW0X.js → edges-b2856ca0-BSzU9ga-.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-B_p1F0WP.js → el-GR-BZB4AONW-BA_6_8BV.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-7uQXDmYP.js → erDiagram-5d81789a--wvCe6Ur.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DO7X3O5w.js → erDiagram-RLTQ6QDP-BDw_Db3e.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CmahDLTF.js → erDiagram-RLTQ6QDP-BTXMcY7Y.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-QI_LQlaL.js → erDiagram-RLTQ6QDP-BsU1EeJN.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BWCUsoic.js → es-ES-U4NZUMDT-DB2skShM.js} +1 -1
- package/dist-embed/chunks/{esm-M4z_FfnQ.js → esm-BFRTiV0k.js} +1 -1
- package/dist-embed/chunks/{esm-itrlzhnT.js → esm-VjpQWsU9.js} +14 -14
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-QqCRXKSF.js → eu-ES-A7QVB2H4-D4jAAmi7.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-C0NVSF_c.js → fa-IR-HGAKTJCU-Cm5LhQ8o.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-BP_C4Wwz.js → fi-FI-Z5N7JZ37-DEH_Gx5V.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-BmhWH32g.js → flowDb-185abca5-CBeP2_ZY.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-oMWtc4C3.js → flowDiagram-1629c991-LZzO5ZR8.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CmuRDMmw.js → flowDiagram-HODETNUW-DNjEQlAR.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CgvZqEVs.js → flowDiagram-HODETNUW-DP1PWdQF.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Cy-T1qw4.js → flowDiagram-HODETNUW-_U05MBMl.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-OG6RhgdC.js → flowDiagram-v2-1d953310-DeqYSBVG.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-I8LO2x_c.js → flowchart-elk-definition-6df44142-Dg5bSBS4.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-B1_hgegA.js → fr-FR-RHASNOE6-Blvt0egy.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-Ch394Td4.js → ganttDiagram-3b0b3873-D9Pr_Kxk.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-iVAJV8uC.js → ganttDiagram-EL5Y4UJY-Baccn166.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-sX30iW6f.js → ganttDiagram-EL5Y4UJY-DmwhuzrV.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DjmeWOsd.js → ganttDiagram-EL5Y4UJY-Qz5HuyzZ.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BuldyYGe.js → gitGraphDiagram-WWUBYQGX-BUlSUrle.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVcSYkDK.js → gitGraphDiagram-WWUBYQGX-CF5nE-hV.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CeOMDDRZ.js → gitGraphDiagram-WWUBYQGX-ZgEb3qK-.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-CfNzWqtG.js → gitGraphDiagram-f01e8bc2-BqpGV-_U.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BhVM3-ho.js → gl-ES-HMX3MZ6V-CTMS_g-D.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-oud0_kOl.js → he-IL-6SHJWFNN-CwRAX3eS.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CD6iySjh.js → hi-IN-IWLTKZ5I-BGqXOwtD.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-DXuEZMlE.js → hu-HU-A5ZG7DT2-DPTG8MEz.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-C-E1a9_p.js → id-ID-SAP4L64H-SGVYgM36.js} +1 -1
- package/dist-embed/chunks/{index-CaEDkyBB.js → index--Rl4aMiU.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-BZE71ijg.js → index-9bae90f3-9T5x-xqi.js} +1 -1
- package/dist-embed/chunks/{index-86hxexQA.js → index-BGTb9Nvb.js} +1 -1
- package/dist-embed/chunks/{index-DakHBTji.js → index-CHu5zo1L.js} +1 -1
- package/dist-embed/chunks/{index-s25RSqvt.js → index-DObGLuCI.js} +4 -4
- package/dist-embed/chunks/{index-CvKH_NYI.js → index-DRUP-YmW.js} +2 -2
- package/dist-embed/chunks/{index-CLB4KPZs.js → index-Df2MkvAW.js} +4 -4
- package/dist-embed/chunks/{index-CXSUknte.js → index-_yFHxlc9.js} +1 -1
- package/dist-embed/chunks/{index-BMY48-7N.js → index-i9IsP_xD.js} +1 -1
- package/dist-embed/chunks/{index.esm-CDmg415B.js → index.esm-BA_6VWW2.js} +1 -1
- package/dist-embed/chunks/index.esm-CjezntnN.js +1 -0
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-r53wKy7u.js → infoDiagram-27XIBGKW-B4XVsJvC.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-ZpA0pyod.js → infoDiagram-27XIBGKW-Cs7bZlH6.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CJ3r0yt4.js → infoDiagram-27XIBGKW-D3fIZzte.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-SCeFVgXv.js → infoDiagram-a29d40f1-DkWa9MRC.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CvqPw0ea.js → ishikawaDiagram-5VMMS53U-B6nIkJxX.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DZTg3ecD.js → ishikawaDiagram-5VMMS53U-BB-Kv-Mj.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DyyVsa6G.js → ishikawaDiagram-5VMMS53U-BIytcjnR.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-iU7kI7qX.js → it-IT-JPQ66NNP-BVqiIDuA.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-CgiuMyHB.js → ja-JP-DBVTYXUO-BVru9viS.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DAnc386V.js → journeyDiagram-3NMN7TZE-Bs6ObzT9.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-Bc9JVKJo.js → journeyDiagram-3NMN7TZE-C3yCP95B.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-MiKYaC2s.js → journeyDiagram-3NMN7TZE-DjgUmoWA.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-DT_97eTw.js → journeyDiagram-95396277-Dj4xwdzk.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-kCO_bmZz.js → kaa-6HZHGXH3-COq8GIG8.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-XZlP8YRp.js → kab-KAB-ZGHBKWFO-C6sCJW81.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-C2nVULib.js → kanban-definition-UXKFOSKX-B9DSJpj9.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BkReeSIH.js → kanban-definition-UXKFOSKX-Chsw2-Nq.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CaaDxJqC.js → kanban-definition-UXKFOSKX-_mcHB773.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-BYUwHB4m.js → kk-KZ-P5N5QNE5-dn5L62v9.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-CUO0IDD-.js → km-KH-HSX4SM5Z-DHRs2Dac.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-CuR4MTdp.js → ko-KR-MTYHY66A-B-6WTOYs.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-CuFtqN6b.js → ku-TR-6OUDTVRD-DtHakiL_.js} +1 -1
- package/dist-embed/chunks/{layout-BjpOdFu2.js → layout-DTdkd155.js} +1 -1
- package/dist-embed/chunks/{layout-DQIVAfpO.js → layout-D_LOxL0l.js} +1 -1
- package/dist-embed/chunks/{layout-BD_a0kBf.js → layout-W4AzWc9F.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-BM3oRORX.js → lexicalHooks-eeb6BvjZ.js} +1 -1
- package/dist-embed/chunks/{lib-BXb6Der8.js → lib-BMPXKfof.js} +1 -1
- package/dist-embed/chunks/{lib-Dfg3vZM8.js → lib-BQwc_iHi.js} +1 -1
- package/dist-embed/chunks/{lib-CXURv0CD.js → lib-BZqd0lRo.js} +1 -1
- package/dist-embed/chunks/{lib-CEAQckSu.js → lib-BrI7Hb25.js} +1 -1
- package/dist-embed/chunks/{lib-Bx0zoo2z.js → lib-Bt3UDo1P.js} +1 -1
- package/dist-embed/chunks/{lib-0t46pS-5.js → lib-Btas-Vc2.js} +1 -1
- package/dist-embed/chunks/{lib-DXoXqPR6.js → lib-Bukh35h2.js} +1 -1
- package/dist-embed/chunks/{lib-Yguxonvz.js → lib-BzbIpAN9.js} +1 -1
- package/dist-embed/chunks/{lib-BZnIPSNY.js → lib-CM6qdZu_.js} +1 -1
- package/dist-embed/chunks/{lib-B5XoICB9.js → lib-CYKJVq8i.js} +1 -1
- package/dist-embed/chunks/{lib-CJ9ULCcA.js → lib-C_8F-jrZ.js} +1 -1
- package/dist-embed/chunks/{lib-WvggSsMk.js → lib-Cz-lZRHD.js} +1 -1
- package/dist-embed/chunks/{lib-CqNuA7eJ.js → lib-D--prlsO.js} +1 -1
- package/dist-embed/chunks/{lib-CtFV0V1H.js → lib-DLTzM19O.js} +11 -11
- package/dist-embed/chunks/{lib-Bf4e9-pt.js → lib-DPx8N2oL.js} +1 -1
- package/dist-embed/chunks/{lib-CBlEbdz_.js → lib-DS4NMFQk.js} +1 -1
- package/dist-embed/chunks/{lib-B_ADtK-Y.js → lib-DekQ5MbL.js} +1 -1
- package/dist-embed/chunks/{lib-eeN6DkZa.js → lib-DyPVwxhD.js} +1 -1
- package/dist-embed/chunks/{lib-QwGhpmEd.js → lib-Y2W358Nu.js} +1 -1
- package/dist-embed/chunks/{lib-Bj6VnDnz.js → lib-ZsSgUH3L.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-TpyDKA3C.js → lt-LT-XHIRWOB4-Bov6lsrL.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-Dz0_ikqR.js → lv-LV-5QDEKY6T-7TYkSlIn.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-meWUGbq7.js → mermaid.core-By9AWIOp.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-Dkoaa-_D.js → mermaid.core-Dd-D7tJ4.js} +5 -5
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BxYK9vLg.js → mindmap-definition-YA3MSWOX-CCpwK8vh.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DQSoT62j.js → mindmap-definition-YA3MSWOX-CmGscTNk.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-1p4XwdjF.js → mindmap-definition-YA3MSWOX-Uv7-26v7.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-BGiAi0LL.js → mindmap-definition-e4c1d938-aCX0qYqH.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-Vbci-IWj.js → mr-IN-CRQNXWMA-C1hMHCkZ.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-C0JHZ0Gp.js → my-MM-5M5IBNSE-CmNBubDy.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-eFOvuJCy.js → nb-NO-T6EIAALU-NtLUc485.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Din9L_2S.js → nl-NL-IS3SIHDZ-CCHd5AqI.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-D7cIpOBH.js → nn-NO-6E72VCQL-BYMvh_fX.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-Bcxv3YfP.js → oc-FR-POXYY2M6-CkuSUWy_.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-IrBb1NlL.js → pa-IN-N4M65BXN-Daq4uKWi.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-GlLsdSxR.js → pegDiagram-XKGWAZYB-C1R8Kk6K.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-DDgyLvau.js → pegDiagram-XKGWAZYB-DLONs192.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-iCCMOEMa.js → pegDiagram-XKGWAZYB-dwQNJiaW.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-BaaVroR_.js → percentages-BXMCSKIN-_vjQ8CcA.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CIfzhxTy.js → pieDiagram-E7YTZNPT-CH60iHt1.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ffhUIieA.js → pieDiagram-E7YTZNPT-Cm-wzRi8.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DIErsg9L.js → pieDiagram-E7YTZNPT-DiT0kFGb.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-JKyix3vD.js → pieDiagram-c941bede-BF587JLB.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-bF5WEfvP.js → pl-PL-T2D74RX3-DUHQouxW.js} +1 -1
- package/dist-embed/chunks/plugin-Bvp_HQZg.js +1 -0
- package/dist-embed/chunks/{pt-BR-5N22H2LF-K9lAvfY5.js → pt-BR-5N22H2LF-DK_6K-F_.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-DAlaVYmT.js → pt-PT-UZXXM6DQ-DtH8Iay_.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DbYIZcyN.js → quadrantDiagram-AXDQQJYC-B1wf6Zth.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-D3pxCP4M.js → quadrantDiagram-AXDQQJYC-DWDtOx8-.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BE9RPE6m.js → quadrantDiagram-AXDQQJYC-mkOZIUHb.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-C_nd7FeD.js → quadrantDiagram-cf8b8fe0-CE6GwviF.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CwaTW3Mo.js → railroadDiagram-O6MQD6OU-DEB7gRmX.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CpXUNzTV.js → railroadDiagram-O6MQD6OU-DjA_m2-o.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CEl2l0ZE.js → railroadDiagram-O6MQD6OU-DrkBEH1z.js} +1 -1
- package/dist-embed/chunks/{renderer-CtmiT4nP.js → renderer-jLLXpZ99.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-WVBAkQmj.js → requirementDiagram-53bda41b-BsRjuGBf.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-sE3y_NEM.js → requirementDiagram-BXWQKSXE-82Ybj2ki.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-ClYVmNTl.js → requirementDiagram-BXWQKSXE-C8d0kJ1A.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Bd0fV1Bn.js → requirementDiagram-BXWQKSXE-S8WT8VJ1.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-kn8FzruZ.js → ro-RO-JPDTUUEW-CfeEiLsp.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-iQW1KMip.js → ru-RU-B4JR7IUQ-xuXvLXWI.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CLR82118.js → sankeyDiagram-P5KCCOFB-C2LowYxA.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BZnLyt_G.js → sankeyDiagram-P5KCCOFB-CKqSAqcJ.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DH-uxGJV.js → sankeyDiagram-P5KCCOFB-eNBOyfBR.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-CINAq9g5.js → sankeyDiagram-c3ef121a-BAS8V2Ov.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-Bx7xO8lv.js → sequenceDiagram-82a5b84f-BWNvF-m7.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-D00NbcmA.js → sequenceDiagram-WJ2MYXX4-C_2alFNp.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CxHuil7I.js → sequenceDiagram-WJ2MYXX4-CxH0MlFa.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-VyUqwKEJ.js → sequenceDiagram-WJ2MYXX4-fsR56p6L.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-C1J6zA3p.js → si-LK-N5RQ5JYF-CP-9ouz_.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-B_CNNL_v.js → sizeCapture-INFHLROL-BCe0IiFV.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-_h3QW8w5.js → sizeCapture-INFHLROL-BsZaIjAU.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BhSnrZjU.js → sizeCapture-INFHLROL-Y7lBmAj6.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CK9RvjRD.js → sk-SK-C5VTKIMK-BB-nLd53.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-CcDWOBHp.js → sl-SI-NN7IZMDC-Ct4gcmka.js} +1 -1
- package/dist-embed/chunks/{state-CGa66Nqd.js → state-DeMGhTAB.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-DFrFK9qM.js → stateDiagram-43e79a5f-2cuSVith.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-QwBnfyKm.js → stateDiagram-D77RDMKH-3P7AgNud.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BVJqlFiv.js → stateDiagram-D77RDMKH-DosU0FIz.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CEvuFuTH.js → stateDiagram-D77RDMKH-ul2eLf5Q.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-CcaIZYWt.js → stateDiagram-v2-2041ed4f-Ur2pX7Zl.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BaZ6xgsr.js → stateDiagram-v2-MP3YSRHH-BvlJBilq.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C_JHNwKt.js → stateDiagram-v2-MP3YSRHH-D0rhfnrW.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-ok1qePbZ.js → stateDiagram-v2-MP3YSRHH-DeEmivLr.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CAiZEic0.js → styles-455b33cd-DPOVDa0x.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CEhWf7q3.js → styles-f932cba9-Dev7yXQc.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-v0gPnZ9U.js → styles-fcc2142b-70zGEKfV.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-C0JvsRAi.js → subset-shared.chunk-Jbgk4hFg.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-qynV-rht.js → subset-worker.chunk-C52XcgS8.js} +1 -1
- package/dist-embed/chunks/{substates-Bs9ZMVGa.js → substates-BuHNVWkx.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-B38oK2Y4.js → sv-SE-XGPEYMSR-DSfTTYTP.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-vsaJmSq8.js → svgDrawCommon-148a3cd9-zokUeLzq.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CpRw9PHz.js → swimlanes-42K2YHIH-CIW2hU2l.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DO1ZzP4k.js → swimlanes-42K2YHIH-DOkKP2_2.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-C_43oheZ.js → swimlanes-42K2YHIH-x4BMo9Cs.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BucpGmoC.js → swimlanesDiagram-VR7AAH4N-9yw92Xx_.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BYKvE-MW.js → swimlanesDiagram-VR7AAH4N-BlFZ7eQS.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BBi0wpOL.js → swimlanesDiagram-VR7AAH4N-zOAH82Ya.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-uSQqrrN6.js → ta-IN-2NMHFXQM-_SwRKWkS.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-Cs2r4usA.js → th-TH-HPSO5L25-NbkJxgfv.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-C9oiFt1s.js → timeline-definition-24CTP7MA-BfM-0614.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CRpA2xfq.js → timeline-definition-24CTP7MA-C9Ed6D0K.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-C_RPFzcS.js → timeline-definition-24CTP7MA-kHlycslq.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-diaQHYG7.js → timeline-definition-7545f45a-B4ECAP9Q.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-D8o50B7O.js → tr-TR-DEFEU3FU-DrMMVO-E.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-B5fUoSFX.js → uk-UA-QMV73CPH-B53y70gR.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-ByKQXzaL.js → vennDiagram-4TSXK5OY-7gMUaOyw.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-6I3E2S1J.js → vennDiagram-4TSXK5OY-CrE30dtz.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-C4cLgb45.js → vennDiagram-4TSXK5OY-Dt9fBhlj.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-Dj_kFfvZ.js → vi-VN-M7AON7JQ-BVHYf59K.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CLayLpj4.js → wardleyDiagram-VM6X3IG4-6HRbbvDt.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CnxCRlDr.js → wardleyDiagram-VM6X3IG4-AvAVDPLG.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-6QgHmuap.js → wardleyDiagram-VM6X3IG4-CsR-8GhP.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-COn0cE9r.js → xychartDiagram-3f383b91-C09F8RkF.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-Hrzni--y.js → xychartDiagram-S5SC5T6Z-CkZtbHvK.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CoRCml5l.js → xychartDiagram-S5SC5T6Z-VWPR98LV.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-RhhCg-yn.js → xychartDiagram-S5SC5T6Z-ZZD1fZ1L.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-CHJxgGXp.js → zh-CN-LNUGB5OW-z2taSDkS.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-CLxE_xvU.js → zh-HK-E62DVLB3-Rkl2piEx.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CpEgHY46.js → zh-TW-RAJ6MFWO-BgDiBZag.js} +1 -1
- package/dist-embed/datalayer-app-main.js +21 -21
- package/lib/api/runtimes/environments.d.ts +15 -16
- package/lib/api/runtimes/environments.js +19 -20
- package/lib/api/runtimes/runtimes.d.ts +8 -8
- package/lib/api/runtimes/runtimes.js +6 -6
- package/lib/apps/Application.d.ts +3 -3
- package/lib/apps/Application.js +2 -2
- package/lib/apps/__tests__/fixtures/sceneCheckCases.json +1 -1
- package/lib/apps/apps/AppBrowserSandbox.js +1 -1
- package/lib/apps/apps/AppComposer.d.ts +7 -7
- package/lib/apps/apps/AppComposer.js +9 -9
- package/lib/apps/apps/AppFeedback.d.ts +1 -1
- package/lib/apps/apps/AppFeedback.js +1 -1
- package/lib/apps/apps/AppKept.d.ts +1 -1
- package/lib/apps/apps/AppKept.js +1 -2
- package/lib/apps/apps/AppRenderer.d.ts +41 -42
- package/lib/apps/apps/AppRenderer.js +54 -55
- package/lib/apps/apps/AppRuntimePlugins.d.ts +1 -1
- package/lib/apps/apps/AppRuntimePlugins.js +3 -3
- package/lib/apps/apps/agent.js +1 -1
- package/lib/apps/apps/browserSandbox.d.ts +1 -1
- package/lib/apps/apps/checks.d.ts +8 -8
- package/lib/apps/apps/checks.js +40 -40
- package/lib/apps/apps/composer.d.ts +3 -3
- package/lib/apps/apps/composer.js +2 -2
- package/lib/apps/apps/computer.d.ts +5 -5
- package/lib/apps/apps/computer.js +2 -2
- package/lib/apps/apps/customComponents.d.ts +3 -3
- package/lib/apps/apps/customComponents.js +4 -4
- package/lib/apps/apps/feedback.d.ts +2 -2
- package/lib/apps/apps/feedback.js +1 -1
- package/lib/apps/apps/hostTools.d.ts +4 -4
- package/lib/apps/apps/hostTools.js +3 -3
- package/lib/apps/apps/kept.d.ts +2 -2
- package/lib/apps/apps/language.d.ts +1 -1
- package/lib/apps/apps/pluginPair.d.ts +1 -1
- package/lib/apps/apps/records.d.ts +6 -6
- package/lib/apps/apps/records.js +4 -4
- package/lib/apps/apps/rules.d.ts +4 -4
- package/lib/apps/apps/rules.js +4 -4
- package/lib/apps/apps/saved.d.ts +1 -1
- package/lib/apps/apps/saved.js +1 -1
- package/lib/apps/apps/sceneChecks.d.ts +5 -5
- package/lib/apps/apps/sceneChecks.js +7 -7
- package/lib/apps/apps/sceneYaml.d.ts +2 -2
- package/lib/apps/apps/sceneYaml.js +4 -4
- package/lib/apps/apps/sessionRules.d.ts +2 -2
- package/lib/apps/apps/sessionRules.js +2 -2
- package/lib/apps/apps/settingsInputs.d.ts +1 -1
- package/lib/apps/apps/settingsInputs.js +1 -1
- package/lib/apps/apps/threads.d.ts +3 -3
- package/lib/apps/apps/uploads.d.ts +1 -1
- package/lib/apps/apps/visitorToken.d.ts +3 -3
- package/lib/apps/apps/visitorToken.js +4 -4
- package/lib/apps/core/a2uiComponents.js +1 -1
- package/lib/apps/core/appFiles.js +1 -1
- package/lib/apps/core/canvasParts.d.ts +3 -3
- package/lib/apps/core/canvasParts.js +2 -2
- package/lib/apps/core/index.d.ts +20 -21
- package/lib/apps/core/index.js +5 -5
- package/lib/apps/embed/AppEmbed.d.ts +19 -19
- package/lib/apps/embed/AppEmbed.js +27 -27
- package/lib/apps/embed/LoopEmbed.d.ts +2 -2
- package/lib/apps/embed/LoopEmbed.js +1 -1
- package/lib/apps/embed/datalayer-app.js +1 -1
- package/lib/apps/embed/element.d.ts +1 -1
- package/lib/apps/embed/element.js +25 -25
- package/lib/apps/embed/embedConfig.d.ts +14 -14
- package/lib/apps/embed/embedConfig.js +11 -11
- package/lib/apps/embed/embedSession.d.ts +2 -2
- package/lib/apps/embed/embedSession.js +1 -1
- package/lib/apps/embed/embedTheme.d.ts +4 -4
- package/lib/apps/embed/embedTheme.js +5 -5
- package/lib/apps/embed/embeddedSecrets.d.ts +1 -1
- package/lib/apps/embed/embeddedSecrets.js +1 -1
- package/lib/apps/embed/hostBridge.d.ts +15 -15
- package/lib/apps/embed/hostBridge.js +10 -10
- package/lib/apps/embed/loader.js +2 -2
- package/lib/apps/embed/visitorApp.d.ts +2 -2
- package/lib/apps/embed/visitorApp.js +3 -4
- package/lib/apps/index.js +2 -2
- package/lib/apps/plugins/a2ui-surface/AnswerShows.d.ts +2 -2
- package/lib/apps/plugins/a2ui-surface/AnswerShows.js +1 -1
- package/lib/apps/plugins/a2ui-surface/InlineSurface.d.ts +1 -1
- package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +2 -2
- package/lib/apps/plugins/a2ui-surface/index.js +1 -1
- package/lib/apps/plugins/a2ui-surface/ownComponents.js +1 -1
- package/lib/apps/plugins/a2ui-surface/toolResult.d.ts +2 -2
- package/lib/apps/plugins/a2ui-surface/toolResult.js +2 -2
- package/lib/apps/plugins/agent-capacity/index.d.ts +2 -2
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +5 -5
- package/lib/apps/plugins/agents/appLaunch.d.ts +1 -1
- package/lib/apps/plugins/agents/plugin.d.ts +4 -4
- package/lib/apps/plugins/agents/switchable.js +1 -1
- package/lib/apps/plugins/app-activity/AppActivity.d.ts +2 -2
- package/lib/apps/plugins/app-activity/index.js +1 -1
- package/lib/apps/plugins/app-components/index.d.ts +1 -1
- package/lib/apps/plugins/app-components/index.js +1 -1
- package/lib/apps/plugins/app-computer/AppComputer.d.ts +1 -1
- package/lib/apps/plugins/app-computer/AppComputer.js +2 -2
- package/lib/apps/plugins/app-computer/index.js +1 -1
- package/lib/apps/plugins/app-elements/AppElements.d.ts +1 -1
- package/lib/apps/plugins/app-elements/AppElements.js +1 -1
- package/lib/apps/plugins/app-elements/QuestionView.d.ts +2 -2
- package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
- package/lib/apps/plugins/app-elements/index.d.ts +4 -4
- package/lib/apps/plugins/app-elements/index.js +4 -4
- package/lib/apps/plugins/app-page/AppPage.d.ts +5 -5
- package/lib/apps/plugins/app-page/AppPage.js +5 -5
- package/lib/apps/plugins/app-page/appPageModel.d.ts +13 -14
- package/lib/apps/plugins/app-page/appPageModel.js +12 -12
- package/lib/apps/plugins/app-page/index.d.ts +3 -4
- package/lib/apps/plugins/app-page/index.js +1 -1
- package/lib/apps/plugins/app-page/pageRun.d.ts +2 -2
- package/lib/apps/plugins/app-page/pageRun.js +2 -2
- package/lib/apps/plugins/app-rules/AppRulesCard.d.ts +5 -6
- package/lib/apps/plugins/app-rules/AppRulesCard.js +4 -4
- package/lib/apps/plugins/app-rules/index.js +1 -1
- package/lib/apps/plugins/app-rules/sessionRulesAction.d.ts +1 -1
- package/lib/apps/plugins/assistant/index.d.ts +9 -9
- package/lib/apps/plugins/assistant/index.js +5 -5
- package/lib/apps/plugins/assistant-characters/index.d.ts +6 -6
- package/lib/apps/plugins/assistant-characters/index.js +5 -5
- package/lib/apps/plugins/canvas-blocks/index.d.ts +2 -2
- package/lib/apps/plugins/canvas-blocks/index.js +2 -2
- package/lib/apps/plugins/canvas-parts/index.d.ts +6 -6
- package/lib/apps/plugins/canvas-parts/index.js +6 -6
- package/lib/apps/plugins/chat/ChatView.js +61 -61
- package/lib/apps/plugins/chat/SessionActionsMenu.d.ts +4 -4
- package/lib/apps/plugins/chat/SessionActionsMenu.js +3 -3
- package/lib/apps/plugins/chat/SessionChooseDialog.d.ts +1 -1
- package/lib/apps/plugins/chat/index.d.ts +9 -9
- package/lib/apps/plugins/chat/index.js +1 -1
- package/lib/apps/plugins/chat/sessionActions.js +1 -1
- package/lib/apps/plugins/chat/turnState.d.ts +1 -1
- package/lib/apps/plugins/page-layout/SplitLayout.d.ts +2 -2
- package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
- package/lib/apps/plugins/page-layout/index.js +1 -1
- package/lib/apps/plugins/pap-purchase/index.d.ts +9 -0
- package/lib/apps/plugins/pap-purchase/index.js +68 -4
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.d.ts +1 -1
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +2 -2
- package/lib/apps/plugins/pap-sign-in/index.js +1 -1
- package/lib/apps/plugins/pap-sign-in/signIn.d.ts +1 -1
- package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
- package/lib/apps/plugins/plugins-panel/index.d.ts +1 -1
- package/lib/apps/plugins/plugins-panel/index.js +1 -1
- package/lib/apps/plugins/shield-displays/DiffCard.d.ts +1 -1
- package/lib/apps/plugins/shield-displays/TerminalCard.d.ts +1 -1
- package/lib/apps/plugins/shield-displays/index.js +4 -4
- package/lib/apps/presets.d.ts +8 -8
- package/lib/apps/presets.js +1 -1
- package/lib/apps/shell/LoopWorkspace.d.ts +1 -1
- package/lib/apps/shell/LoopWorkspace.js +2 -2
- package/lib/apps/shell/SidebarRail.d.ts +2 -2
- package/lib/apps/shell/paneMotion.d.ts +1 -1
- package/lib/apps/shell/paneMotion.js +1 -1
- package/lib/chat/Chat.d.ts +2 -2
- package/lib/chat/Chat.js +2 -2
- package/lib/chat/ChatFloating.d.ts +8 -8
- package/lib/chat/ChatFloating.js +15 -15
- package/lib/chat/ChatInline.js +1 -1
- package/lib/chat/ChatLanguage.d.ts +1 -1
- package/lib/chat/ChatLanguage.js +1 -1
- package/lib/chat/assistant/AssistantContextMenu.d.ts +1 -1
- package/lib/chat/assistant/AssistantStage.d.ts +14 -14
- package/lib/chat/assistant/AssistantStage.js +11 -12
- package/lib/chat/assistant/Avatar3D.d.ts +1 -1
- package/lib/chat/assistant/BalloonParts.d.ts +2 -2
- package/lib/chat/assistant/BalloonParts.js +1 -1
- package/lib/chat/assistant/BalloonVisual.d.ts +1 -1
- package/lib/chat/assistant/ConversationBalloon.d.ts +2 -2
- package/lib/chat/assistant/ConversationBalloon.js +1 -1
- package/lib/chat/assistant/SpeechBalloon.d.ts +2 -2
- package/lib/chat/assistant/SpriteCharacter.d.ts +2 -2
- package/lib/chat/assistant/characters.d.ts +5 -5
- package/lib/chat/assistant/clearance.d.ts +3 -3
- package/lib/chat/assistant/clearance.js +3 -3
- package/lib/chat/assistant/formats/acf.js +1 -1
- package/lib/chat/assistant/formats/files.js +1 -1
- package/lib/chat/assistant/formats/index.d.ts +1 -1
- package/lib/chat/assistant/formats/index.js +1 -1
- package/lib/chat/assistant/formats/stateAnimations.d.ts +1 -1
- package/lib/chat/assistant/formats/types.d.ts +1 -1
- package/lib/chat/assistant/state.d.ts +10 -10
- package/lib/chat/assistant/state.js +5 -5
- package/lib/chat/assistant/toolLine.d.ts +1 -1
- package/lib/chat/assistant/toolLine.js +2 -2
- package/lib/chat/base/ChatBase.js +44 -44
- package/lib/chat/base/conversationItems.d.ts +2 -2
- package/lib/chat/base/loopElement.d.ts +4 -4
- package/lib/chat/base/loopStep.d.ts +4 -4
- package/lib/chat/base/loopStep.js +1 -1
- package/lib/chat/base/loopWindow.d.ts +2 -2
- package/lib/chat/base/loopWindow.js +2 -2
- package/lib/chat/base/uiFiles.d.ts +1 -1
- package/lib/chat/base/uiFiles.js +1 -1
- package/lib/chat/base/uiOps.d.ts +2 -2
- package/lib/chat/base/uiOps.js +2 -2
- package/lib/chat/index.js +1 -1
- package/lib/chat/indicators/McpStatusIndicator.js +1 -1
- package/lib/chat/indicators/SkillsStatusIndicator.js +1 -1
- package/lib/chat/messages/ChatMessageList.d.ts +3 -3
- package/lib/chat/messages/ChatMessageList.js +3 -3
- package/lib/chat/messages/markdownWithoutHtml.d.ts +1 -1
- package/lib/chat/messages/markdownWithoutHtml.js +1 -1
- package/lib/chat/presence/Presence.d.ts +4 -4
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/chat/presence/presenceStatus.d.ts +2 -2
- package/lib/chat/presence/presenceStatus.js +2 -2
- package/lib/chat/prompt/InputPrompt.d.ts +2 -2
- package/lib/chat/prompt/InputPrompt.js +2 -2
- package/lib/chat/prompt/InputPromptBase.d.ts +1 -1
- package/lib/chat/prompt/InputPromptBase.js +1 -1
- package/lib/chat/prompt/InputPromptLexical.d.ts +1 -1
- package/lib/chat/styles/streamdownStyles.js +1 -1
- package/lib/chat/tools/IdentityAuthorization.js +1 -1
- package/lib/chat/useViewportDrag.d.ts +1 -1
- package/lib/chat/viewModes.d.ts +1 -1
- package/lib/chat/viewModes.js +2 -2
- package/lib/chat/words.js +1 -1
- package/lib/client/mixins/RuntimesMixin.d.ts +5 -5
- package/lib/client/mixins/RuntimesMixin.js +5 -5
- package/lib/components/a2ui/custom/index.d.ts +3 -3
- package/lib/components/a2ui/custom/index.js +1 -1
- package/lib/components/a2ui/custom/sandbox.d.ts +2 -2
- package/lib/components/a2ui/custom/sandbox.js +2 -2
- package/lib/components/a2ui/datalayer/Chart.js +2 -2
- package/lib/components/a2ui/datalayer/Chat.js +1 -1
- package/lib/components/a2ui/datalayer/Download.js +1 -1
- package/lib/components/a2ui/datalayer/Evidence.js +1 -1
- package/lib/components/a2ui/datalayer/FileUpload.d.ts +1 -1
- package/lib/components/a2ui/datalayer/FileUpload.js +2 -2
- package/lib/components/a2ui/datalayer/Form.d.ts +1 -1
- package/lib/components/a2ui/datalayer/Form.js +3 -3
- package/lib/components/a2ui/datalayer/SchemaForm.d.ts +1 -1
- package/lib/components/a2ui/datalayer/Table.js +1 -1
- package/lib/components/a2ui/datalayer/drawn.d.ts +1 -1
- package/lib/components/a2ui/datalayer/drawn.js +1 -1
- package/lib/components/a2ui/datalayer/formWidgets.js +1 -1
- package/lib/components/a2ui/datalayer/index.d.ts +1 -1
- package/lib/components/a2ui/datalayer/schema.d.ts +3 -3
- package/lib/components/a2ui/datalayer/schema.js +3 -3
- package/lib/components/a2ui/styles.js +1 -1
- package/lib/components/a2ui/visibleWhen.d.ts +4 -4
- package/lib/components/a2ui/visibleWhen.js +4 -4
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +2 -2
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +2 -2
- package/lib/components/code-sandboxes/CodeSandboxLauncher.d.ts +1 -1
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +4 -4
- package/lib/components/code-sandboxes/CodeSandboxUtils.d.ts +2 -2
- package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +6 -8
- package/lib/components/code-sandboxes/codeSandboxEnvironments.js +4 -6
- package/lib/components/inspector/a2aSpans.d.ts +1 -1
- package/lib/components/inspector/a2aSpans.js +1 -1
- package/lib/components/teams/A2ATeamGraph.d.ts +3 -3
- package/lib/components/teams/A2ATeamGraph.js +1 -1
- package/lib/components/teams/AnswerSurfaces.d.ts +1 -1
- package/lib/components/teams/AnswerSurfacesView.d.ts +1 -1
- package/lib/components/teams/AnswerSurfacesView.js +1 -1
- package/lib/components/teams/NotebookPreview.d.ts +1 -1
- package/lib/components/teams/SceneTranscript.d.ts +2 -2
- package/lib/components/teams/SceneView.d.ts +3 -3
- package/lib/components/teams/a2aTeamFlow.d.ts +1 -1
- package/lib/components/teams/a2aTeamFlow.js +1 -1
- package/lib/components/teams/backdrops/halo.d.ts +1 -1
- package/lib/components/teams/backdrops/types.d.ts +3 -3
- package/lib/components/teams/sceneStage.d.ts +1 -1
- package/lib/components/teams/sceneTranscriptRules.d.ts +2 -2
- package/lib/components/teams/toolEventLoop.js +1 -1
- package/lib/components/teams/transcript/SequenceDiagram.d.ts +1 -1
- package/lib/components/teams/transcript/TranscriptDetail.d.ts +1 -1
- package/lib/components/teams/transcript/TranscriptTable.d.ts +1 -1
- package/lib/components/teams/transcript/TranscriptViews.d.ts +3 -4
- package/lib/components/teams/transcript/index.d.ts +1 -1
- package/lib/components/teams/transcript/index.js +1 -1
- package/lib/components/teams/transcript/selection.d.ts +1 -1
- package/lib/components/teams/transcript/sequenceDiagramRules.d.ts +1 -1
- package/lib/components/teams/transcript/sequenceDiagramRules.js +1 -1
- package/lib/components/teams/transcript/transcriptDetailRules.d.ts +1 -1
- package/lib/components/teams/transcript/transcriptExport.d.ts +1 -1
- package/lib/components/teams/transcript/transcriptRows.d.ts +1 -1
- package/lib/components/teams/transcript/transcriptRows.js +1 -1
- package/lib/components/teams/useA2ATeam.d.ts +9 -9
- package/lib/components/teams/useA2ATeam.js +6 -6
- package/lib/examples/AvatarExample.d.ts +2 -2
- package/lib/examples/AvatarExample.js +3 -3
- package/lib/examples/AvatarGalleryExample.d.ts +3 -3
- package/lib/examples/AvatarGalleryExample.js +4 -4
- package/lib/examples/LoopAppComputerExample.d.ts +1 -1
- package/lib/examples/LoopAppComputerExample.js +1 -1
- package/lib/examples/ProtocolSignedRequestsExample.d.ts +1 -1
- package/lib/examples/ProtocolSignedRequestsExample.js +1 -1
- package/lib/examples/ProtocolUcpCheckoutExample.d.ts +1 -1
- package/lib/examples/ProtocolUcpCheckoutExample.js +1 -1
- package/lib/examples/ScenesExample.js +4 -4
- package/lib/examples/ShieldHarnessExample.d.ts +1 -1
- package/lib/examples/ShieldHarnessExample.js +1 -1
- package/lib/examples/ShieldPolicyExample.d.ts +1 -1
- package/lib/examples/ShieldPolicyExample.js +1 -1
- package/lib/examples/VoiceChatExample.js +1 -1
- package/lib/examples/example-selector.js +1 -1
- package/lib/examples/exampleGroups.js +4 -4
- package/lib/examples/pap/papSignInCases.js +1 -1
- package/lib/examples/protocols/signedRequestsDemo.d.ts +1 -1
- package/lib/examples/protocols/signedRequestsDemo.js +1 -1
- package/lib/examples/protocols/ucpCheckoutDemo.d.ts +1 -2
- package/lib/examples/protocols/ucpCheckoutDemo.js +1 -2
- package/lib/examples/shield/shieldHarness.d.ts +1 -1
- package/lib/examples/shield/shieldPolicyDemo.d.ts +1 -1
- package/lib/examples/utils/AvatarGalleryGrid.d.ts +2 -2
- package/lib/examples/utils/AvatarGalleryGrid.js +2 -2
- package/lib/examples/utils/avatarGallery.d.ts +5 -5
- package/lib/examples/utils/avatarGallery.js +2 -2
- package/lib/examples/utils/testSpriteCharacter.js +1 -1
- package/lib/hooks/useAgUi.js +1 -1
- package/lib/hooks/useAgentRuntimes.d.ts +3 -3
- package/lib/hooks/useAgentRuntimes.js +2 -2
- package/lib/hooks/useChat.js +1 -1
- package/lib/models/Environment.d.ts +39 -39
- package/lib/models/Environment.js +1 -1
- package/lib/models/EnvironmentDTO.d.ts +6 -6
- package/lib/models/EnvironmentDTO.js +2 -2
- package/lib/models/RuntimeDTO.d.ts +2 -2
- package/lib/portable/activity.d.ts +7 -7
- package/lib/portable/activity.js +3 -3
- package/lib/portable/adapterEvents.d.ts +2 -2
- package/lib/portable/agUiRefusal.d.ts +1 -1
- package/lib/portable/agUiRefusal.js +1 -1
- package/lib/portable/approvalCard.d.ts +1 -1
- package/lib/portable/approvalCard.js +1 -1
- package/lib/portable/approvals.d.ts +4 -4
- package/lib/portable/approvals.js +2 -2
- package/lib/portable/attention.d.ts +4 -4
- package/lib/portable/attention.js +6 -6
- package/lib/portable/conversation.d.ts +2 -2
- package/lib/portable/conversation.js +1 -1
- package/lib/portable/direct.d.ts +2 -2
- package/lib/portable/fixtures.d.ts +3 -3
- package/lib/portable/fixtures.js +3 -3
- package/lib/portable/hosts/agentClient.d.ts +4 -4
- package/lib/portable/hosts/agentClient.js +2 -2
- package/lib/portable/hosts/client.d.ts +2 -2
- package/lib/portable/hosts/client.js +3 -3
- package/lib/portable/hosts/contracts.d.ts +2 -2
- package/lib/portable/hosts/contracts.js +3 -3
- package/lib/portable/hosts/contracts.json +1 -1
- package/lib/portable/hosts/deadLetters.d.ts +1 -1
- package/lib/portable/hosts/deadLetters.js +4 -4
- package/lib/portable/hosts/deliveries.d.ts +1 -1
- package/lib/portable/hosts/forbiddenGraph.d.ts +2 -3
- package/lib/portable/hosts/forbiddenGraph.js +2 -3
- package/lib/portable/hosts/health.d.ts +2 -2
- package/lib/portable/hosts/health.js +2 -2
- package/lib/portable/hosts/index.d.ts +1 -1
- package/lib/portable/hosts/index.js +1 -1
- package/lib/portable/hosts/observability.d.ts +2 -2
- package/lib/portable/hosts/observability.js +3 -3
- package/lib/portable/hosts/postgresQueue.d.ts +5 -6
- package/lib/portable/hosts/postgresQueue.js +4 -5
- package/lib/portable/hosts/queue.d.ts +1 -1
- package/lib/portable/hosts/quotas.d.ts +3 -3
- package/lib/portable/hosts/quotas.js +2 -2
- package/lib/portable/hosts/rateLimit.d.ts +1 -1
- package/lib/portable/hosts/resolution.d.ts +3 -3
- package/lib/portable/hosts/schema.d.ts +1 -1
- package/lib/portable/hosts/schema.js +1 -1
- package/lib/portable/hosts/secretCipher.d.ts +1 -2
- package/lib/portable/hosts/turnState.d.ts +1 -1
- package/lib/portable/index.js +13 -13
- package/lib/portable/lifecycle.d.ts +4 -4
- package/lib/portable/lifecycle.js +1 -1
- package/lib/portable/localApprovals.d.ts +1 -1
- package/lib/portable/localApprovals.js +1 -1
- package/lib/portable/localRuntime.d.ts +7 -7
- package/lib/portable/localRuntime.js +5 -5
- package/lib/portable/presence.d.ts +3 -3
- package/lib/portable/protectedInput.d.ts +1 -1
- package/lib/portable/records.d.ts +1 -1
- package/lib/portable/records.js +1 -1
- package/lib/portable/runMeasures.d.ts +1 -1
- package/lib/portable/runMeasures.js +1 -1
- package/lib/portable/runtimes.d.ts +1 -1
- package/lib/portable/semantic-events.json +1 -1
- package/lib/portable/semantic.d.ts +1 -1
- package/lib/portable/semanticOfAgUi.d.ts +2 -2
- package/lib/portable/semanticOfAgUi.js +1 -1
- package/lib/portable/sessionList.d.ts +11 -11
- package/lib/portable/sessionList.js +8 -8
- package/lib/portable/signIn.d.ts +9 -9
- package/lib/portable/signIn.js +4 -4
- package/lib/portable/signInStatus.d.ts +1 -1
- package/lib/portable/signInStatus.js +1 -1
- package/lib/portable/thread.d.ts +1 -1
- package/lib/portable/views.d.ts +3 -3
- package/lib/protocols/A2AAdapter.d.ts +1 -1
- package/lib/protocols/A2AAdapter.js +4 -4
- package/lib/protocols/AGUIAdapter.d.ts +1 -1
- package/lib/protocols/AGUIAdapter.js +2 -2
- package/lib/protocols/BrowserAgentAdapter.d.ts +2 -2
- package/lib/protocols/BrowserAgentAdapter.js +1 -1
- package/lib/protocols/VercelAIAdapter.js +2 -2
- package/lib/protocols/a2a/index.d.ts +1 -1
- package/lib/protocols/a2a/index.js +1 -1
- package/lib/protocols/agentic-commerce/index.d.ts +3 -3
- package/lib/protocols/agentic-commerce/index.js +3 -3
- package/lib/protocols/commerce.d.ts +3 -3
- package/lib/protocols/commerce.js +3 -3
- package/lib/protocols/core.d.ts +3 -3
- package/lib/protocols/mcp/client.js +1 -1
- package/lib/protocols/mcp/index.js +2 -2
- package/lib/protocols/pact/index.d.ts +2 -2
- package/lib/protocols/pact/index.js +1 -1
- package/lib/protocols/ucp/index.d.ts +3 -3
- package/lib/protocols/ucp/index.js +3 -3
- package/lib/protocols/ucp/merchant.js +1 -1
- package/lib/protocols/web-bot-auth/index.d.ts +2 -3
- package/lib/protocols/web-bot-auth/index.js +2 -3
- package/lib/protocols/web-bot-auth/tap.js +1 -1
- package/lib/runtimes/actions.d.ts +1 -1
- package/lib/runtimes/actions.js +3 -3
- package/lib/runtimes/apis.d.ts +4 -4
- package/lib/runtimes/browser/a2aPeer.d.ts +1 -1
- package/lib/runtimes/browser/a2aPeer.js +1 -1
- package/lib/runtimes/browser/frontendTools.d.ts +1 -1
- package/lib/runtimes/browser/protocol.d.ts +1 -1
- package/lib/runtimes/variants.d.ts +3 -3
- package/lib/runtimes/variants.js +4 -4
- package/lib/specs/apps.js +37 -37
- package/lib/specs/appspecSchema.js +2 -2
- package/lib/specs/harnesses.d.ts +2 -2
- package/lib/specs/harnesses.js +1 -1
- package/lib/specs/policies.d.ts +1 -1
- package/lib/specs/protocols.d.ts +1 -1
- package/lib/specs/sessionFiles.d.ts +1 -1
- package/lib/specs/sessionFiles.js +1 -1
- package/lib/specs/standards.d.ts +1 -1
- package/lib/specs/ui.d.ts +1 -1
- package/lib/specs/ui.js +1 -1
- package/lib/specs/voices.d.ts +1 -1
- package/lib/stores/agentRuntimeStore.js +1 -1
- package/lib/stories/loop/ReferenceScreens.d.ts +3 -3
- package/lib/stories/loop/ReferenceScreens.js +12 -12
- package/lib/stories/loop/pictures-main.js +3 -3
- package/lib/tools/adapters/agent-runtimes/AgentRuntimesToolAdapter.js +1 -1
- package/lib/tools/toolEventTurns.d.ts +2 -2
- package/lib/types/agentspecs.d.ts +4 -4
- package/lib/types/chat.d.ts +22 -22
- package/lib/types/mcp.d.ts +2 -2
- package/lib/types/messages.d.ts +1 -1
- package/lib/types/protocol.d.ts +1 -1
- package/lib/types/scenes.d.ts +7 -7
- package/lib/types/teams.d.ts +5 -5
- package/lib/types/tools.d.ts +2 -2
- package/lib/ui-plugins/MCPUIPlugin.d.ts +2 -2
- package/lib/ui-plugins/MCPUIPlugin.js +1 -1
- package/lib/voice/ComposerVoice.d.ts +13 -13
- package/lib/voice/ComposerVoice.js +3 -3
- package/lib/voice/HandsFree.d.ts +13 -13
- package/lib/voice/HandsFree.js +5 -5
- package/lib/voice/ReadAloud.d.ts +1 -1
- package/lib/voice/VoiceInput.d.ts +7 -7
- package/lib/voice/VoiceInput.js +5 -5
- package/lib/voice/VoiceMenu.d.ts +2 -2
- package/lib/voice/captions.d.ts +1 -1
- package/lib/voice/captions.js +1 -1
- package/lib/voice/capture.d.ts +3 -3
- package/lib/voice/capture.js +3 -3
- package/lib/voice/chatVoice.d.ts +8 -8
- package/lib/voice/chatVoice.js +11 -11
- package/lib/voice/choices.d.ts +3 -3
- package/lib/voice/choices.js +3 -3
- package/lib/voice/consent.d.ts +3 -3
- package/lib/voice/consent.js +4 -4
- package/lib/voice/handsFreeRules.d.ts +11 -11
- package/lib/voice/handsFreeRules.js +8 -8
- package/lib/voice/hearing.d.ts +7 -7
- package/lib/voice/hearing.js +4 -4
- package/lib/voice/index.d.ts +11 -11
- package/lib/voice/keptSound.d.ts +2 -2
- package/lib/voice/keptSound.js +3 -3
- package/lib/voice/pinned.d.ts +2 -2
- package/lib/voice/pinned.js +2 -2
- package/lib/voice/sayAloud.d.ts +5 -5
- package/lib/voice/sayAloud.js +5 -5
- package/lib/voice/sentences.d.ts +2 -2
- package/lib/voice/sentences.js +3 -3
- package/lib/voice/serverHearing.d.ts +2 -2
- package/lib/voice/serverHearing.js +5 -5
- package/lib/voice/settings.d.ts +11 -11
- package/lib/voice/settings.js +7 -7
- package/lib/voice/speaker.d.ts +14 -14
- package/lib/voice/speaker.js +7 -7
- package/lib/voice/types.d.ts +3 -3
- package/lib/voice/useSpokenAnswers.js +1 -1
- package/lib/voice/useVoiceSettings.js +1 -1
- package/lib/voice/useVoiceSpeaker.d.ts +2 -2
- package/lib/voice/useVoiceSpeaker.js +2 -2
- package/package.json +2 -2
- package/scripts/codegen/generate_agentic_commerce.sh +1 -1
- package/scripts/codegen/generate_agents.py +6 -6
- package/scripts/codegen/generate_harnesses.py +7 -7
- package/scripts/codegen/generate_mcp_servers.py +4 -4
- package/scripts/codegen/generate_policies.py +3 -3
- package/scripts/codegen/generate_protocols.py +4 -4
- package/scripts/codegen/generate_scenes.py +4 -4
- package/scripts/codegen/generate_session_files.py +3 -3
- package/scripts/codegen/generate_standards.py +3 -3
- package/scripts/codegen/generate_teams.py +1 -1
- package/scripts/codegen/generate_ui.py +5 -5
- package/scripts/codegen/generate_ui_renderers.py +2 -2
- package/scripts/codegen/generate_voices.py +3 -3
- package/scripts/dist-embed.mjs +1 -1
- package/scripts/generate-environments-types.py +2 -2
- package/scripts/record-scene-checks.py +2 -2
- package/scripts/voice/measure.py +3 -3
- package/scripts/voice/pin_store.py +2 -2
- package/scripts/voice/serve_store.py +1 -1
- package/scripts/voice/transcribe.mjs +1 -1
- package/dist-embed/chunks/AgentDetailsDialog-DMTVgMus.js +0 -1
- package/dist-embed/chunks/ContextPie-C0N8hwmj.js +0 -1
- package/dist-embed/chunks/index.esm-tNe_Tes8.js +0 -1
- package/dist-embed/chunks/plugin-BFdQv_3f.js +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{j2 as Wp,at as Zp,tH as Wc,tI as Js,tJ as Qs,tK as Fn,tL as Up,J as Yp,r as $p}from"../datalayer-app-main.js";import{ad as _t,ae as wt,af as gr,ag as Or,ah as st,ai as mt,aj as ut,ak as G,al as Xp,am as Lt,an as Kp,ao as qp,ap as jp,aq as M,ar as Zc,as as Uc,at as tl,au as Jp,av as Qp,aw as Dt,ax as Ft,ay as dt,az as ct,aA as Yc,aB as Ie,aC as ye,aD as Kr,aE as td,aF as el,aG as z,aH as ed,aI as $c,aJ as et,aK as rd,aL as ad,aM as W,aN as Xc,aO as le,aP as Kc,aQ as qc,aR as nd,aS as Vt,aT as jc,aU as _n,aV as id,aW as od,aX as sd,aY as ld,aZ as ud,a_ as vd,a$ as cd,b0 as hd,b1 as fd,b2 as pd,b3 as dd,b4 as qr,b5 as gd,b6 as ot,b7 as yd,b8 as Jc,b9 as zo,ba as md,bb as Sd,bc as xd,bd as B,be as Rt,bf as rl,bg as _d,bh as Re,bi as bd,bj as V,bk as re,bl as me,bm as $,bn as Ve,bo as Q,bp as Kt,bq as ae,br as Ht,bs as xt,C as Tt,bt as Tr,bu as va,bv as Wt,bw as bn,bx as F,by as ca,bz as wd,bA as Zt,c as It,bB as ft,M as Ut,bC as ue,bD as wn,bE as Ad,a as Pt,bF as qe,bG as ha,bH as Qc,bI as oe,b as kt,A as ve,bJ as Ki,bK as Td,Y as X,bL as An,D as fa,bM as al,bN as je,bO as th,bP as pt,bQ as O,bR as Md,bS as Id,bT as se,bU as Cd,bV as Oo,bW as Dd,bX as nl,bY as Tn,bZ as eh,b_ as Je,b$ as Mr,c0 as K,c1 as Ld,c2 as Pd,B as qi,c3 as rh,c4 as Qe,c5 as _r,c6 as Go,c7 as Bo,c8 as Ed,c9 as pa,ca as ah,cb as tt,cc as nh,cd as ji,ce as Rd,cf as Vd,cg as Ot,ch as ge,ci as Fo,cj as Xt,ck as ne,cl as kd,cm as Nd,cn as Mn,co as ih,cp as oh,cq as zd,cr as In,cs as sh,ct as Xa,cu as Od,cv as Ka,cw as lh,cx as xe,cy as Ho,S as Bt,cz as Gd,cA as Gt,cB as Wo,cC as Bd,cD as vt,cE as St,cF as ke,cG as uh,cH as il,cI as Gr,cJ as ol,cK as Fd,cL as vh,cM as it,cN as Hd,cO as Hn,cP as Wn,cQ as qa,cR as Yr,cS as sl,cT as da,cU as Le,cV as ga,cW as Wd,cX as Zd,cY as yr,cZ as ll,c_ as Ud,c$ as Ji,d0 as Qi,d1 as Zo,d2 as jr,d3 as Jr,d4 as ya,d5 as Cn,d6 as Yd,d7 as ch,d8 as $d,d9 as Uo,da as ma,db as hh,dc as Xd,dd as Kd,de as ul,df as tr,dg as vl,dh as qd,di as jd,dj as _e,dk as Jd,dl as Qd,dm as Dn,dn as fh,dp as Yo,dq as ja,dr as Pe,ds as te,dt as $o,du as Sr,dv as tg,dw as Xo,dx as Ja,dy as to,dz as eo,dA as eg,dB as Zn,dC as ph,dD as yt,dE as Ko,dF as Ln,dG as Un,dH as rg,dI as dh,dJ as ag,dK as Br,dL as ng,dM as cl,dN as ig,dO as hl,dP as Pn,dQ as ro,dR as og,dS as Ir,dT as fl,dU as sg,dV as lg,dW as ug,dX as pl,dY as vg,dZ as cg,d_ as hg,d$ as Sa,e0 as Qr,e1 as fg,e2 as gh,e3 as dl,e4 as pg,e5 as yh,e6 as dg,e7 as mh,e8 as Sh,e9 as gg,ea as xh,eb as gl,ec as _h,ed as bh,ee as yl,ef as xa,eg as wh,eh as qo,ei as yg,ej as mg,ek as Sg,el as xg,em as _g,en as bg,eo as Ah,ep as wg,eq as Th,er as Ag,es as ml,et as Tg,eu as Mg,ev as Ig,ew as Cg,ex as Dg,ey as Lg,ez as Pg,eA as Eg,eB as Mh,eC as Rg,eD as Vg,k as jo,eE as kg,eF as Sl,eG as Ih,eH as Ng,eI as zg,eJ as Ch,eK as Dh,eL as Dr,eM as wa,eN as Og,eO as Jo,eP as Ha,eQ as ao,eR as Gg,eS as Bg,eT as Qa,eU as Fg,eV as Hg,eW as Wg,eX as En,eY as Zg,eZ as Ug,e_ as Yg,e$ as $g,f0 as xl,f1 as Xg,f2 as Lh,f3 as Kg,f4 as qg,f5 as jg,f6 as Jg,f7 as Qg,f8 as _l,f9 as ty,fa as tn,fb as Qo,fc as ey,fd as Yn,fe as ry,a3 as ay,aa as ny,a9 as iy,ab as oy,ac as sy,a4 as ly,a5 as uy,a7 as vy,a6 as cy,a8 as hy,P as fy,d as py,e as dy,f as gy,g as yy,h as my,i as Sy,j as xy,l as _y,m as by,n as wy,o as Ay,p as Ty,q as My,r as Iy,s as Cy,t as Dy,u as Ly,v as Py,w as Ey,x as Ry,y as Vy,z as ky,E as Ny,F as zy,G as Oy,H as Gy,I as By,J as Fy,K as Hy,L as Wy,N as Zy,O as Uy,Q as Yy,R as $y,T as Xy,U as Ky,V as qy,W as jy,X as Jy,Z as Qy,_ as tm,$ as em,a0 as rm,a1 as am,a2 as nm}from"./index-BhCoJe__.js";function im(a){if(a){for(var e=[],t=0;t<a.length;t++)e.push(a[t].slice());return e}}function om(a,e){var t=a.label,r=e&&e.getTextGuideLine();return{dataIndex:a.dataIndex,dataType:a.dataType,seriesIndex:a.seriesModel.seriesIndex,text:a.label.style.text,rect:a.hostRect,labelRect:a.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:im(r&&r.shape.points)}}var bl=["align","verticalAlign","width","height","fontSize"],zt=new gr,$n=_t(),sm=_t();function Aa(a,e,t){for(var r=0;r<t.length;r++){var n=t[r];e[n]!=null&&(a[n]=e[n])}}var Ta=["x","y","rotation"],lm=(function(){function a(){this._labelList=[],this._chartViewList=[]}return a.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},a.prototype._addLabel=function(e,t,r,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),v=n.getBoundingRect().plain();wt.applyTransform(v,v,u),u?zt.setLocalTransform(u):(zt.x=zt.y=zt.rotation=zt.originX=zt.originY=0,zt.scaleX=zt.scaleY=1),zt.rotation=Or(zt.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var f=c.getComputedTransform();wt.applyTransform(h,h,f)}var p=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:r,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:v,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:zt.x,y:zt.y,scaleX:zt.scaleX,scaleY:zt.scaleY,rotation:zt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},a.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var r=e.__model,n=r.get("labelLayout");(st(n)||mt(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ut(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,r,o,n)})},a.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),r=e.getHeight();function n(S,x){return function(){tl(S,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,v=void 0;st(o.layoutOption)?v=o.layoutOption(om(o,l)):v=o.layoutOption,v=v||{},o.computedLayoutOption=v;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:v.x!=null||v.y!=null?null:u.attachedPos,rotation:v.rotate!=null?v.rotate*c:u.attachedRot,offset:[v.dx||0,v.dy||0]});var h=!1;if(v.x!=null?(s.x=G(v.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),v.y!=null?(s.y=G(v.y,r),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),v.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:v.labelLinePoints}),h=!1)}var p=$n(s);p.needsUpdateLabelLine=h,s.rotation=v.rotate!=null?v.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<bl.length;d++){var g=bl[d];s.setStyle(g,v[g]!=null?v[g]:u.style[g])}if(v.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},a.prototype.layout=function(e){var t=e.getWidth(),r=e.getHeight(),n=Xp(this._labelList),i=Lt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Lt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Kp(i,0,t),qp(o,0,r);var s=Lt(n,function(l){return l.layoutOption.hideOverlap});jp(s)},a.prototype.processLabelsOverall=function(){var e=this;M(this._chartViewList,function(t){var r=t.__model,n=t.ignoreLabelLineUpdate,i=r.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=$n(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),i&&e._animateLabels(o,r)})})},a.prototype._updateLabelLine=function(e,t){var r=e.getTextContent(),n=ut(e),i=n.dataIndex;if(r&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var v=o.getVisual("drawType");l.stroke=u[v]}var c=s.getModel("labelLine");Zc(e,Uc(s),l),tl(e,c)}},a.prototype._animateLabels=function(e,t){var r=e.getTextContent(),n=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!Jp(e))){var i=$n(r),o=i.oldLayout,s=ut(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},v=t.getData(s.dataType);if(o){r.attr(o);var h=e.prevStates;h&&(dt(h,"select")>=0&&r.attr(i.oldLayoutSelect),dt(h,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ct(r,u,t,l)}else if(r.attr(u),!Qp(r).valueAnimation){var c=Dt(r.style.opacity,1);r.style.opacity=0,Ft(r,{style:{opacity:c}},t,l)}if(i.oldLayout=u,r.states.select){var f=i.oldLayoutSelect={};Aa(f,u,Ta),Aa(f,r.states.select,Ta)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};Aa(p,u,Ta),Aa(p,r.states.emphasis,Ta)}Yc(r,l,v,t,t)}if(n&&!n.ignore&&!n.invisible){var i=sm(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),ct(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ft(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},a})(),Xn=_t();function um(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var n=Xn(t).labelManager;n||(n=Xn(t).labelManager=new lm),n.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var n=Xn(t).labelManager;r.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var Kn=Math.sin,qn=Math.cos,Ph=Math.PI,Ge=Math.PI*2,vm=180/Ph,Eh=(function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,n,i,o){this._add("C",e,t,r,n,i,o)},a.prototype.quadraticCurveTo=function(e,t,r,n){this._add("Q",e,t,r,n)},a.prototype.arc=function(e,t,r,n,i,o){this.ellipse(e,t,r,r,0,n,i,o)},a.prototype.ellipse=function(e,t,r,n,i,o,s,l){var u=s-o,v=!l,c=Math.abs(u),h=Ie(c-Ge)||(v?u>=Ge:-u>=Ge),f=u>0?u%Ge:u%Ge+Ge,p=!1;h?p=!0:Ie(c)?p=!1:p=f>=Ph==!!v;var d=e+r*qn(o),g=t+n*Kn(o);this._start&&this._add("M",d,g);var y=Math.round(i*vm);if(h){var m=1/this._p,S=(v?1:-1)*(Ge-m);this._add("A",r,n,y,1,+v,e+r*qn(o+S),t+n*Kn(o+S)),m>.01&&this._add("A",r,n,y,0,+v,d,g)}else{var x=e+r*qn(s),_=t+n*Kn(s);this._add("A",r,n,y,+p,+v,x,_)}},a.prototype.rect=function(e,t,r,n){this._add("M",e,t),this._add("l",r,0),this._add("l",0,n),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,n,i,o,s,l,u){for(var v=[],c=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}v.push(Math.round(f*c)/c)}this._d.push(e+v.join(" ")),this._start=e==="Z"},a.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},a.prototype.getStr=function(){return this._str},a})(),ts="none",cm=Math.round;function hm(a){var e=a.fill;return e!=null&&e!==ts}function fm(a){var e=a.stroke;return e!=null&&e!==ts}var no=["lineCap","miterLimit","lineJoin"],pm=z(no,function(a){return"stroke-"+a.toLowerCase()});function dm(a,e,t,r){var n=e.opacity==null?1:e.opacity;if(t instanceof ye){a("opacity",n);return}if(hm(e)){var i=Kr(e.fill);a("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&a("fill-opacity",o)}else a("fill",ts);if(fm(e)){var s=Kr(e.stroke);a("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,v=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(u!==1&&a("stroke-width",u),c&&a("paint-order",c?"stroke":"fill"),v<1&&a("stroke-opacity",v),e.lineDash){var h=td(t),f=h[0],p=h[1];f&&(p=cm(p||0),a("stroke-dasharray",f.join(",")),(p||r)&&a("stroke-dashoffset",p))}for(var d=0;d<no.length;d++){var g=no[d];if(e[g]!==el[g]){var y=e[g]||el[g];y&&a(pm[d],y)}}}}var Rh="http://www.w3.org/2000/svg",Vh="http://www.w3.org/1999/xlink",gm="http://www.w3.org/2000/xmlns/",ym="http://www.w3.org/XML/1998/namespace",wl="ecmeta_";function kh(a){return document.createElementNS(Rh,a)}function bt(a,e,t,r,n){return{tag:a,attrs:t||{},children:r,text:n,key:e}}function mm(a,e){var t=[];if(e)for(var r in e){var n=e[r],i=r;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+a+" "+t.join(" ")+">"}function Sm(a){return"</"+a+">"}function es(a,e){e=e||{};var t=e.newline?`
|
|
2
|
-
`:"";function r(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return
|
|
3
|
-
`:"",n=" {"+r,i=r+"}",o=z(mt(a),function(l){return l+n+z(mt(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+i}).join(r),s=z(mt(e),function(l){return"@keyframes "+l+n+z(mt(e[l]),function(u){return u+n+z(mt(e[l][u]),function(v){var c=e[l][u][v];return v==="d"&&(c='path("'+c+'")'),v+":"+c+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function io(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Al(a,e,t,r){return bt("svg","root",{width:a,height:e,xmlns:Rh,"xmlns:xlink":Vh,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var _m=0;function Nh(){return _m++}var Tl={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Fe="transform-origin";function bm(a,e,t){var r=W({},a.shape);W(r,e),a.buildPath(t,r);var n=new Eh;return n.reset(Kc(a)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function wm(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[Fe]=t+"px "+r+"px")}var Am={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zh(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function Tm(a,e,t){var r=a.shape.paths,n={},i,o;if(M(r,function(l){var u=io(t.zrId);u.animation=!0,Rn(l,{},u,!0);var v=u.cssAnims,c=u.cssNodes,h=mt(v),f=h.length;if(f){o=h[f-1];var p=v[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=zh(n,t);return i.replace(o,s)}}function Ml(a){return et(a)?Tl[a]?"cubic-bezier("+Tl[a]+")":rd(a)?a:"":""}function Rn(a,e,t,r){var n=a.animators,i=n.length,o=[];if(a instanceof $c){var s=Tm(a,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var v=n[u],c=[v.getMaxTime()/1e3+"s"],h=Ml(v.getClip().easing),f=v.getDelay();h?c.push(h):c.push("linear"),f&&c.push(f/1e3+"s"),v.getLoop()&&c.push("infinite");var p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(v)}function d(m){var S=m[1],x=S.length,_={},b={},w={},T="animation-timing-function";function A(j,Y,lt){for(var nt=j.getTracks(),ht=j.getMaxTime(),Mt=0;Mt<nt.length;Mt++){var Nt=nt[Mt];if(Nt.needsAnimate()){var gt=Nt.keyframes,Et=Nt.propName;if(lt&&(Et=lt(Et)),Et)for(var Yt=0;Yt<gt.length;Yt++){var ie=gt[Yt],Oe=Math.round(ie.time/ht*100)+"%",Cr=Ml(ie.easing),js=ie.rawValue;(et(js)||le(js))&&(Y[Oe]=Y[Oe]||{},Y[Oe][Et]=ie.rawValue,Cr&&(Y[Oe][T]=Cr))}}}}for(var I=0;I<x;I++){var C=S[I],L=C.targetName;L?L==="shape"&&A(C,b):!r&&A(C,_)}for(var D in _){var P={};ad(P,a),W(P,_[D]);var E=Xc(P),R=_[D][T];w[D]=E?{transform:E}:{},wm(w[D],P),R&&(w[D][T]=R)}var k,N=!0;for(var D in b){w[D]=w[D]||{};var H=!k,R=b[D][T];H&&(k=new qc);var Z=k.len();k.reset(),w[D].d=bm(a,b[D],k);var U=k.len();if(!H&&Z!==U){N=!1;break}R&&(w[D][T]=R)}if(!N)for(var D in w)delete w[D].d;if(!r)for(var I=0;I<x;I++){var C=S[I],L=C.targetName;L==="style"&&A(C,w,function(nt){return Am[nt]})}for(var q=mt(w),rt=!0,J,I=1;I<q.length;I++){var at=q[I-1],Ct=q[I];if(w[at][Fe]!==w[Ct][Fe]){rt=!1;break}J=w[at][Fe]}if(rt&&J){for(var D in w)w[D][Fe]&&delete w[D][Fe];e[Fe]=J}if(Lt(q,function(j){return mt(w[j]).length>0}).length){var ce=zh(w,t);return ce+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+Nh();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function Mm(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};Il(r,e,t)}else{var n=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},i=n.fill;if(!i){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(i=nd(l))}var u=n.lineWidth;if(u){var v=!n.strokeNoScale&&a.transform?a.transform[0]:1;u=u/v}var r={cursor:"pointer"};i&&(r.fill=i),n.stroke&&(r.stroke=n.stroke),u&&(r["stroke-width"]=u),Il(r,e,t)}}function Il(a,e,t,r){var n=JSON.stringify(a),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+Nh(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=a),e.class=e.class?e.class+" "+i:i}var ta=Math.round;function Oh(a){return a&&et(a.src)}function Gh(a){return a&&st(a.toDataURL)}function rs(a,e,t,r){dm(function(n,i){var o=n==="fill"||n==="stroke";o&&Jc(i)?Fh(e,a,n,r):o&&zo(i)?Hh(t,a,n,r):a[n]=i,o&&r.ssr&&i==="none"&&(a["pointer-events"]="visible")},e,t,!1),Rm(t,a,r)}function as(a,e){var t=md(e);t&&(t.each(function(r,n){r!=null&&(a[(wl+n).toLowerCase()]=r+"")}),e.isSilent()&&(a[wl+"silent"]="true"))}function Cl(a){return Ie(a[0]-1)&&Ie(a[1])&&Ie(a[2])&&Ie(a[3]-1)}function Im(a){return Ie(a[4])&&Ie(a[5])}function ns(a,e,t){if(e&&!(Im(e)&&Cl(e))){var r=1e4;a.transform=Cl(e)?"translate("+ta(e[4]*r)/r+" "+ta(e[5]*r)/r+")":yd(e)}}function Dl(a,e,t){for(var r=a.points,n=[],i=0;i<r.length;i++)n.push(ta(r[i][0]*t)/t),n.push(ta(r[i][1]*t)/t);e.points=n.join(" ")}function Ll(a){return!a.smooth}function Cm(a){var e=z(a,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(r[o[1]]=ta(s*n)/n)}}}var Dm={circle:[Cm(["cx","cy","r"])],polyline:[Dl,Ll],polygon:[Dl,Ll]};function Lm(a){for(var e=a.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Bh(a,e){var t=a.style,r=a.shape,n=Dm[a.type],i={},o=e.animation,s="path",l=a.style.strokePercent,u=e.compress&&Kc(a)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](r))&&!(o&&Lm(a))&&!(l<1)){s=a.type;var v=Math.pow(10,u);n[0](r,i,v)}else{var c=!a.path||a.shapeChanged();a.path||a.createPathProxy();var h=a.path;c&&(h.beginPath(),a.buildPath(h,a.shape),a.pathUpdated());var f=h.getVersion(),p=a,d=p.__svgPathBuilder;(p.__svgPathVersion!==f||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new Eh),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),i.d=d.getStr()}return ns(i,a.transform),rs(i,t,a,e),as(i,a),e.animation&&Rn(a,i,e),e.emphasis&&Mm(a,i,e),bt(s,a.id+"",i)}function Pm(a,e){var t=a.style,r=t.image;if(r&&!et(r)&&(Oh(r)?r=r.src:Gh(r)&&(r=r.toDataURL())),!!r){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:r,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),ns(l,a.transform),rs(l,t,a,e),as(l,a),e.animation&&Rn(a,l,e),bt("image",a.id+"",l)}}function Em(a,e){var t=a.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var n=t.font||id,i=t.x||0,o=od(t.y||0,sd(n),t.textBaseline),s=ld[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(ud(t)){var u="",v=t.fontStyle,c=vd(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||cd,f=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",v&&v!=="normal"&&(u+="font-style:"+v+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+n;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),ns(l,a.transform),rs(l,t,a,e),as(l,a),e.animation&&Rn(a,l,e),bt("text",a.id+"",l,void 0,r)}}function Pl(a,e){if(a instanceof Vt)return Bh(a,e);if(a instanceof ye)return Pm(a,e);if(a instanceof jc)return Em(a,e)}function Rm(a,e,t){var r=a.style;if(Sd(r)){var n=xd(a),i=t.shadowCache,o=i[n];if(!o){var s=a.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var v=r.shadowOffsetX||0,c=r.shadowOffsetY||0,h=r.shadowBlur,f=Kr(r.shadowColor),p=f.opacity,d=f.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[bt("feDropShadow","",{dx:v/l,dy:c/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[n]=o}e.filter=_n(o)}}function Fh(a,e,t,r){var n=a[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(hd(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(fd(n))i="radialGradient",o.cx=Dt(n.x,.5),o.cy=Dt(n.y,.5),o.r=Dt(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,v=s.length;u<v;++u){var c=pd(s[u].offset)*100+"%",h=s[u].color,f=Kr(h),p=f.color,d=f.opacity,g={offset:c};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(bt("stop",u+"",g))}var y=bt(i,"",o,l),m=es(y),S=r.gradientCache,x=S[m];x||(x=r.zrId+"-g"+r.gradientIdx++,S[m]=x,o.id=x,r.defs[x]=bt(i,x,o,l)),e[t]=_n(x)}function Hh(a,e,t,r){var n=a.style[t],i=a.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",v=s==="repeat-y",c;if(dd(n)){var h=n.imageWidth,f=n.imageHeight,p=void 0,d=n.image;if(et(d)?p=d:Oh(d)?p=d.src:Gh(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";qr(h,g),qr(f,g)}else if(h==null||f==null){var y=function(I,C){if(I){var L=I.elm,D=h||C.width,P=f||C.height;I.tag==="pattern"&&(u?(P=1,D/=i.width):v&&(D=1,P/=i.height)),I.attrs.width=D,I.attrs.height=P,L&&(L.setAttribute("width",D),L.setAttribute("height",P))}},m=gd(p,null,a,function(I){l||y(b,I),y(c,I)});m&&m.width&&m.height&&(h=h||m.width,f=f||m.height)}c=bt("image","img",{href:p,width:h,height:f}),o.width=h,o.height=f}else n.svgElement&&(c=ot(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var S,x;l?S=x=1:u?(x=1,S=o.width/i.width):v?(S=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),x!=null&&!isNaN(x)&&(o.height=x);var _=Xc(n);_&&(o.patternTransform=_);var b=bt("pattern","",o,[c]),w=es(b),T=r.patternCache,A=T[w];A||(A=r.zrId+"-p"+r.patternIdx++,T[w]=A,o.id=A,b=r.defs[A]=bt("pattern",A,o,[c])),e[t]=_n(A)}}function Vm(a,e,t){var r=t.clipPathCache,n=t.defs,i=r[a.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[a.id]=i,n[i]=bt("clipPath",i,o,[Bh(a,t)])}e["clip-path"]=_n(i)}function El(a){return document.createTextNode(a)}function $e(a,e,t){a.insertBefore(e,t)}function Rl(a,e){a.removeChild(e)}function Vl(a,e){a.appendChild(e)}function Wh(a){return a.parentNode}function Zh(a){return a.nextSibling}function jn(a,e){a.textContent=e}var kl=58,km=120,Nm=bt("","");function oo(a){return a===void 0}function de(a){return a!==void 0}function zm(a,e,t){for(var r={},n=e;n<=t;++n){var i=a[n].key;i!==void 0&&(r[i]=n)}return r}function Fr(a,e){var t=a.key===e.key,r=a.tag===e.tag;return r&&t}function ea(a){var e,t=a.children,r=a.tag;if(de(r)){var n=a.elm=kh(r);if(is(Nm,a),B(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&Vl(n,ea(i))}else de(a.text)&&!Rt(a.text)&&Vl(n,El(a.text))}else a.elm=El(a.text);return a.elm}function Uh(a,e,t,r,n){for(;r<=n;++r){var i=t[r];i!=null&&$e(a,ea(i),e)}}function en(a,e,t,r){for(;t<=r;++t){var n=e[t];if(n!=null)if(de(n.tag)){var i=Wh(n.elm);Rl(i,n.elm)}else Rl(a,n.elm)}}function is(a,e){var t,r=e.elm,n=a&&a.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?r.setAttribute(t,""):o===!1?r.removeAttribute(t):t==="style"?r.style.cssText=o:t.charCodeAt(0)!==km?r.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(gm,t,o):t.charCodeAt(3)===kl?r.setAttributeNS(ym,t,o):t.charCodeAt(5)===kl?r.setAttributeNS(Vh,t,o):r.setAttribute(t,o))}for(t in n)t in i||r.removeAttribute(t)}}function Om(a,e,t){for(var r=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],v=t[l],c,h,f,p;r<=i&&n<=l;)o==null?o=e[++r]:s==null?s=e[--i]:u==null?u=t[++n]:v==null?v=t[--l]:Fr(o,u)?(fr(o,u),o=e[++r],u=t[++n]):Fr(s,v)?(fr(s,v),s=e[--i],v=t[--l]):Fr(o,v)?(fr(o,v),$e(a,o.elm,Zh(s.elm)),o=e[++r],v=t[--l]):Fr(s,u)?(fr(s,u),$e(a,s.elm,o.elm),s=e[--i],u=t[++n]):(oo(c)&&(c=zm(e,r,i)),h=c[u.key],oo(h)?$e(a,ea(u),o.elm):(f=e[h],f.tag!==u.tag?$e(a,ea(u),o.elm):(fr(f,u),e[h]=void 0,$e(a,f.elm,o.elm))),u=t[++n]);(r<=i||n<=l)&&(r>i?(p=t[l+1]==null?null:t[l+1].elm,Uh(a,p,t,n,l)):en(a,e,r,i))}function fr(a,e){var t=e.elm=a.elm,r=a.children,n=e.children;a!==e&&(is(a,e),oo(e.text)?de(r)&&de(n)?r!==n&&Om(t,r,n):de(n)?(de(a.text)&&jn(t,""),Uh(t,null,n,0,n.length-1)):de(r)?en(t,r,0,r.length-1):de(a.text)&&jn(t,""):a.text!==e.text&&(de(r)&&en(t,r,0,r.length-1),jn(t,e.text)))}function Gm(a,e){if(Fr(a,e))fr(a,e);else{var t=a.elm,r=Wh(t);ea(e),r!==null&&($e(r,e.elm,Zh(t)),en(r,[a],0,0))}return e}var Bm=0,Fm=(function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Nl(),this.configLayer=Nl(),this.storage=t,this._opts=r=W({},r),this.root=e,this._id="zr"+Bm++,this._oldVNode=Al(r.width,r.height),e&&!r.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=kh("svg");is(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Gm(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return Pl(e,io(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,n=this._height,i=io(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Hm(r,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=bt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=z(mt(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(bt("defs","defs",{},u)),e.animation){var v=xm(i.cssNodes,i.cssAnims,{newline:!0});if(v){var c=bt("style","stl",{},[],v);o.push(c)}}return Al(r,n,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},es(this.renderToVNode({animation:Dt(e.cssAnimation,!0),emphasis:Dt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Dt(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var n=e.length,i=[],o=0,s,l,u=0,v=0;v<n;v++){var c=e[v];if(!c.invisible){var h=c.__clipPaths,f=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y<f;y++){var m={};Vm(h[y],m,t);var S=bt("g","clip-g-"+u++,m,[]);(s?s.children:r).push(S),i[o++]=S,s=S}l=h;var x=Pl(c,t);x&&(s?s.children:r).push(x)}}},a.prototype.resize=function(e,t){var r=this._opts,n=this.root,i=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),n&&i&&(i.style.display="none",e=rl(n,0,r),t=rl(n,1,r),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(zo(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},a.prototype.getWidth=function(){return this._width},a.prototype.getHeight=function(){return this._height},a.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},a.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},a.prototype.toDataURL=function(e){var t=this.renderToString(),r="data:image/svg+xml;";return e?(t=_d(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+encodeURIComponent(t)},a})();function Nl(a){return function(){}}function Hm(a,e,t,r){var n;if(t&&t!=="none")if(n=bt("rect","bg",{width:a,height:e,x:"0",y:"0"}),Jc(t))Fh({fill:t},n.attrs,"fill",r);else if(zo(t))Hh({style:{fill:t},dirty:Re,getBoundingRect:function(){return{width:a,height:e}}},n.attrs,"fill",r);else{var i=Kr(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function Wm(a){a.registerPainter("svg",Fm)}function Zm(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();M(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var v=n.dataToPoint(l,s);r[u][s]=zl(v)?v:Ol(n)})}),t.each(function(o){var s=bd(r[o],function(l){return zl(l)})||Ol(n);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function zl(a){return!isNaN(a[0])&&!isNaN(a[1])}function Ol(a){return[a.cx,a.cy]}function Um(a){var e=a.polar;if(e){B(e)||(e=[e]);var t=[];M(e,function(r,n){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],B(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}M(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Ym=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var d=va(h.getItemVisual(f,"symbolSize")),g=Wt(p,-1,-1,2,2),y=h.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function v(h,f,p,d,g,y){p.removeAll();for(var m=0;m<f.length-1;m++){var S=u(d,g);S&&(S.__dimIdx=m,h[m]?(S.setPosition(h[m]),Tr[y?"initProps":"updateProps"](S,{x:f[m][0],y:f[m][1]},t,g)):S.setPosition(f[m]),p.add(S))}}function c(h){return z(h,function(f){return[i.cx,i.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(f){var p=new re,d=new me,g={shape:{points:f}};p.shape.points=c(f),d.shape.points=c(f),Ft(p,g,t,h),Ft(d,g,t,h);var y=new $,m=new $;y.add(d),y.add(p),y.add(m),v(d.shape.points,f,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,f){var p=l.getItemGraphicEl(f),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(v(d.shape.points,m.shape.points,y,s,h,!1),Ve(g),Ve(d),ct(d,m,t),ct(g,m,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(f,"style"),S=m.fill;o.add(h),d.useStyle(Q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),Kt(d,p,"lineStyle"),Kt(g,p,"areaStyle");var x=p.getModel("areaStyle"),_=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=_,M(["emphasis","select","blur"],function(T){var A=p.getModel([T,"areaStyle"]),I=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(T).ignore=I&&_}),g.useStyle(Q(x.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof ye){var A=T.style;T.useStyle(W({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else T.useStyle(m),T.setColor(S),T.style.strokeNoScale=!0;var I=T.ensureState("emphasis");I.style=ot(w);var C=s.getStore().get(s.getDimensionIndex(T.__dimIdx),f);(C==null||isNaN(C))&&(C=""),ae(T,Ht(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:T.__dimIdx,defaultText:C,inheritColor:S,defaultOpacity:m.opacity})}),xt(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Tt),$m=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new bn(F(this.getData,this),F(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return ca(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,v=wd(this,t);return Zt("section",{header:u,sortBlocks:!0,blocks:z(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return Zt("nameValue",{markerType:"subItem",markerColor:v,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),n=this.coordinateSystem,i=r.getValues(z(n.dimensions,function(u){return r.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(It),Lr=Ad.value;function Ma(a,e){return Q({show:e},a)}var Xm=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),f=z(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Q({color:p.color},l));var g=ft(ot(p),{boundaryGap:t,splitNumber:r,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(et(v)){var y=g.name;g.name=v.replace("{value}",y??"")}else st(v)&&(g.name=v(g.name,g));var m=new Ut(g,null,this.ecModel);return ue(m,wn.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ft({lineStyle:{color:"#bbb"}},Lr.axisLine),axisLabel:Ma(Lr.axisLabel,!1),axisTick:Ma(Lr.axisTick,!1),splitLine:Ma(Lr.splitLine,!0),splitArea:Ma(Lr.splitArea,!0),indicator:[]},e})(Pt),Km=["axisLine","axisTickLabel","axisName"],qm=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes(),i=z(n,function(o){var s=o.model.get("showName")?o.name:"",l=new qe(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(Km,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),c=s.get("show"),h=l.get("color"),f=u.get("color"),p=B(h)?h:[h],d=B(f)?f:[f],g=[],y=[];function m(E,R,k){var N=k%R.length;return E[N]=E[N]||[],N}if(i==="circle")for(var S=n[0].getTicksCoords(),x=r.cx,_=r.cy,b=0;b<S.length;b++){if(v){var w=m(g,p,b);g[w].push(new ha({shape:{cx:x,cy:_,r:S[b].coord}}))}if(c&&b<S.length-1){var w=m(y,d,b);y[w].push(new Qc({shape:{cx:x,cy:_,r0:S[b].coord,r:S[b+1].coord}}))}}else for(var T,A=z(n,function(E,R){var k=E.getTicksCoords();return T=T==null?k.length-1:Math.min(k.length-1,T),z(k,function(N){return r.coordToPoint(N.coord,R)})}),I=[],b=0;b<=T;b++){for(var C=[],L=0;L<n.length;L++)C.push(A[L][b]);if(C[0]&&C.push(C[0].slice()),v){var w=m(g,p,b);g[w].push(new me({shape:{points:C}}))}if(c&&I){var w=m(y,d,b-1);y[w].push(new re({shape:{points:C.concat(I)}}))}I=C.slice().reverse()}var D=l.getLineStyle(),P=u.getAreaStyle();M(y,function(E,R){this.group.add(oe(E,{style:Q({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),M(g,function(E,R){this.group.add(oe(E,{style:Q({fill:"none",stroke:p[R%p.length]},D),silent:!0}))},this)},e.type="radar",e})(kt),jm=(function(a){V(e,a);function e(t,r,n){var i=a.call(this,t,r,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(ve),Jm=(function(){function a(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new jm(o,new Ki);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return a.prototype.getIndicatorAxes=function(){return this._indicatorAxes},a.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},a.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],n=r.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},a.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=Math.sqrt(t*t+r*r);t/=n,r/=n;for(var i=Math.atan2(-r,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var v=this._indicatorAxes[u],c=Math.abs(i-v.angle);c<o&&(s=v,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},a.prototype.resize=function(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=G(r[0],n),this.cy=G(r[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(et(s)||le(s))&&(s=[0,s]),this.r0=G(s[0],o),this.r=G(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var v=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),l.angle=v},this)},a.prototype.update=function(e,t){var r=this._indicatorAxes,n=this._model;M(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();M(r,function(v){v.scale.unionExtentFromData(u,u.mapDimension(v.dim))})}},this);var i=n.get("splitNumber"),o=new Ki;o.setExtent(0,i),o.setInterval(1),M(r,function(s,l){Td(s.scale,s.model,o)})},a.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.create=function(e,t){var r=[];return e.eachComponent("radar",function(n){var i=new a(n,e,t);r.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=r[n.get("radarIndex")||0])}),r},a.dimensions=[],a})();function Qm(a){a.registerCoordinateSystem("radar",Jm),a.registerComponentModel(Xm),a.registerComponentView(qm),a.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function t0(a){X(Qm),a.registerChartView(Ym),a.registerSeriesModel($m),a.registerLayout(Zm),a.registerProcessor(An("radar")),a.registerPreprocessor(Um)}var Gl="\0_ec_interaction_mutex";function e0(a,e,t){var r=os(a);r[e]=t}function r0(a,e,t){var r=os(a),n=r[e];n===t&&(r[e]=null)}function Bl(a,e){return!!os(a)[e]}function os(a){return a[Gl]||(a[Gl]={})}fa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Re);var _a=(function(a){V(e,a);function e(t){var r=a.call(this)||this;r._zr=t;var n=F(r._mousedownHandler,r),i=F(r._mousemoveHandler,r),o=F(r._mouseupHandler,r),s=F(r._mousewheelHandler,r),l=F(r._pinchHandler,r);return r.enable=function(u,v){this.disable(),this._opt=Q(ot(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},r.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!al(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Wa("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||Bl(this._zr,"globalPan"))){var r=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=r-i,l=n-o;this._x=r,this._y=n,this._opt.preventDefaultMouseMove&&je(t.event),Yh(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){al(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=Wa("zoomOnMouseWheel",t,this._opt),n=Wa("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!r&&!n)){if(r){var u=o>3?1.4:o>1?1.2:1.1,v=i>0?u:1/u;Jn(this,"zoom","zoomOnMouseWheel",t,{scale:v,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Jn(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Bl(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;Jn(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(th);function Jn(a,e,t,r,n){a.pointerChecker&&a.pointerChecker(r,n.originX,n.originY)&&(je(r.event),Yh(a,e,t,r,n))}function Yh(a,e,t,r,n){n.isAvailableBehavior=F(Wa,null,t,r),a.trigger(e,n)}function Wa(a,e,t){var r=t[a];return!a||r&&(!et(r)||e.event[r+"Key"])}function ss(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function ls(a,e,t,r){var n=a.target,i=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(r-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var a0={axisPointer:1,tooltip:1,brush:1};function Vn(a,e,t){var r=e.getComponentByElement(a.topTarget),n=r&&r.coordinateSystem;return r&&r!==t&&!a0.hasOwnProperty(r.mainType)&&n&&n.model!==t}function $h(a){if(et(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Qn,rn={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Fl=mt(rn),an={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Hl=mt(an),n0=(function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=$h(e);this._defsUsePending=[];var n=new $;this._root=n;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),$t(r,n,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;s0(this._defs,this._defsUsePending),this._defsUsePending=[];var v,c;if(o){var h=kn(o);h.length>=4&&(v={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(v&&s!=null&&l!=null&&(c=Kh(v,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=n;n=new $,n.add(f),f.scaleX=f.scaleY=c.scale,f.x=c.x,f.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:v,viewBoxTransform:c,named:i}},a.prototype._parseNode=function(e,t,r,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var v=Qn[s];if(v&&O(Qn,s)){l=v.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};r.push(h),s==="g"&&(u=h)}else n&&r.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var f=Wl[s];if(f&&O(Wl,s)){var p=f.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},a.prototype._parseText=function(e,t){var r=new jc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});qt(t,r),$t(e,r,this._defsUsePending,!1,!1),i0(r,t);var n=r.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=(function(){Qn={g:function(e,t){var r=new $;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new pt;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new ha;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new se;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Id;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Yl(r));var i=new re({shape:{points:n||[]},silent:!0});return qt(t,i),$t(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Yl(r));var i=new me({shape:{points:n||[]},silent:!0});return qt(t,i),$t(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new ye;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new $;return qt(t,s),$t(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),n=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new $;return qt(t,s),$t(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",n=Md(r);return qt(t,n),$t(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),a})(),Wl={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),n=parseInt(a.getAttribute("y2")||"0",10),i=new Oo(e,t,r,n);return Zl(a,i),Ul(a,i),i},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),n=new Cd(e,t,r);return Zl(a,n),Ul(a,n),n}};function Zl(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Ul(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),n=void 0;r&&r.indexOf("%")>0?n=parseInt(r,10)/100:r?n=parseFloat(r):n=0;var i={};Xh(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function qt(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,a.__inheritedStyle))}function Yl(a){for(var e=kn(a),t=[],r=0;r<e.length;r+=2){var n=parseFloat(e[r]),i=parseFloat(e[r+1]);t.push([n,i])}return t}function $t(a,e,t,r,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};a.nodeType===1&&(v0(a,e),Xh(a,o,s),r||c0(a,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=$l(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=$l(i,"stroke",o.stroke,t)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=z(kn(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function i0(a,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,n=r;!r||r==="auto"||r==="baseline"?n="alphabetic":r==="before-edge"||r==="text-before-edge"?n="top":r==="after-edge"||r==="text-after-edge"?n="bottom":(r==="central"||r==="mathematical")&&(n="middle"),a.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),a.style.textAlign=s)}}var o0=/^url\(\s*#(.*?)\)/;function $l(a,e,t,r){var n=t&&t.match(o0);if(n){var i=Dd(n[1]);r.push([a,e,i]);return}return t==="none"&&(t=null),t}function s0(a,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=a[r[2]]}}var l0=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kn(a){return a.match(l0)||[]}var u0=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ti=Math.PI/180;function v0(a,e){var t=a.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],n=null;t.replace(u0,function(c,h,f){return r.push(h,f),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=kn(o);switch(n=n||Mr(),s){case"translate":Je(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":eh(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Tn(n,n,-parseFloat(l[0])*ti,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ti);nl(n,[1,0,u,1,0,0],n);break;case"skewY":var v=Math.tan(parseFloat(l[0])*ti);nl(n,[1,v,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Xl=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Xh(a,e,t){var r=a.getAttribute("style");if(r){Xl.lastIndex=0;for(var n;(n=Xl.exec(r))!=null;){var i=n[1],o=O(rn,i)?rn[i]:null;o&&(e[o]=n[2]);var s=O(an,i)?an[i]:null;s&&(t[s]=n[2])}}}function c0(a,e,t){for(var r=0;r<Fl.length;r++){var n=Fl[r],i=a.getAttribute(n);i!=null&&(e[rn[n]]=i)}for(var r=0;r<Hl.length;r++){var n=Hl[r],i=a.getAttribute(n);i!=null&&(t[an[n]]=i)}}function Kh(a,e){var t=e.width/a.width,r=e.height/a.height,n=Math.min(t,r);return{scale:n,x:-(a.x+a.width/2)*n+(e.x+e.width/2),y:-(a.y+a.height/2)*n+(e.y+e.height/2)}}function h0(a,e){var t=new n0;return t.parse(a,e)}var f0=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),p0=(function(){function a(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=$h(t)}return a.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=g0(e.named),r=t.regions,n=t.regionsMap;this._regions=r,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},a.prototype._buildGraphic=function(e){var t,r;try{t=e&&h0(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,qr(r!=null)}catch(g){throw new Error(`Invalid svg format
|
|
4
|
-
`+g.message)}var n=new $;n.add(r),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,v=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(v=0,h=o):s&&(v=s.y,h=s.height),u==null||v==null){var f=r.getBoundingRect();u==null&&(u=f.x,c=f.width),v==null&&(v=f.y,h=f.height)}l=this._boundingRect=new wt(u,v,c,h)}if(s){var p=
|
|
5
|
-
`+i.message)}return y0(t,n),M(n,function(i){var o=i.name;S0(t,i),_0(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},a.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a})();function A0(a){for(var e,t=0;t<a.length;t++){var r=a[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function T0(a){return et(a)?typeof JSON<"u"&&JSON.parse?JSON.parse(a):new Function("return ("+a+");")():a}var Pr=K();const Ae={registerMap:function(a,e,t){if(e.svg){var r=new p0(a,e.svg);Pr.set(a,r)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var r=new w0(a,n,t);Pr.set(a,r)}},getGeoResource:function(a){return Pr.get(a)},getMapForUser:function(a){var e=Pr.get(a);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(a,e,t){var r=Pr.get(a);if(r)return r.load(e,t)}};var us=["rect","circle","line","ellipse","polygon","polyline","path"],M0=K(us),I0=K(us.concat(["g"])),C0=K(us.concat(["g"])),qh=_t();function Ia(a){var e=a.getItemStyle(),t=a.get("areaColor");return t!=null&&(e.fill=t),e}function ql(a){var e=a.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var jh=(function(){function a(e){var t=new $;this.uid=rh("ec_map_draw"),this._controller=new _a(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new $),t.add(this._svgGroup=new $)}return a.prototype.draw=function(e,t,r,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,v=this.group,c=l.getTransformInfo(),h=c.raw,f=c.roam,p=!u.childAt(0)||i;p?(v.x=f.x,v.y=f.y,v.scaleX=f.scaleX,v.scaleY=f.scaleY,v.dirty()):ct(v,f,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,n)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),r=K(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function v(f,p){return p&&(f=p(f)),f&&[f[0]*i.scaleX+i.x,f[1]*i.scaleY+i.y]}function c(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=v(f[g],d);y&&p.push(y)}return p}function h(f){return{shape:{points:c(f)}}}n.removeAll(),M(e.geo.regions,function(f){var p=f.name,d=t.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new $),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var S=m.get("silent",!0);S!=null&&(d.silent=S),r.set(p,{dataIdx:y,regionModel:m})}var x=[],_=[];M(f.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=ru(A,u)),M(A,function(C){x.push(new re(h(C)))})}else{var I=T.points;u&&(I=ru(I,u,!0)),M(I,function(C){_.push(new me(h(C)))})}});var b=v(f.getCenter(),l&&l.project);function w(T,A){if(T.length){var I=new $c({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(I),jl(e,I,y,m),Jl(e,I,p,m,o,y,b),A&&(ql(I),M(I.states,ql))}}w(x),w(_,!0)}),t.each(function(f,p){var d=r.get(p),g=d.dataIdx,y=d.regionModel;Ql(e,f,p,y,o,g),tu(e,f,p,y,o),eu(e,f,p,y,o)},this)},a.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=K(),i=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,v=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);M0.get(v)!=null&&c instanceof Qe&&jl(e,c,h,f),c instanceof Qe&&(c.culling=!0);var p=f.get("silent",!0);if(p!=null&&(c.silent=p),c.z2EmphasisLift=0,!o.namedFrom&&(C0.get(v)!=null&&Jl(e,c,s,f,l,h,null),Ql(e,c,s,f,l,h),tu(e,c,s,f,l),I0.get(v)!=null)){var d=eu(e,c,s,f,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(i,e)},a.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){_r(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},a.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},a.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},a.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},a.prototype._useSVG=function(e){var t=Ae.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},a.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ae.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},a.prototype._updateController=function(e,t,r){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,ss(o,u.dx,u.dy),r.dispatchAction(W(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,ls(o,u.scale,u.originX,u.originY),r.dispatchAction(W(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,v,c){return n.containPoint([v,c])&&!Vn(u,r,e)})},a.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=qh(t).ignore)})},a.prototype._updateMapSelectHandler=function(e,t,r,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},a})();function jl(a,e,t,r){var n=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Ia(n),u=Ia(i),v=Ia(s),c=Ia(o),h=a.data;if(h){var f=h.getItemVisual(t,"style"),p=h.getItemVisual(t,"decal");a.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Go(p,a.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=v,e.ensureState("blur").style=c,_r(e)}function Jl(a,e,t,r,n,i,o){var s=a.data,l=a.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),v=s&&s.getItemLayout(i);if(l||u||v&&v.showLabel){var c=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ae(e,Ht(r),{labelFetcher:h,labelDataIndex:c,defaultText:t},f);var p=e.getTextContent();if(p&&(qh(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Ql(a,e,t,r,n,i){a.data?a.data.setItemGraphicEl(i,e):ut(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:r&&r.option||{}}}function tu(a,e,t,r,n){a.data||Bo({el:e,componentModel:n,itemName:t,itemTooltipOption:r.get("tooltip")})}function eu(a,e,t,r,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return xt(e,o,i.get("blurScope"),i.get("disabled")),a.isGeo&&Ed(e,n,t),o}function ru(a,e,t){var r=[],n;function i(){n=[]}function o(){n.length&&(r.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(a,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),r}var D0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new jh(n);o.add(s.group),s.draw(t,r,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var v=u.point,c=u.offset,h=new ha({style:{fill:t.getData().getVisual("style").fill},shape:{cx:v[0]+c*9,cy:v[1],r:3},silent:!0,z2:8+(c?0:pa+1)});if(!c){var f=t.mainSeries.getData(),p=i.getName(l),d=f.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=f.getItemGraphicEl(d);ae(h,Ht(g),{labelFetcher:{getFormattedLabel:function(S,x){return t.getFormattedLabel(d,x)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){ah(h,S)}}o.add(h)}}})},e.type="map",e})(Tt),L0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var n=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=ca(this,{coordDimensions:["value"],encodeDefaulter:tt(nh,this)}),n=K(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);n.set(l,o)}var u=Ae.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(v){var c=v.name,h=n.get(c),f=v.properties&&v.properties.echartsStyle,p;h==null?(p={name:c},i.push(p)):p=r.getRawDataItem(h),f&&ft(p,f)}),r.appendData(i),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],v=0;v<l.length;v++){var c=l[v].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[v].originalData.get(h,c))||u.push(l[v].name)}return Zt("section",{header:u.join(", "),noHeader:!u.length,blocks:[Zt("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",n=Wt(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",r.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(It);function P0(a,e){var t={};return M(a,function(r){r.each(r.mapDimension("value"),function(n,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),a[0].map(a[0].mapDimension("value"),function(r,n){for(var i="ec-"+a[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,v=0;v<u;v++)s=Math.min(s,t[i][v]),l=Math.max(l,t[i][v]),o+=t[i][v];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function E0(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),n=r?"o"+r.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),M(e,function(t,r){for(var n=P0(z(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function R0(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var n={};M(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,v){var c=l.getName(v),h=s.getRegion(c);if(!(!h||isNaN(u))){var f=n[c]||0,p=s.dataToPoint(h.getCenter());n[c]=f+1,l.setItemLayout(v,{point:p,offset:f})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[r]=!0}})}var au=ji,ba=(function(a){V(e,a);function e(t){var r=a.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new gr,r._rawTransformable=new gr,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,n,i){return this._rect=new wt(t,r,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,n,i){this._transformTo(t,r,n,i),this._viewRect=new wt(t,r,n,i)},e.prototype._transformTo=function(t,r,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new wt(t,r,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,r){t&&(this._center=[G(t[0],r.getWidth()),G(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,n=t.y+t.height/2;return[r,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ji([],i,t),n=ji([],n,t),r.originX=i[0],r.originY=i[1],r.x=n[0]-i[0],r.y=n[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),Rd(this.transform||(this.transform=[]),r.transform||Mr()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Vd(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,n=new gr;return n.transform=r.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,n){var i=r?this._rawTransform:this.transform;return n=n||[],i?au(n,t,i):Ot(n,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?au([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,n){var i=nu(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=nu(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(gr);function nu(a){var e=a.seriesModel;return e?e.coordinateSystem:null}var V0={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Jh=["lng","lat"],lo=(function(a){V(e,a);function e(t,r,n){var i=a.call(this,t)||this;i.dimensions=Jh,i.type="geo",i._nameCoordMap=K(),i.map=r;var o=n.projection,s=Ae.load(r,n.nameMap,n.nameProperty),l=Ae.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,v=V0[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var f=u[h].getBoundingRect(o);c=c||f.clone(),c.union(f)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:Dt(n.aspectScale,v.aspectScale),i._invertLongitute=o?!1:v.invertLongitute,i}return e.prototype._transformTo=function(t,r,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new wt(t,r,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,n=0;n<r.length;n++){var i=r[n];if(i.type==="geoJSON"&&i.contain(t))return r[n]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,n){if(et(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,r,n)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return a.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,n){return a.prototype.dataToPoint.call(this,t,r,n)},e.prototype.convertToPixel=function(t,r,n){var i=iu(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=iu(r);return i===this?i.pointToData(n):null},e})(ba);ue(lo,ba);function iu(a){var e=a.geoModel,t=a.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ge).models[0]||{}).coordinateSystem:null}function ou(a,e){var t=a.get("boundingCoords");if(t!=null){var r=t[0],n=t[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=n[0],u=n[1];r=[1/0,1/0],n=[-1/0,-1/0];var v=function(b,w,T,A){for(var I=T-b,C=A-w,L=0;L<=100;L++){var D=L/100,P=i.project([b+I*D,w+C*D]);kd(r,r,P),Nd(n,n,P)}};v(o,s,l,s),v(l,s,l,u),v(l,u,o,u),v(o,u,l,s)}this.setBoundingRect(r[0],r[1],n[0]-r[0],n[1]-r[1])}}var c=this.getBoundingRect(),h=a.get("layoutCenter"),f=a.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,S;h&&f&&(m=[G(h[0],p),G(h[1],d)],S=G(f,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var x;if(y)x={},g>1?(x.width=S,x.height=S/g):(x.height=S,x.width=S*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var _=a.getBoxLayoutParams();_.aspect=g,x=ne(_,{width:p,height:d})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function k0(a,e){M(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var N0=(function(){function a(){this.dimensions=Jh}return a.prototype.create=function(e,t){var r=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new lo(l+s,l,W({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=ou,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=z(o,function(v){return v.get("nameMap")}),u=new lo(s,s,W({nameMap:Fo(l)},n(o[0])));u.zoomLimit=Xt.apply(null,z(o,function(v){return v.get("scaleLimit")})),r.push(u),u.resize=ou,u.resize(o[0],t),M(o,function(v){v.coordinateSystem=u,k0(u,v)})}),r},a.prototype.getFilledRegions=function(e,t,r,n){for(var i=(e||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ae.load(t,r,n);return M(l.regions,function(u){var v=u.name,c=o.get(v),h=u.properties&&u.properties.echartsStyle;c||(c={name:v},i.push(c)),h&&ft(c,h)}),i},a})(),Qh=new N0,z0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,n){var i=Ae.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Mn(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=Qh.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var n={};this._optionModelMap=ih(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ut(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},K()),r.selectedMap||(r.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ut(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var n=this.getRegionModel(t),i=r==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(st(i))return o.status=r,i(o);if(et(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,n=r.selectedMode;if(n){n!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(Pt);function su(a,e){return a.pointToProjected?a.pointToProjected(e):a.pointToData(e)}function vs(a,e,t,r){var n=a.getZoom(),i=a.getCenter(),o=e.zoom,s=a.projectedToPoint?a.projectedToPoint(i):a.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,a.setCenter(su(a,s),r)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}a.scaleX*=o,a.scaleY*=o;var v=(e.originX-a.x)*(o-1),c=(e.originY-a.y)*(o-1);a.x-=v,a.y-=c,a.updateTransform(),a.setCenter(su(a,s),r),a.setZoom(o*n)}return{center:a.getCenter(),zoom:a.getZoom()}}var O0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new jh(n));var o=this._mapDraw;o.draw(t,r,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,r,n)},e.prototype._handleRegionClick=function(t){var r;oh(t.target,function(n){return(r=ut(n).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ut(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(kt);function G0(a,e,t){Ae.registerMap(a,e,t)}function tf(a){a.registerCoordinateSystem("geo",Qh),a.registerComponentModel(z0),a.registerComponentView(O0),a.registerImpl("registerMap",G0),a.registerImpl("getMap",function(t){return Ae.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",a.registerAction(r,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;M(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var v=[];M(o,function(c,h){o[h]&&v.push(h)}),s.push({geoIndex:l.componentIndex,name:v})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),a.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,n){var i=t.componentType||"series";r.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=vs(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function B0(a){X(tf),a.registerChartView(D0),a.registerSeriesModel(L0),a.registerLayout(R0),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,E0),zd("map",a.registerAction)}function F0(a){var e=a;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,n;r=t.pop();)if(n=r.children,r.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function H0(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,n=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){U0(a);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(a.hierNode.prelim=n.hierNode.prelim+e(a,n),a.hierNode.modifier=a.hierNode.prelim-i):a.hierNode.prelim=i}else n&&(a.hierNode.prelim=n.hierNode.prelim+e(a,n));a.parentNode.hierNode.defaultAncestor=Y0(a,n,a.parentNode.hierNode.defaultAncestor||r[0],e)}function W0(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function lu(a){return arguments.length?a:K0}function Hr(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function Z0(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function U0(a){for(var e=a.children,t=e.length,r=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,n+=i.hierNode.change,r+=i.hierNode.shift+n}}function Y0(a,e,t,r){if(e){for(var n=a,i=a,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,v=o.hierNode.modifier,c=s.hierNode.modifier;s=ei(s),i=ri(i),s&&i;){n=ei(n),o=ri(o),n.hierNode.ancestor=a;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+r(s,i);h>0&&(X0($0(s,a,t),a,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,v+=o.hierNode.modifier}s&&!ei(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!ri(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-v,t=a)}return t}function ei(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function ri(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function $0(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function X0(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function K0(a,e){return a.parentNode===e.parentNode?1:2}var q0=(function(){function a(){this.parentPoint=[],this.childPoints=[]}return a})(),j0=(function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new q0},e.prototype.buildPath=function(t,r){var n=r.childPoints,i=n.length,o=r.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,v=u==="TB"||u==="BT"?0:1,c=1-v,h=G(r.forkPosition,1),f=[];f[v]=o[v],f[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[v]=s[v],t.lineTo(f[0],f[1]),f[v]=l[v],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];t.moveTo(d[0],d[1]),f[v]=d[v],t.lineTo(f[0],f[1])}},e})(Vt),J0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new $,t}return e.prototype.init=function(t,r){this._controller=new _a(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,r,n);var u=this._data;i.diff(u).add(function(v){uu(i,v)&&vu(i,v,null,s,t)}).update(function(v,c){var h=u.getItemGraphicEl(c);if(!uu(i,v)){h&&hu(u,c,h,s,t);return}vu(i,v,h,s,t)}).remove(function(v){var c=u.getItemGraphicEl(v);c&&hu(u,v,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(v,c){v.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,r){var n=t.getData(),i=[];n.each(function(c){var h=n.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];In(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var v=t.coordinateSystem=new ba;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),v.setCenter(t.get("center"),r),v.setZoom(t.get("zoom")),this.group.attr({x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,r,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Vn(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ss(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ls(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),n=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var n=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*n+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(Tt);function uu(a,e){var t=a.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function vu(a,e,t,r,n){var i=!t,o=a.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",v=a.tree.root,c=o.parentNode===v?o:o.parentNode||o,h=a.getItemGraphicEl(c.dataIndex),f=c.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,d=o.getLayout();i?(t=new sh(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,r.add(t),a.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ct(t,{x:d.x,y:d.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var y=v.children[0],m=y.getLayout(),S=y.children.length,x=void 0,_=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};x=Math.atan2(b.y-m.y,b.x-m.x),x<0&&(x=Math.PI*2+x),_=b.x<m.x,_&&(x=x-Math.PI)}else x=Math.atan2(d.y-m.y,d.x-m.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(_=d.x<m.x,_&&(x=x-Math.PI)):(_=d.x>m.x,_||(x=x-Math.PI));var w=_?"left":"right",T=s.getModel("label"),A=T.get("rotate"),I=A*(Math.PI/180),C=g.getTextContent();C&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-x:I,origin:"center"}),C.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),D=L==="relative"?Xa(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;D&&(ut(t).focus=D),Q0(n,o,v,t,p,f,d,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Od||ah(t.__edge,P)}})}function Q0(a,e,t,r,n,i,o,s){var l=e.getModel(),u=a.get("edgeShape"),v=a.get("layout"),c=a.getOrient(),h=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=r.__edge=new lh({shape:uo(v,c,h,n,n)})),ct(d,{shape:uo(v,c,h,i,o)},a));else if(u==="polyline"&&v==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}d||(d=r.__edge=new j0({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:f}})),ct(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},a)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(Q({strokeNoScale:!0,fill:null},p)),Kt(d,l,"lineStyle"),_r(d),s.add(d))}function cu(a,e,t,r,n){var i=e.tree.root,o=ef(i,a),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(a.dataIndex);if(u){var v=e.getItemGraphicEl(s.dataIndex),c=v.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),f=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&(f==="curve"?Ka(h,{shape:uo(p,d,g,l,l),style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:n}):f==="polyline"&&r.get("layout")==="orthogonal"&&Ka(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:n}))}}function ef(a,e){for(var t=e.parentNode===a?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===a?t:t.parentNode||t;return{source:t,sourceLayout:r}}function hu(a,e,t,r,n){var i=a.tree.getNodeByDataIndex(e),o=a.tree.root,s=ef(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Ka(t,{x:s.x+1,y:s.y+1},n,{cb:function(){r.remove(t),a.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,a.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){cu(u,a,r,n,l)}),cu(i,a,r,n,l)}function uo(a,e,t,r,n){var i,o,s,l,u,v,c,h;if(a==="radial"){u=r.rawX,c=r.rawY,v=n.rawX,h=n.rawY;var f=Hr(u,c),p=Hr(u,c+(h-c)*t),d=Hr(v,h+(c-h)*t),g=Hr(v,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=r.x,c=r.y,v=n.x,h=n.y,(e==="LR"||e==="RL")&&(i=u+(v-u)*t,o=c,s=v+(u-v)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=c+(h-c)*t,s=v,l=h+(c-h)*t);return{x1:u,y1:c,x2:v,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var ee=_t();function rf(a){var e=a.mainData,t=a.datas;t||(t={main:e},a.datasAttr={main:"data"}),a.datas=a.mainData=null,af(e,t,a),M(t,function(r){M(e.TRANSFERABLE_METHODS,function(n){r.wrapMethod(n,tt(tS,a))})}),e.wrapMethod("cloneShallow",tt(rS,a)),M(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,tt(eS,a))}),qr(t[e.dataType]===e)}function tS(a,e){if(iS(this)){var t=W({},ee(this).datas);t[this.dataType]=e,af(e,t,a)}else cs(e,this.dataType,ee(this).mainData,a);return e}function eS(a,e){return a.struct&&a.struct.update(),e}function rS(a,e){return M(ee(e).datas,function(t,r){t!==e&&cs(t.cloneShallow(),r,e,a)}),e}function aS(a){var e=ee(this).mainData;return a==null||e==null?e:ee(e).datas[a]}function nS(){var a=ee(this).mainData;return a==null?[{data:a}]:z(mt(ee(a).datas),function(e){return{type:e,data:ee(a).datas[e]}})}function iS(a){return ee(a).mainData===a}function af(a,e,t){ee(a).datas={},M(e,function(r,n){cs(r,n,a,t)})}function cs(a,e,t,r){ee(t).datas[e]=a,ee(a).mainData=t,a.dataType=e,r.struct&&(a[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=a),a.getLinkedData=aS,a.getLinkedDataAll=nS}var oS=(function(){function a(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return a.prototype.isRemoved=function(){return this.dataIndex<0},a.prototype.eachNode=function(e,t,r){st(e)&&(r=t,t=e,e=null),e=e||{},et(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,r);n==="postorder"&&t.call(r,this)},a.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var n=this.children[r];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,n=r.length;t<n;t++){var i=r[t].getNodeById(e);if(i)return i}},a.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,n=r.length;t<n;t++){var i=r[t].contains(e);if(i)return i}},a.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},a.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},a.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},a.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},a.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},a.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},a.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},a})(),hs=(function(){function a(e){this.type="tree",this._nodes=[],this.hostModel=e}return a.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},a.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},a.prototype.getNodeById=function(e){return this.root.getNodeById(e)},a.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,n=t.length;r<n;r++)t[r].dataIndex=-1;for(var r=0,n=e.count();r<n;r++)t[e.getRawIndex(r)].dataIndex=r},a.prototype.clearLayouts=function(){this.data.clearItemLayouts()},a.createTree=function(e,t,r){var n=new a(t),i=[],o=1;s(e);function s(v,c){var h=v.value;o=Math.max(o,B(h)?h.length:1),i.push(v);var f=new oS(xe(v.name,""),n);c?sS(f,c):n.root=f,n._nodes.push(f);var p=v.children;if(p)for(var d=0;d<p.length;d++)s(p[d],f)}n.root.updateDepthAndHeight(0);var l=Ho(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Bt(l,t);return u.initData(i),r&&r(u),rf({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},a})();function sS(a,e){var t=e.children;a.parentNode!==e&&(t.push(a),a.parentNode=e)}function ra(a,e,t){if(a&&dt(e,a.type)>=0){var r=t.getData().tree.root,n=a.targetNode;if(et(n)&&(n=r.getNodeById(n)),n&&r.contains(n))return{node:n};var i=a.targetNodeId;if(i!=null&&(n=r.getNodeById(i)))return{node:n}}}function nf(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function fs(a,e){var t=nf(a);return dt(t,e)>=0}function Nn(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var lS=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},n=t.leaves||{},i=new Ut(n,this,this.ecModel),o=hs.createTree(r,this,s);function s(c){c.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,v=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=v}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Zt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Nn(n,this),r.collapsed=!n.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(It);function uS(a,e,t){for(var r=[a],n=[],i;i=r.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=n.pop();)e(i,t)}function Er(a,e){for(var t=[a],r;r=t.pop();)if(e(r),r.isExpand){var n=r.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function vS(a,e){a.eachSeriesByType("tree",function(t){cS(t,e)})}function cS(a,e){var t=Z0(a,e);a.layoutInfo=t;var r=a.get("layout"),n=0,i=0,o=null;r==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=lu(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(n=t.width,i=t.height,o=lu());var s=a.getData().tree.root,l=s.children[0];if(l){F0(s),uS(l,H0,o),s.hierNode.modifier=-l.hierNode.prelim,Er(l,W0);var u=l,v=l,c=l;Er(l,function(S){var x=S.getLayout().x;x<u.getLayout().x&&(u=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=u===v?1:o(u,v)/2,f=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(r==="radial")p=n/(v.getLayout().x+h+f),d=i/(c.depth-1||1),Er(l,function(S){g=(S.getLayout().x+f)*p,y=(S.depth-1)*d;var x=Hr(g,y);S.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var m=a.getOrient();m==="RL"||m==="LR"?(d=i/(v.getLayout().x+h+f),p=n/(c.depth-1||1),Er(l,function(S){y=(S.getLayout().x+f)*d,g=m==="LR"?(S.depth-1)*p:n-(S.depth-1)*p,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(v.getLayout().x+h+f),d=i/(c.depth-1||1),Er(l,function(S){g=(S.getLayout().x+f)*p,y=m==="TB"?(S.depth-1)*d:i-(S.depth-1)*d,S.setLayout({x:g,y},!0)}))}}}function hS(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");W(s,o)})})}function fS(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var n=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=vs(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function pS(a){a.registerChartView(J0),a.registerSeriesModel(lS),a.registerLayout(vS),a.registerVisual(hS),fS(a)}var fu=["treemapZoomToNode","treemapRender","treemapMove"];function dS(a){for(var e=0;e<fu.length;e++)a.registerAction({type:fu[e],update:"updateView"},Re);a.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ra(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=fs(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function of(a){var e=a.getData(),t=e.tree,r={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Gd(a.ecModel,i.name||i.dataIndex+"",r);n.setVisual("decal",o)})}var gS=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};sf(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,r);i=t.levels=yS(i,r);var l=z(i||[],function(c){return new Ut(c,s,r)},this),u=hs.createTree(n,this,v);function v(c){c.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Zt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Nn(n,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=K(),this._idIndexMapCount=0);var n=r.get(t);return n==null&&r.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){of(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(It);function sf(a){var e=0;M(a.children,function(r){sf(r);var n=r.value;B(n)&&(n=n[0]),e+=n});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}function yS(a,e){var t=Gt(e.get("color")),r=Gt(e.get(["aria","decal","decals"]));if(t){a=a||[];var n,i;M(a,function(s){var l=new Ut(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(i=!0)});var o=a[0]||(a[0]={});return n||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),a}}var mS=8,pu=8,ai=5,SS=(function(){function a(e){this.group=new $,e.add(this.group)}return a.prototype.render=function(e,t,r,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,c,u),this._renderContent(e,c,s,l,u,v,n),Wo(o,c.pos,c.box)}},a.prototype._prepare=function(e,t,r){for(var n=e;n;n=n.parentNode){var i=xe(n.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+mS*2,t.emptyItemWidth);t.totalWidth+=s+pu,t.renderList.push({node:n,text:i,width:s})}},a.prototype._renderContent=function(e,t,r,n,i,o,s){for(var l=0,u=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=Bd(t.pos,t.box),h=t.totalWidth,f=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=f.length-1;d>=0;d--){var g=f[d],y=g.node,m=g.width,S=g.text;h>c.width&&(h-=m-u,m=u,S=null);var x=new re({shape:{points:xS(l,0,m,v,d===f.length-1,d===0)},style:Q(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new vt({style:St(i,{text:S})}),textConfig:{position:"inside"},z2:pa*1e4,onclick:tt(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=St(o,{text:S}),x.ensureState("emphasis").style=p,xt(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),_S(x,e,y),l+=m+pu}},a.prototype.remove=function(){this.group.removeAll()},a})();function xS(a,e,t,r,n,i){var o=[[n?a:a-ai,e],[a+t,e],[a+t,e+r],[n?a:a-ai,e+r]];return!i&&o.splice(2,0,[a+t+ai,e+r/2]),!n&&o.push([a,e+r/2]),o}function _S(a,e,t){ut(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Nn(t,e)}}var bS=(function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:n,easing:i}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},a})();function wS(){return new bS}var vo=$,du=pt,gu=3,yu="label",mu="upperLabel",AS=pa*10,TS=pa*2,MS=pa*3,We=vh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Su=function(a){var e=We(a);return e.stroke=e.fill=e.lineWidth=null,e},nn=_t(),IS=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Rr(),t}return e.prototype.render=function(t,r,n,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(dt(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=ra(i,s,t),u=i&&i.type,v=t.layoutInfo,c=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(v),d=t.get("animation"),g=this._doRender(p,t,f);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,f):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new vo,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,n){var i=r.getData().tree,o=this._oldTree,s=Rr(),l=Rr(),u=this._storage,v=[];function c(m,S,x,_){return CS(r,l,u,n,s,v,m,S,x,_)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var f=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===f.width&&p.height===f.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function d(m,S,x,_,b){_?(S=m,M(m,function(A,I){!A.isRemoved()&&T(I,I)})):new ke(S,m,w,w).add(T).update(T).remove(tt(T,null)).execute();function w(A){return A.getId()}function T(A,I){var C=A!=null?m[A]:null,L=I!=null?S[I]:null,D=c(C,L,x,b);D&&d(C&&C.viewChildren||[],L&&L.viewChildren||[],D,_,b+1)}}function g(m){var S=Rr();return m&&M(m,function(x,_){var b=S[_];M(x,function(w){w&&(b.push(w),nn(w).willDelete=!0)})}),S}function y(){M(h,function(m){M(m,function(S){S.parent&&S.parent.remove(S)})}),M(v,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,r,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(st(o)?0:o)||0,u=(st(s)?null:s)||"cubicOut",v=wS();M(r.willDeleteEls,function(c,h){M(c,function(f,p){if(!f.invisible){var d=f.parent,g,y=nn(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&v.add(f,g,l,0,u)}})}),M(this._storage,function(c,h){M(c,function(f,p){var d=r.lastsForAnimation[h][p],g={};d&&(f instanceof $?d.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=d.oldX,f.y=d.oldY):(d.oldShape&&(g.shape=W({},f.shape),f.setShape(d.oldShape)),d.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),v.add(f,g,l,0,u))})},this),this._state="animating",v.finished(F(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),r||(r=this._controller=new _a(t.getZr()),r.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),r.on("pan",F(this._onPan,this)),r.on("zoom",F(this._onZoom,this)));var i=new wt(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>gu||Math.abs(t.dy)>gu)){var r=this.seriesModel.getData().tree.root;if(!r)return;var n=r.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var r=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new wt(s.x,s.y,s.width,s.height),u=null,v=this._controllerHost;u=v.zoomLimit;var c=v.zoom=v.zoom||1;if(c*=i,u){var h=u.min||0,f=u.max||1/0;c=Math.max(Math.min(f,c),h)}var p=c/v.zoom;v.zoom=c;var d=this.seriesModel.layoutInfo;r-=d.x,n-=d.y;var g=Mr();Je(g,g,[-r,-n]),eh(g,g,[p,p]),Je(g,g,[r,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(n){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&uh(u,v)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new SS(this.group))).render(t,r,n.node,function(o){i._state!=="animating"&&(fs(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rr(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})(Tt);function Rr(){return{nodeGroup:[],background:[],content:[]}}function CS(a,e,t,r,n,i,o,s,l,u){if(!o)return;var v=o.getLayout(),c=a.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var f=v.width,p=v.height,d=v.borderWidth,g=v.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,x=v.upperHeight,_=S&&S.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),I=b.get("borderRadius")||0,C=at("nodeGroup",vo);if(!C)return;if(l.add(C),C.x=v.x||0,C.y=v.y||0,C.markRedraw(),nn(C).nodeWidth=f,nn(C).nodeHeight=p,v.isAboveViewRoot)return C;var L=at("background",du,u,TS);L&&Z(C,L,_&&v.upperLabelHeight);var D=h.getModel("emphasis"),P=D.get("focus"),E=D.get("blurScope"),R=D.get("disabled"),k=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)il(C)&&Gr(C,!1),L&&(Gr(L,!R),c.setItemGraphicEl(o.dataIndex,L),ol(L,k,E));else{var N=at("content",du,u,MS);N&&U(C,N),L.disableMorphing=!0,L&&il(L)&&Gr(L,!1),Gr(C,!R),c.setItemGraphicEl(o.dataIndex,C);var H=h.getShallow("cursor");H&&N.attr("cursor",H),ol(C,k,E)}return C;function Z(j,Y,lt){var nt=ut(Y);if(nt.dataIndex=o.dataIndex,nt.seriesIndex=a.seriesIndex,Y.setShape({x:0,y:0,width:f,height:p,r:I}),g)q(Y);else{Y.invisible=!1;var ht=o.getVisual("style"),Mt=ht.stroke,Nt=Su(b);Nt.fill=Mt;var gt=We(w);gt.fill=w.get("borderColor");var Et=We(T);Et.fill=T.get("borderColor");var Yt=We(A);if(Yt.fill=A.get("borderColor"),lt){var ie=f-2*d;rt(Y,Mt,ht.opacity,{x:d,y:0,width:ie,height:x})}else Y.removeTextContent();Y.setStyle(Nt),Y.ensureState("emphasis").style=gt,Y.ensureState("blur").style=Et,Y.ensureState("select").style=Yt,_r(Y)}j.add(Y)}function U(j,Y){var lt=ut(Y);lt.dataIndex=o.dataIndex,lt.seriesIndex=a.seriesIndex;var nt=Math.max(f-2*d,0),ht=Math.max(p-2*d,0);if(Y.culling=!0,Y.setShape({x:d,y:d,width:nt,height:ht,r:I}),g)q(Y);else{Y.invisible=!1;var Mt=o.getVisual("style"),Nt=Mt.fill,gt=Su(b);gt.fill=Nt,gt.decal=Mt.decal;var Et=We(w),Yt=We(T),ie=We(A);rt(Y,Nt,Mt.opacity,null),Y.setStyle(gt),Y.ensureState("emphasis").style=Et,Y.ensureState("blur").style=Yt,Y.ensureState("select").style=ie,_r(Y)}j.add(Y)}function q(j){!j.invisible&&i.push(j)}function rt(j,Y,lt,nt){var ht=h.getModel(nt?mu:yu),Mt=xe(h.get("name"),null),Nt=ht.getShallow("show");ae(j,Ht(h,nt?mu:yu),{defaultText:Nt?Mt:null,inheritColor:Y,defaultOpacity:lt,labelFetcher:a,labelDataIndex:o.dataIndex});var gt=j.getTextContent();if(gt){var Et=gt.style,Yt=Fd(Et.padding||0);nt&&(j.setTextConfig({layoutRect:nt}),gt.disableLabelLayout=!0),gt.beforeUpdate=function(){var Oe=Math.max((nt?nt.width:j.shape.width)-Yt[1]-Yt[3],0),Cr=Math.max((nt?nt.height:j.shape.height)-Yt[0]-Yt[2],0);(Et.width!==Oe||Et.height!==Cr)&>.setStyle({width:Oe,height:Cr})},Et.truncateMinChar=2,Et.lineOverflow="truncate",J(Et,nt,v);var ie=gt.getState("emphasis");J(ie?ie.style:null,nt,v)}}function J(j,Y,lt){var nt=j?j.text:null;if(!Y&<.isLeafRoot&&nt!=null){var ht=a.get("drillDownIcon",!0);j.text=ht?ht+" "+nt:nt}}function at(j,Y,lt,nt){var ht=m!=null&&t[j][m],Mt=n[j];return ht?(t[j][m]=null,Ct(Mt,ht)):g||(ht=new Y,ht instanceof Qe&&(ht.z2=DS(lt,nt)),ce(Mt,ht)),e[j][y]=ht}function Ct(j,Y){var lt=j[y]={};Y instanceof vo?(lt.oldX=Y.x,lt.oldY=Y.y):lt.oldShape=W({},Y.shape)}function ce(j,Y){var lt=j[y]={},nt=o.parentNode,ht=Y instanceof $;if(nt&&(!r||r.direction==="drillDown")){var Mt=0,Nt=0,gt=n.background[nt.getRawIndex()];!r&>&>.oldShape&&(Mt=gt.oldShape.width,Nt=gt.oldShape.height),ht?(lt.oldX=0,lt.oldY=Nt):lt.oldShape={x:Mt,y:Nt,width:0,height:0}}lt.fadein=!ht}}function DS(a,e){return a*AS+e}var aa=M,LS=Rt,on=-1,At=(function(){function a(e){var t=e.mappingMethod,r=e.type,n=this.option=ot(e);this.type=r,this.mappingMethod=t,this._normalizeData=RS[t];var i=a.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ni(n),PS(n)):t==="category"?n.categories?ES(n):ni(n,!0):(qr(t!=="linear"||n.dataExtent),ni(n))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return F(this._normalizeData,this)},a.listVisualTypes=function(){return mt(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){Rt(e)?M(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var n,i=B(e)?[]:Rt(e)?{}:(n=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);n?i=l:i[s]=l}),i},a.retrieveVisuals=function(e){var t={},r;return e&&aa(a.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(LS(e)){var t=[];aa(e,function(r,n){t.push(n)}),e=t}else return[];return e.sort(function(r,n){return n==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||et(l)&&l===e+"")return o;r&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],v=u.interval,c=u.close;if(v){if(v[0]===-1/0){if(Da(c[1],e,v[1]))return o}else if(v[1]===1/0){if(Da(c[0],v[0],e))return o}else if(Da(c[0],v[0],e)&&Da(c[1],e,v[1]))return o;r&&h(v[0],o),r&&h(v[1],o)}}if(r)return e===1/0?t.length-1:e===-1/0?0:n;function h(f,p){var d=Math.abs(f-e);d<i&&(i=d,n=p)}},a.visualHandlers={color:{applyVisual:Vr("color"),getColorMapper:function(){var e=this.option;return F(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),Wr.call(this,t)}:function(t,r,n){var i=!!n;return!r&&(t=this._normalizeData(t)),n=Wn(t,e.parsedVisual,n),i?n:Hn(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Hn(Wn(e,this.option.parsedVisual),"rgba")},category:Wr,piecewise:function(e,t){var r=ho.call(this,t);return r==null&&(r=Hn(Wn(e,this.option.parsedVisual),"rgba")),r},fixed:Ze}},colorHue:Ca(function(e,t){return Yr(e,t)}),colorSaturation:Ca(function(e,t){return Yr(e,null,t)}),colorLightness:Ca(function(e,t){return Yr(e,null,null,t)}),colorAlpha:Ca(function(e,t){return qa(e,t)}),decal:{applyVisual:Vr("decal"),_normalizedToVisual:{linear:null,category:Wr,piecewise:null,fixed:null}},opacity:{applyVisual:Vr("opacity"),_normalizedToVisual:co([0,1])},liftZ:{applyVisual:Vr("liftZ"),_normalizedToVisual:{linear:Ze,category:Ze,piecewise:Ze,fixed:Ze}},symbol:{applyVisual:function(e,t,r){var n=this.mapValueToVisual(e);r("symbol",n)},_normalizedToVisual:{linear:xu,category:Wr,piecewise:function(e,t){var r=ho.call(this,t);return r==null&&(r=xu.call(this,e)),r},fixed:Ze}},symbolSize:{applyVisual:Vr("symbolSize"),_normalizedToVisual:co([0,1])}},a})();function PS(a){var e=a.pieceList;a.hasSpecialVisual=!1,M(e,function(t,r){t.originIndex=r,t.visual!=null&&(a.hasSpecialVisual=!0)})}function ES(a){var e=a.categories,t=a.categoryMap={},r=a.visual;if(aa(e,function(o,s){t[o]=s}),!B(r)){var n=[];Rt(r)?aa(r,function(o,s){var l=t[s];n[l??on]=o}):n[on]=r,r=lf(a,n)}for(var i=e.length-1;i>=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function ni(a,e){var t=a.visual,r=[];Rt(t)?aa(t,function(i){r.push(i)}):t!=null&&r.push(t);var n={color:1,symbol:1};!e&&r.length===1&&!n.hasOwnProperty(a.type)&&(r[1]=r[0]),lf(a,r)}function Ca(a){return{applyVisual:function(e,t,r){var n=this.mapValueToVisual(e);r("color",a(t("color"),n))},_normalizedToVisual:co([0,1])}}function xu(a){var e=this.option.visual;return e[Math.round(it(a,[0,1],[0,e.length-1],!0))]||{}}function Vr(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function Wr(a){var e=this.option.visual;return e[this.option.loop&&a!==on?a%e.length:a]}function Ze(){return this.option.visual[0]}function co(a){return{linear:function(e){return it(e,a,this.option.visual,!0)},category:Wr,piecewise:function(e,t){var r=ho.call(this,t);return r==null&&(r=it(e,a,this.option.visual,!0)),r},fixed:Ze}}function ho(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=At.findPieceIndex(a,t),n=t[r];if(n&&n.visual)return n.visual[this.type]}}function lf(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=z(e,function(t){var r=Hd(t);return r||[0,0,0,1]})),e}var RS={linear:function(a){return it(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=At.findPieceIndex(a,e,!0);if(t!=null)return it(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e??on},fixed:Re};function Da(a,e,t){return a?e<=t:e<t}var VS="itemStyle",uf=_t();const kS={seriesType:"treemap",reset:function(a){var e=a.getData().tree,t=e.root;t.isRemoved()||vf(t,{},a.getViewRoot().getAncestors(),a)}};function vf(a,e,t,r){var n=a.getModel(),i=a.getLayout(),o=a.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(VS),l=NS(s,e,r),u=o.ensureUniqueItemVisual(a.dataIndex,"style"),v=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=_u(l),v=zS(c,h)),u.stroke=v;var f=a.viewChildren;if(!f||!f.length)h=_u(l),u.fill=h;else{var p=OS(a,n,i,s,l,f);M(f,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=GS(n,l,d,g,p,r);vf(d,y,t,r)}})}}}function NS(a,e,t){var r=W({},e),n=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=a.get(i);n[i]=null,o!=null&&(r[i]=o)}),r}function _u(a){var e=ii(a,"color");if(e){var t=ii(a,"colorAlpha"),r=ii(a,"colorSaturation");return r&&(e=Yr(e,null,null,r)),t&&(e=qa(e,t)),e}}function zS(a,e){return e!=null?Yr(e,null,null,a):null}function ii(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function OS(a,e,t,r,n,i){if(!(!i||!i.length)){var o=oi(e,"color")||n.color!=null&&n.color!=="none"&&(oi(e,"colorAlpha")||oi(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var v=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(v==="index"||v==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new At(c);return uf(h).drColorMappingBy=v,h}}}function oi(a,e){var t=a.get(e);return B(t)&&t.length?{name:e,range:t}:null}function GS(a,e,t,r,n,i){var o=W({},e);if(n){var s=n.type,l=s==="color"&&uf(n).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var na=Math.max,sn=Math.min,bu=Xt,ps=M,cf=["itemStyle","borderWidth"],BS=["itemStyle","gapWidth"],FS=["upperLabel","show"],HS=["upperLabel","height"];const WS={seriesType:"treemap",reset:function(a,e,t,r){var n=t.getWidth(),i=t.getHeight(),o=a.option,s=ne(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=G(bu(s.width,l[0]),n),v=G(bu(s.height,l[1]),i),c=r&&r.type,h=["treemapZoomToNode","treemapRootToNode"],f=ra(r,h,a),p=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,d=a.getViewRoot(),g=nf(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?KS(a,f,d,u,v):p?[p.width,p.height]:[u,v],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),hf(d,S,!1,0),x=d.getLayout(),ps(g,function(b,w){var T=(g[w+1]||d).getValue();b.setLayout(W({dataExtent:[T,T],borderWidth:0,upperHeight:0},x))})}var _=a.getData().tree.root;_.setLayout(qS(s,p,f),!0),a.setLayoutInfo(s),ff(_,new wt(-s.x,-s.y,n,i),g,d,0)}};function hf(a,e,t,r){var n,i;if(!a.isRemoved()){var o=a.getLayout();n=o.width,i=o.height;var s=a.getModel(),l=s.get(cf),u=s.get(BS)/2,v=pf(s),c=Math.max(l,v),h=l-u,f=c-u;a.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:v},!0),n=na(n-2*h,0),i=na(i-h-f,0);var p=n*i,d=ZS(a,s,p,e,t,r);if(d.length){var g={x:h,y:f,width:n,height:i},y=sn(n,i),m=1/0,S=[];S.area=0;for(var x=0,_=d.length;x<_;){var b=d[x];S.push(b),S.area+=b.getLayout().area;var w=XS(S,y,e.squareRatio);w<=m?(x++,m=w):(S.area-=S.pop().getLayout().area,wu(S,y,g,u,!1),y=sn(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&wu(S,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(t=!0)}for(var x=0,_=d.length;x<_;x++)hf(d[x],e,t,r+1)}}}function ZS(a,e,t,r,n,i){var o=a.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(n&&!l)return a.viewChildren=[];o=Lt(o,function(f){return!f.isRemoved()}),YS(o,s);var u=$S(e,o,s);if(u.sum===0)return a.viewChildren=[];if(u.sum=US(e,t,u.sum,s,o),u.sum===0)return a.viewChildren=[];for(var v=0,c=o.length;v<c;v++){var h=o[v].getValue()/u.sum*t;o[v].setLayout({area:h})}return l&&(o.length&&a.setLayout({isLeafRoot:!0},!0),o.length=0),a.viewChildren=o,a.setLayout({dataExtent:u.dataExtent},!0),o}function US(a,e,t,r,n){if(!r)return t;for(var i=a.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[r==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return r==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function YS(a,e){return e&&a.sort(function(t,r){var n=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:n}),a}function $S(a,e,t){for(var r=0,n=0,i=e.length;n<i;n++)r+=e[n].getValue();var o=a.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],ps(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function XS(a,e,t){for(var r=0,n=1/0,i=0,o=void 0,s=a.length;i<s;i++)o=a[i].getLayout().area,o&&(o<n&&(n=o),o>r&&(r=o));var l=a.area*a.area,u=e*e*t;return l?na(u*r/l,l/(u*n)):1/0}function wu(a,e,t,r,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],v=e?a.area/e:0;(n||v>t[l[o]])&&(v=t[l[o]]);for(var c=0,h=a.length;c<h;c++){var f=a[c],p={},d=v?f.getLayout().area/v:0,g=p[l[o]]=na(v-2*r,0),y=t[s[i]]+t[l[i]]-u,m=c===h-1||y<d?y:d,S=p[l[i]]=na(m-2*r,0);p[s[o]]=t[s[o]]+sn(r,g/2),p[s[i]]=u+sn(r,S/2),u+=m,f.setLayout(p,!0)}t[s[o]]+=v,t[l[o]]-=v}function KS(a,e,t,r,n){var i=(e||{}).node,o=[r,n];if(!i||i===t)return o;for(var s,l=r*n,u=l*a.option.zoomToNodeRatio;s=i.parentNode;){for(var v=0,c=s.children,h=0,f=c.length;h<f;h++)v+=c[h].getValue();var p=i.getValue();if(p===0)return o;u*=v/p;var d=s.getModel(),g=d.get(cf),y=Math.max(g,pf(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>sl&&(u=sl),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,n*m]}function qS(a,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var n=t.node,i=n.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:a.width/2-o[0],y:a.height/2-o[1]}}function ff(a,e,t,r,n){var i=a.getLayout(),o=t[n],s=o&&o===a;if(!(o&&!s||n===t.length&&a!==r)){a.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new wt(e.x-i.x,e.y-i.y,e.width,e.height);ps(a.viewChildren||[],function(u){ff(u,l,t,r,n+1)})}}function pf(a){return a.get(FS)?a.get(HS):0}function jS(a){a.registerSeriesModel(gS),a.registerChartView(IS),a.registerVisual(kS),a.registerLayout(WS),dS(a)}function JS(a){var e=a.findComponents({mainType:"legend"});!e||!e.length||a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){le(u)&&(u=o[u]);for(var v=0;v<e.length;v++)if(!e[v].isSelected(u))return!1}return!0})})}function QS(a){var e={};a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),n=t.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++){var h=l.getShallow(v[c],!0);h!=null&&r.setItemVisual(o,v[c],h)}}),r.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){et(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),v=n.ensureUniqueItemVisual(o,"style");W(v,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)n.setItemVisual(o,c[h],r.getItemVisual(l,c[h]))}})})}function La(a){return a instanceof Array||(a=[a,a]),a}function t1(a){a.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),n=La(e.get("edgeSymbol")),i=La(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",n&&n[0]),r.setVisual("toSymbol",n&&n[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=t.getEdgeByIndex(o),u=La(s.getShallow("symbol",!0)),v=La(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=r.ensureUniqueItemVisual(o,"style");switch(W(h,c),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),v[0]&&l.setVisual("fromSymbolSize",v[0]),v[1]&&l.setVisual("toSymbolSize",v[1])})})}var fo="-->",zn=function(a){return a.get("autoCurveness")||null},df=function(a,e){var t=zn(a),r=20,n=[];if(le(t))r=t;else if(B(t)){a.__curvenessList=t;return}e>r&&(r=e);var i=r%2?r+2:r+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));a.__curvenessList=n},ia=function(a,e,t){var r=[a.id,a.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,r,n].join(fo)},gf=function(a){var e=a.split(fo);return[e[0],e[2],e[1]].join(fo)},e1=function(a,e){var t=ia(a.node1,a.node2,e);return e.__edgeMap[t]},r1=function(a,e){var t=po(ia(a.node1,a.node2,e),e),r=po(ia(a.node2,a.node1,e),e);return t+r},po=function(a,e){var t=e.__edgeMap;return t[a]?t[a].length:0};function a1(a){zn(a)&&(a.__curvenessList=[],a.__edgeMap={},df(a))}function n1(a,e,t,r){if(zn(t)){var n=ia(a,e,t),i=t.__edgeMap,o=i[gf(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(r)}}function ds(a,e,t,r){var n=zn(e),i=B(n);if(!n)return null;var o=e1(a,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=r1(a,e);df(e,u),a.lineStyle=a.lineStyle||{};var v=ia(a.node1,a.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var f=gf(v),p=po(f,e),d=c[s+p+h];return r?i?n&&n[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function yf(a){var e=a.coordinateSystem;if(!(e&&e.type!=="view")){var t=a.getGraph();t.eachNode(function(r){var n=r.getModel();r.setLayout([+n.get("x"),+n.get("y")])}),gs(t,a)}}function gs(a,e){a.eachEdge(function(t,r){var n=da(t.getModel().get(["lineStyle","curveness"]),-ds(t,e,r,!0),0),i=Le(t.node1.getLayout()),o=Le(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function i1(a,e){a.eachSeriesByType("graph",function(t){var r=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];M(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,v=0;v<o.length;v++){var c=i.get(o[v],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}gs(i.graph,t)}else(!r||r==="none")&&yf(t)})}function Zr(a){var e=a.coordinateSystem;if(e.type!=="view")return 1;var t=a.option.nodeScaleRatio,r=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/r}function Ur(a){var e=a.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Au=Math.PI,si=[];function ys(a,e,t,r){var n=a.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=a.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,v=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=n.pointToData(r),f=h[0],p=h[1],d=[f-l,p-u];ga(d,d),Wd(d,d,v),t.setLayout([l+d[0],u+d[1]],!0);var g=a.get(["circular","rotateLabel"]);mf(t,g,l,u)}o1[e](a,s,o,v,l,u,c),s.eachEdge(function(y,m){var S=da(y.getModel().get(["lineStyle","curveness"]),ds(y,a,m),0),x=Le(y.node1.getLayout()),_=Le(y.node2.getLayout()),b,w=(x[0]+_[0])/2,T=(x[1]+_[1])/2;+S&&(S*=3,b=[l*S+w*(1-S),u*S+T*(1-S)]),y.setLayout([x,_,b])})}}}var o1={value:function(a,e,t,r,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(v){var c=v.getValue("value"),h=u*(l?c:1)/2;s+=h,v.setLayout([r*Math.cos(s)+n,r*Math.sin(s)+i]),s+=h})},symbolSize:function(a,e,t,r,n,i,o){var s=0;si.length=o;var l=Zr(a);e.eachNode(function(c){var h=Ur(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/r);isNaN(f)&&(f=Au/2),si[c.dataIndex]=f,s+=f*2});var u=(2*Au-s)/o/2,v=0;e.eachNode(function(c){var h=u+si[c.dataIndex];v+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([r*Math.cos(v)+n,r*Math.sin(v)+i]),v+=h})}};function mf(a,e,t,r){var n=a.getGraphicEl();if(n){var i=a.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=a.getLayout(),u=Math.atan2(l[1]-r,l[0]-t);u<0&&(u=Math.PI*2+u);var v=l[0]<t;v&&(u=u-Math.PI);var c=v?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");W(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function s1(a){a.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&ys(e,"symbolSize")})}var ir=Ji;function l1(a,e,t){for(var r=a,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,v=0;v<r.length;v++){var c=r[v];c.p||(c.p=Zd(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Le(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,f=h,p,d;return{warmUp:function(){f=h*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(r,n);for(var y=[],m=r.length,S=0;S<n.length;S++){var x=n[S];if(!x.ignoreForceLayout){var _=x.n1,b=x.n2;yr(y,b.p,_.p);var w=ll(y)-x.d,T=b.w/(_.w+b.w);isNaN(T)&&(T=0),ga(y,y),!_.fixed&&ir(_.p,_.p,y,T*w*f),!b.fixed&&ir(b.p,b.p,y,-(1-T)*w*f)}}for(var S=0;S<m;S++){var A=r[S];A.fixed||(yr(y,l,A.p),ir(A.p,A.p,y,u*f))}for(var S=0;S<m;S++)for(var _=r[S],I=S+1;I<m;I++){var b=r[I];yr(y,b.p,_.p);var w=ll(y);w===0&&(Ud(y,Math.random()-.5,Math.random()-.5),w=1);var C=(_.rep+b.rep)/w/w;!_.fixed&&ir(_.pp,_.pp,y,C),!b.fixed&&ir(b.pp,b.pp,y,-C)}for(var L=[],S=0;S<m;S++){var A=r[S];A.fixed||(yr(L,A.p,A.pp),ir(A.p,A.p,L,f),Ot(A.pp,A.p))}f=f*.992;var D=f<.01;d&&d(r,n,D),g&&g(D)}}}function u1(a){a.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(S){var x=i.getId(S);i.setItemLayout(S,r[x]||[NaN,NaN])}):!l||l==="none"?yf(e):l==="circular"&&ys(e,"value");var u=i.getDataExtent("value"),v=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),f=B(c)?c:[c,c],p=B(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(S,x){var _=i.getItemLayout(x),b=it(S,u,f);return isNaN(b)&&(b=(f[0]+f[1])/2),{w:b,rep:b,fixed:i.getItemModel(x).get("fixed"),p:!_||isNaN(_[0])||isNaN(_[1])?null:_}}),g=o.mapArray("value",function(S,x){var _=n.getEdgeByIndex(x),b=it(S,v,p);isNaN(b)&&(b=(p[0]+p[1])/2);var w=_.getModel(),T=da(_.getModel().get(["lineStyle","curveness"]),-ds(_,e,x,!0),0);return{n1:d[_.node1.dataIndex],n2:d[_.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=l1(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,x){for(var _=0,b=S.length;_<b;_++)S[_].fixed&&Ot(S[_].p,n.getNodeByIndex(_).getLayout())}),m.afterStep(function(S,x,_){for(var b=0,w=S.length;b<w;b++)S[b].fixed||n.getNodeByIndex(b).setLayout(S[b].p),r[i.getId(b)]=S[b].p;for(var b=0,w=x.length;b<w;b++){var T=x[b],A=n.getEdgeByIndex(b),I=T.n1.p,C=T.n2.p,L=A.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ot(L[0],I),Ot(L[1],C),+T.curveness&&(L[2]=[(I[0]+C[0])/2-(I[1]-C[1])*T.curveness,(I[1]+C[1])/2-(C[0]-I[0])*T.curveness]),A.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function v1(a,e,t){var r=W(a.getBoxLayoutParams(),{aspect:t});return ne(r,{width:e.getWidth(),height:e.getHeight()})}function c1(a,e){var t=[];return a.eachSeriesByType("graph",function(r){var n=r.get("coordinateSystem");if(!n||n==="view"){var i=r.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];In(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),v=v1(r,e,u);isNaN(u)&&(s=[v.x,v.y],l=[v.x+v.width,v.y+v.height]);var c=l[0]-s[0],h=l[1]-s[1],f=v.width,p=v.height,d=r.coordinateSystem=new ba;d.zoomLimit=r.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(v.x,v.y,f,p),d.setCenter(r.get("center"),e),d.setZoom(r.get("zoom")),t.push(d)}}),t}var Tu=se.prototype,li=lh.prototype,Sf=(function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return a})();(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e})(Sf);function ui(a){return isNaN(+a.cpx1)||isNaN(+a.cpy1)}var h1=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Sf},e.prototype.buildPath=function(t,r){ui(r)?Tu.buildPath.call(this,t,r):li.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return ui(this.shape)?Tu.pointAt.call(this,t):li.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,n=ui(r)?[r.x2-r.x1,r.y2-r.y1]:li.tangentAt.call(this,t);return ga(n,n)},e})(Vt),vi=["fromSymbol","toSymbol"];function Mu(a){return"_"+a+"Type"}function Iu(a,e,t){var r=e.getItemVisual(t,a);if(!r||r==="none")return r;var n=e.getItemVisual(t,a+"Size"),i=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=va(n),u=ya(o||0,l);return r+l+u+(i||"")+(s||"")}function Cu(a,e,t){var r=e.getItemVisual(t,a);if(!(!r||r==="none")){var n=e.getItemVisual(t,a+"Size"),i=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=va(n),u=ya(o||0,l),v=Wt(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return v.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,v.name=a,v}}function f1(a){var e=new h1({name:"line",subPixelOptimize:!0});return go(e.shape,a),e}function go(a,e){a.x1=e[0][0],a.y1=e[0][1],a.x2=e[1][0],a.y2=e[1][1],a.percent=1;var t=e[2];t?(a.cpx1=t[0],a.cpy1=t[1]):(a.cpx1=NaN,a.cpy1=NaN)}var ms=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i._createLine(t,r,n),i}return e.prototype._createLine=function(t,r,n){var i=t.hostModel,o=t.getItemLayout(r),s=f1(o);s.shape.percent=0,Ft(s,{shape:{percent:1}},i,r),this.add(s),M(vi,function(l){var u=Cu(l,t,r);this.add(u),this[Mu(l)]=Iu(l,t,r)},this),this._updateCommonStl(t,r,n)},e.prototype.updateData=function(t,r,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(r),l={shape:{}};go(l.shape,s),ct(o,l,i,r),M(vi,function(u){var v=Iu(u,t,r),c=Mu(u);if(this[c]!==v){this.remove(this.childOfName(u));var h=Cu(u,t,r);this.add(h)}this[c]=v},this),this._updateCommonStl(t,r,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,v=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,f=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(r),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),f=d.get("blurScope"),v=Ht(p)}var g=t.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(vi,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Qi.length;T++){var A=Qi[T],I=o.getState(A);if(I){var C=I.style||{},L=w.ensureState(A),D=L.style||(L.style={});C.stroke!=null&&(D[w.__isEmptyBrush?"stroke":"fill"]=C.stroke),C.opacity!=null&&(D.opacity=C.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(r);ae(this,v,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(r):isFinite(m)?Zo(m):m)+""});var S=this.getTextContent();if(S){var x=v.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var _=x.get("distance");B(_)||(_=[_,_]),S.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),xt(this,h,f,c)},e.prototype.highlight=function(){jr(this)},e.prototype.downplay=function(){Jr(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");go(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!r&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,v=l.pointAt(0),c=l.pointAt(u),h=yr([],c,v);ga(h,h);function f(I,C){var L=I.__specifiedRotation;if(L==null){var D=l.tangentAt(C);I.attr("rotation",(C===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else I.attr("rotation",L)}if(r&&(r.setPosition(v),f(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),n&&(n.setPosition(c),f(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,x=l.tangentAt(S),_=[x[1],-x[0]],b=l.pointAt(S);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var w=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(x[1],x[0]);c[0]<v[0]&&(T=Math.PI+T),i.rotation=T}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,d="top";break;default:A=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+v[0],i.y=-h[1]*m+v[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+v[0],i.y=v[1]+A,p=x[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+A,p="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+A,p=x[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e})($),Ss=(function(){function a(e){this.group=new $,this._LineCtor=e||ms}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,n=r.group,i=r._lineData;r._lineData=e,i||n.removeAll();var o=Du(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Du(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!p1(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(ci(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(r),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},a.prototype.remove=function(){this.group.removeAll()},a.prototype.eachRendered=function(e){Cn(this._progressiveEls||this.group,e)},a.prototype._doAdd=function(e,t,r){var n=e.getItemLayout(t);if(ci(n)){var i=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,i),this.group.add(i)}},a.prototype._doUpdate=function(e,t,r,n,i){var o=e.getItemGraphicEl(r);if(!ci(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},a})();function p1(a){return a.animators&&a.animators.length>0}function Du(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Ht(e)}}function Lu(a){return isNaN(a[0])||isNaN(a[1])}function ci(a){return a&&!Lu(a[0])&&!Lu(a[1])}var hi=[],fi=[],pi=[],or=ch,di=$d,Pu=Math.abs;function Eu(a,e,t){for(var r=a[0],n=a[1],i=a[2],o=1/0,s,l=t*t,u=.1,v=.1;v<=.9;v+=.1){hi[0]=or(r[0],n[0],i[0],v),hi[1]=or(r[1],n[1],i[1],v);var c=Pu(di(hi,e)-l);c<o&&(o=c,s=v)}for(var h=0;h<32;h++){var f=s+u;fi[0]=or(r[0],n[0],i[0],s),fi[1]=or(r[1],n[1],i[1],s),pi[0]=or(r[0],n[0],i[0],f),pi[1]=or(r[1],n[1],i[1],f);var c=di(fi,e)-l;if(Pu(c)<.01)break;var p=di(pi,e)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function gi(a,e){var t=[],r=Yd,n=[[],[],[]],i=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Le(u[0]),Le(u[1])],u[2]&&u.__original.push(Le(u[2])));var h=u.__original;if(u[2]!=null){if(Ot(n[0],h[0]),Ot(n[1],h[2]),Ot(n[2],h[1]),v&&v!=="none"){var f=Ur(s.node1),p=Eu(n,h[0],f*e);r(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],r(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(c&&c!=="none"){var f=Ur(s.node2),p=Eu(n,h[1],f*e);r(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],r(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Ot(u[0],n[0]),Ot(u[1],n[2]),Ot(u[2],n[1])}else{if(Ot(i[0],h[0]),Ot(i[1],h[1]),yr(o,i[1],i[0]),ga(o,o),v&&v!=="none"){var f=Ur(s.node1);Ji(i[0],i[0],o,f*e)}if(c&&c!=="none"){var f=Ur(s.node2);Ji(i[1],i[1],o,-f*e)}Ot(u[0],i[0]),Ot(u[1],i[1])}})}function Ru(a){return a.type==="view"}var d1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var n=new Uo,i=new Ss,o=this.group;this._controller=new _a(r.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Ru(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):ct(u,v,t)}gi(t.getGraph(),Zr(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,r,n),clearTimeout(this._layoutTimeout);var f=t.forceLayout,p=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var d=t.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,_=S.getGraphicEl(),b=S.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(d){case"force":f.warmUp(),!i._layouting&&i._startForceLayoutIteration(f,p),f.setFixed(x),c.setItemLayout(x,[_.x,_.y]);break;case"circular":c.setItemLayout(x,[_.x,_.y]),S.setLayout({fixed:!0},!0),ys(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(x,[_.x,_.y]),gs(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(x)}),_.setDraggable(w,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(ut(_).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),_=S.getModel().get(["emphasis","focus"]);x&&_==="adjacency"&&(ut(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(S){mf(S,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(r?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Vn(u,n,t)}),!Ru(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ss(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ls(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),gi(t.getGraph(),Zr(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),n=Zr(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){gi(t.getGraph(),Zr(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(Tt);function sr(a){return"_EC_"+a}var g1=(function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[sr(e)]){var n=new Ue(e,t);return n.hostGraph=this,this.nodes.push(n),r[sr(e)]=n,n}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[sr(e)]},a.prototype.addEdge=function(e,t,r){var n=this._nodesMap,i=this._edgesMap;if(le(e)&&(e=this.nodes[e]),le(t)&&(t=this.nodes[t]),e instanceof Ue||(e=n[sr(e)]),t instanceof Ue||(t=n[sr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new xf(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof Ue&&(e=e.id),t instanceof Ue&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,n=r.length,i=0;i<n;i++)r[i].dataIndex>=0&&e.call(t,r[i],i)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,n=r.length,i=0;i<n;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},a.prototype.breadthFirstTraverse=function(e,t,r,n){if(t instanceof Ue||(t=this._nodesMap[sr(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var v=u[o],c=v.node1===l?v.node2:v.node1;if(!c.__visited){if(e.call(n,c,l))return;s.push(c),c.__visited=!0}}}},a.prototype.update=function(){for(var e=this.data,t=this.edgeData,r=this.nodes,n=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},a.prototype.clone=function(){for(var e=new a(this._directed),t=this.nodes,r=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<r.length;n++){var i=r[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},a})(),Ue=(function(){function a(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return a.prototype.degree=function(){return this.edges.length},a.prototype.inDegree=function(){return this.inEdges.length},a.prototype.outDegree=function(){return this.outEdges.length},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var r=this.edges[t];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},a.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),r=0;r<this.edges.length;r++){var n=this.edges[r];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var v=o[s];s++,t.set(v.dataIndex,!0);for(var u=0;u<v.outEdges.length;u++)e.set(v.outEdges[u].dataIndex,!0),o.push(v.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},a})(),xf=(function(){function a(e,t,r){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=r??-1}return a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},a.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var r=[this.node1],n=[this.node2],i=0;i<r.length;){var o=r[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},a})();function _f(a,e){return{getValue:function(t){var r=this[a][e];return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,r){this.dataIndex>=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}ue(Ue,_f("hostGraph","data"));ue(xf,_f("hostGraph","edgeData"));function bf(a,e,t,r,n){for(var i=new g1(r),o=0;o<a.length;o++)i.addNode(Xt(a[o].id,a[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var v=e[o],c=v.source,h=v.target;i.addEdge(c,h,u)&&(l.push(v),s.push(Xt(xe(v.id,null),c+" > "+h)),u++)}var f=t.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=ma(a,t);else{var d=hh.get(f),g=d?d.dimensions||[]:[];dt(g,"value")<0&&g.concat(["value"]);var y=Ho(a,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Bt(y,t),p.initData(a)}var m=new Bt(["value"],t);return m.initData(l,s),n&&n(p,m),rf({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var y1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function n(){return r._categoriesData}this.legendVisualProvider=new bn(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Mn(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){a1(this);var s=bf(i,n,this,!0,l);return M(s.edges,function(u){n1(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=Ut.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=f,g}v.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Zt("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var c=Xd({series:this,dataIndex:t,multipleSeries:r});return c},e.prototype._updateCategoriesData=function(){var t=z(this.option.categories||[],function(n){return n.value!=null?n:W({value:0},n)}),r=new Bt(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(n){return r.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(It),m1={type:"graphRoam",event:"graphRoam",update:"none"};function S1(a){a.registerChartView(d1),a.registerSeriesModel(y1),a.registerProcessor(JS),a.registerVisual(QS),a.registerVisual(t1),a.registerLayout(i1),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,s1),a.registerLayout(u1),a.registerCoordinateSystem("graphView",{dimensions:ba.dimensions,create:c1}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Re),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Re),a.registerAction(m1,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=vs(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var x1=(function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a})(),_1=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new x1},e.prototype.buildPath=function(t,r){var n=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-n(l)*s*(s>=o/3?1:2),v=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,v),t.lineTo(r.x+n(l)*s,r.y+i(l)*s),t.lineTo(r.x+n(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-n(l)*s,r.y-i(l)*s),t.lineTo(u,v)},e})(Vt);function b1(a,e){var t=a.get("center"),r=e.getWidth(),n=e.getHeight(),i=Math.min(r,n),o=G(t[0],e.getWidth()),s=G(t[1],e.getHeight()),l=G(a.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Pa(a,e){var t=a==null?"":a+"";return e&&(et(e)?t=e.replace("{value}",t):st(e)&&(t=e(a))),t}var w1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=b1(t,n);this._renderMain(t,r,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,v=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),f=h?ul:tr,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,v];Kd(y,!l),u=y[0],v=y[1];for(var m=v-u,S=u,x=[],_=0;p&&_<i.length;_++){var b=Math.min(Math.max(i[_][0],0),1);v=u+m*b;var w=new f({shape:{startAngle:S,endAngle:v,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[_][1]}),w.setStyle(d.getLineStyle(["color","width"])),x.push(w),S=v}x.reverse(),M(x,function(A){return s.add(A)});var T=function(A){if(A<=0)return i[0][1];var I;for(I=0;I<i.length;I++)if(i[I][0]>=A&&(I===0?0:i[I-1][0])<A)return i[I][1];return i[I-1][1]};this._renderTicks(t,r,n,T,o,u,v,l,g),this._renderTitleAndDetail(t,r,n,T,o),this._renderAnchor(t,o),this._renderPointer(t,r,n,T,o,u,v,l,g)},e.prototype._renderTicks=function(t,r,n,i,o,s,l,u,v){for(var c=this.group,h=o.cx,f=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),S=t.getModel("axisLabel"),x=t.get("splitNumber"),_=m.get("splitNumber"),b=G(y.get("length"),p),w=G(m.get("length"),p),T=s,A=(l-s)/x,I=A/_,C=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),D=y.get("distance"),P,E,R=0;R<=x;R++){if(P=Math.cos(T),E=Math.sin(T),y.get("show")){var k=D?D+v:v,N=new se({shape:{x1:P*(p-k)+h,y1:E*(p-k)+f,x2:P*(p-b-k)+h,y2:E*(p-b-k)+f},style:C,silent:!0});C.stroke==="auto"&&N.setStyle({stroke:i(R/x)}),c.add(N)}if(S.get("show")){var k=S.get("distance")+D,H=Pa(Zo(R/x*(g-d)+d),S.get("formatter")),Z=i(R/x),U=P*(p-b-k)+h,q=E*(p-b-k)+f,rt=S.get("rotate"),J=0;rt==="radial"?(J=-T+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):rt==="tangential"?J=-T-Math.PI/2:le(rt)&&(J=rt*Math.PI/180),J===0?c.add(new vt({style:St(S,{text:H,x:U,y:q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:Z}),silent:!0})):c.add(new vt({style:St(S,{text:H,x:U,y:q,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:U,originY:q,rotation:J}))}if(m.get("show")&&R!==x){var k=m.get("distance");k=k?k+v:v;for(var at=0;at<=_;at++){P=Math.cos(T),E=Math.sin(T);var Ct=new se({shape:{x1:P*(p-k)+h,y1:E*(p-k)+f,x2:P*(p-w-k)+h,y2:E*(p-w-k)+f},silent:!0,style:L});L.stroke==="auto"&&Ct.setStyle({stroke:i((R+at/_)/x)}),c.add(Ct),T+=I}T-=I}else T+=A}},e.prototype._renderPointer=function(t,r,n,i,o,s,l,u,v){var c=this.group,h=this._data,f=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),S=m.mapDimension("value"),x=+t.get("min"),_=+t.get("max"),b=[x,_],w=[s,l];function T(I,C){var L=m.getItemModel(I),D=L.getModel("pointer"),P=G(D.get("width"),o.r),E=G(D.get("length"),o.r),R=t.get(["pointer","icon"]),k=D.get("offsetCenter"),N=G(k[0],o.r),H=G(k[1],o.r),Z=D.get("keepAspect"),U;return R?U=Wt(R,N-P/2,H-E,P,E,null,Z):U=new _1({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:H}}),U.rotation=-(C+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function A(I,C){var L=g.get("roundCap"),D=L?ul:tr,P=g.get("overlap"),E=P?g.get("width"):v/m.count(),R=P?o.r-E:o.r-(I+1)*E,k=P?o.r:o.r-I*E,N=new D({shape:{startAngle:s,endAngle:C,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:k}});return P&&(N.z2=it(m.get(S,I),[x,_],[100,0],!0)),N}(y||d)&&(m.diff(h).add(function(I){var C=m.get(S,I);if(d){var L=T(I,s);Ft(L,{rotation:-((isNaN(+C)?w[0]:it(C,b,w,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(I,L)}if(y){var D=A(I,s),P=g.get("clip");Ft(D,{shape:{endAngle:it(C,b,w,P)}},t),c.add(D),vl(t.seriesIndex,m.dataType,I,D),p[I]=D}}).update(function(I,C){var L=m.get(S,I);if(d){var D=h.getItemGraphicEl(C),P=D?D.rotation:s,E=T(I,P);E.rotation=P,ct(E,{rotation:-((isNaN(+L)?w[0]:it(L,b,w,!0))+Math.PI/2)},t),c.add(E),m.setItemGraphicEl(I,E)}if(y){var R=f[C],k=R?R.shape.endAngle:s,N=A(I,k),H=g.get("clip");ct(N,{shape:{endAngle:it(L,b,w,H)}},t),c.add(N),vl(t.seriesIndex,m.dataType,I,N),p[I]=N}}).execute(),m.each(function(I){var C=m.getItemModel(I),L=C.getModel("emphasis"),D=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled");if(d){var R=m.getItemGraphicEl(I),k=m.getItemVisual(I,"style"),N=k.fill;if(R instanceof ye){var H=R.style;R.useStyle(W({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},k))}else R.useStyle(k),R.type!=="pointer"&&R.setColor(N);R.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(it(m.get(S,I),b,[0,1],!0))),R.z2EmphasisLift=0,Kt(R,C),xt(R,D,P,E)}if(y){var Z=p[I];Z.useStyle(m.getItemVisual(I,"style")),Z.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),Z.z2EmphasisLift=0,Kt(Z,C),xt(Z,D,P,E)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),v=Wt(s,r.cx-o/2+G(l[0],r.r),r.cy-o/2+G(l[1],r.r),o,o,null,u);v.z2=n.get("showAbove")?1:0,v.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(v)}},e.prototype._renderTitleAndDetail=function(t,r,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),v=+t.get("min"),c=+t.get("max"),h=new $,f=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new vt({silent:!0}),p[y]=new vt({silent:!0})}).update(function(y,m){f[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),x=new $,_=i(it(S,[v,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+G(w[0],o.r),A=o.cy+G(w[1],o.r),I=f[y];I.attr({z2:g?0:2,style:St(b,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:_})}),x.add(I)}var C=m.getModel("detail");if(C.get("show")){var L=C.get("offsetCenter"),D=o.cx+G(L[0],o.r),P=o.cy+G(L[1],o.r),E=G(C.get("width"),o.r),R=G(C.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:_,I=p[y],N=C.get("formatter");I.attr({z2:g?0:2,style:St(C,{x:D,y:P,text:Pa(S,N),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),qd(I,{normal:C},S,function(Z){return Pa(Z,N)}),d&&Yc(I,y,l,t,{getFormattedLabel:function(Z,U,q,rt,J,at){return Pa(at?at.interpolatedValue:S,N)}}),x.add(I)}h.add(x)}),this.group.add(h),this._titleEls=f,this._detailEls=p},e.type="gauge",e})(Tt),A1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return ca(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(It);function T1(a){a.registerChartView(w1),a.registerSeriesModel(A1)}var M1=["itemStyle","opacity"],I1=(function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=n,o=new me,s=new vt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,r,!0),n}return e.prototype.updateData=function(t,r,n){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),v=s.get(M1);v=v??1,n||Ve(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ft(i,{style:{opacity:v}},o,r)):ct(i,{style:{opacity:v},shape:{points:l.points}},o,r),Kt(i,s),this._updateLabel(t,r),xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),v=u.label,c=t.getItemVisual(r,"style"),h=c.fill;ae(o,Ht(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:c.opacity,defaultText:t.getName(r)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),n.setTextConfig({local:!0,inside:!!v.inside,insideStroke:h,outsideFill:h});var f=v.linePoints;i.setShape({points:f}),n.textGuideLineConfig={anchor:f?new _e(f[0][0],f[0][1]):null},ct(o,{style:{x:v.x,y:v.y}},s,r),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),Zc(n,Uc(l),{stroke:h})},e})(re),C1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new I1(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(i,l),s.add(v),i.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);jd(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(Tt),D1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new bn(F(this.getData,this),F(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return ca(this,{coordDimensions:["value"],encodeDefaulter:tt(nh,this)})},e.prototype._defaultLabelLine=function(t){Mn(t,"labelLine",["show"]);var r=t.labelLine,n=t.emphasis.labelLine;r.show=r.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),n=a.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return n.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(It);function L1(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function P1(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=a.count();o<s;o++)n[o]=o;return st(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),n}function E1(a){var e=a.hostModel,t=e.get("orient");a.each(function(r){var n=a.getItemModel(r),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=a.getItemLayout(r),u=l.points,v=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,f,p;if(v)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),p=[[h,f],[h,f]];else{var d=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-S,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+S,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,f=m-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,f=m+5,c="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,c="center"):(y=d+S,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d+S,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,c="center"):(y=d-S,h=y-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d-S,h=y-5,c="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d+S,h=y+5,c="left")),t==="horizontal"?(y=d,h=y):(m=g,f=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:c,inside:v}})}function R1(a,e){a.eachSeriesByType("funnel",function(t){var r=t.getData(),n=r.mapDimension("value"),i=t.get("sort"),o=L1(t,e),s=t.get("orient"),l=o.width,u=o.height,v=P1(r,i),c=o.x,h=o.y,f=s==="horizontal"?[G(t.get("minSize"),u),G(t.get("maxSize"),u)]:[G(t.get("minSize"),l),G(t.get("maxSize"),l)],p=r.getDataExtent(n),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),S=s==="horizontal"?l:u,x=(S-m*(r.count()-1))/r.count(),_=function(P,E){if(s==="horizontal"){var R=r.get(n,P)||0,k=it(R,[d,g],f,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-k)/2;break;case"bottom":N=h+(u-k);break}return[[E,N],[E,N+k]]}var H=r.get(n,P)||0,Z=it(H,[d,g],f,!0),U;switch(y){case"left":U=c;break;case"center":U=c+(l-Z)/2;break;case"right":U=c+l-Z;break}return[[U,E],[U+Z,E]]};i==="ascending"&&(x=-x,m=-m,s==="horizontal"?c+=l:h+=u,v=v.reverse());for(var b=0;b<v.length;b++){var w=v[b],T=v[b+1],A=r.getItemModel(w);if(s==="horizontal"){var I=A.get(["itemStyle","width"]);I==null?I=x:(I=G(I,l),i==="ascending"&&(I=-I));var C=_(w,c),L=_(T,c+I);c+=I+m,r.setItemLayout(w,{points:C.concat(L.slice().reverse())})}else{var D=A.get(["itemStyle","height"]);D==null?D=x:(D=G(D,u),i==="ascending"&&(D=-D));var C=_(w,h),L=_(T,h+D);h+=D+m,r.setItemLayout(w,{points:C.concat(L.slice().reverse())})}}E1(r)})}function V1(a){a.registerChartView(C1),a.registerSeriesModel(D1),a.registerLayout(R1),a.registerProcessor(An("funnel"))}var k1=.3,N1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new $,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,v=u.dimensions,c=ku(t);s.diff(l).add(h).update(f).remove(p).execute();function h(g){var y=Vu(s,o,g,v,u);yi(y,s,g,c)}function f(g,y){var m=l.getItemGraphicEl(y),S=wf(s,g,v,u);s.setItemGraphicEl(g,m),ct(m,{shape:{points:S}},t,g),Ve(m),yi(m,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=z1(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,r,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,n){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=ku(r),u=this._progressiveEls=[],v=t.start;v<t.end;v++){var c=Vu(i,this._dataGroup,v,s,o);c.incremental=!0,yi(c,i,v,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Tt);function z1(a,e,t){var r=a.model,n=a.getRect(),i=new pt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ft(i,{shape:{width:n.width,height:n.height}},e,t),i}function wf(a,e,t,r){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=a.get(a.mapDimension(o),e);O1(s,r.getAxis(o).type)||n.push(r.dataToPoint(s,o))}return n}function Vu(a,e,t,r,n){var i=wf(a,t,r,n),o=new me({shape:{points:i},z2:10});return e.add(o),a.setItemGraphicEl(t,o),o}function ku(a){var e=a.get("smooth",!0);return e===!0&&(e=k1),e=Jd(e),Qd(e)&&(e=0),{smooth:e}}function yi(a,e,t,r){a.useStyle(e.getItemVisual(t,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");Kt(a,n,"lineStyle"),xt(a,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function O1(a,e){return e==="category"?a==null:a==null||isNaN(a)}var G1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return ma(null,this,{useEncodeDefaulter:F(B1,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,n=this.getData(),i=[];return r.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(It);function B1(a){var e=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(e){var t={};return M(e.dimensions,function(r){var n=F1(r);t[r]=n}),t}}function F1(a){return+a.replace("dim","")}var H1=["lineStyle","opacity"],W1={seriesType:"parallel",reset:function(a,e){var t=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(H1,!0);u!=null&&(l=u)}var v=i.ensureUniqueItemVisual(s,"style");v.opacity=l},n.start,n.end)}}}};function Z1(a){U1(a),Y1(a)}function U1(a){if(!a.parallel){var e=!1;M(a.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(a.parallel=[{}])}}function Y1(a){var e=Gt(a.parallelAxis);M(e,function(t){if(Rt(t)){var r=t.parallelIndex||0,n=Gt(a.parallel)[r];n&&n.parallelAxisDefault&&ft(t,n.parallelAxisDefault,!1)}})}var $1=5,X1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this._model=t,this._api=n,this._handlers||(this._handlers={},M(K1,function(i,o){n.getZr().on(o,this._handlers[o]=F(i,this))},this)),Dn(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){fh(this,"_throttledDispatchExpand"),M(this._handlers,function(n,i){r.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(W({type:"parallelAxisExpand"},t))},e.type="parallel",e})(kt),K1={mousedown:function(a){mi(this,"click")&&(this._mouseDownPoint=[a.offsetX,a.offsetY])},mouseup:function(a){var e=this._mouseDownPoint;if(mi(this,"click")&&e){var t=[a.offsetX,a.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>$1)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!mi(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function mi(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var q1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&ft(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var n=t.get("parallelIndex");return n!=null&&r.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],n=Lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(n,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Pt),j1=(function(a){V(e,a);function e(t,r,n,i,o){var s=a.call(this,t,r,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ve);function ar(a,e,t,r,n,i){a=a||0;var o=t[1]-t[0];if(n!=null&&(n=lr(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=lr(s,[0,o]),n=i=lr(s,[n,i]),r=0}e[0]=lr(e[0],t),e[1]=lr(e[1],t);var l=Si(e,r);e[r]+=a;var u=n||0,v=t.slice();l.sign<0?v[0]+=u:v[1]-=u,e[r]=lr(e[r],v);var c;return c=Si(e,r),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-r]=e[r]+l.sign*n),c=Si(e,r),i!=null&&c.span>i&&(e[1-r]=e[r]+c.sign*i),e}function Si(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function lr(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var xi=M,Af=Math.min,Tf=Math.max,Nu=Math.floor,J1=Math.ceil,zu=Zo,Q1=Math.PI,tx=(function(){function a(e,t,r){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var n=e.dimensions,i=e.parallelAxisIndex;xi(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),v=this._axesMap.set(o,new j1(o,Yo(u),[0,0],u.get("type"),l)),c=v.type==="category";v.onBand=c&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=n&&s<=n+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var n=r.getData();xi(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ja(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=ne(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,v=Ea(e.get("axisExpandWidth"),l),c=Ea(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&v>0&&s>0,f=e.get("axisExpandWindow"),p;if(f)p=Ea(f[1]-f[0],l),f[1]=f[0]+p;else{p=Ea(v*(c-1),l);var d=e.get("axisExpandCenter")||Nu(u/2);f=[v*d-p/2],f[1]=f[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[Nu(zu(f[0]/v,1))+1,J1(zu(f[1]/v,1))-1],m=g/v*f[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),xi(r,function(o,s){var l=(n.axisExpandable?rx:ex)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},v={horizontal:Q1/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],h=v[i],f=Mr();Tn(f,f,h),Je(f,f,c),this._axesLayout[o]={position:c,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,n){r==null&&(r=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),v=r;v<n;v++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,v),f=0,p=o.length;f<p;f++){var d=l[f].getActiveState(h[f]);if(d==="inactive"){c="inactive";break}}}t(c,v)}},a.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(r=!0);return r},a.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return Pe([e,0],r.transform)},a.prototype.getAxisLayout=function(e){return ot(this._axesLayout[e])},a.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[r]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",v=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(v)h&&v&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&v&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/v,l?ar(l,n,o,"all"):u="none";else{var f=n[1]-n[0],p=o[1]*s/f;n=[Tf(0,p-f/2)],n[1]=Af(o[1],n[0]+f),n[0]=n[1]-f}return{axisExpandWindow:n,behavior:u}},a})();function Ea(a,e){return Af(Tf(a,e[0]),e[1])}function ex(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function rx(a,e){var t=e.layoutLength,r=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,v;return a<o[0]?(s=a*i,v=i):a<=o[1]?(s=e.axisExpandWindow0Pos+a*r-e.axisExpandWindow[0],l=r,u=!0):(s=t-(n-1-a)*i,v=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:v}}function ax(a,e){var t=[];return a.eachComponent("parallel",function(r,n){var i=new tx(r,a,e);i.name="parallel_"+n,i.resize(r,e),r.coordinateSystem=i,i.model=r,t.push(i)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var n=r.getReferringComponents("parallel",ge).models[0];r.coordinateSystem=n.coordinateSystem}}),t}var nx={create:ax},yo=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return vh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=ot(t);if(r)for(var n=r.length-1;n>=0;n--)te(r[n])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var n=r[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=t&&t<=r[i][1])return"active";return"inactive"},e})(Pt);ue(yo,wn);var er=!0,oa=Math.min,br=Math.max,ix=Math.pow,ox=1e4,sx=6,lx=6,Ou="globalPan",ux={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},vx={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Gu={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},cx=0,xs=(function(a){V(e,a);function e(t){var r=a.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=t,r.group=new $,r._uid="brushController_"+cx++,M(mx,function(n,i){this._handlers[i]=F(n,this)},r),r}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||e0(r,Ou,this._uid),M(this._handlers,function(n,i){r.on(i,n)}),this._brushType=t.brushType,this._brushOption=ft(ot(Gu),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;r0(t,Ou,this._uid),M(this._handlers,function(r,n){t.off(n,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};M(t,function(n){r[n.panelId]=ot(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=z(t,function(h){return ft(ot(Gu),h,!0)});var r="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ke(n,t,u,l).add(v).update(v).remove(c).execute(),this;function l(h,f){return(h.id!=null?h.id:r+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function v(h,f){var p=t[h];if(f!=null&&n[f]===s)i[h]=n[f];else{var d=i[h]=f!=null?(n[f].__brushOption=p,n[f]):If(o,Mf(o,p));_s(o,d)}}function c(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),mo(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(th);function Mf(a,e){var t=On[e.brushType].createCover(a,e);return t.__brushOption=e,Df(t,e),a.group.add(t),t}function If(a,e){var t=bs(e);return t.endCreating&&(t.endCreating(a,e),Df(e,e.__brushOption)),e}function Cf(a,e){var t=e.__brushOption;bs(e).updateCoverShape(a,e,t.range,t)}function Df(a,e){var t=e.z;t==null&&(t=ox),a.traverse(function(r){r.z=t,r.z2=t})}function _s(a,e){bs(e).updateCommon(a,e),Cf(a,e)}function bs(a){return On[a.__brushOption.brushType]}function ws(a,e,t){var r=a._panels;if(!r)return er;var n,i=a._transform;return M(r,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function Lf(a,e){var t=a._panels;if(!t)return er;var r=e.__brushOption.panelId;return r!=null?t[r]:er}function mo(a){var e=a._covers,t=e.length;return M(e,function(r){a.group.remove(r)},a),e.length=0,!!t}function rr(a,e){var t=z(a._covers,function(r){var n=r.__brushOption,i=ot(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});a.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function hx(a){var e=a._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],n=t[0]-r[0],i=t[1]-r[1],o=ix(n*n+i*i,.5);return o>sx}function Pf(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function Ef(a,e,t,r){var n=new $;return n.add(new pt({name:"main",style:As(t),silent:!0,draggable:!0,cursor:"move",drift:tt(Bu,a,e,n,["n","s","w","e"]),ondragend:tt(rr,e,{isEnd:!0})})),M(r,function(i){n.add(new pt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(Bu,a,e,n,i),ondragend:tt(rr,e,{isEnd:!0})}))}),n}function Rf(a,e,t,r){var n=r.brushStyle.lineWidth||0,i=br(n,lx),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,v=t[0][1],c=t[1][1],h=v-i+n/2,f=c-i+n/2,p=v-o,d=c-s,g=p+n,y=d+n;Se(a,e,"main",o,s,p,d),r.transformable&&(Se(a,e,"w",l,u,i,y),Se(a,e,"e",h,u,i,y),Se(a,e,"n",l,u,g,i),Se(a,e,"s",l,f,g,i),Se(a,e,"nw",l,u,i,i),Se(a,e,"ne",h,u,i,i),Se(a,e,"sw",l,f,i,i),Se(a,e,"se",h,f,i,i))}function So(a,e){var t=e.__brushOption,r=t.transformable,n=e.childAt(0);n.useStyle(As(t)),n.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?xo(a,i[0]):px(a,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?vx[s]+"-resize":null})})}function Se(a,e,t,r,n,i,o){var s=e.childOfName(t);s&&s.setShape(gx(Ts(a,e,[[r,n],[r+i,n+o]])))}function As(a){return Q({strokeNoScale:!0},a.brushStyle)}function Vf(a,e,t,r){var n=[oa(a,t),oa(e,r)],i=[br(a,t),br(e,r)];return[[n[0],i[0]],[n[1],i[1]]]}function fx(a){return Sr(a.group)}function xo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=$o(t[e],fx(a));return r[n]}function px(a,e){var t=[xo(a,e[0]),xo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Bu(a,e,t,r,n,i){var o=t.__brushOption,s=a.toRectRange(o.range),l=kf(e,n,i);M(r,function(u){var v=ux[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=a.fromRectRange(Vf(s[0][0],s[1][0],s[0][1],s[1][1])),_s(e,t),rr(e,{isEnd:!1})}function dx(a,e,t,r){var n=e.__brushOption.range,i=kf(a,t,r);M(n,function(o){o[0]+=i[0],o[1]+=i[1]}),_s(a,e),rr(a,{isEnd:!1})}function kf(a,e,t){var r=a.group,n=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Ts(a,e,t){var r=Lf(a,e);return r&&r!==er?r.clipPath(t,a._transform):ot(t)}function gx(a){var e=oa(a[0][0],a[1][0]),t=oa(a[0][1],a[1][1]),r=br(a[0][0],a[1][0]),n=br(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:n-t}}function yx(a,e,t){if(!(!a._brushType||Sx(a,e.offsetX,e.offsetY))){var r=a._zr,n=a._covers,i=ws(a,e,t);if(!a._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===er||s.panelId===i.panelId)&&On[s.brushType].contain(n[o],t[0],t[1]))return}i&&r.setCursorStyle("crosshair")}}function _o(a){var e=a.event;e.preventDefault&&e.preventDefault()}function bo(a,e,t){return a.childOfName("main").contain(e,t)}function Nf(a,e,t,r){var n=a._creatingCover,i=a._creatingPanel,o=a._brushOption,s;if(a._track.push(t.slice()),hx(a)||n){if(i&&!n){o.brushMode==="single"&&mo(a);var l=ot(o);l.brushType=Fu(l.brushType,i),l.panelId=i===er?null:i.panelId,n=a._creatingCover=Mf(a,l),a._covers.push(n)}if(n){var u=On[Fu(a._brushType,i)],v=n.__brushOption;v.range=u.getCreatingRange(Ts(a,n,a._track)),r&&(If(a,n),u.updateCommon(a,n)),Cf(a,n),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&ws(a,e,t)&&mo(a)&&(s={isEnd:r,removeOnClick:!0});return s}function Fu(a,e){return a==="auto"?e.defaultBrushType:a}var mx={mousedown:function(a){if(this._dragging)Hu(this,a);else if(!a.target||!a.target.draggable){_o(a);var e=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null;var t=this._creatingPanel=ws(this,a,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(a){var e=a.offsetX,t=a.offsetY,r=this.group.transformCoordToLocal(e,t);if(yx(this,a,r),this._dragging){_o(a);var n=Nf(this,a,r,!1);n&&rr(this,n)}},mouseup:function(a){Hu(this,a)}};function Hu(a,e){if(a._dragging){_o(e);var t=e.offsetX,r=e.offsetY,n=a.group.transformCoordToLocal(t,r),i=Nf(a,e,n,!0);a._dragging=!1,a._track=[],a._creatingCover=null,i&&rr(a,i)}}function Sx(a,e,t){var r=a._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var On={lineX:Wu(0),lineY:Wu(1),rect:{createCover:function(a,e){function t(r){return r}return Ef({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=Pf(a);return Vf(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){Rf(a,e,t,r)},updateCommon:So,contain:bo},polygon:{createCover:function(a,e){var t=new $;return t.add(new me({name:"main",style:As(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new re({name:"main",draggable:!0,drift:tt(dx,a,e),ondragend:tt(rr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:Ts(a,e,t)})},updateCommon:So,contain:bo}};function Wu(a){return{createCover:function(e,t){return Ef({toRectRange:function(r){var n=[r,[0,100]];return a&&n.reverse(),n},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=Pf(e),r=oa(t[0][a],t[1][a]),n=br(t[0][a],t[1][a]);return[r,n]},updateCoverShape:function(e,t,r,n){var i,o=Lf(e,t);if(o!==er&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(a);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,i];a&&l.reverse(),Rf(e,t,l,n)},updateCommon:So,contain:bo}}function zf(a){return a=Ms(a),function(e){return tg(e,a)}}function Of(a,e){return a=Ms(a),function(t){var r=e??t,n=r?a.width:a.height,i=r?a.x:a.y;return[i,i+(n||0)]}}function Gf(a,e,t){var r=Ms(a);return function(n,i){return r.contain(i[0],i[1])&&!Vn(n,e,t)}}function Ms(a){return wt.create(a)}var xx=["axisLine","axisTickLabel","axisName"],_x=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new xs(r.getZr())).on("brush",F(this._onBrush,this))},e.prototype.render=function(t,r,n,i){if(!bx(t,r,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new $,this.group.add(this._axisGroup),!!t.get("show")){var s=Ax(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),v=u.width,c=t.axis.dim,h=l.getAxisLayout(c),f=W({strokeContainThreshold:v},h),p=new qe(t,f);M(xx,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,t,s,v,n),Xo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),c=wt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=v,c.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:zf(c),isTargetByCursor:Gf(c,s,i),getLinearBrushOtherExtent:Of(c,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(wx(n))},e.prototype._onBrush=function(t){var r=t.areas,n=this.axisModel,i=n.axis,o=z(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(kt);function bx(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function wx(a){var e=a.axis;return z(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ax(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}var Tx={type:"axisAreaSelect",event:"axisAreaSelected"};function Mx(a){a.registerAction(Tx,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Ix={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Bf(a){a.registerComponentView(X1),a.registerComponentModel(q1),a.registerCoordinateSystem("parallel",nx),a.registerPreprocessor(Z1),a.registerComponentModel(yo),a.registerComponentView(_x),Ja(a,"parallel",yo,Ix),Mx(a)}function Cx(a){X(Bf),a.registerChartView(N1),a.registerSeriesModel(G1),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,W1)}var Dx=(function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return a})(),Lx=(function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Dx},e.prototype.buildPath=function(t,r){var n=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+n,r.y2),t.bezierCurveTo(r.cpx2+n,r.cpy2,r.cpx1+n,r.cpy1,r.x1+n,r.y1)):(t.lineTo(r.x2,r.y2+n),t.bezierCurveTo(r.cpx2,r.cpy2+n,r.cpx1,r.cpy1+n,r.x1,r.y1+n)),t.closePath()},e.prototype.highlight=function(){jr(this)},e.prototype.downplay=function(){Jr(this)},e})(Vt),Px=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,v=l.height,c=t.getData(),h=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new Lx,g=ut(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),x=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),T=p.node2.getLayout(),A=p.node2.getModel(),I=A.get("localX"),C=A.get("localY"),L=p.getLayout(),D,P,E,R,k,N,H,Z;d.shape.extent=Math.max(1,L.dy),d.shape.orient=f,f==="vertical"?(D=(b!=null?b*u:x.x)+L.sy,P=(w!=null?w*v:x.y)+x.dy,E=(I!=null?I*u:T.x)+L.ty,R=C!=null?C*v:T.y,k=D,N=P*(1-S)+R*S,H=E,Z=P*S+R*(1-S)):(D=(b!=null?b*u:x.x)+x.dx,P=(w!=null?w*v:x.y)+L.sy,E=I!=null?I*u:T.x,R=(C!=null?C*v:T.y)+L.ty,k=D*(1-S)+E*S,N=P,H=D*S+E*(1-S),Z=R),d.setShape({x1:D,y1:P,x2:E,y2:R,cpx1:k,cpy1:N,cpx2:H,cpy2:Z}),d.useStyle(m.getItemStyle()),Zu(d.style,f,p);var U=""+y.get("value"),q=Ht(y,"edgeLabel");ae(d,q,{labelFetcher:{getFormattedLabel:function(at,Ct,ce,j,Y,lt){return t.getFormattedLabel(at,Ct,"edge",j,da(Y,q.normal&&q.normal.get("formatter"),U),lt)}},labelDataIndex:p.dataIndex,defaultText:U}),d.setTextConfig({position:"inside"});var rt=y.getModel("emphasis");Kt(d,y,"lineStyle",function(at){var Ct=at.getItemStyle();return Zu(Ct,f,p),Ct}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var J=rt.get("focus");xt(d,J==="adjacency"?p.getAdjacentDataIndices():J==="trajectory"?p.getTrajectoryDataIndices():J,rt.get("blurScope"),rt.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,_=new pt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*v:d.y,width:d.dx,height:d.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});ae(_,Ht(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),Kt(_,g),s.add(_),c.setItemGraphicEl(p.dataIndex,_),ut(_).dataType="node";var b=S.get("focus");xt(_,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,S.get("blurScope"),S.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/v})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Ex(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(Tt);function Zu(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),n=t.node2.getVisual("color");et(r)&&et(n)&&(a.fill=new Oo(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:n,offset:1}]))}}function Ex(a,e,t){var r=new pt({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Ft(r,{shape:{width:a.width+20}},e,t),r}var Rx=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ut(o[l],this,r));var u=bf(i,n,this,!0,v);return u.data;function v(c,h){c.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(f.parentModel=m)}return f}),h.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=d.levelModels[m];S&&(f.parentModel=S)}return f})}},e.prototype.setNodePosition=function(t,r){var n=this.option.data||this.option.nodes,i=n[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,n){function i(f){return isNaN(f)||f==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Zt("nameValue",{name:u,value:l,noValue:i(l)})}else{var v=this.getGraph().getNodeByIndex(t),c=v.getLayout().value,h=this.getDataParams(t,n).data.name;return Zt("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var n=a.prototype.getDataParams.call(this,t,r);if(n.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(It);function Vx(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),n=t.get("nodeGap"),i=kx(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,v=l.edges;zx(u);var c=Lt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),p=t.get("nodeAlign");Nx(u,v,r,n,o,s,h,f,p)})}function kx(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Nx(a,e,t,r,n,i,o,s,l){Ox(a,e,t,n,i,s,l),Hx(a,e,i,n,r,o,s),jx(a,s)}function zx(a){M(a,function(e){var t=Ee(e.outEdges,ln),r=Ee(e.inEdges,ln),n=e.getValue()||0,i=Math.max(t,r,n);e.setLayout({value:i},!0)})}function Ox(a,e,t,r,n,i,o){for(var s=[],l=[],u=[],v=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<a.length;h++)l[h]=a[h].inEdges.length,l[h]===0&&u.push(a[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>f&&(f=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var S=d.outEdges[m],x=e.indexOf(S);s[x]=0;var _=S.node2,b=a.indexOf(_);--l[b]===0&&v.indexOf(_)<0&&v.push(_)}}++c,u=v,v=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=f>c-1?f:c-1;o&&o!=="left"&&Gx(a,o,i,w);var T=i==="vertical"?(n-t)/w:(r-t)/w;Fx(a,T,i)}function Ff(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function Gx(a,e,t,r){if(e==="right"){for(var n=[],i=a,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var v=l.inEdges[u];n.indexOf(v.node1)<0&&n.push(v.node1)}}i=n,n=[],++o}M(a,function(c){Ff(c)||c.setLayout({depth:Math.max(0,r-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Bx(a,r)}function Bx(a,e){M(a,function(t){!Ff(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Fx(a,e,t){M(a,function(r){var n=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:n},!0):r.setLayout({x:n},!0)})}function Hx(a,e,t,r,n,i,o){var s=Wx(a,o);Zx(s,e,t,r,n,o),_i(s,n,t,r,o);for(var l=1;i>0;i--)l*=.99,Ux(s,l,o),_i(s,n,t,r,o),qx(s,l,o),_i(s,n,t,r,o)}function Wx(a,e){var t=[],r=e==="vertical"?"y":"x",n=to(a,function(i){return i.getLayout()[r]});return n.keys.sort(function(i,o){return i-o}),M(n.keys,function(i){t.push(n.buckets.get(i))}),t}function Zx(a,e,t,r,n,i){var o=1/0;M(a,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var v=i==="vertical"?(r-(l-1)*n)/u:(t-(l-1)*n)/u;v<o&&(o=v)}),M(a,function(s){M(s,function(l,u){var v=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:v},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:v},!0))})}),M(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function _i(a,e,t,r,n){var i=n==="vertical"?"x":"y";M(a,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,v=0,c=o.length,h=n==="vertical"?"dx":"dy",f=0;f<c;f++)l=o[f],u=v-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]+l.getLayout()[h]+e;var p=n==="vertical"?r:t;if(u=v-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var f=c-2;f>=0;--f)l=o[f],u=l.getLayout()[i]+l.getLayout()[h]+e-v,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]}})}function Ux(a,e,t){M(a.slice().reverse(),function(r){M(r,function(n){if(n.outEdges.length){var i=Ee(n.outEdges,Yx,t)/Ee(n.outEdges,ln);if(isNaN(i)){var o=n.outEdges.length;i=o?Ee(n.outEdges,$x,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ne(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ne(n,t))*e;n.setLayout({y:l},!0)}}})})}function Yx(a,e){return Ne(a.node2,e)*a.getValue()}function $x(a,e){return Ne(a.node2,e)}function Xx(a,e){return Ne(a.node1,e)*a.getValue()}function Kx(a,e){return Ne(a.node1,e)}function Ne(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function ln(a){return a.getValue()}function Ee(a,e,t){for(var r=0,n=a.length,i=-1;++i<n;){var o=+e(a[i],t);isNaN(o)||(r+=o)}return r}function qx(a,e,t){M(a,function(r){M(r,function(n){if(n.inEdges.length){var i=Ee(n.inEdges,Xx,t)/Ee(n.inEdges,ln);if(isNaN(i)){var o=n.inEdges.length;i=o?Ee(n.inEdges,Kx,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ne(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ne(n,t))*e;n.setLayout({y:l},!0)}}})})}function jx(a,e){var t=e==="vertical"?"x":"y";M(a,function(r){r.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),r.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),M(a,function(r){var n=0,i=0;M(r.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),M(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function Jx(a){a.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes,n=t.edges;if(r.length){var i=1/0,o=-1/0;M(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(r,function(s){var l=new At({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&M(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Qx(a){a.registerChartView(Px),a.registerSeriesModel(Rx),a.registerLayout(Vx),a.registerVisual(Jx),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Hf=(function(){function a(){}return a.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},a.prototype.getInitialData=function(e,t){var r,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],v=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[v],h=u[1-v],f=[n,i],p=f[v].get("type"),d=f[1-v].get("type"),g=e.data;if(g&&l){var y=[];M(g,function(x,_){var b;B(x)?(b=x.slice(),x.unshift(_)):B(x.value)?(b=W({},x),b.value=b.value.slice(),x.value.unshift(_)):b=x,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,S=[{name:c,type:eo(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:eo(d),dimsDef:m.slice()}];return ca(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:tt(eg,S,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a})(),Wf=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(It);ue(Wf,Hf,!0);var t_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var v=i.getItemLayout(u),c=Uu(v,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,v){var c=s.getItemGraphicEl(v);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Ve(c),Zf(h,c,i,u)):c=Uu(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e})(Tt),e_=(function(){function a(){}return a})(),r_=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new e_},e.prototype.buildPath=function(t,r){var n=r.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Vt);function Uu(a,e,t,r,n){var i=a.ends,o=new r_({shape:{points:n?a_(i,r,a):i}});return Zf(a,o,e,t,n),o}function Zf(a,e,t,r,n){var i=t.hostModel,o=Tr[n?"initProps":"updateProps"];o(e,{shape:{points:a.ends}},i,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(r),l=s.getModel("emphasis");Kt(e,s),xt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function a_(a,e,t){return z(a,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}var $r=M;function n_(a){var e=i_(a);$r(e,function(t){var r=t.seriesModels;r.length&&(o_(t),$r(r,function(n,i){s_(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function i_(a){var e=[],t=[];return a.eachSeriesByType("boxplot",function(r){var n=r.getBaseAxis(),i=dt(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(r)}),e}function o_(a){var e=a.axis,t=a.seriesModels,r=t.length,n=a.boxWidthList=[],i=a.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;$r(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}$r(t,function(p){var d=p.get("boxWidth");B(d)||(d=[d,d]),o.push([G(d[0],s)||0,G(d[1],s)||0])});var v=s*.8-2,c=v/r*.3,h=(v-c*(r-1))/r,f=h/2-v/2;$r(t,function(p,d){i.push(f),f+=c+h,n.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function s_(a,e,t){var r=a.coordinateSystem,n=a.getData(),i=t/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),v=n.mapDimensionsAll(l[s]);if(u==null||v.length<5)return;for(var c=0;c<n.count();c++){var h=n.get(u,c),f=S(h,v[2],c),p=S(h,v[0],c),d=S(h,v[1],c),g=S(h,v[3],c),y=S(h,v[4],c),m=[];x(m,d,!1),x(m,g,!0),m.push(p,d,y,g),_(m,p),_(m,y),_(m,f),n.setItemLayout(c,{initBaseline:f[s],ends:m})}function S(b,w,T){var A=n.get(w,T),I=[];I[o]=b,I[s]=A;var C;return isNaN(b)||isNaN(A)?C=[NaN,NaN]:(C=r.dataToPoint(I),C[o]+=e),C}function x(b,w,T){var A=w.slice(),I=w.slice();A[o]+=i,I[o]-=i,T?b.push(A,I):b.push(I,A)}function _(b,w){var T=w.slice(),A=w.slice();T[o]-=i,A[o]+=i,b.push(T,A)}}function l_(a,e){e=e||{};for(var t=[],r=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<a.length;o++){var s=te(a[o].slice()),l=Zn(s,.25),u=Zn(s,.5),v=Zn(s,.75),c=s[0],h=s[s.length-1],f=(n??1.5)*(v-l),p=i?c:Math.max(c,l-f),d=i?h:Math.min(h,v+f),g=e.itemNameFormatter,y=st(g)?g({value:o}):et(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,v,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>d){var x=[y,S];r.push(x)}}}return{boxData:t,outliers:r}}var u_={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ph){var r="";yt(r)}var n=l_(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function v_(a){a.registerSeriesModel(Wf),a.registerChartView(t_),a.registerLayout(n_),a.registerTransform(u_)}var c_=["itemStyle","borderColor"],h_=["itemStyle","borderColor0"],f_=["itemStyle","borderColorDoji"],p_=["itemStyle","color"],d_=["itemStyle","color0"];function Is(a,e){return e.get(a>0?p_:d_)}function Cs(a,e){return e.get(a===0?f_:a>0?c_:h_)}var g_={seriesType:"candlestick",plan:Ko(),performRawSeries:!0,reset:function(a,e){if(!e.isSeriesFiltered(a)){var t=a.pipelineContext.large;return!t&&{progress:function(r,n){for(var i;(i=r.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Is(s,o),l.stroke=Cs(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}},y_=["color","borderColor"],m_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),n=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(n).add(function(v){if(r.hasValue(v)){var c=r.getItemLayout(v);if(s&&Yu(u,c))return;var h=bi(c,v,!0);Ft(h,{shape:{points:c.ends}},t,v),wi(h,r,v,o),i.add(h),r.setItemGraphicEl(v,h)}}).update(function(v,c){var h=n.getItemGraphicEl(c);if(!r.hasValue(v)){i.remove(h);return}var f=r.getItemLayout(v);if(s&&Yu(u,f)){i.remove(h);return}h?(ct(h,{shape:{points:f.ends}},t,v),Ve(h)):h=bi(f),wi(h,r,v,o),i.add(h),r.setItemGraphicEl(v,h)}).remove(function(v){var c=n.getItemGraphicEl(v);c&&i.remove(c)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$u(t,this.group);var r=t.get("clip",!0)?Ln(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var n=r.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=bi(s);wi(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$u(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(Tt),S_=(function(){function a(){}return a})(),x_=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new S_},e.prototype.buildPath=function(t,r){var n=r.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(Vt);function bi(a,e,t){var r=a.ends;return new x_({shape:{points:t?__(r,a):r},z2:100})}function Yu(a,e){for(var t=!0,r=0;r<e.ends.length;r++)if(a.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function wi(a,e,t,r){var n=e.getItemModel(t);a.useStyle(e.getItemVisual(t,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,Kt(a,n);var i=e.getItemLayout(t).sign;M(a.states,function(s,l){var u=n.getModel(l),v=Is(i,u),c=Cs(i,u)||v,h=s.style||(s.style={});v&&(h.fill=v),c&&(h.stroke=c)});var o=n.getModel("emphasis");xt(a,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function __(a,e){return z(a,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var b_=(function(){function a(){}return a})(),Ai=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new b_},e.prototype.buildPath=function(t,r){for(var n=r.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Vt);function $u(a,e,t,r){var n=a.getData(),i=n.getLayout("largePoints"),o=new Ai({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Ai({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Ai({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),Ti(1,o,a),Ti(-1,s,a),Ti(0,l,a),r&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Ti(a,e,t,r){var n=Cs(a,t)||Is(a,t),i=t.getModel("itemStyle").getItemStyle(y_);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var Uf=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,n){var i=r.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(It);ue(Uf,Hf,!0);function w_(a){!a||!B(a.series)||M(a.series,function(e){Rt(e)&&e.type==="k"&&(e.type="candlestick")})}var A_={seriesType:"candlestick",plan:Ko(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=T_(a,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=z(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],v=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?p:f};function f(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var S=m.get(s,y),x=m.get(u,y),_=m.get(v,y),b=m.get(c,y),w=m.get(h,y),T=Math.min(x,_),A=Math.max(x,_),I=k(T,S),C=k(A,S),L=k(b,S),D=k(w,S),P=[];N(P,C,0),N(P,I,1),P.push(Z(D),Z(C),Z(L),Z(I));var E=g.getItemModel(y),R=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Xu(m,y,x,_,v,R),initBaseline:x>_?C[i]:I[i],ends:P,brushRect:H(b,w,S)})}function k(U,q){var rt=[];return rt[n]=q,rt[i]=U,isNaN(q)||isNaN(U)?[NaN,NaN]:e.dataToPoint(rt)}function N(U,q,rt){var J=q.slice(),at=q.slice();J[n]=Un(J[n]+r/2,1,!1),at[n]=Un(at[n]-r/2,1,!0),rt?U.push(J,at):U.push(at,J)}function H(U,q,rt){var J=k(U,rt),at=k(q,rt);return J[n]-=r/2,at[n]-=r/2,{x:J[0],y:J[1],width:r,height:at[1]-J[1]}}function Z(U){return U[n]=Un(U[n],1),U}}function p(d,g){for(var y=rg(d.count*4),m=0,S,x=[],_=[],b,w=g.getStore(),T=!!a.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var A=w.get(s,b),I=w.get(u,b),C=w.get(v,b),L=w.get(c,b),D=w.get(h,b);if(isNaN(A)||isNaN(L)||isNaN(D)){y[m++]=NaN,m+=3;continue}y[m++]=Xu(w,b,I,C,v,T),x[n]=A,x[i]=L,S=e.dataToPoint(x,null,_),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,x[i]=D,S=e.dataToPoint(x,null,_),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function Xu(a,e,t,r,n,i){var o;return t>r?o=-1:t<r?o=1:o=i?0:e>0?a.get(n,e-1)<=r?1:-1:1,o}function T_(a,e){var t=a.getBaseAxis(),r,n=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=G(Dt(a.get("barMaxWidth"),n),n),o=G(Dt(a.get("barMinWidth"),1),n),s=a.get("barWidth");return s!=null?G(s,n):Math.max(Math.min(n/2,i),o)}function M_(a){a.registerChartView(m_),a.registerSeriesModel(Uf),a.registerPreprocessor(w_),a.registerVisual(g_),a.registerLayout(A_)}function Ku(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var I_=(function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=new sh(t,r),o=new $;return n.add(i),n.add(o),n.updateData(t,r),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Wt(r,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}Ku(o,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}Ku(n,t)},e.prototype.highlight=function(){jr(this)},e.prototype.downplay=function(){Jr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var n=this,i=t.hostModel;this.childAt(0).updateData(t,r);var o=this.childAt(1),s=t.getItemModel(r),l=t.getItemVisual(r,"symbol"),u=va(t.getItemVisual(r,"symbolSize")),v=t.getItemVisual(r,"style"),c=v&&v.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var f=ya(t.getItemVisual(r,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=t.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=r/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&n.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=d,xt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})($),C_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Uo(I_)},e.prototype.render=function(t,r,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,n=r&&r.getArea&&r.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,r,n){var i=t.getData();this.group.dirty();var o=dh("").reset(t,r,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=ag(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Tt),D_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return ma(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,n){return n.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(It);function L_(a){a.registerChartView(C_),a.registerSeriesModel(D_),a.registerLayout(dh("effectScatter"))}var Yf=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i.add(i.createLine(t,r,n)),i._updateEffectSymbol(t,r),i}return e.prototype.createLine=function(t,r,n){return new ms(t,r,n)},e.prototype._updateEffectSymbol=function(t,r){var n=t.getItemModel(r),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");B(o)||(o=[o,o]);var l=t.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,v=this.childAt(1);this._symbolType!==s&&(this.remove(v),v=Wt(s,-.5,-.5,1,1,u),v.z2=100,v.culling=!0,this.add(v)),v&&(v.setStyle("shadowColor",u),v.setStyle(i.getItemStyle(["color"])),v.scaleX=o[0],v.scaleY=o[1],v.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,r))},e.prototype._updateEffectAnimation=function(t,r,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),v=r.get("constantSpeed"),c=Xt(r.get("delay"),function(f){return f/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),v>0&&(s=this._getLineLength(i)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;st(c)?h=c(n):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,n,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Br(t.__p1,t.__cp1)+Br(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,n){this.childAt(0).updateData(t,r,n),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ch,v=ng;s[0]=u(r[0],i[0],n[0],o),s[1]=u(r[1],i[1],n[1],o);var c=t.__t<1?v(r[0],i[0],n[0],o):v(n[0],i[0],r[0],1-o),h=t.__t<1?v(r[1],i[1],n[1],o):v(n[1],i[1],r[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Br(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Br(r,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var n=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,n,r)},e})($),$f=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i._createPolyline(t,r,n),i}return e.prototype._createPolyline=function(t,r,n){var i=t.getItemLayout(r),o=new me({shape:{points:i}});this.add(o),this._updateCommonStl(t,r,n)},e.prototype.updateData=function(t,r,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(r)}};ct(o,s,i,r),this._updateCommonStl(t,r,n)},e.prototype._updateCommonStl=function(t,r,n){var i=this.childAt(0),o=t.getItemModel(r),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,v=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),v=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(t.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,xt(this,l,u,v)},e.prototype.updateLayout=function(t,r){var n=this.childAt(0);n.setShape("points",t.getItemLayout(r))},e})($),P_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,n){return new $f(t,r,n)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var n=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Br(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var v=(r-i[l])/(i[l+1]-i[l]),c=n[l],h=n[l+1];t.x=c[0]*(1-v)+v*h[0],t.y=c[1]*(1-v)+v*h[1];var f=t.__t<1?h[0]-c[0]:c[0]-h[0],p=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e})(Yf),E_=(function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a})(),R_=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new E_},e.prototype.buildPath=function(t,r){var n=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],v=n[o++],c=n[o++],h=n[o++];if(t.moveTo(u,v),i>0){var f=(u+c)/2-(v-h)*i,p=(v+h)/2-(c-u)*i;t.quadraticCurveTo(f,p,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var v=i[u++];if(v>0)for(var c=i[u++],h=i[u++],f=1;f<v;f++){var p=i[u++],d=i[u++];if(cl(c,h,p,d,s,t,r))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if(ig(c,h,g,y,p,d,s,t,r))return l}else if(cl(c,h,p,d,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var n=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=n[0],r=n[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,n=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var v=n[u++],c=n[u++];i=Math.min(v,i),s=Math.max(v,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new wt(i,o,s,l)}return t},e})(Vt),V_=(function(){function a(){this.group=new $}return a.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},a.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],n=t.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new R_({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},a.prototype._setCommon=function(e,t,r){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ut(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),Xf={seriesType:"lines",plan:Ko(),reset:function(a){var e=a.coordinateSystem;if(e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(n,i){var o=[];if(r){var s=void 0,l=n.end-n.start;if(t){for(var u=0,v=n.start;v<n.end;v++)u+=a.getLineCoordsCount(v);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],v=n.start;v<n.end;v++){var f=a.getLineCoords(v,o);t&&(s[c++]=f);for(var p=0;p<f;p++)h=e.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var v=n.start;v<n.end;v++){var d=i.getItemModel(v),f=a.getLineCoords(v,o),g=[];if(t)for(var y=0;y<f;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(v,g)}}}}}},k_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),v=u.painter.getType()==="svg";v||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!v&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&Ln(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,n){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Xf.reset(t,r,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,r){var n=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new V_:new Ss(o?i?P_:$f:i?Yf:ms),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),n=r.painter.getType()==="svg";!n&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e})(Tt),N_=typeof Uint32Array>"u"?Array:Uint32Array,z_=typeof Float64Array>"u"?Array:Float64Array;function qu(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=z(e,function(t){var r=[t[0].coord,t[1].coord],n={coords:r};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Fo([n,t[0],t[1]])}))}var O_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],qu(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(qu(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Xa(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Xa(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),n=r.option instanceof Array?r.option:r.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[n+o*2],r[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),le(t[0])){for(var n=t.length,i=new N_(n),o=new z_(n),s=0,l=0,u=0,v=0;v<n;){u++;var c=t[v++];i[l++]=s+r,i[l++]=c;for(var h=0;h<c;h++){var f=t[v++],p=t[v++];o[s++]=f,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){var n=new Bt(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Zt("nameValue",{name:v.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(It);function Ra(a){return a instanceof Array||(a=[a,a]),a}var G_={seriesType:"lines",reset:function(a){var e=Ra(a.get("symbol")),t=Ra(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Ra(s.getShallow("symbol",!0)),u=Ra(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?n:null}}};function B_(a){a.registerChartView(k_),a.registerSeriesModel(O_),a.registerLayout(Xf),a.registerVisual(G_)}var F_=256,H_=(function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hl.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),v=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=e.length;c.width=t,c.height=r;for(var p=0;p<f;++p){var d=e[p],g=d[0],y=d[1],m=d[2],S=n(m);h.globalAlpha=S,h.drawImage(s,g-v,y-v)}if(!c.width||!c.height)return c;for(var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,T=this.minOpacity,A=this.maxOpacity,I=A-T;b<w;){var S=_[b+3]/256,C=Math.floor(S*(F_-1))*4;if(S>0){var L=o(S)?l:u;S>0&&(S=S*I+T),_[b++]=L[C],_[b++]=L[C+1],_[b++]=L[C+2],_[b++]=L[C+3]*S*256}else b+=4}return h.putImageData(x,0,0),c},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=hl.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var n=e.getContext("2d");return n.clearRect(0,0,r,r),n.shadowOffsetX=r,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,n=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},a})();function W_(a,e,t){var r=a[1]-a[0];e=z(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function Z_(a,e){var t=a[1]-a[0];return e=[(e[0]-a[0])/t,(e[1]-a[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function ju(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var U_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):ju(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,r,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,n,i){var o=r.coordinateSystem;o&&(ju(o)?this.render(r,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,n,i,o){var s=t.coordinateSystem,l=Pn(s,"cartesian2d"),u,v,c,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,v=p.getBandWidth()+.5,c=f.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),_=Ht(t),b=t.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),A=b.get("disabled"),I=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],C=n;C<i;C++){var L=void 0,D=g.getItemVisual(C,"style");if(l){var P=g.get(I[0],C),E=g.get(I[1],C);if(isNaN(g.get(I[2],C))||isNaN(P)||isNaN(E)||P<c[0]||P>c[1]||E<h[0]||E>h[1])continue;var R=s.dataToPoint([P,E]);L=new pt({shape:{x:R[0]-u/2,y:R[1]-v/2,width:u,height:v},style:D})}else{if(isNaN(g.get(I[1],C)))continue;L=new pt({z2:1,shape:s.dataToRect([g.get(I[0],C)]).contentShape,style:D})}if(g.hasItemOption){var k=g.getItemModel(C),N=k.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=k.getModel(["blur","itemStyle"]).getItemStyle(),S=k.getModel(["select","itemStyle"]).getItemStyle(),x=k.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),A=N.get("disabled"),_=Ht(k)}L.shape.r=x;var H=t.getRawValue(C),Z="-";H&&H[2]!=null&&(Z=H[2]+""),ae(L,_,{labelFetcher:t,labelDataIndex:C,defaultOpacity:D.opacity,defaultText:Z}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=S,xt(L,w,T,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(C,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new H_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var v=t.getViewRect().clone(),c=t.getRoamTransform();v.applyTransform(c);var h=Math.max(v.x,0),f=Math.max(v.y,0),p=Math.min(v.width+v.x,i.getWidth()),d=Math.min(v.height+v.y,i.getHeight()),g=p-h,y=d-f,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(w,T,A){var I=t.dataToPoint([w,T]);return I[0]-=h,I[1]-=f,I.push(A),I}),x=n.getExtent(),_=n.type==="visualMap.continuous"?Z_(x,n.option.range):W_(x,n.getPieceList(),n.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new ye({style:{width:g,height:y,x:h,y:f,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Tt),Y_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return ma(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=hh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(It);function $_(a){a.registerChartView(U_),a.registerSeriesModel(Y_)}var X_=["itemStyle","borderWidth"],Ju=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mi=new ha,K_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:v,valueDim:Ju[+v],categoryDim:Ju[1-+v]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=tv(o,p),g=Qu(o,p,d,h),y=ev(o,h,g);o.setItemGraphicEl(p,y),i.add(y),av(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=tv(o,p),m=Qu(o,p,y,h),S=tp(o,m);g&&S!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?rb(g,h,m):g=ev(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),av(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&rv(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var f=t.get("clip",!0)?Ln(t.coordinateSystem,!1,t):null;return f?i.setClipPath(f):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){rv(i,ut(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(Tt);function Qu(a,e,t,r){var n=a.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:n,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};q_(t,i,n,r,h),j_(a,e,n,i,o,h.boundingLength,h.pxSign,v,r,h),J_(t,h.symbolScale,u,r,h);var f=h.symbolSize,p=ya(t.get("symbolOffset"),f);return Q_(t,f,n,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function q_(a,e,t,r,n){var i=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),v;if(B(o)){var c=[Ii(s,o[0])-l,Ii(s,o[1])-l];c[1]<c[0]&&c.reverse(),v=c[u]}else o!=null?v=Ii(s,o)-l:e?v=r.coordSysExtent[i.index][u]-l:v=t[i.wh];n.boundingLength=v,e&&(n.repeatCutLength=t[i.wh]);var h=i.xy==="x",f=s.inverse;n.pxSign=h&&!f||!h&&f?v>=0?1:-1:v>0?1:-1}function Ii(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function j_(a,e,t,r,n,i,o,s,l,u){var v=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),f=a.getItemVisual(e,"symbolSize"),p;B(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[c.index]=G(p[c.index],h),p[v.index]=G(p[v.index],r?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[v.index]*=(l.isHorizontal?-1:1)*o}function J_(a,e,t,r,n){var i=a.get(X_)||0;i&&(Mi.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Mi.updateTransform(),i/=Mi.getLineScale(),i*=e[r.valueDim.index]),n.valueLineWidth=i||0}function Q_(a,e,t,r,n,i,o,s,l,u,v,c){var h=v.categoryDim,f=v.valueDim,p=c.pxSign,d=Math.max(e[f.index]+s,0),g=d;if(r){var y=Math.abs(l),m=Xt(a.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var x=G(m,e[f.index]),_=Math.max(d+x*2,0),b=S?0:x*2,w=og(r),T=w?r:nv((y+b)/_),A=y-T*d;x=A/2/(S?T:Math.max(T-1,1)),_=d+x*2,b=S?0:x*2,!w&&r!=="fixed"&&(T=u?nv((Math.abs(u)+b)/_):0),g=T*_-b,c.repeatTimes=T,c.symbolMargin=x}var I=p*(g/2),C=c.pathPosition=[];C[h.index]=t[h.wh]/2,C[f.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(C[0]+=i[0],C[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=t[h.xy],L[f.index]=t[f.xy];var D=c.barRectShape=W({},t);D[f.wh]=p*Math.max(Math.abs(t[f.wh]),Math.abs(C[f.index]+I)),D[h.wh]=t[h.wh];var P=c.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=v.ecSize[h.wh],P[f.xy]=0,P[f.wh]=t[f.wh]}function Kf(a){var e=a.symbolPatternSize,t=Wt(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function qf(a,e,t,r){var n=a.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,v=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(Ds(a,function(d){d.__pictorialAnimationIndex=v,d.__pictorialRepeatTimes=u,v<u?xr(d,null,p(v),t,r):xr(d,null,{scaleX:0,scaleY:0},t,r,function(){n.remove(d)}),v++});v<u;v++){var h=Kf(t);h.__pictorialAnimationIndex=v,h.__pictorialRepeatTimes=u,n.add(h);var f=p(v);xr(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},t,r)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jf(a,e,t,r){var n=a.__pictorialBundle,i=a.__pictorialMainPath;i?xr(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=a.__pictorialMainPath=Kf(t),n.add(i),xr(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Jf(a,e,t){var r=W({},e.barRectShape),n=a.__pictorialBarRect;n?xr(n,null,{shape:r},e,t):(n=a.__pictorialBarRect=new pt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,a.add(n))}function Qf(a,e,t,r){if(t.symbolClip){var n=a.__pictorialClipPath,i=W({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)ct(n,{shape:i},s,l);else{i[o.wh]=0,n=new pt({shape:i}),a.__pictorialBundle.setClipPath(n),a.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Tr[r?"updateProps":"initProps"](n,{shape:u},s,l)}}}function tv(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=tb,t.isAnimationEnabled=eb,t}function tb(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function eb(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ev(a,e,t,r){var n=new $,i=new $;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?qf(n,e,t):jf(n,e,t),Jf(n,t,r),Qf(n,e,t,r),n.__pictorialShapeStr=tp(a,t),n.__pictorialSymbolMeta=t,n}function rb(a,e,t){var r=t.animationModel,n=t.dataIndex,i=a.__pictorialBundle;ct(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,n),t.symbolRepeat?qf(a,e,t,!0):jf(a,e,t,!0),Jf(a,t,!0),Qf(a,e,t,!0)}function rv(a,e,t,r){var n=r.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ds(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Ka(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function tp(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ds(a,e,t){M(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function xr(a,e,t,r,n,i){e&&a.attr(e),r.symbolClip&&!n?t&&a.attr(t):t&&Tr[n?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,i)}function av(a,e,t){var r=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),v=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");Ds(a,function(d){if(d instanceof ye){var g=d.style;d.useStyle(W({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],p=a.__pictorialBarRect;p.ignoreClip=!0,ae(p,Ht(n),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:ro(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),xt(a,v,c,i.get("disabled"))}function nv(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}var ab=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ir(fl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(fl);function nb(a){a.registerChartView(K_),a.registerSeriesModel(ab),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,tt(sg,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lg("pictorialBar"))}var ib=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),v=u.rect,c=u.boundaryGap;s.x=0,s.y=v.y+c[0];function h(g){return g.name}var f=new ke(this._layersSeries||[],l,h,h),p=[];f.add(F(d,this,"add")).update(F(d,this,"update")).remove(F(d,this,"remove")).execute();function d(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var x=[],_=[],b,w=l[y].indices,T=0;T<w.length;T++){var A=i.getItemLayout(w[T]),I=A.x,C=A.y0,L=A.y;x.push(I,C),_.push(I,C+L),b=i.getItemVisual(w[T],"style")}var D,P=i.getItemLayout(w[0]),E=t.getModel("label"),R=E.get("margin"),k=t.getModel("emphasis");if(g==="add"){var N=p[y]=new $;D=new ug({shape:{points:x,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(D),s.add(N),t.isAnimationEnabled()&&D.setClipPath(ob(D.getBoundingRect(),t,function(){D.removeClipPath()}))}else{var N=S[m];D=N.childAt(0),s.add(N),p[y]=N,ct(D,{shape:{points:x,stackedOnPoints:_}},t),Ve(D)}ae(D,Ht(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),D.setTextConfig({position:null,local:!0});var H=D.getTextContent();H&&(H.x=P.x-R,H.y=P.y0+P.y/2),D.useStyle(b),i.setItemGraphicEl(y,D),Kt(D,t),xt(D,k.get("focus"),k.get("blurScope"),k.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e})(Tt);function ob(a,e,t){var r=new pt({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Ft(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},e,t),r}var Ci=2,sb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new bn(F(this.getData,this),F(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,n={},i=to(t,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,v=0;v<o[l].dataList.length;++v){var c=o[l].dataList[v][0]+"";n[c]=l}for(var c in n)n.hasOwnProperty(c)&&n[c]!==l&&(n[c]=l,t[r]=[c,0,u],r++)}return t},e.prototype.getInitialData=function(t,r){for(var n=this.getReferringComponents("singleAxis",ge).models[0],i=n.get("type"),o=Lt(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),v=0,c=0;c<s.length;++c)l.push(s[c][Ci]),u.get(s[c][Ci])||(u.set(s[c][Ci],v),v++);var h=Ho(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:eo(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new Bt(h,this);return f.initData(s),f},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),n=[],i=0;i<r;++i)n[i]=i;var o=t.mapDimension("single"),s=to(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,v){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:v,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,r,n){B(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,v=0;v<l;++v){for(var c=Number.MAX_VALUE,h=-1,f=o[v].indices.length,p=0;p<f;++p){var d=i.get(t[0],o[v].indices[p]),g=Math.abs(d-r);g<=c&&(u=d,c=g,h=o[v].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return Zt("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(It);function lb(a,e){a.eachSeriesByType("themeRiver",function(t){var r=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=G(s[0],o.height),s[1]=G(s[1],o.height);var u=o.height-s[0]-s[1];iv(r,t,u)}else{s[0]=G(s[0],o.width),s[1]=G(s[1],o.width);var v=o.width-s[0]-s[1];iv(r,t,v)}r.setLayout("layoutInfo",i)})}function iv(a,e,t){if(a.count())for(var r=e.coordinateSystem,n=e.getLayerSeries(),i=a.mapDimension("single"),o=a.mapDimension("value"),s=z(n,function(g){return z(g.indices,function(y){var m=r.dataToPoint(a.get(i,y));return m[1]=a.get(o,y),m})}),l=ub(s),u=l.y0,v=t/l.max,c=n.length,h=n[0].indices.length,f,p=0;p<h;++p){f=u[p]*v,a.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*v});for(var d=1;d<c;++d)f+=s[d-1][p][1]*v,a.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:f,y:s[d][p][1]*v})}}function ub(a){for(var e=a.length,t=a[0].length,r=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=a[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<t;++u)n[u]=(i-r[u])/2;i=0;for(var v=0;v<t;++v){var c=r[v]+n[v];c>i&&(i=c)}return{y0:n,max:i}}function vb(a){a.registerChartView(ib),a.registerSeriesModel(sb),a.registerLayout(lb),a.registerProcessor(An("themeRiver"))}var cb=2,hb=4,ov=(function(a){V(e,a);function e(t,r,n,i){var o=a.call(this)||this;o.z2=cb,o.textConfig={inside:!0},ut(o).seriesIndex=r.seriesIndex;var s=new vt({z2:hb,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,n,i),o}return e.prototype.updateData=function(t,r,n,i,o){this.node=r,r.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ut(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),v=r.getLayout(),c=W({},v);c.label=null;var h=r.getVisual("style");h.lineJoin="bevel";var f=r.getVisual("decal");f&&(h.decal=Go(f,o));var p=pl(l.getModel("itemStyle"),c,!0);W(c,p),M(Qi,function(m){var S=s.ensureState(m),x=l.getModel([m,"itemStyle"]);S.style=x.getItemStyle();var _=pl(x,c);_&&(S.shape=_)}),t?(s.setShape(c),s.shape.r=v.r0,Ft(s,{shape:{r:v.r}},n,r.dataIndex)):(ct(s,{shape:c},n),Ve(s)),s.useStyle(h),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Xa(r.getAncestorsIndices(),r.getDescendantIndices()):g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;xt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),c=this,h=c.getTextContent(),f=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,M(cg,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),S=y==="normal",x=S?h:h.ensureState(y),_=t.getFormattedLabel(f,y);S&&(_=_||r.node.name),x.style=St(m,{},null,y!=="normal",!0),_&&(x.style.text=_);var b=m.get("show");b!=null&&!S&&(x.ignore=!b);var w=g(m,"position"),T=S?c:c.states[y],A=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?A:null,inside:w!=="outside"};var I,C=g(m,"distance")||0,L=g(m,"align"),D=g(m,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,R=Or(D==="tangential"?Math.PI/2-l:l),k=R>P&&!vg(R-P)&&R<E;w==="outside"?(I=o.r+C,L=k?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,L="center"):L==="left"?(I=o.r0+C,L=k?"right":"left"):L==="right"&&(I=o.r-C,L=k?"left":"right"),x.style.align=L,x.style.verticalAlign=g(m,"verticalAlign")||"middle",x.x=I*u+o.cx,x.y=I*v+o.cy;var N=0;D==="radial"?N=Or(-l)+(k?Math.PI:0):D==="tangential"?N=Or(Math.PI/2-l)+(k?Math.PI:0):le(D)&&(N=D*Math.PI/180),x.rotation=Or(N)});function g(y,m){var S=y.get(m);return S??i.get(m)}h.dirtyStyle()},e})(tr),wo="sunburstRootToNode",sv="sunburstHighlight",fb="sunburstUnhighlight";function pb(a){a.registerAction({type:wo,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(n,i){var o=ra(e,[wo],n);if(o){var s=n.getViewRoot();s&&(e.direction=fs(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),a.registerAction({type:sv,update:"none"},function(e,t,r){e=W({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=ra(e,[sv],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(W(e,{type:"highlight"}))}),a.registerAction({type:fb,update:"updateView"},function(e,t,r){e=W({},e),r.dispatchAction(W(e,{type:"downplay"}))})}var db=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),v=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var f=this._oldChildren||[];p(h,f),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,S){if(m.length===0&&S.length===0)return;new ke(S,m,x,x).add(_).update(_).remove(tt(_,null)).execute();function x(b){return b.getId()}function _(b,w){var T=b==null?null:m[b],A=w==null?null:S[w];d(T,A)}}function d(m,S){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,t,r,n),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var x=new ov(m,t,r,n);v.add(x),s.setItemGraphicEl(m.dataIndex,x)}}}function g(m){m&&m.piece&&(v.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,r,n):(o.virtualPiece=new ov(m,t,r,n),v.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(S.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";uh(u,v)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:wo,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var n=r.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(Tt),gb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};ep(n);var i=this._levelModels=z(t.levels||[],function(l){return new Ut(l,this,r)},this),o=hs.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var c=o.getNodeByDataIndex(v),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=Nn(n,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){of(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(It);function ep(a){var e=0;M(a.children,function(r){ep(r);var n=r.value;B(n)&&(n=n[0]),e+=n});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}var lv=Math.PI/180;function yb(a,e,t){e.eachSeriesByType(a,function(r){var n=r.get("center"),i=r.get("radius");B(i)||(i=[0,i]),B(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=G(n[0],o),v=G(n[1],s),c=G(i[0],l/2),h=G(i[1],l/2),f=-r.get("startAngle")*lv,p=r.get("minAngle")*lv,d=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&rp(g,m);var S=0;M(g.children,function(R){!isNaN(R.getValue())&&S++});var x=g.getValue(),_=Math.PI/(x||S)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),A=r.get("clockwise"),I=r.get("stillShowZeroSum"),C=A?1:-1,L=function(R,k){if(R){var N=k;if(R!==d){var H=R.getValue(),Z=x===0&&I?_:H*_;Z<p&&(Z=p),N=k+C*Z;var U=R.depth-y-(b?-1:1),q=c+T*U,rt=c+T*(U+1),J=r.getLevelModel(R);if(J){var at=J.get("r0",!0),Ct=J.get("r",!0),ce=J.get("radius",!0);ce!=null&&(at=ce[0],Ct=ce[1]),at!=null&&(q=G(at,l/2)),Ct!=null&&(rt=G(Ct,l/2))}R.setLayout({angle:Z,startAngle:k,endAngle:N,clockwise:A,cx:u,cy:v,r0:q,r:rt})}if(R.children&&R.children.length){var j=0;M(R.children,function(Y){j+=L(Y,k+j)})}return N-k}};if(b){var D=c,P=c+T,E=Math.PI*2;d.setLayout({angle:E,startAngle:f,endAngle:f+E,clockwise:A,cx:u,cy:v,r0:D,r:P})}L(g,f)})}function rp(a,e){var t=a.children||[];a.children=mb(t,e),t.length&&M(a.children,function(r){rp(r,e)})}function mb(a,e){if(st(e)){var t=z(a,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),z(t,function(n){return a[n.index]})}else{var r=e==="asc";return a.sort(function(n,i){var o=(n.getValue()-i.getValue())*(r?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(r?-1:1):o})}}function Sb(a){var e={};function t(r,n,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&et(s)&&(s=hg(s,(r.depth-1)/(i-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var n=r.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");W(u,l)})})}function xb(a){a.registerChartView(db),a.registerSeriesModel(gb),a.registerLayout(tt(yb,"sunburst")),a.registerProcessor(tt(An,"sunburst")),a.registerVisual(Sb),pb(a)}var uv={color:"fill",borderColor:"stroke"},_b={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},be=_t(),bb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return ma(null,this)},e.prototype.getDataParams=function(t,r,n){var i=a.prototype.getDataParams.call(this,t,r);return n&&(i.info=be(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(It);function wb(a,e){return e=e||[0,0],z(["x","y"],function(t,r){var n=this.getAxis(t),i=e[r],o=a[r]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function Ab(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(wb,a)}}}function Tb(a,e){return e=e||[0,0],z([0,1],function(t){var r=e[t],n=a[t]/2,i=[],o=[];return i[t]=r-n,o[t]=r+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Mb(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:F(Tb,a)}}}function Ib(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,n=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-n)-t.dataToCoord(r+n))}function Cb(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(Ib,a)}}}function Db(a,e){return e=e||[0,0],z(["Radius","Angle"],function(t,r){var n="get"+t+"Axis",i=this[n](),o=e[r],s=a[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Lb(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=a.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:F(Db,a)}}}function Pb(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,n){return a.dataToPoint(r,n)}}}}function ap(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||O(a,"text")))}function np(a,e,t){var r=a,n,i,o;if(e==="text")o=r;else{o={},O(r,"text")&&(o.text=r.text),O(r,"rich")&&(o.rich=r.rich),O(r,"textFill")&&(o.fill=r.textFill),O(r,"textStroke")&&(o.stroke=r.textStroke),O(r,"fontFamily")&&(o.fontFamily=r.fontFamily),O(r,"fontSize")&&(o.fontSize=r.fontSize),O(r,"fontStyle")&&(o.fontStyle=r.fontStyle),O(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=O(r,"textPosition");t?n.position=s?r.textPosition:"inside":s&&(n.position=r.textPosition),O(r,"textPosition")&&(n.position=r.textPosition),O(r,"textOffset")&&(n.offset=r.textOffset),O(r,"textRotation")&&(n.rotation=r.textRotation),O(r,"textDistance")&&(n.distance=r.textDistance)}return vv(o,a),M(o.rich,function(l){vv(l,l)}),{textConfig:n,textContent:i}}function vv(a,e){e&&(e.font=e.textFont||e.font,O(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),O(e,"textAlign")&&(a.align=e.textAlign),O(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),O(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),O(e,"textWidth")&&(a.width=e.textWidth),O(e,"textHeight")&&(a.height=e.textHeight),O(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),O(e,"textPadding")&&(a.padding=e.textPadding),O(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),O(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),O(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),O(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),O(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),O(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),O(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function cv(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var n=r.textPosition.indexOf("inside")>=0,i=a.fill||"#000";hv(r,e);var o=r.textFill==null;return n?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){hv(s,s)}),r}function hv(a,e){e&&(O(e,"fill")&&(a.textFill=e.fill),O(e,"stroke")&&(a.textStroke=e.fill),O(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),O(e,"font")&&(a.font=e.font),O(e,"fontStyle")&&(a.fontStyle=e.fontStyle),O(e,"fontWeight")&&(a.fontWeight=e.fontWeight),O(e,"fontSize")&&(a.fontSize=e.fontSize),O(e,"fontFamily")&&(a.fontFamily=e.fontFamily),O(e,"align")&&(a.textAlign=e.align),O(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),O(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),O(e,"width")&&(a.textWidth=e.width),O(e,"height")&&(a.textHeight=e.height),O(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),O(e,"padding")&&(a.textPadding=e.padding),O(e,"borderColor")&&(a.textBorderColor=e.borderColor),O(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),O(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),O(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),O(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),O(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),O(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),O(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),O(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),O(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),O(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}var ip={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},fv=mt(ip);ih(Qr,function(a,e){return a[e]=1,a},{});Qr.join(", ");var un=["","style","shape","extra"],wr=_t();function Ls(a,e,t,r,n){var i=a+"Animation",o=Sa(a,r,n)||{},s=wr(e).userDuring;return o.duration>0&&(o.during=s?F(Nb,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),W(o,t[i]),o}function Za(a,e,t,r){r=r||{};var n=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=wr(a),u=e.style;l.userDuring=e.during;var v={},c={};if(Ob(a,e,c),dv("shape",e,c),dv("extra",e,c),!i&&s&&(zb(a,e,v),pv("shape",a,e,v),pv("extra",a,e,v),Gb(a,e,u,v)),c.style=u,Eb(a,c,o),Vb(a,e),s)if(i){var h={};M(un,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),W(p?h[p]:h,d.enterFrom))});var f=Ls("enter",a,e,t,n);f.duration>0&&a.animateFrom(h,f)}else Rb(a,e,n||0,t,v);op(a,e),u?a.dirty():a.markRedraw()}function op(a,e){for(var t=wr(a).leaveToProps,r=0;r<un.length;r++){var n=un[r],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=wr(a).leaveToProps={}),n&&(t[n]=t[n]||{}),W(n?t[n]:t,i.leaveTo))}}function Gn(a,e,t,r){if(a){var n=a.parent,i=wr(a).leaveToProps;if(i){var o=Ls("update",a,e,t,0);o.done=function(){n.remove(a)},a.animateTo(i,o)}else n.remove(a)}}function Ke(a){return a==="all"}function Eb(a,e,t){var r=e.style;if(!a.isGroup&&r){if(t){a.useStyle({});for(var n=a.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(a.style)}}a.setStyle(r)}e&&(e.style=null,e&&a.attr(e),e.style=r)}function Rb(a,e,t,r,n){if(n){var i=Ls("update",a,e,r,t);i.duration>0&&a.animateFrom(n,i)}}function Vb(a,e){O(e,"silent")&&(a.silent=e.silent),O(e,"ignore")&&(a.ignore=e.ignore),a instanceof Qe&&O(e,"invisible")&&(a.invisible=e.invisible),a instanceof Vt&&O(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var fe={},kb={setTransform:function(a,e){return fe.el[a]=e,this},getTransform:function(a){return fe.el[a]},setShape:function(a,e){var t=fe.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=fe.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=fe.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=fe.el.style;if(e)return e[a]},setExtra:function(a,e){var t=fe.el.extra||(fe.el.extra={});return t[a]=e,this},getExtra:function(a){var e=fe.el.extra;if(e)return e[a]}};function Nb(){var a=this,e=a.el;if(e){var t=wr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}fe.el=e,r(kb)}}function pv(a,e,t,r){var n=t[a];if(n){var i=e[a],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=r[a]={}),Ke(l))W(o,i);else for(var u=Gt(l),v=0;v<u.length;v++){var c=u[v],h=i[c];o[c]=h}else if(Ke(s)||dt(s,a)>=0){!o&&(o=r[a]={});for(var f=mt(i),v=0;v<f.length;v++){var c=f[v],h=i[c];Bb(n[c],h)&&(o[c]=h)}}}}}function dv(a,e,t){var r=e[a];if(r)for(var n=t[a]={},i=mt(r),o=0;o<i.length;o++){var s=i[o];n[s]=fg(r[s])}}function zb(a,e,t){for(var r=e.transition,n=Ke(r)?Qr:Gt(r||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=a[o];t[o]=s}}}function Ob(a,e,t){for(var r=0;r<fv.length;r++){var n=fv[r],i=ip[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var r=0;r<Qr.length;r++){var s=Qr[r];e[s]!=null&&(t[s]=e[s])}}function Gb(a,e,t,r){if(t){var n=a.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!Ke(o)){var l=Gt(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var v=l[u],c=n[v];i[v]=c}}else if(a.getAnimationStyleProps&&(Ke(s)||Ke(o)||dt(s,"style")>=0)){var h=a.getAnimationStyleProps(),f=h?h.style:null;if(f){!i&&(i=r.style={});for(var p=mt(t),u=0;u<p.length;u++){var v=p[u];if(f[v]){var c=n[v];i[v]=c}}}}}}}function Bb(a,e){return gh(a)?a!==e:a!=null&&isFinite(a)}var sp=_t(),Fb=["percent","easing","shape","style","extra"];function lp(a){a.stopAnimation("keyframe"),a.attr(sp(a))}function vn(a,e,t){if(!(!t.isAnimationEnabled()||!e)){if(B(e)){M(e,function(s){vn(a,s,t)});return}var r=e.keyframes,n=e.duration;if(t&&n==null){var i=Sa("enter",t,0);n=i&&i.duration}if(!(!r||!n)){var o=sp(a);M(un,function(s){if(!(s&&!a[s])){var l;r.sort(function(u,v){return u.percent-v.percent}),M(r,function(u){var v=a.animators,c=s?u[s]:u;if(c){var h=mt(c);if(s||(h=Lt(h,function(d){return dt(Fb,d)<0})),!!h.length){l||(l=a.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<v.length;f++)v[f]!==l&&v[f].targetName===l.targetName&&v[f].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;M(h,function(d){p[d]=((s?a[s]:a)||{})[d]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var we="emphasis",Ce="normal",Ps="blur",Es="select",ze=[Ce,we,Ps,Es],Di={normal:["itemStyle"],emphasis:[we,"itemStyle"],blur:[Ps,"itemStyle"],select:[Es,"itemStyle"]},Li={normal:["label"],emphasis:[we,"label"],blur:[Ps,"label"],select:[Es,"label"]},Hb=["x","y"],Wb="e\0\0",jt={normal:{},emphasis:{},blur:{},select:{}},Zb={cartesian2d:Ab,geo:Mb,single:Cb,polar:Lb,calendar:Pb};function Ao(a){return a instanceof Vt}function To(a){return a instanceof Qe}function Ub(a,e){e.copyTransform(a),To(e)&&To(a)&&(e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel,e.invisible=a.invisible,e.ignore=a.ignore,Ao(e)&&Ao(a)&&e.setShape(a.shape))}var Yb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=gv(t,s,r,n);o||l.removeAll(),s.diff(o).add(function(c){Pi(n,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&Gn(h,be(h).option,t)}).update(function(c,h){var f=o.getItemGraphicEl(h);Pi(n,f,c,u(c,i),t,l,s)}).execute();var v=t.get("clip",!0)?Ln(t.coordinateSystem,!1,t):null;v?l.setClipPath(v):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,r,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,n,i,o){var s=r.getData(),l=gv(r,s,n,i),u=this._progressiveEls=[];function v(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=Pi(null,null,c,l(c,o),r,this.group,s);h&&(h.traverse(v),u.push(h))}},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,n,i){var o=r.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(Tt);function Rs(a){var e=a.type,t;if(e==="path"){var r=a.shape,n=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=cp(r);t=dg(i,null,n,r.layout||"center"),be(t).customPathData=i}else if(e==="image")t=new ye({}),be(t).customImagePath=a.style.image;else if(e==="text")t=new vt({});else if(e==="group")t=new $;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=mh(e);if(!o){var s="";yt(s)}t=new o}return be(t).customGraphicType=e,t.name=a.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Vs(a,e,t,r,n,i,o){lp(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=Hb);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;O(u,"textFill")&&(u.fill=u.textFill),O(u,"textStroke")&&(u.stroke=u.textStroke)}var v=void 0,c=Ao(e)?l.decal:null;a&&c&&(c.dirty=!0,v=Go(c,a)),l.__decalPattern=v}if(To(e)&&l){var v=l.__decalPattern;v&&(l.decal=v)}Za(e,r,i,{dataIndex:t,isInit:o,clearStyle:!0}),vn(e,r.keyframeAnimation,i)}function up(a,e,t,r,n){var i=e.isGroup?null:e,o=n&&n[a].cfg;if(i){var s=i.ensureState(a);if(r===!1){var l=i.getState(a);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),_r(i)}}function $b(a,e,t){if(!a.isGroup){var r=a,n=t.currentZ,i=t.currentZLevel;r.z=n,r.zlevel=i;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<ze.length;s++)Xb(r,e,ze[s])}}function Xb(a,e,t){var r=t===Ce,n=r?e:cn(e,t),i=n?n.z2:null,o;i!=null&&(o=r?a:a.ensureState(t),o.z2=i||0)}function gv(a,e,t,r){var n=a.get("renderItem"),i=a.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):Zb[i.type](i));for(var s=Q({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:b,ordinalRawValue:_,styleEmphasis:w,visual:I,barLayout:C,currentSeriesIndices:L,font:D},o.api||{}),l={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Kb(a.getData())},u,v,c={},h={},f={},p={},d=0;d<ze.length;d++){var g=ze[d];f[g]=a.getModel(Di[g]),p[g]=a.getModel(Li[g])}function y(P){return P===u?v||(v=e.getItemModel(P)):e.getItemModel(P)}function m(P,E){return e.hasItemOption?P===u?c[E]||(c[E]=y(P).getModel(Di[E])):y(P).getModel(Di[E]):f[E]}function S(P,E){return e.hasItemOption?P===u?h[E]||(h[E]=y(P).getModel(Li[E])):y(P).getModel(Li[E]):p[E]}return function(P,E){return u=P,v=null,c={},h={},n&&n(Q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:E?E.type:null},l),s)};function x(P,E){return E==null&&(E=u),e.getStore().get(e.getDimensionIndex(P||0),E)}function _(P,E){E==null&&(E=u),P=P||0;var R=e.getDimensionInfo(P);if(!R){var k=e.getDimensionIndex(P);return k>=0?e.getStore().get(k,E):void 0}var N=e.get(R.name,E),H=R&&R.ordinalMeta;return H?H.categories[N]:N}function b(P,E){E==null&&(E=u);var R=e.getItemVisual(E,"style"),k=R&&R.fill,N=R&&R.opacity,H=m(E,Ce).getItemStyle();k!=null&&(H.fill=k),N!=null&&(H.opacity=N);var Z={inheritColor:et(k)?k:"#000"},U=S(E,Ce),q=St(U,null,Z,!1,!0);q.text=U.getShallow("show")?Dt(a.getFormattedLabel(E,Ce),ro(e,E)):null;var rt=dl(U,Z,!1);return A(P,H),H=cv(H,q,rt),P&&T(H,P),H.legacy=!0,H}function w(P,E){E==null&&(E=u);var R=m(E,we).getItemStyle(),k=S(E,we),N=St(k,null,null,!0,!0);N.text=k.getShallow("show")?da(a.getFormattedLabel(E,we),a.getFormattedLabel(E,Ce),ro(e,E)):null;var H=dl(k,null,!0);return A(P,R),R=cv(R,N,H),P&&T(R,P),R.legacy=!0,R}function T(P,E){for(var R in E)O(E,R)&&(P[R]=E[R])}function A(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function I(P,E){if(E==null&&(E=u),O(uv,P)){var R=e.getItemVisual(E,"style");return R?R[uv[P]]:null}if(O(_b,P))return e.getItemVisual(E,P)}function C(P){if(i.type==="cartesian2d"){var E=i.getBaseAxis();return pg(Q({axis:E},P))}}function L(){return t.getCurrentSeriesIndices()}function D(P){return yh(P,t)}}function Kb(a){var e={};return M(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var n=r.coordDim,i=e[n]=e[n]||[];i[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function Pi(a,e,t,r,n,i,o){if(!r){i.remove(e);return}var s=ks(a,e,t,r,n,i);return s&&o.setItemGraphicEl(t,s),s&&xt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function ks(a,e,t,r,n,i){var o=-1,s=e;e&&vp(e,r,n)&&(o=dt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Rs(r),s&&Ub(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),jt.normal.cfg=jt.normal.conOpt=jt.emphasis.cfg=jt.emphasis.conOpt=jt.blur.cfg=jt.blur.conOpt=jt.select.cfg=jt.select.conOpt=null,jt.isLegacy=!1,jb(u,t,r,n,l,jt),qb(u,t,r,n,l),Vs(a,u,t,r,jt,n,l),O(r,"info")&&(be(u).info=r.info);for(var v=0;v<ze.length;v++){var c=ze[v];if(c!==Ce){var h=cn(r,c),f=Ns(r,h,c);up(c,u,h,f,jt)}}return $b(u,r,n),r.type==="group"&&Jb(a,u,t,r,n),o>=0?i.replaceAt(u,o):i.add(u),u}function vp(a,e,t){var r=be(a),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==r.customGraphicType||n==="path"&&rw(i)&&cp(i)!==r.customPathData||n==="image"&&O(o,"image")&&o.image!==r.customImagePath}function qb(a,e,t,r,n){var i=t.clipPath;if(i===!1)a&&a.getClipPath()&&a.removeClipPath();else if(i){var o=a.getClipPath();o&&vp(o,i,r)&&(o=null),o||(o=Rs(i),a.setClipPath(o)),Vs(null,o,e,i,null,r,n)}}function jb(a,e,t,r,n,i){if(!a.isGroup){yv(t,null,i),yv(t,we,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=a.getTextContent();if(o===!1)v&&a.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=Rs(o),a.setTextContent(v)),Vs(null,v,e,o,null,r,n);for(var c=o&&o.style,h=0;h<ze.length;h++){var f=ze[h];if(f!==Ce){var p=i[f].conOpt;up(f,v,p,Ns(o,p,f),null)}}c?v.dirty():v.markRedraw()}}}}function yv(a,e,t){var r=e?cn(a,e):a,n=e?Ns(a,r,we):a.style,i=a.type,o=r?r.textConfig:null,s=a.textContent,l=s?e?cn(s,e):s:null;if(n&&(t.isLegacy||ap(n,i,!!o,!!l))){t.isLegacy=!0;var u=np(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var v=l;!v.type&&(v.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function cn(a,e){return e?a?a[e]:null:a}function Ns(a,e,t){var r=e&&e.style;return r==null&&t===we&&a&&(r=a.styleEmphasis),r}function Jb(a,e,t,r,n){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){tw({api:a,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var v=0;v<o;v++){var c=i[v],h=e.childAt(v);c?(c.ignore==null&&(c.ignore=!1),ks(a,h,t,c,n,e)):h.ignore=!0}for(var f=e.childCount()-1;f>=v;f--){var p=e.childAt(f);Qb(e,p,n)}}}function Qb(a,e,t){e&&Gn(e,be(a).option,t)}function tw(a){new ke(a.oldChildren,a.newChildren,mv,mv,a).add(Sv).update(Sv).remove(ew).execute()}function mv(a,e){var t=a&&a.name;return t??Wb+e}function Sv(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,n=e!=null?t.oldChildren[e]:null;ks(t.api,n,t.dataIndex,r,t.seriesModel,t.group)}function ew(a){var e=this.context,t=e.oldChildren[a];t&&Gn(t,be(t).option,e.seriesModel)}function cp(a){return a&&(a.pathData||a.d)}function rw(a){return a&&(O(a,"pathData")||O(a,"d"))}function aw(a){a.registerChartView(Yb),a.registerSeriesModel(bb)}var nw=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),c=s.dataToCoord(r),h=i.get("type");if(h&&h!=="none"){var f=Sh(i),p=ow[h](s,l,c,v);p.style=f,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=iw(r,n,i,l,d);gg(t,n,i,o,g)},e})(xh);function iw(a,e,t,r,n){var i=e.axis,o=i.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,v,c;if(i.dim==="radius"){var h=Mr();Tn(h,h,s),Je(h,h,[r.cx,r.cy]),u=Pe([o,-n],h);var f=e.getModel("axisLabel").get("rotate")||0,p=qe.innerTextLayout(s,f*Math.PI/180,-1);v=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=r.coordToPoint([d+n,o]);var g=r.cx,y=r.cy;v=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:v,verticalAlign:c}}var ow={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:_h(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var n=Math.max(1,a.getBandWidth()),i=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:gl(e.cx,e.cy,r[0],r[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:gl(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},sw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Pt),zs=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ge).models[0]},e.type="polarAxis",e})(Pt);ue(zs,wn);var lw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(zs),uw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(zs),Os=(function(a){V(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e})(ve);Os.prototype.dataToRadius=ve.prototype.dataToCoord;Os.prototype.radiusToData=ve.prototype.coordToData;var vw=_t(),Gs=(function(a){V(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),v=bh(s==null?"":s+"",r.getFont(),"center","top"),c=Math.max(v.height,7),h=c/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=vw(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-f)<=1&&Math.abs(g-o)<=1&&d>f?f=d:(p.lastTickCount=o,p.lastAutoInterval=f),f},e})(ve);Gs.prototype.dataToAngle=ve.prototype.dataToCoord;Gs.prototype.angleToData=ve.prototype.coordToData;var hp=["radius","angle"],cw=(function(){function a(e){this.dimensions=hp,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Os,this._angleAxis=new Gs,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,n=this._radiusAxis;return r.scale.type===e&&t.push(r),n.scale.type===e&&t.push(n),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,v=u<o?1:-1;u<o||u>s;)u+=v*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,n=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[n,i]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,v=l-this.cy,c=u*u+v*v,h=this.r,f=this.r0;return h!==f&&c-o<=h*h&&c+o>=f*f}}},a.prototype.convertToPixel=function(e,t,r){var n=xv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=xv(t);return n===this?this.pointToData(r):null},a})();function xv(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function hw(a,e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight();a.cx=G(r[0],n),a.cy=G(r[1],i);var o=a.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[G(l[0],s),G(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function fw(a,e){var t=this,r=t.getAngleAxis(),n=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(yl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),M(yl(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),ja(r.scale,r.model),ja(n.scale,n.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function pw(a){return a.mainType==="angleAxis"}function _v(a,e){var t;if(a.type=e.get("type"),a.scale=Yo(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),pw(e)){a.inverse=a.inverse!==e.get("clockwise");var r=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(a.inverse?-360:360);a.setExtent(r,n)}e.axis=a,a.model=e}var dw={dimensions:hp,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,n){var i=new cw(n+"");i.update=fw;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");_v(o,l),_v(s,u),hw(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var n=r.getReferringComponents("polar",ge).models[0];r.coordinateSystem=n.coordinateSystem}}),t}},gw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Va(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),n=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:n[0],y2:n[1]}}function ka(a){var e=a.getRadiusAxis();return e.inverse?0:1}function bv(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var yw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=z(n.getViewLabels(),function(v){v=ot(v);var c=n.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=n.dataToCoord(h),v});bv(u),bv(s),M(gw,function(v){t.get([v,"show"])&&(!n.scale.isBlank()||v==="axisLine")&&mw[v](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(xa),mw={axisLine:function(a,e,t,r,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=ka(t),c=v?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Tr[f]({shape:{cx:t.cx,cy:t.cy,r:i[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Qc({shape:{cx:t.cx,cy:t.cy,r:i[v],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,a.add(h)},axisTick:function(a,e,t,r,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[ka(t)],u=z(r,function(v){return new se({shape:Va(t,[l,l+s],v.coord)})});a.add(oe(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[ka(t)],v=[],c=0;c<n.length;c++)for(var h=0;h<n[c].length;h++)v.push(new se({shape:Va(t,[u,u+l],n[c][h].coord)}));a.add(oe(v,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(a,e,t,r,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),v=e.get("triggerEvent");M(o,function(c,h){var f=l,p=c.tickValue,d=i[ka(t)],g=t.coordToPoint([d+u,c.coord]),y=t.cx,m=t.cy,S=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var _=s[p];Rt(_)&&_.textStyle&&(f=new Ut(_.textStyle,l,l.ecModel))}var b=new vt({silent:qe.isLabelSilent(e),style:St(f,{x:g[0],y:g[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:S,verticalAlign:x})});if(a.add(b),v){var w=qe.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,ut(b).eventData=w}},this)},splitLine:function(a,e,t,r,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=0;c<r.length;c++){var h=u++%l.length;v[h]=v[h]||[],v[h].push(new se({shape:Va(t,i,r[c].coord)}))}for(var c=0;c<v.length;c++)a.add(oe(v[c],{style:Q({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(a,e,t,r,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var v=0;v<n[u].length;v++)l.push(new se({shape:Va(t,i,n[u][v].coord)}));a.add(oe(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(a,e,t,r,n,i){if(r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=Math.PI/180,h=-r[0].coord*c,f=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,S=u++%l.length;v[S]=v[S]||[],v[S].push(new tr({shape:{cx:t.cx,cy:t.cy,r0:f,r:p,startAngle:h,endAngle:-m*c,clockwise:d},silent:!0})),h=-m*c}for(var g=0;g<v.length;g++)a.add(oe(v[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},Sw=["axisLine","axisTickLabel","axisName"],xw=["splitLine","splitArea","minorSplitLine"],_w=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new $;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),v=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),f=ww(s,t,c),p=new qe(t,f);M(Sw,p.add,p),i.add(p.getGroup()),Xo(n,i,t),M(xw,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&bw[d](this.group,t,s,c,h,u,v)},this)}},e.type="radiusAxis",e})(xa),bw={splitLine:function(a,e,t,r,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,v=t.getAngleAxis(),c=Math.PI/180,h=v.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Tr[f]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[d].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:v.inverse}}))}for(var d=0;d<p.length;d++)a.add(oe(p[d],{style:Q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(a,e,t,r,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],v=0;v<o.length;v++)for(var c=0;c<o[v].length;c++)u.push(new ha({shape:{cx:t.cx,cy:t.cy,r:o[v][c].coord}}));a.add(oe(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(a,e,t,r,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=i[0].coord,h=1;h<i.length;h++){var f=u++%l.length;v[f]=v[f]||[],v[f].push(new tr({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<v.length;h++)a.add(oe(v[h],{style:Q({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function ww(a,e,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function fp(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function pp(a,e){return e.dim+a.model.componentIndex}function Aw(a,e,t){var r={},n=Tw(Lt(e.getSeriesByType(a),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(a,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=pp(s,l),v=fp(i),c=n[u][v],h=c.offset,f=c.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;r[v]=r[v]||[];for(var S=o.mapDimension(p.dim),x=o.mapDimension(l.dim),_=wh(o,S),b=l.dim!=="radius"||!i.get("roundCap",!0),w=p.model,T=w.get("startValue"),A=p.dataToCoord(T||0),I=0,C=o.count();I<C;I++){var L=o.get(S,I),D=o.get(x,I),P=L>=0?"p":"n",E=A;_&&(r[v][D]||(r[v][D]={p:A,n:A}),E=r[v][D][P]);var R=void 0,k=void 0,N=void 0,H=void 0;if(p.dim==="radius"){var Z=p.dataToCoord(L)-A,U=l.dataToCoord(D);Math.abs(Z)<y&&(Z=(Z<0?-1:1)*y),R=E,k=E+Z,N=U-h,H=N-f,_&&(r[v][D][P]=k)}else{var q=p.dataToCoord(L,b)-A,rt=l.dataToCoord(D);Math.abs(q)<m&&(q=(q<0?-1:1)*m),R=rt+h,k=R+f,N=E,H=E+q,_&&(r[v][D][P]=H)}o.setItemLayout(I,{cx:d,cy:g,r0:R,r:k,startAngle:-N*Math.PI/180,endAngle:-H*Math.PI/180,clockwise:N>=H})}}})}function Tw(a){var e={};M(a,function(r,n){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=pp(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var f=fp(r);h[f]||c.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=G(r.get("barWidth"),v),d=G(r.get("barMaxWidth"),v),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(c.remainedWidth,p),h[f].width=p,c.remainedWidth-=p),d&&(h[f].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return M(e,function(r,n){t[n]={};var i=r.stacks,o=r.bandWidth,s=G(r.categoryGap,o),l=G(r.gap,1),u=r.remainedWidth,v=r.autoWidthCount,c=(u-s)/(v+(v-1)*l);c=Math.max(c,0),M(i,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,v--)}),c=(u-s)/(v+(v-1)*l),c=Math.max(c,0);var h=0,f;M(i,function(d,g){d.width||(d.width=c),f=d,h+=d.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;M(i,function(d,g){t[n][g]=t[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var Mw={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Iw={splitNumber:5},Cw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(kt);function Dw(a){X(qo),xa.registerAxisPointerClass("PolarAxisPointer",nw),a.registerCoordinateSystem("polar",dw),a.registerComponentModel(sw),a.registerComponentView(Cw),Ja(a,"angle",lw,Mw),Ja(a,"radius",uw,Iw),a.registerComponentView(yw),a.registerComponentView(_w),a.registerLayout(tt(Aw,"bar"))}function Mo(a,e){e=e||{};var t=a.coordinateSystem,r=a.axis,n={},i=r.position,o=r.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var v={horizontal:0,vertical:1};n.rotation=Math.PI/2*v[o];var c={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=c[i],a.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Xt(e.labelInside,a.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=e.rotate;return h==null&&(h=a.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-h:h,n.z2=1,n}var Lw=["axisLine","axisTickLabel","axisName"],Pw=["splitArea","splitLine"],Ew=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new $;var l=Mo(t),u=new qe(t,l);M(Lw,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(Pw,function(v){t.get([v,"show"])&&Rw[v](this,this.group,this._axisGroup,t)},this),Xo(s,this._axisGroup,t),a.prototype.render.call(this,t,r,n,i)},e.prototype.remove=function(){yg(this)},e.type="singleAxis",e})(xa),Rw={splitLine:function(a,e,t,r){var n=r.axis;if(!n.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),v=n.isHorizontal(),c=[],h=0,f=n.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<f.length;++g){var y=n.toGlobalCoord(f[g].coord);v?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new se({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});Sg(m.shape,l);var S=h++%s.length;c[S]=c[S]||[],c[S].push(m)}for(var x=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(oe(c[g],{style:Q({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(a,e,t,r){mg(a,t,r,r)}},Ua=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})(Pt);ue(Ua,wn.prototype);var Vw=(function(a){V(e,a);function e(t,r,n,i,o){var s=a.call(this,t,r,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e})(ve),dp=["single"],kw=(function(){function a(e,t,r){this.type="single",this.dimension="single",this.dimensions=dp,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var n=this.dimension,i=new Vw(n,Yo(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},a.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var n=r.getData();M(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),ja(this._axis.scale,this._axis.model)}},this)},a.prototype.resize=function(e,t){this._rect=ne({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},a.prototype.getRect=function(){return this._rect},a.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),n=r?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,r?e.x:e.y)},a.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),n=r[0]+r[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},a.prototype.getAxis=function(){return this._axis},a.prototype.getBaseAxis=function(){return this._axis},a.prototype.getAxes=function(){return[this._axis]},a.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},a.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),n=r.orient;return n==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,n},a.prototype.convertToPixel=function(e,t,r){var n=wv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=wv(t);return n===this?this.pointToData(r):null},a})();function wv(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Nw(a,e){var t=[];return a.eachComponent("singleAxis",function(r,n){var i=new kw(r,a,e);i.name="single_"+n,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var n=r.getReferringComponents("singleAxis",ge).models[0];r.coordinateSystem=n&&n.coordinateSystem}}),t}var zw={create:Nw,dimensions:dp},Av=["x","y"],Ow=["width","height"],Gw=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Ei(l,1-hn(s)),v=l.dataToPoint(r)[0],c=i.get("type");if(c&&c!=="none"){var h=Sh(i),f=Bw[c](s,v,u);f.style=h,t.graphicKey=f.type,t.pointer=f}var p=Mo(n);xg(r,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,r,n){var i=Mo(r,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=_g(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,n,i){var o=n.axis,s=o.coordinateSystem,l=hn(o),u=Ei(s,l),v=[t.x,t.y];v[l]+=r[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var c=Ei(s,1-l),h=(c[1]+c[0])/2,f=[h,h];return f[l]=v[l],{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e})(xh),Bw={line:function(a,e,t){var r=_h([e,t[0]],[e,t[1]],hn(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:bg([e-r/2,t[0]],[r,n],hn(a))}}};function hn(a){return a.isHorizontal()?0:1}function Ei(a,e){var t=a.getRect();return[t[Av[e]],t[Av[e]]+t[Ow[e]]]}var Fw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(kt);function Hw(a){X(qo),xa.registerAxisPointerClass("SingleAxisPointer",Gw),a.registerComponentView(Fw),a.registerComponentView(Ew),a.registerComponentModel(Ua),Ja(a,"single",Ua,Ua.defaultOption),a.registerCoordinateSystem("single",zw)}var Ww=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,n){var i=Ah(t);a.prototype.init.apply(this,arguments),Tv(t,i)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),Tv(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Pt);function Tv(a,e){var t=a.cellSize,r;B(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var n=z([0,1],function(i){return wg(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Th(a,e,{type:"box",ignoreSize:n})}var Zw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var v=i.dataToRect([u],!1).tl,c=new pt({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,r,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=r.start,h=0;c.time<=r.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(r.start.y+"-"+r.start.m));var f=c.date;f.setMonth(f.getMonth()+1),c=s.getDateInfo(f)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,n),l,i)},e.prototype._getEdgesPoints=function(t,r,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,n){var i=new me({z2:20,shape:{points:t},style:r});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,n){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),v=i.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return et(t)&&t?Ag(t,r):st(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,n,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(i==="left"||i==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,f={top:[v,u[h][1]],bottom:[v,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var d=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new vt({z2:30,style:St(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,f[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,r,n,i,o){var s="left",l="top",u=t[0],v=t[1];return n==="horizontal"?(v=v+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||et(s))&&(s&&(r=ml(s)||r),s=r.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=v==="center",d=o.get("silent"),g=0;g<c[h].length-1;g++){var y=c[h][g].slice(),m=this._firstDayOfMonth[g];if(p){var S=this._firstDayPoints[g];y[f]=(S[f]+c[0][g+1][f])/2}var x=o.get("formatter"),_=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},w=this._formatterLabel(x,b),T=new vt({z2:30,style:W(St(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(T)}}},e.prototype._weekTextPositionControl=function(t,r,n,i,o){var s="center",l="middle",u=t[0],v=t[1],c=n==="start";return r==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(v=v+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,r,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),v=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!v||et(v)){v&&(r=ml(v)||r);var f=r.get(["time","dayOfWeekShort"]);v=f||z(r.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=G(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),S=l.dataToRect([m.time],!1).center,x=y;x=Math.abs((y+h)%7);var _=new vt({z2:30,style:W(St(s,{text:v[x]}),this._weekTextPositionControl(S,i,u,c,d)),silent:g});o.add(_)}}},e.type="calendar",e})(kt),Ri=864e5,Uw=(function(){function a(e,t,r){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=e}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(e){e=Tg(e);var t=e.getFullYear(),r=e.getMonth()+1,n=r<10?"0"+r:""+r,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},a.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},a.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];M([0,1],function(c){v(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ne(o,l);M([0,1],function(c){v(i,c)||(i[c]=u[n[c]]/s[c])});function v(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},a.prototype.dataToPoint=function(e,t){B(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),n=this._rangeInfo,i=r.formatedDate;if(t&&!(r.time>=n.start.time&&r.time<n.end.time+Ri))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},a.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},a.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},a.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,n):this._getDateByWeeksAndDay(t,r-1,n)},a.prototype.convertToPixel=function(e,t,r){var n=Mv(t);return n===this?n.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=Mv(t);return n===this?n.pointToData(r):null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(B(e)&&e.length===1&&(e=e[0]),B(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var n=this.getDateInfo(r),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var n=Math.floor(t[1].time/Ri)-Math.floor(t[0].time/Ri)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var v=Math.floor((n+t[0].day+6)/7),c=r?-v+1:v-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:v,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var n=this._getRangeInfo(r);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(n){var i=new a(n);r.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=r[n.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a})();function Mv(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}function Yw(a){a.registerComponentModel(Ww),a.registerComponentView(Zw),a.registerCoordinateSystem("calendar",Uw)}function $w(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Iv(a,e){var t;return M(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function Xw(a,e,t){var r=W({},t),n=a[e],i=t.$action||"merge";i==="merge"?n?(ft(n,r,!0),Th(n,r,{ignoreSize:!0}),Ig(t,n),Na(t,n),Na(t,n,"shape"),Na(t,n,"style"),Na(t,n,"extra"),t.clipPath=n.clipPath):a[e]=r:i==="replace"?a[e]=r:i==="remove"&&n&&(a[e]=null)}var gp=["transition","enterFrom","leaveTo"],Kw=gp.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Na(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?gp:Kw,n=0;n<r.length;n++){var i=r[n];a[i]==null&&e[i]!=null&&(a[i]=e[i])}}function qw(a,e){if(a&&(a.hv=e.hv=[Iv(e,["left","right"]),Iv(e,["top","bottom"])],a.type==="group")){var t=a,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var jw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var n=this.option.elements;this.option.elements=null,a.prototype.mergeOption.call(this,t,r),this.option.elements=n},e.prototype.optionUpdated=function(t,r){var n=this.option,i=(r?n:t).elements,o=n.elements=r?[]:n.elements,s=[];this._flatten(i,s,null);var l=Mg(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(v,c){var h=v.newOption;h&&(u.push(h),$w(v,h),Xw(o,c,h),qw(o[c],h))},this),n.elements=Lt(o,function(v){return v&&delete v.$action,v!=null})},e.prototype._flatten=function(t,r,n){M(t,function(i){if(i){n&&(i.parentOption=n),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Pt),Cv={path:null,compoundPath:null,group:$,image:ye,text:vt},Jt=_t(),Jw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=K()},e.prototype.render=function(t,r,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(r){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");M(r,function(l){var u=xe(l.id,null),v=u!=null?n.get(u):null,c=xe(l.parentId,null),h=c!=null?n.get(c):i,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&ap(p,f,!!g,!!d)){var y=np(p,f,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=Qw(l),S=l.$action||"merge",x=S==="merge",_=S==="replace";if(x){var b=!v,w=v;b?w=Dv(u,h,l.type,n):(w&&(Jt(w).isNew=!1),lp(w)),w&&(Za(w,m,t,{isInit:b}),Lv(w,l,o,s))}else if(_){Ya(v,l,n,t);var T=Dv(u,h,l.type,n);T&&(Za(T,m,t,{isInit:!0}),Lv(T,l,o,s))}else S==="remove"&&(op(v,l),Ya(v,l,n,t));var A=n.get(u);if(A&&d)if(x){var I=A.getTextContent();I?I.attr(d):A.setTextContent(new vt(d))}else _&&A.setTextContent(new vt(d));if(A){var C=l.clipPath;if(C){var L=C.type,D=void 0,b=!1;if(x){var P=A.getClipPath();b=!P||Jt(P).type!==L,D=b?Io(L):P}else _&&(b=!0,D=Io(L));A.setClipPath(D),Za(D,C,t,{isInit:b}),vn(D,C.keyframeAnimation,t)}var E=Jt(A);A.setTextConfig(g),E.option=l,tA(A,t,l),Bo({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),vn(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var n=t.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],v=0;v<n.length;v++){var c=n[v],h=xe(c.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,d=p===i,g=Jt(f),y=Jt(p);g.width=G(g.option.width,d?s:y.width)||0,g.height=G(g.option.height,d?l:y.height)||0}}for(var v=n.length-1;v>=0;v--){var c=n[v],h=xe(c.id,null),f=h!=null?o.get(h):null;if(f){var p=f.parent,y=Jt(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},S={},x=Wo(f,c,m,null,{hv:c.hv,boundingMode:c.bounding},S);if(!Jt(f).isNew&&x){for(var _=c.transition,b={},w=0;w<u.length;w++){var T=u[w],A=S[T];_&&(Ke(_)||dt(_,T)>=0)?b[T]=A:f[T]=A}ct(f,b,t,0)}else f.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(n){Ya(n,Jt(n).option,r,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(kt);function Io(a){var e=O(Cv,a)?Cv[a]:mh(a),t=new e({});return Jt(t).type=a,t}function Dv(a,e,t,r){var n=Io(t);return e.add(n),r.set(a,n),Jt(n).id=a,Jt(n).isNew=!0,n}function Ya(a,e,t,r){var n=a&&a.parent;n&&(a.type==="group"&&a.traverse(function(i){Ya(i,e,t,r)}),Gn(a,e,r),t.removeKey(Jt(a).id))}function Lv(a,e,t,r){a.isGroup||M([["cursor",Qe.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(n){var i=n[0];O(e,i)?a[i]=Dt(e[i],n[1]):a[i]==null&&(a[i]=n[1])}),M(mt(e),function(n){if(n.indexOf("on")===0){var i=e[n];a[n]=st(i)?i:null}}),O(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function Qw(a){return a=W({},a),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Cg),function(e){delete a[e]}),a}function tA(a,e,t){var r=ut(a).eventData;!a.silent&&!a.ignore&&!r&&(r=ut(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function eA(a){a.registerComponentModel(jw),a.registerComponentView(Jw),a.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Pv=["x","y","radius","angle","single"],rA=["cartesian2d","polar","singleAxis"];function aA(a){var e=a.get("coordinateSystem");return dt(rA,e)>=0}function De(a){return a+"Axis"}function nA(a,e){var t=K(),r=[],n=K();a.eachComponent({mainType:"dataZoom",query:e},function(v){n.get(v.uid)||s(v)});var i;do i=!1,a.eachComponent("dataZoom",o);while(i);function o(v){!n.get(v.uid)&&l(v)&&(s(v),i=!0)}function s(v){n.set(v.uid,!0),r.push(v),u(v)}function l(v){var c=!1;return v.eachTargetAxis(function(h,f){var p=t.get(h);p&&p[f]&&(c=!0)}),c}function u(v){v.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return r}function yp(a){var e=a.ecModel,t={infoList:[],infoMap:K()};return a.eachTargetAxis(function(r,n){var i=e.getComponent(De(r),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Vi=(function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a})(),sa=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,n){var i=Ev(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var r=Ev(t);ft(this.option,t,!0),ft(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(r);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(Pv,function(n){var i=this.getReferringComponents(De(n),Dg);if(i.specified){r=!0;var o=new Vi;M(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var n=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===r}});l(s,"single")}function l(u,v){var c=u[0];if(c){var h=new Vi;if(h.add(c.componentIndex),t.set(v,h),i=!1,v==="x"||v==="y"){var f=c.getReferringComponents("grid",ge).models[0];f&&M(u,function(p){c.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",ge).models[0]&&h.add(p.componentIndex)})}}}i&&M(Pv,function(u){if(i){var v=n.findComponents({mainType:De(u),filter:function(h){return h.get("type",!0)==="category"}});if(v[0]){var c=new Vi;c.add(v[0].componentIndex),t.set(u,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,n=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":n?r[o]=n[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,n){t==null&&(t=this.ecModel.getComponent(De(r),n))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(n,i){M(n.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var n=this.getAxisModel(t,r);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[r])return this.ecModel.getComponent(De(t),r)},e.prototype.setRawRange=function(t){var r=this.option,n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=n[i[0]]=t[i[0]],r[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(n){r[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Pt);function Ev(a){var e={};return M(["start","end","startValue","endValue","throttle"],function(t){a.hasOwnProperty(t)&&(e[t]=a[t])}),e}var iA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(sa),Bs=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){this.dataZoomModel=t,this.ecModel=r,this.api=n},e.type="dataZoom",e})(kt),oA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Bs),pr=M,Rv=te,sA=(function(){function a(e,t,r,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=r}return a.prototype.hostedBy=function(e){return this._dataZoomModel===e},a.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},a.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},a.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(aA(t)){var r=De(this._dimName),n=t.getReferringComponents(r,ge).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return ot(this._minMaxSpan)},a.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),n=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;pr(["start","end"],function(h,f){var p=e[h],d=e[h+"Value"];i[f]==="percent"?(p==null&&(p=o[f]),d=n.parse(it(p,o,t))):(u=!0,d=d==null?t[f]:n.parse(d),p=it(d,t,o)),l[f]=d==null||isNaN(d)?t[f]:d,s[f]=p==null||isNaN(p)?o[f]:p}),Rv(l),Rv(s);var v=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,f,p,d,g){var y=g?"Span":"ValueSpan";ar(0,h,p,"all",v["min"+y],v["max"+y]);for(var m=0;m<2;m++)f[m]=it(h[m],p,d,!0),g&&(f[m]=n.parse(f[m]))}return{valueWindow:l,percentWindow:s}},a.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=lA(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;pr(n,function(l){var u=l.getData(),v=u.mapDimensionsAll(r);if(v.length){if(i==="weakFilter"){var c=u.getStore(),h=z(v,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,d,g,y=0;y<v.length;y++){var m=c.get(h[y],f),S=!isNaN(m),x=m<o[0],_=m>o[1];if(S&&!x&&!_)return!0;S&&(g=!0),x&&(p=!0),_&&(d=!0)}return g&&p&&d})}else pr(v,function(f){if(i==="empty")l.setData(u=u.map(f,function(d){return s(d)?d:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});pr(v,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;pr(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=it(r[0]+o,r,[0,100],!0):i!=null&&(o=it(i,[0,100],r,!0)-r[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},a.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var n=Lg(r,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(n)),i.freeze()}},a})();function lA(a,e,t){var r=[1/0,-1/0];pr(t,function(o){Pg(r,o.getData(),e)});var n=a.getAxisModel(),i=Eg(n.axis.scale,n,r).calculate();return[i.min,i.max]}var uA={getTargetSeries:function(a){function e(n){a.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=a.getComponent(De(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sA(n,i,s,a),t.push(o.__dzAxisProxy))});var r=K();return M(t,function(n){M(n.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,n){t.getAxisProxy(r,n).reset(t)}),t.eachTargetAxis(function(r,n){t.getAxisProxy(r,n).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var n=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function vA(a){a.registerAction("dataZoom",function(e,t){var r=nA(t,e);M(r,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Vv=!1;function Fs(a){Vv||(Vv=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,uA),vA(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cA(a){a.registerComponentModel(iA),a.registerComponentView(oA),Fs(a)}var Qt=(function(){function a(){}return a})(),mp={};function dr(a,e){mp[a]=e}function Sp(a){return mp[a]}var hA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,n){var i=Sp(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ft(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})(Pt),fA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},v=this._features||(this._features={}),c=[];M(u,function(p,d){c.push(d)}),new ke(this._featureNames||[],c).add(h).update(h).remove(tt(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],S=new Ut(m,t,t.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(pA(g))x={onclick:S.option.onclick,featureName:g};else{var _=Sp(g);if(!_)return;x=new _}v[g]=x}else if(x=v[y],!x)return;x.uid=rh("toolbox-feature"),x.model=S,x.ecModel=r,x.api=n;var b=x instanceof Qt;if(!g&&y){b&&x.dispose&&x.dispose(r,n);return}if(!S.get("show")||b&&x.unusable){b&&x.remove&&x.remove(r,n);return}f(S,x,g),S.setIconStatus=function(w,T){var A=this.option,I=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,I[w]&&(T==="emphasis"?jr:Jr)(I[w])},x instanceof Qt&&x.render&&x.render(S,r,n,i)}function f(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),S=d instanceof Qt&&d.getIcons?d.getIcons():p.get("icon"),x=p.get("title")||{},_,b;et(S)?(_={},_[g]=S):_=S,et(x)?(b={},b[g]=x):b=x;var w=p.iconPaths={};M(_,function(T,A){var I=Mh(T,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var C=I.ensureState("emphasis");C.style=m.getItemStyle();var L=new vt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:yh({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},r)},ignore:!0});I.setTextContent(L),Bo({el:I,componentModel:t,itemName:A,formatterParamsExtra:{title:b[A]}}),I.__title=b[A],I.on("mouseover",function(){var D=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),I.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",A])==="emphasis"?jr:Jr)(I),o.add(I),I.on("click",F(d.onclick,d,r,n,A)),w[A]=I})}Rg(o,t,n),o.add(Vg(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!st(S)&&d){var x=S.style||(S.style={}),_=bh(d,vt.makeFont(x)),b=p.x+o.x,w=p.y+o.y+s,T=!1;w+_.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-_.height:s+10;b+_.width/2>n.getWidth()?(y.position=["100%",A],x.align="right"):b-_.width/2<0&&(y.position=[0,A],x.align="left")}})},e.prototype.updateView=function(t,r,n,i){M(this._features,function(o){o instanceof Qt&&o.updateView&&o.updateView(o.model,r,n,i)})},e.prototype.remove=function(t,r){M(this._features,function(n){n instanceof Qt&&n.remove&&n.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(n){n instanceof Qt&&n.dispose&&n.dispose(t,r)})},e.type="toolbox",e})(kt);function pA(a){return a.indexOf("my")===0}var dA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=jo.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=i+"."+s,v.target="_blank",v.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(S)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e})(Qt),kv="__ec_magicType_stack__",gA=[["line","bar"],["stack"]],yA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),n={};return M(t.get("type"),function(i){r[i]&&(n[i]=r[i])}),n},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Nv[n]){var s={series:[]},l=function(c){var h=c.subType,f=c.id,p=Nv[n](h,f,c,i);p&&(Q(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=c.getReferringComponents(m,ge).models[0],x=S.componentIndex;s[m]=s[m]||[];for(var _=0;_<=x;_++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};M(gA,function(c){dt(c,n)>=0&&M(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=n;n==="stack"&&(u=ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(v="tiled")),r.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Qt),Nv={line:function(a,e,t,r){if(a==="bar")return ft({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return ft({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var n=t.get("stack")===kv;if(a==="line"||a==="bar")return r.setIconStatus("stack",n?"normal":"emphasis"),ft({id:e,stack:n?"":kv},r.get(["option","stack"])||{},!0)}};fa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});var Bn=new Array(60).join("-"),Ar=" ";function mA(a){var e={},t=[],r=[];return a.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function SA(a){var e=[];return M(a,function(t,r){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(z(t.series,function(f){return f.name})),l=[n.model.getCategories()];M(t.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Ar)],v=0;v<l[0].length;v++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][v]);u.push(c.join(Ar))}e.push(u.join(`
|
|
1
|
+
import{tE as kp}from"../datalayer-app-main.js";import{ad as _t,ae as wt,af as dr,ag as zr,ah as st,ai as mt,aj as ut,ak as G,al as Np,am as Lt,an as zp,ao as Op,ap as Gp,aq as M,ar as Nc,as as zc,at as Ks,au as Bp,av as Fp,aw as It,ax as Ft,ay as dt,az as ct,aA as Oc,aB as Ce,aC as ye,aD as Xr,aE as Hp,aF as qs,aG as z,aH as Wp,aI as Gc,aJ as et,aK as Zp,aL as Up,aM as W,aN as Bc,aO as le,aP as Fc,aQ as Hc,aR as Yp,aS as Vt,aT as Wc,aU as xn,aV as $p,aW as Xp,aX as Kp,aY as qp,aZ as jp,a_ as Jp,a$ as Qp,b0 as td,b1 as ed,b2 as rd,b3 as ad,b4 as Kr,b5 as nd,b6 as ot,b7 as id,b8 as Zc,b9 as Vo,ba as od,bb as sd,bc as ld,bd as B,be as Rt,bf as js,bg as ud,bh as Re,bi as vd,bj as V,bk as re,bl as me,bm as $,bn as Ve,bo as Q,bp as Kt,bq as ae,br as Ht,bs as xt,C as Tt,bt as Ar,bu as ua,bv as Wt,bw as _n,bx as F,by as va,bz as cd,bA as Zt,c as Ct,bB as ft,M as Ut,bC as ue,bD as bn,bE as hd,a as Pt,bF as qe,bG as ca,bH as Uc,bI as oe,b as kt,A as ve,bJ as Yi,bK as fd,Y as X,bL as wn,D as ha,bM as Js,bN as je,bO as Yc,bP as pt,bQ as O,bR as pd,bS as dd,bT as se,bU as gd,bV as ko,bW as yd,bX as Qs,bY as An,bZ as $c,b_ as Je,b$ as Tr,c0 as K,c1 as md,c2 as Sd,B as $i,c3 as Xc,c4 as Qe,c5 as xr,c6 as No,c7 as zo,c8 as xd,c9 as fa,ca as Kc,cb as tt,cc as qc,cd as Xi,ce as _d,cf as bd,cg as Ot,ch as ge,ci as Oo,cj as Xt,ck as ne,cl as wd,cm as Ad,cn as Tn,co as jc,cp as Jc,cq as Td,cr as Mn,cs as Qc,ct as $a,cu as Md,cv as Xa,cw as th,cx as xe,cy as Go,S as Bt,cz as Cd,cA as Gt,cB as Bo,cC as Dd,cD as vt,cE as St,cF as ke,cG as eh,cH as tl,cI as Or,cJ as el,cK as Id,cL as rh,cM as it,cN as Ld,cO as Bn,cP as Fn,cQ as Ka,cR as Ur,cS as rl,cT as pa,cU as Le,cV as da,cW as Pd,cX as Ed,cY as gr,cZ as al,c_ as Rd,c$ as Ki,d0 as qi,d1 as Fo,d2 as qr,d3 as jr,d4 as ga,d5 as Cn,d6 as Vd,d7 as ah,d8 as kd,d9 as Ho,da as ya,db as nh,dc as Nd,dd as zd,de as nl,df as tr,dg as il,dh as Od,di as Gd,dj as _e,dk as Bd,dl as Fd,dm as Dn,dn as ih,dp as Wo,dq as qa,dr as Pe,ds as te,dt as Zo,du as mr,dv as Hd,dw as Uo,dx as ja,dy as ji,dz as Ji,dA as Wd,dB as Hn,dC as oh,dD as yt,dE as Yo,dF as In,dG as Wn,dH as Zd,dI as sh,dJ as Ud,dK as Gr,dL as Yd,dM as ol,dN as $d,dO as sl,dP as Ln,dQ as Qi,dR as Xd,dS as Mr,dT as ll,dU as Kd,dV as qd,dW as jd,dX as ul,dY as Jd,dZ as Qd,d_ as tg,d$ as ma,e0 as Jr,e1 as eg,e2 as lh,e3 as vl,e4 as rg,e5 as uh,e6 as ag,e7 as vh,e8 as ch,e9 as ng,ea as hh,eb as cl,ec as fh,ed as ph,ee as hl,ef as Sa,eg as dh,eh as $o,ei as ig,ej as og,ek as sg,el as lg,em as ug,en as vg,eo as gh,ep as cg,eq as yh,er as hg,es as fl,et as fg,eu as pg,ev as dg,ew as gg,ex as yg,ey as mg,ez as Sg,eA as xg,eB as mh,eC as _g,eD as bg,k as Xo,eE as wg,eF as pl,eG as Sh,eH as Ag,eI as Tg,eJ as xh,eK as _h,eL as Dr,eM as ba,eN as Mg,eO as Ko,eP as Fa,eQ as to,eR as Cg,eS as Dg,eT as Ja,eU as Ig,eV as Lg,eW as Pg,eX as Pn,eY as Eg,eZ as Rg,e_ as Vg,e$ as kg,f0 as dl,f1 as Ng,f2 as bh,f3 as zg,f4 as Og,f5 as Gg,f6 as Bg,f7 as Fg,f8 as gl,f9 as Hg,fa as Qa,fb as qo,fc as Wg,fd as Zn,fe as Zg,a3 as Ug,aa as Yg,a9 as $g,ab as Xg,ac as Kg,a4 as qg,a5 as jg,a7 as Jg,a6 as Qg,a8 as ty,P as ey,d as ry,e as ay,f as ny,g as iy,h as oy,i as sy,j as ly,l as uy,m as vy,n as cy,o as hy,p as fy,q as py,r as dy,s as gy,t as yy,u as my,v as Sy,w as xy,x as _y,y as by,z as wy,E as Ay,F as Ty,G as My,H as Cy,I as Dy,J as Iy,K as Ly,L as Py,N as Ey,O as Ry,Q as Vy,R as ky,T as Ny,U as zy,V as Oy,W as Gy,X as By,Z as Fy,_ as Hy,$ as Wy,a0 as Zy,a1 as Uy,a2 as Yy}from"./core-BrYTRvTy.js";function $y(a){if(a){for(var e=[],t=0;t<a.length;t++)e.push(a[t].slice());return e}}function Xy(a,e){var t=a.label,r=e&&e.getTextGuideLine();return{dataIndex:a.dataIndex,dataType:a.dataType,seriesIndex:a.seriesModel.seriesIndex,text:a.label.style.text,rect:a.hostRect,labelRect:a.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:$y(r&&r.shape.points)}}var yl=["align","verticalAlign","width","height","fontSize"],zt=new dr,Un=_t(),Ky=_t();function wa(a,e,t){for(var r=0;r<t.length;r++){var n=t[r];e[n]!=null&&(a[n]=e[n])}}var Aa=["x","y","rotation"],qy=(function(){function a(){this._labelList=[],this._chartViewList=[]}return a.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},a.prototype._addLabel=function(e,t,r,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),v=n.getBoundingRect().plain();wt.applyTransform(v,v,u),u?zt.setLocalTransform(u):(zt.x=zt.y=zt.rotation=zt.originX=zt.originY=0,zt.scaleX=zt.scaleY=1),zt.rotation=zr(zt.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var f=c.getComputedTransform();wt.applyTransform(h,h,f)}var p=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:r,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:v,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:zt.x,y:zt.y,scaleX:zt.scaleX,scaleY:zt.scaleY,rotation:zt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},a.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var r=e.__model,n=r.get("labelLayout");(st(n)||mt(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ut(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,r,o,n)})},a.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),r=e.getHeight();function n(S,x){return function(){Ks(S,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,v=void 0;st(o.layoutOption)?v=o.layoutOption(Xy(o,l)):v=o.layoutOption,v=v||{},o.computedLayoutOption=v;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:v.x!=null||v.y!=null?null:u.attachedPos,rotation:v.rotate!=null?v.rotate*c:u.attachedRot,offset:[v.dx||0,v.dy||0]});var h=!1;if(v.x!=null?(s.x=G(v.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),v.y!=null?(s.y=G(v.y,r),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),v.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:v.labelLinePoints}),h=!1)}var p=Un(s);p.needsUpdateLabelLine=h,s.rotation=v.rotate!=null?v.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<yl.length;d++){var g=yl[d];s.setStyle(g,v[g]!=null?v[g]:u.style[g])}if(v.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},a.prototype.layout=function(e){var t=e.getWidth(),r=e.getHeight(),n=Np(this._labelList),i=Lt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Lt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});zp(i,0,t),Op(o,0,r);var s=Lt(n,function(l){return l.layoutOption.hideOverlap});Gp(s)},a.prototype.processLabelsOverall=function(){var e=this;M(this._chartViewList,function(t){var r=t.__model,n=t.ignoreLabelLineUpdate,i=r.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Un(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),i&&e._animateLabels(o,r)})})},a.prototype._updateLabelLine=function(e,t){var r=e.getTextContent(),n=ut(e),i=n.dataIndex;if(r&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var v=o.getVisual("drawType");l.stroke=u[v]}var c=s.getModel("labelLine");Nc(e,zc(s),l),Ks(e,c)}},a.prototype._animateLabels=function(e,t){var r=e.getTextContent(),n=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!Bp(e))){var i=Un(r),o=i.oldLayout,s=ut(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},v=t.getData(s.dataType);if(o){r.attr(o);var h=e.prevStates;h&&(dt(h,"select")>=0&&r.attr(i.oldLayoutSelect),dt(h,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ct(r,u,t,l)}else if(r.attr(u),!Fp(r).valueAnimation){var c=It(r.style.opacity,1);r.style.opacity=0,Ft(r,{style:{opacity:c}},t,l)}if(i.oldLayout=u,r.states.select){var f=i.oldLayoutSelect={};wa(f,u,Aa),wa(f,r.states.select,Aa)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};wa(p,u,Aa),wa(p,r.states.emphasis,Aa)}Oc(r,l,v,t,t)}if(n&&!n.ignore&&!n.invisible){var i=Ky(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),ct(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ft(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},a})(),Yn=_t();function jy(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var n=Yn(t).labelManager;n||(n=Yn(t).labelManager=new qy),n.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var n=Yn(t).labelManager;r.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var $n=Math.sin,Xn=Math.cos,wh=Math.PI,Ge=Math.PI*2,Jy=180/wh,Ah=(function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,n,i,o){this._add("C",e,t,r,n,i,o)},a.prototype.quadraticCurveTo=function(e,t,r,n){this._add("Q",e,t,r,n)},a.prototype.arc=function(e,t,r,n,i,o){this.ellipse(e,t,r,r,0,n,i,o)},a.prototype.ellipse=function(e,t,r,n,i,o,s,l){var u=s-o,v=!l,c=Math.abs(u),h=Ce(c-Ge)||(v?u>=Ge:-u>=Ge),f=u>0?u%Ge:u%Ge+Ge,p=!1;h?p=!0:Ce(c)?p=!1:p=f>=wh==!!v;var d=e+r*Xn(o),g=t+n*$n(o);this._start&&this._add("M",d,g);var y=Math.round(i*Jy);if(h){var m=1/this._p,S=(v?1:-1)*(Ge-m);this._add("A",r,n,y,1,+v,e+r*Xn(o+S),t+n*$n(o+S)),m>.01&&this._add("A",r,n,y,0,+v,d,g)}else{var x=e+r*Xn(s),_=t+n*$n(s);this._add("A",r,n,y,+p,+v,x,_)}},a.prototype.rect=function(e,t,r,n){this._add("M",e,t),this._add("l",r,0),this._add("l",0,n),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,n,i,o,s,l,u){for(var v=[],c=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}v.push(Math.round(f*c)/c)}this._d.push(e+v.join(" ")),this._start=e==="Z"},a.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},a.prototype.getStr=function(){return this._str},a})(),jo="none",Qy=Math.round;function tm(a){var e=a.fill;return e!=null&&e!==jo}function em(a){var e=a.stroke;return e!=null&&e!==jo}var eo=["lineCap","miterLimit","lineJoin"],rm=z(eo,function(a){return"stroke-"+a.toLowerCase()});function am(a,e,t,r){var n=e.opacity==null?1:e.opacity;if(t instanceof ye){a("opacity",n);return}if(tm(e)){var i=Xr(e.fill);a("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&a("fill-opacity",o)}else a("fill",jo);if(em(e)){var s=Xr(e.stroke);a("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,v=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(u!==1&&a("stroke-width",u),c&&a("paint-order",c?"stroke":"fill"),v<1&&a("stroke-opacity",v),e.lineDash){var h=Hp(t),f=h[0],p=h[1];f&&(p=Qy(p||0),a("stroke-dasharray",f.join(",")),(p||r)&&a("stroke-dashoffset",p))}for(var d=0;d<eo.length;d++){var g=eo[d];if(e[g]!==qs[g]){var y=e[g]||qs[g];y&&a(rm[d],y)}}}}var Th="http://www.w3.org/2000/svg",Mh="http://www.w3.org/1999/xlink",nm="http://www.w3.org/2000/xmlns/",im="http://www.w3.org/XML/1998/namespace",ml="ecmeta_";function Ch(a){return document.createElementNS(Th,a)}function bt(a,e,t,r,n){return{tag:a,attrs:t||{},children:r,text:n,key:e}}function om(a,e){var t=[];if(e)for(var r in e){var n=e[r],i=r;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+a+" "+t.join(" ")+">"}function sm(a){return"</"+a+">"}function Jo(a,e){e=e||{};var t=e.newline?`
|
|
2
|
+
`:"";function r(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return om(o,s)+(o!=="style"?Wp(l):l||"")+(i?""+t+z(i,function(u){return r(u)}).join(t)+t:"")+sm(o)}return r(a)}function lm(a,e,t){t=t||{};var r=t.newline?`
|
|
3
|
+
`:"",n=" {"+r,i=r+"}",o=z(mt(a),function(l){return l+n+z(mt(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+i}).join(r),s=z(mt(e),function(l){return"@keyframes "+l+n+z(mt(e[l]),function(u){return u+n+z(mt(e[l][u]),function(v){var c=e[l][u][v];return v==="d"&&(c='path("'+c+'")'),v+":"+c+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function ro(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Sl(a,e,t,r){return bt("svg","root",{width:a,height:e,xmlns:Th,"xmlns:xlink":Mh,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var um=0;function Dh(){return um++}var xl={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Fe="transform-origin";function vm(a,e,t){var r=W({},a.shape);W(r,e),a.buildPath(t,r);var n=new Ah;return n.reset(Fc(a)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function cm(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[Fe]=t+"px "+r+"px")}var hm={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ih(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function fm(a,e,t){var r=a.shape.paths,n={},i,o;if(M(r,function(l){var u=ro(t.zrId);u.animation=!0,En(l,{},u,!0);var v=u.cssAnims,c=u.cssNodes,h=mt(v),f=h.length;if(f){o=h[f-1];var p=v[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=Ih(n,t);return i.replace(o,s)}}function _l(a){return et(a)?xl[a]?"cubic-bezier("+xl[a]+")":Zp(a)?a:"":""}function En(a,e,t,r){var n=a.animators,i=n.length,o=[];if(a instanceof Gc){var s=fm(a,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var v=n[u],c=[v.getMaxTime()/1e3+"s"],h=_l(v.getClip().easing),f=v.getDelay();h?c.push(h):c.push("linear"),f&&c.push(f/1e3+"s"),v.getLoop()&&c.push("infinite");var p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(v)}function d(m){var S=m[1],x=S.length,_={},b={},w={},T="animation-timing-function";function A(j,Y,lt){for(var nt=j.getTracks(),ht=j.getMaxTime(),Mt=0;Mt<nt.length;Mt++){var Nt=nt[Mt];if(Nt.needsAnimate()){var gt=Nt.keyframes,Et=Nt.propName;if(lt&&(Et=lt(Et)),Et)for(var Yt=0;Yt<gt.length;Yt++){var ie=gt[Yt],Oe=Math.round(ie.time/ht*100)+"%",Cr=_l(ie.easing),Xs=ie.rawValue;(et(Xs)||le(Xs))&&(Y[Oe]=Y[Oe]||{},Y[Oe][Et]=ie.rawValue,Cr&&(Y[Oe][T]=Cr))}}}}for(var C=0;C<x;C++){var D=S[C],L=D.targetName;L?L==="shape"&&A(D,b):!r&&A(D,_)}for(var I in _){var P={};Up(P,a),W(P,_[I]);var E=Bc(P),R=_[I][T];w[I]=E?{transform:E}:{},cm(w[I],P),R&&(w[I][T]=R)}var k,N=!0;for(var I in b){w[I]=w[I]||{};var H=!k,R=b[I][T];H&&(k=new Hc);var Z=k.len();k.reset(),w[I].d=vm(a,b[I],k);var U=k.len();if(!H&&Z!==U){N=!1;break}R&&(w[I][T]=R)}if(!N)for(var I in w)delete w[I].d;if(!r)for(var C=0;C<x;C++){var D=S[C],L=D.targetName;L==="style"&&A(D,w,function(nt){return hm[nt]})}for(var q=mt(w),rt=!0,J,C=1;C<q.length;C++){var at=q[C-1],Dt=q[C];if(w[at][Fe]!==w[Dt][Fe]){rt=!1;break}J=w[at][Fe]}if(rt&&J){for(var I in w)w[I][Fe]&&delete w[I][Fe];e[Fe]=J}if(Lt(q,function(j){return mt(w[j]).length>0}).length){var ce=Ih(w,t);return ce+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+Dh();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function pm(a,e,t){if(!a.ignore)if(a.isSilent()){var r={"pointer-events":"none"};bl(r,e,t)}else{var n=a.states.emphasis&&a.states.emphasis.style?a.states.emphasis.style:{},i=n.fill;if(!i){var o=a.style&&a.style.fill,s=a.states.select&&a.states.select.style&&a.states.select.style.fill,l=a.currentStates.indexOf("select")>=0&&s||o;l&&(i=Yp(l))}var u=n.lineWidth;if(u){var v=!n.strokeNoScale&&a.transform?a.transform[0]:1;u=u/v}var r={cursor:"pointer"};i&&(r.fill=i),n.stroke&&(r.stroke=n.stroke),u&&(r["stroke-width"]=u),bl(r,e,t)}}function bl(a,e,t,r){var n=JSON.stringify(a),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+Dh(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=a),e.class=e.class?e.class+" "+i:i}var Qr=Math.round;function Lh(a){return a&&et(a.src)}function Ph(a){return a&&st(a.toDataURL)}function Qo(a,e,t,r){am(function(n,i){var o=n==="fill"||n==="stroke";o&&Zc(i)?Rh(e,a,n,r):o&&Vo(i)?Vh(t,a,n,r):a[n]=i,o&&r.ssr&&i==="none"&&(a["pointer-events"]="visible")},e,t,!1),_m(t,a,r)}function ts(a,e){var t=od(e);t&&(t.each(function(r,n){r!=null&&(a[(ml+n).toLowerCase()]=r+"")}),e.isSilent()&&(a[ml+"silent"]="true"))}function wl(a){return Ce(a[0]-1)&&Ce(a[1])&&Ce(a[2])&&Ce(a[3]-1)}function dm(a){return Ce(a[4])&&Ce(a[5])}function es(a,e,t){if(e&&!(dm(e)&&wl(e))){var r=1e4;a.transform=wl(e)?"translate("+Qr(e[4]*r)/r+" "+Qr(e[5]*r)/r+")":id(e)}}function Al(a,e,t){for(var r=a.points,n=[],i=0;i<r.length;i++)n.push(Qr(r[i][0]*t)/t),n.push(Qr(r[i][1]*t)/t);e.points=n.join(" ")}function Tl(a){return!a.smooth}function gm(a){var e=z(a,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(r[o[1]]=Qr(s*n)/n)}}}var ym={circle:[gm(["cx","cy","r"])],polyline:[Al,Tl],polygon:[Al,Tl]};function mm(a){for(var e=a.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Eh(a,e){var t=a.style,r=a.shape,n=ym[a.type],i={},o=e.animation,s="path",l=a.style.strokePercent,u=e.compress&&Fc(a)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](r))&&!(o&&mm(a))&&!(l<1)){s=a.type;var v=Math.pow(10,u);n[0](r,i,v)}else{var c=!a.path||a.shapeChanged();a.path||a.createPathProxy();var h=a.path;c&&(h.beginPath(),a.buildPath(h,a.shape),a.pathUpdated());var f=h.getVersion(),p=a,d=p.__svgPathBuilder;(p.__svgPathVersion!==f||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new Ah),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),i.d=d.getStr()}return es(i,a.transform),Qo(i,t,a,e),ts(i,a),e.animation&&En(a,i,e),e.emphasis&&pm(a,i,e),bt(s,a.id+"",i)}function Sm(a,e){var t=a.style,r=t.image;if(r&&!et(r)&&(Lh(r)?r=r.src:Ph(r)&&(r=r.toDataURL())),!!r){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:r,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),es(l,a.transform),Qo(l,t,a,e),ts(l,a),e.animation&&En(a,l,e),bt("image",a.id+"",l)}}function xm(a,e){var t=a.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var n=t.font||$p,i=t.x||0,o=Xp(t.y||0,Kp(n),t.textBaseline),s=qp[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(jp(t)){var u="",v=t.fontStyle,c=Jp(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||Qp,f=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",v&&v!=="normal"&&(u+="font-style:"+v+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+n;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),es(l,a.transform),Qo(l,t,a,e),ts(l,a),e.animation&&En(a,l,e),bt("text",a.id+"",l,void 0,r)}}function Ml(a,e){if(a instanceof Vt)return Eh(a,e);if(a instanceof ye)return Sm(a,e);if(a instanceof Wc)return xm(a,e)}function _m(a,e,t){var r=a.style;if(sd(r)){var n=ld(a),i=t.shadowCache,o=i[n];if(!o){var s=a.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var v=r.shadowOffsetX||0,c=r.shadowOffsetY||0,h=r.shadowBlur,f=Xr(r.shadowColor),p=f.opacity,d=f.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[bt("feDropShadow","",{dx:v/l,dy:c/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[n]=o}e.filter=xn(o)}}function Rh(a,e,t,r){var n=a[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(td(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(ed(n))i="radialGradient",o.cx=It(n.x,.5),o.cy=It(n.y,.5),o.r=It(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,v=s.length;u<v;++u){var c=rd(s[u].offset)*100+"%",h=s[u].color,f=Xr(h),p=f.color,d=f.opacity,g={offset:c};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(bt("stop",u+"",g))}var y=bt(i,"",o,l),m=Jo(y),S=r.gradientCache,x=S[m];x||(x=r.zrId+"-g"+r.gradientIdx++,S[m]=x,o.id=x,r.defs[x]=bt(i,x,o,l)),e[t]=xn(x)}function Vh(a,e,t,r){var n=a.style[t],i=a.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",v=s==="repeat-y",c;if(ad(n)){var h=n.imageWidth,f=n.imageHeight,p=void 0,d=n.image;if(et(d)?p=d:Lh(d)?p=d.src:Ph(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Kr(h,g),Kr(f,g)}else if(h==null||f==null){var y=function(C,D){if(C){var L=C.elm,I=h||D.width,P=f||D.height;C.tag==="pattern"&&(u?(P=1,I/=i.width):v&&(I=1,P/=i.height)),C.attrs.width=I,C.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=nd(p,null,a,function(C){l||y(b,C),y(c,C)});m&&m.width&&m.height&&(h=h||m.width,f=f||m.height)}c=bt("image","img",{href:p,width:h,height:f}),o.width=h,o.height=f}else n.svgElement&&(c=ot(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var S,x;l?S=x=1:u?(x=1,S=o.width/i.width):v?(S=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),x!=null&&!isNaN(x)&&(o.height=x);var _=Bc(n);_&&(o.patternTransform=_);var b=bt("pattern","",o,[c]),w=Jo(b),T=r.patternCache,A=T[w];A||(A=r.zrId+"-p"+r.patternIdx++,T[w]=A,o.id=A,b=r.defs[A]=bt("pattern",A,o,[c])),e[t]=xn(A)}}function bm(a,e,t){var r=t.clipPathCache,n=t.defs,i=r[a.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[a.id]=i,n[i]=bt("clipPath",i,o,[Eh(a,t)])}e["clip-path"]=xn(i)}function Cl(a){return document.createTextNode(a)}function $e(a,e,t){a.insertBefore(e,t)}function Dl(a,e){a.removeChild(e)}function Il(a,e){a.appendChild(e)}function kh(a){return a.parentNode}function Nh(a){return a.nextSibling}function Kn(a,e){a.textContent=e}var Ll=58,wm=120,Am=bt("","");function ao(a){return a===void 0}function de(a){return a!==void 0}function Tm(a,e,t){for(var r={},n=e;n<=t;++n){var i=a[n].key;i!==void 0&&(r[i]=n)}return r}function Br(a,e){var t=a.key===e.key,r=a.tag===e.tag;return r&&t}function ta(a){var e,t=a.children,r=a.tag;if(de(r)){var n=a.elm=Ch(r);if(rs(Am,a),B(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&Il(n,ta(i))}else de(a.text)&&!Rt(a.text)&&Il(n,Cl(a.text))}else a.elm=Cl(a.text);return a.elm}function zh(a,e,t,r,n){for(;r<=n;++r){var i=t[r];i!=null&&$e(a,ta(i),e)}}function tn(a,e,t,r){for(;t<=r;++t){var n=e[t];if(n!=null)if(de(n.tag)){var i=kh(n.elm);Dl(i,n.elm)}else Dl(a,n.elm)}}function rs(a,e){var t,r=e.elm,n=a&&a.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?r.setAttribute(t,""):o===!1?r.removeAttribute(t):t==="style"?r.style.cssText=o:t.charCodeAt(0)!==wm?r.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(nm,t,o):t.charCodeAt(3)===Ll?r.setAttributeNS(im,t,o):t.charCodeAt(5)===Ll?r.setAttributeNS(Mh,t,o):r.setAttribute(t,o))}for(t in n)t in i||r.removeAttribute(t)}}function Mm(a,e,t){for(var r=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],v=t[l],c,h,f,p;r<=i&&n<=l;)o==null?o=e[++r]:s==null?s=e[--i]:u==null?u=t[++n]:v==null?v=t[--l]:Br(o,u)?(hr(o,u),o=e[++r],u=t[++n]):Br(s,v)?(hr(s,v),s=e[--i],v=t[--l]):Br(o,v)?(hr(o,v),$e(a,o.elm,Nh(s.elm)),o=e[++r],v=t[--l]):Br(s,u)?(hr(s,u),$e(a,s.elm,o.elm),s=e[--i],u=t[++n]):(ao(c)&&(c=Tm(e,r,i)),h=c[u.key],ao(h)?$e(a,ta(u),o.elm):(f=e[h],f.tag!==u.tag?$e(a,ta(u),o.elm):(hr(f,u),e[h]=void 0,$e(a,f.elm,o.elm))),u=t[++n]);(r<=i||n<=l)&&(r>i?(p=t[l+1]==null?null:t[l+1].elm,zh(a,p,t,n,l)):tn(a,e,r,i))}function hr(a,e){var t=e.elm=a.elm,r=a.children,n=e.children;a!==e&&(rs(a,e),ao(e.text)?de(r)&&de(n)?r!==n&&Mm(t,r,n):de(n)?(de(a.text)&&Kn(t,""),zh(t,null,n,0,n.length-1)):de(r)?tn(t,r,0,r.length-1):de(a.text)&&Kn(t,""):a.text!==e.text&&(de(r)&&tn(t,r,0,r.length-1),Kn(t,e.text)))}function Cm(a,e){if(Br(a,e))hr(a,e);else{var t=a.elm,r=kh(t);ta(e),r!==null&&($e(r,e.elm,Nh(t)),tn(r,[a],0,0))}return e}var Dm=0,Im=(function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Pl(),this.configLayer=Pl(),this.storage=t,this._opts=r=W({},r),this.root=e,this._id="zr"+Dm++,this._oldVNode=Sl(r.width,r.height),e&&!r.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Ch("svg");rs(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Cm(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return Ml(e,ro(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,n=this._height,i=ro(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Lm(r,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=bt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=z(mt(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(bt("defs","defs",{},u)),e.animation){var v=lm(i.cssNodes,i.cssAnims,{newline:!0});if(v){var c=bt("style","stl",{},[],v);o.push(c)}}return Sl(r,n,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},Jo(this.renderToVNode({animation:It(e.cssAnimation,!0),emphasis:It(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:It(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var n=e.length,i=[],o=0,s,l,u=0,v=0;v<n;v++){var c=e[v];if(!c.invisible){var h=c.__clipPaths,f=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y<f;y++){var m={};bm(h[y],m,t);var S=bt("g","clip-g-"+u++,m,[]);(s?s.children:r).push(S),i[o++]=S,s=S}l=h;var x=Ml(c,t);x&&(s?s.children:r).push(x)}}},a.prototype.resize=function(e,t){var r=this._opts,n=this.root,i=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),n&&i&&(i.style.display="none",e=js(n,0,r),t=js(n,1,r),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Vo(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},a.prototype.getWidth=function(){return this._width},a.prototype.getHeight=function(){return this._height},a.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},a.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},a.prototype.toDataURL=function(e){var t=this.renderToString(),r="data:image/svg+xml;";return e?(t=ud(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+encodeURIComponent(t)},a})();function Pl(a){return function(){}}function Lm(a,e,t,r){var n;if(t&&t!=="none")if(n=bt("rect","bg",{width:a,height:e,x:"0",y:"0"}),Zc(t))Rh({fill:t},n.attrs,"fill",r);else if(Vo(t))Vh({style:{fill:t},dirty:Re,getBoundingRect:function(){return{width:a,height:e}}},n.attrs,"fill",r);else{var i=Xr(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function Pm(a){a.registerPainter("svg",Im)}function Em(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();M(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var v=n.dataToPoint(l,s);r[u][s]=El(v)?v:Rl(n)})}),t.each(function(o){var s=vd(r[o],function(l){return El(l)})||Rl(n);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function El(a){return!isNaN(a[0])&&!isNaN(a[1])}function Rl(a){return[a.cx,a.cy]}function Rm(a){var e=a.polar;if(e){B(e)||(e=[e]);var t=[];M(e,function(r,n){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],B(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}M(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Vm=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var d=ua(h.getItemVisual(f,"symbolSize")),g=Wt(p,-1,-1,2,2),y=h.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function v(h,f,p,d,g,y){p.removeAll();for(var m=0;m<f.length-1;m++){var S=u(d,g);S&&(S.__dimIdx=m,h[m]?(S.setPosition(h[m]),Ar[y?"initProps":"updateProps"](S,{x:f[m][0],y:f[m][1]},t,g)):S.setPosition(f[m]),p.add(S))}}function c(h){return z(h,function(f){return[i.cx,i.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(f){var p=new re,d=new me,g={shape:{points:f}};p.shape.points=c(f),d.shape.points=c(f),Ft(p,g,t,h),Ft(d,g,t,h);var y=new $,m=new $;y.add(d),y.add(p),y.add(m),v(d.shape.points,f,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,f){var p=l.getItemGraphicEl(f),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(v(d.shape.points,m.shape.points,y,s,h,!1),Ve(g),Ve(d),ct(d,m,t),ct(g,m,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(f,"style"),S=m.fill;o.add(h),d.useStyle(Q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),Kt(d,p,"lineStyle"),Kt(g,p,"areaStyle");var x=p.getModel("areaStyle"),_=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=_,M(["emphasis","select","blur"],function(T){var A=p.getModel([T,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(T).ignore=C&&_}),g.useStyle(Q(x.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof ye){var A=T.style;T.useStyle(W({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else T.useStyle(m),T.setColor(S),T.style.strokeNoScale=!0;var C=T.ensureState("emphasis");C.style=ot(w);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),f);(D==null||isNaN(D))&&(D=""),ae(T,Ht(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:S,defaultOpacity:m.opacity})}),xt(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Tt),km=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _n(F(this.getData,this),F(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return va(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,v=cd(this,t);return Zt("section",{header:u,sortBlocks:!0,blocks:z(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return Zt("nameValue",{markerType:"subItem",markerColor:v,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),n=this.coordinateSystem,i=r.getValues(z(n.dimensions,function(u){return r.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Ct),Ir=hd.value;function Ta(a,e){return Q({show:e},a)}var Nm=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),f=z(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Q({color:p.color},l));var g=ft(ot(p),{boundaryGap:t,splitNumber:r,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(et(v)){var y=g.name;g.name=v.replace("{value}",y??"")}else st(v)&&(g.name=v(g.name,g));var m=new Ut(g,null,this.ecModel);return ue(m,bn.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ft({lineStyle:{color:"#bbb"}},Ir.axisLine),axisLabel:Ta(Ir.axisLabel,!1),axisTick:Ta(Ir.axisTick,!1),splitLine:Ta(Ir.splitLine,!0),splitArea:Ta(Ir.splitArea,!0),indicator:[]},e})(Pt),zm=["axisLine","axisTickLabel","axisName"],Om=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes(),i=z(n,function(o){var s=o.model.get("showName")?o.name:"",l=new qe(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(zm,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,n=r.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),c=s.get("show"),h=l.get("color"),f=u.get("color"),p=B(h)?h:[h],d=B(f)?f:[f],g=[],y=[];function m(E,R,k){var N=k%R.length;return E[N]=E[N]||[],N}if(i==="circle")for(var S=n[0].getTicksCoords(),x=r.cx,_=r.cy,b=0;b<S.length;b++){if(v){var w=m(g,p,b);g[w].push(new ca({shape:{cx:x,cy:_,r:S[b].coord}}))}if(c&&b<S.length-1){var w=m(y,d,b);y[w].push(new Uc({shape:{cx:x,cy:_,r0:S[b].coord,r:S[b+1].coord}}))}}else for(var T,A=z(n,function(E,R){var k=E.getTicksCoords();return T=T==null?k.length-1:Math.min(k.length-1,T),z(k,function(N){return r.coordToPoint(N.coord,R)})}),C=[],b=0;b<=T;b++){for(var D=[],L=0;L<n.length;L++)D.push(A[L][b]);if(D[0]&&D.push(D[0].slice()),v){var w=m(g,p,b);g[w].push(new me({shape:{points:D}}))}if(c&&C){var w=m(y,d,b-1);y[w].push(new re({shape:{points:D.concat(C)}}))}C=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();M(y,function(E,R){this.group.add(oe(E,{style:Q({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),M(g,function(E,R){this.group.add(oe(E,{style:Q({fill:"none",stroke:p[R%p.length]},I),silent:!0}))},this)},e.type="radar",e})(kt),Gm=(function(a){V(e,a);function e(t,r,n){var i=a.call(this,t,r,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(ve),Bm=(function(){function a(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new Gm(o,new Yi);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return a.prototype.getIndicatorAxes=function(){return this._indicatorAxes},a.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},a.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],n=r.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},a.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=Math.sqrt(t*t+r*r);t/=n,r/=n;for(var i=Math.atan2(-r,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var v=this._indicatorAxes[u],c=Math.abs(i-v.angle);c<o&&(s=v,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},a.prototype.resize=function(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=G(r[0],n),this.cy=G(r[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(et(s)||le(s))&&(s=[0,s]),this.r0=G(s[0],o),this.r=G(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var v=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),l.angle=v},this)},a.prototype.update=function(e,t){var r=this._indicatorAxes,n=this._model;M(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();M(r,function(v){v.scale.unionExtentFromData(u,u.mapDimension(v.dim))})}},this);var i=n.get("splitNumber"),o=new Yi;o.setExtent(0,i),o.setInterval(1),M(r,function(s,l){fd(s.scale,s.model,o)})},a.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.create=function(e,t){var r=[];return e.eachComponent("radar",function(n){var i=new a(n,e,t);r.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=r[n.get("radarIndex")||0])}),r},a.dimensions=[],a})();function Fm(a){a.registerCoordinateSystem("radar",Bm),a.registerComponentModel(Nm),a.registerComponentView(Om),a.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function Hm(a){X(Fm),a.registerChartView(Vm),a.registerSeriesModel(km),a.registerLayout(Em),a.registerProcessor(wn("radar")),a.registerPreprocessor(Rm)}var Vl="\0_ec_interaction_mutex";function Wm(a,e,t){var r=as(a);r[e]=t}function Zm(a,e,t){var r=as(a),n=r[e];n===t&&(r[e]=null)}function kl(a,e){return!!as(a)[e]}function as(a){return a[Vl]||(a[Vl]={})}ha({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Re);var xa=(function(a){V(e,a);function e(t){var r=a.call(this)||this;r._zr=t;var n=F(r._mousedownHandler,r),i=F(r._mousemoveHandler,r),o=F(r._mouseupHandler,r),s=F(r._mousewheelHandler,r),l=F(r._pinchHandler,r);return r.enable=function(u,v){this.disable(),this._opt=Q(ot(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},r.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Js(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Ha("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||kl(this._zr,"globalPan"))){var r=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=r-i,l=n-o;this._x=r,this._y=n,this._opt.preventDefaultMouseMove&&je(t.event),Oh(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Js(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=Ha("zoomOnMouseWheel",t,this._opt),n=Ha("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!r&&!n)){if(r){var u=o>3?1.4:o>1?1.2:1.1,v=i>0?u:1/u;qn(this,"zoom","zoomOnMouseWheel",t,{scale:v,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);qn(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!kl(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;qn(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Yc);function qn(a,e,t,r,n){a.pointerChecker&&a.pointerChecker(r,n.originX,n.originY)&&(je(r.event),Oh(a,e,t,r,n))}function Oh(a,e,t,r,n){n.isAvailableBehavior=F(Ha,null,t,r),a.trigger(e,n)}function Ha(a,e,t){var r=t[a];return!a||r&&(!et(r)||e.event[r+"Key"])}function ns(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function is(a,e,t,r){var n=a.target,i=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(r-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Um={axisPointer:1,tooltip:1,brush:1};function Rn(a,e,t){var r=e.getComponentByElement(a.topTarget),n=r&&r.coordinateSystem;return r&&r!==t&&!Um.hasOwnProperty(r.mainType)&&n&&n.model!==t}function Gh(a){if(et(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var jn,en={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Nl=mt(en),rn={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zl=mt(rn),Ym=(function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=Gh(e);this._defsUsePending=[];var n=new $;this._root=n;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),$t(r,n,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Km(this._defs,this._defsUsePending),this._defsUsePending=[];var v,c;if(o){var h=Vn(o);h.length>=4&&(v={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(v&&s!=null&&l!=null&&(c=Fh(v,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=n;n=new $,n.add(f),f.scaleX=f.scaleY=c.scale,f.x=c.x,f.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:v,viewBoxTransform:c,named:i}},a.prototype._parseNode=function(e,t,r,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var v=jn[s];if(v&&O(jn,s)){l=v.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};r.push(h),s==="g"&&(u=h)}else n&&r.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var f=Ol[s];if(f&&O(Ol,s)){var p=f.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},a.prototype._parseText=function(e,t){var r=new Wc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});qt(t,r),$t(e,r,this._defsUsePending,!1,!1),$m(r,t);var n=r.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=(function(){jn={g:function(e,t){var r=new $;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new pt;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new ca;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new se;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new dd;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Fl(r));var i=new re({shape:{points:n||[]},silent:!0});return qt(t,i),$t(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),n;r&&(n=Fl(r));var i=new me({shape:{points:n||[]},silent:!0});return qt(t,i),$t(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new ye;return qt(t,r),$t(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new $;return qt(t,s),$t(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),n=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new $;return qt(t,s),$t(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",n=pd(r);return qt(t,n),$t(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),a})(),Ol={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),n=parseInt(a.getAttribute("y2")||"0",10),i=new ko(e,t,r,n);return Gl(a,i),Bl(a,i),i},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),n=new gd(e,t,r);return Gl(a,n),Bl(a,n),n}};function Gl(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Bl(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),n=void 0;r&&r.indexOf("%")>0?n=parseInt(r,10)/100:r?n=parseFloat(r):n=0;var i={};Bh(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function qt(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,a.__inheritedStyle))}function Fl(a){for(var e=Vn(a),t=[],r=0;r<e.length;r+=2){var n=parseFloat(e[r]),i=parseFloat(e[r+1]);t.push([n,i])}return t}function $t(a,e,t,r,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};a.nodeType===1&&(Jm(a,e),Bh(a,o,s),r||Qm(a,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Hl(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Hl(i,"stroke",o.stroke,t)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=z(Vn(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function $m(a,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,n=r;!r||r==="auto"||r==="baseline"?n="alphabetic":r==="before-edge"||r==="text-before-edge"?n="top":r==="after-edge"||r==="text-after-edge"?n="bottom":(r==="central"||r==="mathematical")&&(n="middle"),a.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),a.style.textAlign=s)}}var Xm=/^url\(\s*#(.*?)\)/;function Hl(a,e,t,r){var n=t&&t.match(Xm);if(n){var i=yd(n[1]);r.push([a,e,i]);return}return t==="none"&&(t=null),t}function Km(a,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=a[r[2]]}}var qm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vn(a){return a.match(qm)||[]}var jm=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Jn=Math.PI/180;function Jm(a,e){var t=a.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],n=null;t.replace(jm,function(c,h,f){return r.push(h,f),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=Vn(o);switch(n=n||Tr(),s){case"translate":Je(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":$c(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":An(n,n,-parseFloat(l[0])*Jn,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Jn);Qs(n,[1,0,u,1,0,0],n);break;case"skewY":var v=Math.tan(parseFloat(l[0])*Jn);Qs(n,[1,v,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Wl=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Bh(a,e,t){var r=a.getAttribute("style");if(r){Wl.lastIndex=0;for(var n;(n=Wl.exec(r))!=null;){var i=n[1],o=O(en,i)?en[i]:null;o&&(e[o]=n[2]);var s=O(rn,i)?rn[i]:null;s&&(t[s]=n[2])}}}function Qm(a,e,t){for(var r=0;r<Nl.length;r++){var n=Nl[r],i=a.getAttribute(n);i!=null&&(e[en[n]]=i)}for(var r=0;r<zl.length;r++){var n=zl[r],i=a.getAttribute(n);i!=null&&(t[rn[n]]=i)}}function Fh(a,e){var t=e.width/a.width,r=e.height/a.height,n=Math.min(t,r);return{scale:n,x:-(a.x+a.width/2)*n+(e.x+e.width/2),y:-(a.y+a.height/2)*n+(e.y+e.height/2)}}function t0(a,e){var t=new Ym;return t.parse(a,e)}var e0=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),r0=(function(){function a(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Gh(t)}return a.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=n0(e.named),r=t.regions,n=t.regionsMap;this._regions=r,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},a.prototype._buildGraphic=function(e){var t,r;try{t=e&&t0(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,Kr(r!=null)}catch(g){throw new Error(`Invalid svg format
|
|
4
|
+
`+g.message)}var n=new $;n.add(r),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,v=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(v=0,h=o):s&&(v=s.y,h=s.height),u==null||v==null){var f=r.getBoundingRect();u==null&&(u=f.x,c=f.width),v==null&&(v=f.y,h=f.height)}l=this._boundingRect=new wt(u,v,c,h)}if(s){var p=Fh(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}n.setClipPath(new pt({shape:l.plain()}));var d=[];return M(t.named,function(g){e0.get(g.svgNodeTagLower)!=null&&(d.push(g),a0(g.el))}),{root:n,boundingRect:l,named:d}},a.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},a.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},a})();function a0(a){a.silent=!1,a.isGroup&&a.traverse(function(e){e.silent=!1})}function n0(a){var e=[],t=K();return M(a,function(r){if(r.namedFrom==null){var n=new md(r.name,r.el);e.push(n),t.set(r.name,n)}}),{regions:e,regionsMap:t}}var no=[126,25],Zl="南海诸岛",He=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Be=0;Be<He.length;Be++)for(var nr=0;nr<He[Be].length;nr++)He[Be][nr][0]/=10.5,He[Be][nr][1]/=-10.5/.75,He[Be][nr][0]+=no[0],He[Be][nr][1]+=no[1];function i0(a,e){if(a==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Zl)return;e.push(new Sd(Zl,z(He,function(r){return{type:"polygon",exterior:r}}),no))}}var o0={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function s0(a,e){if(a==="china"){var t=o0[e.name];if(t){var r=e.getCenter();r[0]+=t[0]/10.5,r[1]+=-t[1]/(10.5/.75),e.setCenter(r)}}}var l0=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function u0(a,e){a==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:l0[0]})}var v0="name",c0=(function(){function a(e,t,r){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=r,this._geoJSON=f0(t)}return a.prototype.load=function(e,t){t=t||v0;var r=this._parsedMap.get(t);if(!r){var n=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:n,boundingRect:h0(n)})}var i=K(),o=[];return M(r.regions,function(s){var l=s.name;e&&O(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new wt(0,0,0,0),regionsMap:i}},a.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,n;try{n=r?$i(r,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
5
|
+
`+i.message)}return i0(t,n),M(n,function(i){var o=i.name;s0(t,i),u0(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},a.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a})();function h0(a){for(var e,t=0;t<a.length;t++){var r=a[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function f0(a){return et(a)?typeof JSON<"u"&&JSON.parse?JSON.parse(a):new Function("return ("+a+");")():a}var Lr=K();const Ae={registerMap:function(a,e,t){if(e.svg){var r=new r0(a,e.svg);Lr.set(a,r)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var r=new c0(a,n,t);Lr.set(a,r)}},getGeoResource:function(a){return Lr.get(a)},getMapForUser:function(a){var e=Lr.get(a);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(a,e,t){var r=Lr.get(a);if(r)return r.load(e,t)}};var os=["rect","circle","line","ellipse","polygon","polyline","path"],p0=K(os),d0=K(os.concat(["g"])),g0=K(os.concat(["g"])),Hh=_t();function Ma(a){var e=a.getItemStyle(),t=a.get("areaColor");return t!=null&&(e.fill=t),e}function Ul(a){var e=a.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Wh=(function(){function a(e){var t=new $;this.uid=Xc("ec_map_draw"),this._controller=new xa(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new $),t.add(this._svgGroup=new $)}return a.prototype.draw=function(e,t,r,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,v=this.group,c=l.getTransformInfo(),h=c.raw,f=c.roam,p=!u.childAt(0)||i;p?(v.x=f.x,v.y=f.y,v.scaleX=f.scaleX,v.scaleY=f.scaleY,v.dirty()):ct(v,f,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,n)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),r=K(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function v(f,p){return p&&(f=p(f)),f&&[f[0]*i.scaleX+i.x,f[1]*i.scaleY+i.y]}function c(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=v(f[g],d);y&&p.push(y)}return p}function h(f){return{shape:{points:c(f)}}}n.removeAll(),M(e.geo.regions,function(f){var p=f.name,d=t.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new $),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var S=m.get("silent",!0);S!=null&&(d.silent=S),r.set(p,{dataIdx:y,regionModel:m})}var x=[],_=[];M(f.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=jl(A,u)),M(A,function(D){x.push(new re(h(D)))})}else{var C=T.points;u&&(C=jl(C,u,!0)),M(C,function(D){_.push(new me(h(D)))})}});var b=v(f.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new Gc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(C),Yl(e,C,y,m),$l(e,C,p,m,o,y,b),A&&(Ul(C),M(C.states,Ul))}}w(x),w(_,!0)}),t.each(function(f,p){var d=r.get(p),g=d.dataIdx,y=d.regionModel;Xl(e,f,p,y,o,g),Kl(e,f,p,y,o),ql(e,f,p,y,o)},this)},a.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=K(),i=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,v=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);p0.get(v)!=null&&c instanceof Qe&&Yl(e,c,h,f),c instanceof Qe&&(c.culling=!0);var p=f.get("silent",!0);if(p!=null&&(c.silent=p),c.z2EmphasisLift=0,!o.namedFrom&&(g0.get(v)!=null&&$l(e,c,s,f,l,h,null),Xl(e,c,s,f,l,h),Kl(e,c,s,f,l),d0.get(v)!=null)){var d=ql(e,c,s,f,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(i,e)},a.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){xr(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},a.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},a.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},a.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},a.prototype._useSVG=function(e){var t=Ae.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},a.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ae.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},a.prototype._updateController=function(e,t,r){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,ns(o,u.dx,u.dy),r.dispatchAction(W(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,is(o,u.scale,u.originX,u.originY),r.dispatchAction(W(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,v,c){return n.containPoint([v,c])&&!Rn(u,r,e)})},a.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Hh(t).ignore)})},a.prototype._updateMapSelectHandler=function(e,t,r,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},a})();function Yl(a,e,t,r){var n=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Ma(n),u=Ma(i),v=Ma(s),c=Ma(o),h=a.data;if(h){var f=h.getItemVisual(t,"style"),p=h.getItemVisual(t,"decal");a.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=No(p,a.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=v,e.ensureState("blur").style=c,xr(e)}function $l(a,e,t,r,n,i,o){var s=a.data,l=a.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),v=s&&s.getItemLayout(i);if(l||u||v&&v.showLabel){var c=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ae(e,Ht(r),{labelFetcher:h,labelDataIndex:c,defaultText:t},f);var p=e.getTextContent();if(p&&(Hh(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Xl(a,e,t,r,n,i){a.data?a.data.setItemGraphicEl(i,e):ut(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:r&&r.option||{}}}function Kl(a,e,t,r,n){a.data||zo({el:e,componentModel:n,itemName:t,itemTooltipOption:r.get("tooltip")})}function ql(a,e,t,r,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return xt(e,o,i.get("blurScope"),i.get("disabled")),a.isGeo&&xd(e,n,t),o}function jl(a,e,t){var r=[],n;function i(){n=[]}function o(){n.length&&(r.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(a,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),r}var y0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new Wh(n);o.add(s.group),s.draw(t,r,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var v=u.point,c=u.offset,h=new ca({style:{fill:t.getData().getVisual("style").fill},shape:{cx:v[0]+c*9,cy:v[1],r:3},silent:!0,z2:8+(c?0:fa+1)});if(!c){var f=t.mainSeries.getData(),p=i.getName(l),d=f.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=f.getItemGraphicEl(d);ae(h,Ht(g),{labelFetcher:{getFormattedLabel:function(S,x){return t.getFormattedLabel(d,x)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){Kc(h,S)}}o.add(h)}}})},e.type="map",e})(Tt),m0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var n=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=va(this,{coordDimensions:["value"],encodeDefaulter:tt(qc,this)}),n=K(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);n.set(l,o)}var u=Ae.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(v){var c=v.name,h=n.get(c),f=v.properties&&v.properties.echartsStyle,p;h==null?(p={name:c},i.push(p)):p=r.getRawDataItem(h),f&&ft(p,f)}),r.appendData(i),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],v=0;v<l.length;v++){var c=l[v].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[v].originalData.get(h,c))||u.push(l[v].name)}return Zt("section",{header:u.join(", "),noHeader:!u.length,blocks:[Zt("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",n=Wt(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",r.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(Ct);function S0(a,e){var t={};return M(a,function(r){r.each(r.mapDimension("value"),function(n,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),a[0].map(a[0].mapDimension("value"),function(r,n){for(var i="ec-"+a[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,v=0;v<u;v++)s=Math.min(s,t[i][v]),l=Math.max(l,t[i][v]),o+=t[i][v];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function x0(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),n=r?"o"+r.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),M(e,function(t,r){for(var n=S0(z(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function _0(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var n={};M(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,v){var c=l.getName(v),h=s.getRegion(c);if(!(!h||isNaN(u))){var f=n[c]||0,p=s.dataToPoint(h.getCenter());n[c]=f+1,l.setItemLayout(v,{point:p,offset:f})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[r]=!0}})}var Jl=Xi,_a=(function(a){V(e,a);function e(t){var r=a.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new dr,r._rawTransformable=new dr,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,n,i){return this._rect=new wt(t,r,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,n,i){this._transformTo(t,r,n,i),this._viewRect=new wt(t,r,n,i)},e.prototype._transformTo=function(t,r,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new wt(t,r,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,r){t&&(this._center=[G(t[0],r.getWidth()),G(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,n=t.y+t.height/2;return[r,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Xi([],i,t),n=Xi([],n,t),r.originX=i[0],r.originY=i[1],r.x=n[0]-i[0],r.y=n[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),_d(this.transform||(this.transform=[]),r.transform||Tr()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],bd(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,n=new dr;return n.transform=r.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,n){var i=r?this._rawTransform:this.transform;return n=n||[],i?Jl(n,t,i):Ot(n,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?Jl([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,n){var i=Ql(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=Ql(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(dr);function Ql(a){var e=a.seriesModel;return e?e.coordinateSystem:null}var b0={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Zh=["lng","lat"],io=(function(a){V(e,a);function e(t,r,n){var i=a.call(this,t)||this;i.dimensions=Zh,i.type="geo",i._nameCoordMap=K(),i.map=r;var o=n.projection,s=Ae.load(r,n.nameMap,n.nameProperty),l=Ae.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,v=b0[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var f=u[h].getBoundingRect(o);c=c||f.clone(),c.union(f)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:It(n.aspectScale,v.aspectScale),i._invertLongitute=o?!1:v.invertLongitute,i}return e.prototype._transformTo=function(t,r,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new wt(t,r,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,n=0;n<r.length;n++){var i=r[n];if(i.type==="geoJSON"&&i.contain(t))return r[n]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,n){if(et(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,r,n)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return a.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,n){return a.prototype.dataToPoint.call(this,t,r,n)},e.prototype.convertToPixel=function(t,r,n){var i=tu(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=tu(r);return i===this?i.pointToData(n):null},e})(_a);ue(io,_a);function tu(a){var e=a.geoModel,t=a.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ge).models[0]||{}).coordinateSystem:null}function eu(a,e){var t=a.get("boundingCoords");if(t!=null){var r=t[0],n=t[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=n[0],u=n[1];r=[1/0,1/0],n=[-1/0,-1/0];var v=function(b,w,T,A){for(var C=T-b,D=A-w,L=0;L<=100;L++){var I=L/100,P=i.project([b+C*I,w+D*I]);wd(r,r,P),Ad(n,n,P)}};v(o,s,l,s),v(l,s,l,u),v(l,u,o,u),v(o,u,l,s)}this.setBoundingRect(r[0],r[1],n[0]-r[0],n[1]-r[1])}}var c=this.getBoundingRect(),h=a.get("layoutCenter"),f=a.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,S;h&&f&&(m=[G(h[0],p),G(h[1],d)],S=G(f,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var x;if(y)x={},g>1?(x.width=S,x.height=S/g):(x.height=S,x.width=S*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var _=a.getBoxLayoutParams();_.aspect=g,x=ne(_,{width:p,height:d})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function w0(a,e){M(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var A0=(function(){function a(){this.dimensions=Zh}return a.prototype.create=function(e,t){var r=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new io(l+s,l,W({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eu,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=z(o,function(v){return v.get("nameMap")}),u=new io(s,s,W({nameMap:Oo(l)},n(o[0])));u.zoomLimit=Xt.apply(null,z(o,function(v){return v.get("scaleLimit")})),r.push(u),u.resize=eu,u.resize(o[0],t),M(o,function(v){v.coordinateSystem=u,w0(u,v)})}),r},a.prototype.getFilledRegions=function(e,t,r,n){for(var i=(e||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ae.load(t,r,n);return M(l.regions,function(u){var v=u.name,c=o.get(v),h=u.properties&&u.properties.echartsStyle;c||(c={name:v},i.push(c)),h&&ft(c,h)}),i},a})(),Uh=new A0,T0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,n){var i=Ae.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Tn(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=Uh.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var n={};this._optionModelMap=jc(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ut(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},K()),r.selectedMap||(r.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ut(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var n=this.getRegionModel(t),i=r==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(st(i))return o.status=r,i(o);if(et(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,n=r.selectedMode;if(n){n!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(Pt);function ru(a,e){return a.pointToProjected?a.pointToProjected(e):a.pointToData(e)}function ss(a,e,t,r){var n=a.getZoom(),i=a.getCenter(),o=e.zoom,s=a.projectedToPoint?a.projectedToPoint(i):a.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,a.setCenter(ru(a,s),r)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}a.scaleX*=o,a.scaleY*=o;var v=(e.originX-a.x)*(o-1),c=(e.originY-a.y)*(o-1);a.x-=v,a.y-=c,a.updateTransform(),a.setCenter(ru(a,s),r),a.setZoom(o*n)}return{center:a.getCenter(),zoom:a.getZoom()}}var M0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Wh(n));var o=this._mapDraw;o.draw(t,r,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,r,n)},e.prototype._handleRegionClick=function(t){var r;Jc(t.target,function(n){return(r=ut(n).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ut(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(kt);function C0(a,e,t){Ae.registerMap(a,e,t)}function Yh(a){a.registerCoordinateSystem("geo",Uh),a.registerComponentModel(T0),a.registerComponentView(M0),a.registerImpl("registerMap",C0),a.registerImpl("getMap",function(t){return Ae.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",a.registerAction(r,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;M(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var v=[];M(o,function(c,h){o[h]&&v.push(h)}),s.push({geoIndex:l.componentIndex,name:v})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),a.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,n){var i=t.componentType||"series";r.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=ss(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function D0(a){X(Yh),a.registerChartView(y0),a.registerSeriesModel(m0),a.registerLayout(_0),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,x0),Td("map",a.registerAction)}function I0(a){var e=a;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,n;r=t.pop();)if(n=r.children,r.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function L0(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,n=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){R0(a);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(a.hierNode.prelim=n.hierNode.prelim+e(a,n),a.hierNode.modifier=a.hierNode.prelim-i):a.hierNode.prelim=i}else n&&(a.hierNode.prelim=n.hierNode.prelim+e(a,n));a.parentNode.hierNode.defaultAncestor=V0(a,n,a.parentNode.hierNode.defaultAncestor||r[0],e)}function P0(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function au(a){return arguments.length?a:z0}function Fr(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function E0(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function R0(a){for(var e=a.children,t=e.length,r=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,n+=i.hierNode.change,r+=i.hierNode.shift+n}}function V0(a,e,t,r){if(e){for(var n=a,i=a,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,v=o.hierNode.modifier,c=s.hierNode.modifier;s=Qn(s),i=ti(i),s&&i;){n=Qn(n),o=ti(o),n.hierNode.ancestor=a;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+r(s,i);h>0&&(N0(k0(s,a,t),a,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,v+=o.hierNode.modifier}s&&!Qn(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=c-l),i&&!ti(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-v,t=a)}return t}function Qn(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function ti(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function k0(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function N0(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function z0(a,e){return a.parentNode===e.parentNode?1:2}var O0=(function(){function a(){this.parentPoint=[],this.childPoints=[]}return a})(),G0=(function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new O0},e.prototype.buildPath=function(t,r){var n=r.childPoints,i=n.length,o=r.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,v=u==="TB"||u==="BT"?0:1,c=1-v,h=G(r.forkPosition,1),f=[];f[v]=o[v],f[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[v]=s[v],t.lineTo(f[0],f[1]),f[v]=l[v],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];t.moveTo(d[0],d[1]),f[v]=d[v],t.lineTo(f[0],f[1])}},e})(Vt),B0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new $,t}return e.prototype.init=function(t,r){this._controller=new xa(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,r,n);var u=this._data;i.diff(u).add(function(v){nu(i,v)&&iu(i,v,null,s,t)}).update(function(v,c){var h=u.getItemGraphicEl(c);if(!nu(i,v)){h&&su(u,c,h,s,t);return}iu(i,v,h,s,t)}).remove(function(v){var c=u.getItemGraphicEl(v);c&&su(u,v,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(v,c){v.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,r){var n=t.getData(),i=[];n.each(function(c){var h=n.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Mn(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var v=t.coordinateSystem=new _a;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),v.setCenter(t.get("center"),r),v.setZoom(t.get("zoom")),this.group.attr({x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,r,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Rn(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ns(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){is(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),n=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var n=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*n+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(Tt);function nu(a,e){var t=a.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function iu(a,e,t,r,n){var i=!t,o=a.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",v=a.tree.root,c=o.parentNode===v?o:o.parentNode||o,h=a.getItemGraphicEl(c.dataIndex),f=c.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,d=o.getLayout();i?(t=new Qc(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,r.add(t),a.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ct(t,{x:d.x,y:d.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var y=v.children[0],m=y.getLayout(),S=y.children.length,x=void 0,_=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};x=Math.atan2(b.y-m.y,b.x-m.x),x<0&&(x=Math.PI*2+x),_=b.x<m.x,_&&(x=x-Math.PI)}else x=Math.atan2(d.y-m.y,d.x-m.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(_=d.x<m.x,_&&(x=x-Math.PI)):(_=d.x>m.x,_||(x=x-Math.PI));var w=_?"left":"right",T=s.getModel("label"),A=T.get("rotate"),C=A*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:A==null?-x:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?$a(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ut(t).focus=I),F0(n,o,v,t,p,f,d,r),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Md||Kc(t.__edge,P)}})}function F0(a,e,t,r,n,i,o,s){var l=e.getModel(),u=a.get("edgeShape"),v=a.get("layout"),c=a.getOrient(),h=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=r.__edge=new th({shape:oo(v,c,h,n,n)})),ct(d,{shape:oo(v,c,h,i,o)},a));else if(u==="polyline"&&v==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}d||(d=r.__edge=new G0({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:f}})),ct(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},a)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(Q({strokeNoScale:!0,fill:null},p)),Kt(d,l,"lineStyle"),xr(d),s.add(d))}function ou(a,e,t,r,n){var i=e.tree.root,o=$h(i,a),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(a.dataIndex);if(u){var v=e.getItemGraphicEl(s.dataIndex),c=v.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),f=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),g=r.get(["lineStyle","curveness"]);h&&(f==="curve"?Xa(h,{shape:oo(p,d,g,l,l),style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:n}):f==="polyline"&&r.get("layout")==="orthogonal"&&Xa(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){t.remove(h)},removeOpt:n}))}}function $h(a,e){for(var t=e.parentNode===a?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===a?t:t.parentNode||t;return{source:t,sourceLayout:r}}function su(a,e,t,r,n){var i=a.tree.getNodeByDataIndex(e),o=a.tree.root,s=$h(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Xa(t,{x:s.x+1,y:s.y+1},n,{cb:function(){r.remove(t),a.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,a.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){ou(u,a,r,n,l)}),ou(i,a,r,n,l)}function oo(a,e,t,r,n){var i,o,s,l,u,v,c,h;if(a==="radial"){u=r.rawX,c=r.rawY,v=n.rawX,h=n.rawY;var f=Fr(u,c),p=Fr(u,c+(h-c)*t),d=Fr(v,h+(c-h)*t),g=Fr(v,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=r.x,c=r.y,v=n.x,h=n.y,(e==="LR"||e==="RL")&&(i=u+(v-u)*t,o=c,s=v+(u-v)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=c+(h-c)*t,s=v,l=h+(c-h)*t);return{x1:u,y1:c,x2:v,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var ee=_t();function Xh(a){var e=a.mainData,t=a.datas;t||(t={main:e},a.datasAttr={main:"data"}),a.datas=a.mainData=null,Kh(e,t,a),M(t,function(r){M(e.TRANSFERABLE_METHODS,function(n){r.wrapMethod(n,tt(H0,a))})}),e.wrapMethod("cloneShallow",tt(Z0,a)),M(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,tt(W0,a))}),Kr(t[e.dataType]===e)}function H0(a,e){if($0(this)){var t=W({},ee(this).datas);t[this.dataType]=e,Kh(e,t,a)}else ls(e,this.dataType,ee(this).mainData,a);return e}function W0(a,e){return a.struct&&a.struct.update(),e}function Z0(a,e){return M(ee(e).datas,function(t,r){t!==e&&ls(t.cloneShallow(),r,e,a)}),e}function U0(a){var e=ee(this).mainData;return a==null||e==null?e:ee(e).datas[a]}function Y0(){var a=ee(this).mainData;return a==null?[{data:a}]:z(mt(ee(a).datas),function(e){return{type:e,data:ee(a).datas[e]}})}function $0(a){return ee(a).mainData===a}function Kh(a,e,t){ee(a).datas={},M(e,function(r,n){ls(r,n,a,t)})}function ls(a,e,t,r){ee(t).datas[e]=a,ee(a).mainData=t,a.dataType=e,r.struct&&(a[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=a),a.getLinkedData=U0,a.getLinkedDataAll=Y0}var X0=(function(){function a(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return a.prototype.isRemoved=function(){return this.dataIndex<0},a.prototype.eachNode=function(e,t,r){st(e)&&(r=t,t=e,e=null),e=e||{},et(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,r);n==="postorder"&&t.call(r,this)},a.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var n=this.children[r];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,n=r.length;t<n;t++){var i=r[t].getNodeById(e);if(i)return i}},a.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,n=r.length;t<n;t++){var i=r[t].contains(e);if(i)return i}},a.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},a.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},a.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},a.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},a.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},a.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},a.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},a})(),us=(function(){function a(e){this.type="tree",this._nodes=[],this.hostModel=e}return a.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},a.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},a.prototype.getNodeById=function(e){return this.root.getNodeById(e)},a.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,n=t.length;r<n;r++)t[r].dataIndex=-1;for(var r=0,n=e.count();r<n;r++)t[e.getRawIndex(r)].dataIndex=r},a.prototype.clearLayouts=function(){this.data.clearItemLayouts()},a.createTree=function(e,t,r){var n=new a(t),i=[],o=1;s(e);function s(v,c){var h=v.value;o=Math.max(o,B(h)?h.length:1),i.push(v);var f=new X0(xe(v.name,""),n);c?K0(f,c):n.root=f,n._nodes.push(f);var p=v.children;if(p)for(var d=0;d<p.length;d++)s(p[d],f)}n.root.updateDepthAndHeight(0);var l=Go(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Bt(l,t);return u.initData(i),r&&r(u),Xh({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},a})();function K0(a,e){var t=e.children;a.parentNode!==e&&(t.push(a),a.parentNode=e)}function ea(a,e,t){if(a&&dt(e,a.type)>=0){var r=t.getData().tree.root,n=a.targetNode;if(et(n)&&(n=r.getNodeById(n)),n&&r.contains(n))return{node:n};var i=a.targetNodeId;if(i!=null&&(n=r.getNodeById(i)))return{node:n}}}function qh(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function vs(a,e){var t=qh(a);return dt(t,e)>=0}function kn(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var q0=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},n=t.leaves||{},i=new Ut(n,this,this.ecModel),o=us.createTree(r,this,s);function s(c){c.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,v=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=v}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Zt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=kn(n,this),r.collapsed=!n.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Ct);function j0(a,e,t){for(var r=[a],n=[],i;i=r.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=n.pop();)e(i,t)}function Pr(a,e){for(var t=[a],r;r=t.pop();)if(e(r),r.isExpand){var n=r.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function J0(a,e){a.eachSeriesByType("tree",function(t){Q0(t,e)})}function Q0(a,e){var t=E0(a,e);a.layoutInfo=t;var r=a.get("layout"),n=0,i=0,o=null;r==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=au(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(n=t.width,i=t.height,o=au());var s=a.getData().tree.root,l=s.children[0];if(l){I0(s),j0(l,L0,o),s.hierNode.modifier=-l.hierNode.prelim,Pr(l,P0);var u=l,v=l,c=l;Pr(l,function(S){var x=S.getLayout().x;x<u.getLayout().x&&(u=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=u===v?1:o(u,v)/2,f=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(r==="radial")p=n/(v.getLayout().x+h+f),d=i/(c.depth-1||1),Pr(l,function(S){g=(S.getLayout().x+f)*p,y=(S.depth-1)*d;var x=Fr(g,y);S.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var m=a.getOrient();m==="RL"||m==="LR"?(d=i/(v.getLayout().x+h+f),p=n/(c.depth-1||1),Pr(l,function(S){y=(S.getLayout().x+f)*d,g=m==="LR"?(S.depth-1)*p:n-(S.depth-1)*p,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=n/(v.getLayout().x+h+f),d=i/(c.depth-1||1),Pr(l,function(S){g=(S.getLayout().x+f)*p,y=m==="TB"?(S.depth-1)*d:i-(S.depth-1)*d,S.setLayout({x:g,y},!0)}))}}}function tS(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");W(s,o)})})}function eS(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var n=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=ss(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function rS(a){a.registerChartView(B0),a.registerSeriesModel(q0),a.registerLayout(J0),a.registerVisual(tS),eS(a)}var lu=["treemapZoomToNode","treemapRender","treemapMove"];function aS(a){for(var e=0;e<lu.length;e++)a.registerAction({type:lu[e],update:"updateView"},Re);a.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ea(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=vs(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function jh(a){var e=a.getData(),t=e.tree,r={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Cd(a.ecModel,i.name||i.dataIndex+"",r);n.setVisual("decal",o)})}var nS=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};Jh(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ut({itemStyle:o},this,r);i=t.levels=iS(i,r);var l=z(i||[],function(c){return new Ut(c,s,r)},this),u=us.createTree(n,this,v);function v(c){c.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Zt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=kn(n,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=K(),this._idIndexMapCount=0);var n=r.get(t);return n==null&&r.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){jh(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Ct);function Jh(a){var e=0;M(a.children,function(r){Jh(r);var n=r.value;B(n)&&(n=n[0]),e+=n});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}function iS(a,e){var t=Gt(e.get("color")),r=Gt(e.get(["aria","decal","decals"]));if(t){a=a||[];var n,i;M(a,function(s){var l=new Ut(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(i=!0)});var o=a[0]||(a[0]={});return n||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),a}}var oS=8,uu=8,ei=5,sS=(function(){function a(e){this.group=new $,e.add(this.group)}return a.prototype.render=function(e,t,r,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,c,u),this._renderContent(e,c,s,l,u,v,n),Bo(o,c.pos,c.box)}},a.prototype._prepare=function(e,t,r){for(var n=e;n;n=n.parentNode){var i=xe(n.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+oS*2,t.emptyItemWidth);t.totalWidth+=s+uu,t.renderList.push({node:n,text:i,width:s})}},a.prototype._renderContent=function(e,t,r,n,i,o,s){for(var l=0,u=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=Dd(t.pos,t.box),h=t.totalWidth,f=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=f.length-1;d>=0;d--){var g=f[d],y=g.node,m=g.width,S=g.text;h>c.width&&(h-=m-u,m=u,S=null);var x=new re({shape:{points:lS(l,0,m,v,d===f.length-1,d===0)},style:Q(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new vt({style:St(i,{text:S})}),textConfig:{position:"inside"},z2:fa*1e4,onclick:tt(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=St(o,{text:S}),x.ensureState("emphasis").style=p,xt(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),uS(x,e,y),l+=m+uu}},a.prototype.remove=function(){this.group.removeAll()},a})();function lS(a,e,t,r,n,i){var o=[[n?a:a-ei,e],[a+t,e],[a+t,e+r],[n?a:a-ei,e+r]];return!i&&o.splice(2,0,[a+t+ei,e+r/2]),!n&&o.push([a,e+r/2]),o}function uS(a,e,t){ut(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&kn(t,e)}}var vS=(function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:n,easing:i}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},a})();function cS(){return new vS}var so=$,vu=pt,cu=3,hu="label",fu="upperLabel",hS=fa*10,fS=fa*2,pS=fa*3,We=rh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),pu=function(a){var e=We(a);return e.stroke=e.fill=e.lineWidth=null,e},an=_t(),dS=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Er(),t}return e.prototype.render=function(t,r,n,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(dt(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=ea(i,s,t),u=i&&i.type,v=t.layoutInfo,c=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(v),d=t.get("animation"),g=this._doRender(p,t,f);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,f):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new so,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,n){var i=r.getData().tree,o=this._oldTree,s=Er(),l=Er(),u=this._storage,v=[];function c(m,S,x,_){return gS(r,l,u,n,s,v,m,S,x,_)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var f=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===f.width&&p.height===f.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function d(m,S,x,_,b){_?(S=m,M(m,function(A,C){!A.isRemoved()&&T(C,C)})):new ke(S,m,w,w).add(T).update(T).remove(tt(T,null)).execute();function w(A){return A.getId()}function T(A,C){var D=A!=null?m[A]:null,L=C!=null?S[C]:null,I=c(D,L,x,b);I&&d(D&&D.viewChildren||[],L&&L.viewChildren||[],I,_,b+1)}}function g(m){var S=Er();return m&&M(m,function(x,_){var b=S[_];M(x,function(w){w&&(b.push(w),an(w).willDelete=!0)})}),S}function y(){M(h,function(m){M(m,function(S){S.parent&&S.parent.remove(S)})}),M(v,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,r,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(st(o)?0:o)||0,u=(st(s)?null:s)||"cubicOut",v=cS();M(r.willDeleteEls,function(c,h){M(c,function(f,p){if(!f.invisible){var d=f.parent,g,y=an(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&v.add(f,g,l,0,u)}})}),M(this._storage,function(c,h){M(c,function(f,p){var d=r.lastsForAnimation[h][p],g={};d&&(f instanceof $?d.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=d.oldX,f.y=d.oldY):(d.oldShape&&(g.shape=W({},f.shape),f.setShape(d.oldShape)),d.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),v.add(f,g,l,0,u))})},this),this._state="animating",v.finished(F(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),r||(r=this._controller=new xa(t.getZr()),r.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),r.on("pan",F(this._onPan,this)),r.on("zoom",F(this._onZoom,this)));var i=new wt(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>cu||Math.abs(t.dy)>cu)){var r=this.seriesModel.getData().tree.root;if(!r)return;var n=r.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var r=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new wt(s.x,s.y,s.width,s.height),u=null,v=this._controllerHost;u=v.zoomLimit;var c=v.zoom=v.zoom||1;if(c*=i,u){var h=u.min||0,f=u.max||1/0;c=Math.max(Math.min(f,c),h)}var p=c/v.zoom;v.zoom=c;var d=this.seriesModel.layoutInfo;r-=d.x,n-=d.y;var g=Tr();Je(g,g,[-r,-n]),$c(g,g,[p,p]),Je(g,g,[r,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(n){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&eh(u,v)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new sS(this.group))).render(t,r,n.node,function(o){i._state!=="animating"&&(vs(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Er(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})(Tt);function Er(){return{nodeGroup:[],background:[],content:[]}}function gS(a,e,t,r,n,i,o,s,l,u){if(!o)return;var v=o.getLayout(),c=a.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var f=v.width,p=v.height,d=v.borderWidth,g=v.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,x=v.upperHeight,_=S&&S.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,D=at("nodeGroup",so);if(!D)return;if(l.add(D),D.x=v.x||0,D.y=v.y||0,D.markRedraw(),an(D).nodeWidth=f,an(D).nodeHeight=p,v.isAboveViewRoot)return D;var L=at("background",vu,u,fS);L&&Z(D,L,_&&v.upperLabelHeight);var I=h.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),R=I.get("disabled"),k=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)tl(D)&&Or(D,!1),L&&(Or(L,!R),c.setItemGraphicEl(o.dataIndex,L),el(L,k,E));else{var N=at("content",vu,u,pS);N&&U(D,N),L.disableMorphing=!0,L&&tl(L)&&Or(L,!1),Or(D,!R),c.setItemGraphicEl(o.dataIndex,D);var H=h.getShallow("cursor");H&&N.attr("cursor",H),el(D,k,E)}return D;function Z(j,Y,lt){var nt=ut(Y);if(nt.dataIndex=o.dataIndex,nt.seriesIndex=a.seriesIndex,Y.setShape({x:0,y:0,width:f,height:p,r:C}),g)q(Y);else{Y.invisible=!1;var ht=o.getVisual("style"),Mt=ht.stroke,Nt=pu(b);Nt.fill=Mt;var gt=We(w);gt.fill=w.get("borderColor");var Et=We(T);Et.fill=T.get("borderColor");var Yt=We(A);if(Yt.fill=A.get("borderColor"),lt){var ie=f-2*d;rt(Y,Mt,ht.opacity,{x:d,y:0,width:ie,height:x})}else Y.removeTextContent();Y.setStyle(Nt),Y.ensureState("emphasis").style=gt,Y.ensureState("blur").style=Et,Y.ensureState("select").style=Yt,xr(Y)}j.add(Y)}function U(j,Y){var lt=ut(Y);lt.dataIndex=o.dataIndex,lt.seriesIndex=a.seriesIndex;var nt=Math.max(f-2*d,0),ht=Math.max(p-2*d,0);if(Y.culling=!0,Y.setShape({x:d,y:d,width:nt,height:ht,r:C}),g)q(Y);else{Y.invisible=!1;var Mt=o.getVisual("style"),Nt=Mt.fill,gt=pu(b);gt.fill=Nt,gt.decal=Mt.decal;var Et=We(w),Yt=We(T),ie=We(A);rt(Y,Nt,Mt.opacity,null),Y.setStyle(gt),Y.ensureState("emphasis").style=Et,Y.ensureState("blur").style=Yt,Y.ensureState("select").style=ie,xr(Y)}j.add(Y)}function q(j){!j.invisible&&i.push(j)}function rt(j,Y,lt,nt){var ht=h.getModel(nt?fu:hu),Mt=xe(h.get("name"),null),Nt=ht.getShallow("show");ae(j,Ht(h,nt?fu:hu),{defaultText:Nt?Mt:null,inheritColor:Y,defaultOpacity:lt,labelFetcher:a,labelDataIndex:o.dataIndex});var gt=j.getTextContent();if(gt){var Et=gt.style,Yt=Id(Et.padding||0);nt&&(j.setTextConfig({layoutRect:nt}),gt.disableLabelLayout=!0),gt.beforeUpdate=function(){var Oe=Math.max((nt?nt.width:j.shape.width)-Yt[1]-Yt[3],0),Cr=Math.max((nt?nt.height:j.shape.height)-Yt[0]-Yt[2],0);(Et.width!==Oe||Et.height!==Cr)&>.setStyle({width:Oe,height:Cr})},Et.truncateMinChar=2,Et.lineOverflow="truncate",J(Et,nt,v);var ie=gt.getState("emphasis");J(ie?ie.style:null,nt,v)}}function J(j,Y,lt){var nt=j?j.text:null;if(!Y&<.isLeafRoot&&nt!=null){var ht=a.get("drillDownIcon",!0);j.text=ht?ht+" "+nt:nt}}function at(j,Y,lt,nt){var ht=m!=null&&t[j][m],Mt=n[j];return ht?(t[j][m]=null,Dt(Mt,ht)):g||(ht=new Y,ht instanceof Qe&&(ht.z2=yS(lt,nt)),ce(Mt,ht)),e[j][y]=ht}function Dt(j,Y){var lt=j[y]={};Y instanceof so?(lt.oldX=Y.x,lt.oldY=Y.y):lt.oldShape=W({},Y.shape)}function ce(j,Y){var lt=j[y]={},nt=o.parentNode,ht=Y instanceof $;if(nt&&(!r||r.direction==="drillDown")){var Mt=0,Nt=0,gt=n.background[nt.getRawIndex()];!r&>&>.oldShape&&(Mt=gt.oldShape.width,Nt=gt.oldShape.height),ht?(lt.oldX=0,lt.oldY=Nt):lt.oldShape={x:Mt,y:Nt,width:0,height:0}}lt.fadein=!ht}}function yS(a,e){return a*hS+e}var ra=M,mS=Rt,nn=-1,At=(function(){function a(e){var t=e.mappingMethod,r=e.type,n=this.option=ot(e);this.type=r,this.mappingMethod=t,this._normalizeData=_S[t];var i=a.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ri(n),SS(n)):t==="category"?n.categories?xS(n):ri(n,!0):(Kr(t!=="linear"||n.dataExtent),ri(n))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return F(this._normalizeData,this)},a.listVisualTypes=function(){return mt(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){Rt(e)?M(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var n,i=B(e)?[]:Rt(e)?{}:(n=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);n?i=l:i[s]=l}),i},a.retrieveVisuals=function(e){var t={},r;return e&&ra(a.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(mS(e)){var t=[];ra(e,function(r,n){t.push(n)}),e=t}else return[];return e.sort(function(r,n){return n==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||et(l)&&l===e+"")return o;r&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],v=u.interval,c=u.close;if(v){if(v[0]===-1/0){if(Da(c[1],e,v[1]))return o}else if(v[1]===1/0){if(Da(c[0],v[0],e))return o}else if(Da(c[0],v[0],e)&&Da(c[1],e,v[1]))return o;r&&h(v[0],o),r&&h(v[1],o)}}if(r)return e===1/0?t.length-1:e===-1/0?0:n;function h(f,p){var d=Math.abs(f-e);d<i&&(i=d,n=p)}},a.visualHandlers={color:{applyVisual:Rr("color"),getColorMapper:function(){var e=this.option;return F(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),Hr.call(this,t)}:function(t,r,n){var i=!!n;return!r&&(t=this._normalizeData(t)),n=Fn(t,e.parsedVisual,n),i?n:Bn(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Bn(Fn(e,this.option.parsedVisual),"rgba")},category:Hr,piecewise:function(e,t){var r=uo.call(this,t);return r==null&&(r=Bn(Fn(e,this.option.parsedVisual),"rgba")),r},fixed:Ze}},colorHue:Ca(function(e,t){return Ur(e,t)}),colorSaturation:Ca(function(e,t){return Ur(e,null,t)}),colorLightness:Ca(function(e,t){return Ur(e,null,null,t)}),colorAlpha:Ca(function(e,t){return Ka(e,t)}),decal:{applyVisual:Rr("decal"),_normalizedToVisual:{linear:null,category:Hr,piecewise:null,fixed:null}},opacity:{applyVisual:Rr("opacity"),_normalizedToVisual:lo([0,1])},liftZ:{applyVisual:Rr("liftZ"),_normalizedToVisual:{linear:Ze,category:Ze,piecewise:Ze,fixed:Ze}},symbol:{applyVisual:function(e,t,r){var n=this.mapValueToVisual(e);r("symbol",n)},_normalizedToVisual:{linear:du,category:Hr,piecewise:function(e,t){var r=uo.call(this,t);return r==null&&(r=du.call(this,e)),r},fixed:Ze}},symbolSize:{applyVisual:Rr("symbolSize"),_normalizedToVisual:lo([0,1])}},a})();function SS(a){var e=a.pieceList;a.hasSpecialVisual=!1,M(e,function(t,r){t.originIndex=r,t.visual!=null&&(a.hasSpecialVisual=!0)})}function xS(a){var e=a.categories,t=a.categoryMap={},r=a.visual;if(ra(e,function(o,s){t[o]=s}),!B(r)){var n=[];Rt(r)?ra(r,function(o,s){var l=t[s];n[l??nn]=o}):n[nn]=r,r=Qh(a,n)}for(var i=e.length-1;i>=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function ri(a,e){var t=a.visual,r=[];Rt(t)?ra(t,function(i){r.push(i)}):t!=null&&r.push(t);var n={color:1,symbol:1};!e&&r.length===1&&!n.hasOwnProperty(a.type)&&(r[1]=r[0]),Qh(a,r)}function Ca(a){return{applyVisual:function(e,t,r){var n=this.mapValueToVisual(e);r("color",a(t("color"),n))},_normalizedToVisual:lo([0,1])}}function du(a){var e=this.option.visual;return e[Math.round(it(a,[0,1],[0,e.length-1],!0))]||{}}function Rr(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function Hr(a){var e=this.option.visual;return e[this.option.loop&&a!==nn?a%e.length:a]}function Ze(){return this.option.visual[0]}function lo(a){return{linear:function(e){return it(e,a,this.option.visual,!0)},category:Hr,piecewise:function(e,t){var r=uo.call(this,t);return r==null&&(r=it(e,a,this.option.visual,!0)),r},fixed:Ze}}function uo(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=At.findPieceIndex(a,t),n=t[r];if(n&&n.visual)return n.visual[this.type]}}function Qh(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=z(e,function(t){var r=Ld(t);return r||[0,0,0,1]})),e}var _S={linear:function(a){return it(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=At.findPieceIndex(a,e,!0);if(t!=null)return it(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e??nn},fixed:Re};function Da(a,e,t){return a?e<=t:e<t}var bS="itemStyle",tf=_t();const wS={seriesType:"treemap",reset:function(a){var e=a.getData().tree,t=e.root;t.isRemoved()||ef(t,{},a.getViewRoot().getAncestors(),a)}};function ef(a,e,t,r){var n=a.getModel(),i=a.getLayout(),o=a.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(bS),l=AS(s,e,r),u=o.ensureUniqueItemVisual(a.dataIndex,"style"),v=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=gu(l),v=TS(c,h)),u.stroke=v;var f=a.viewChildren;if(!f||!f.length)h=gu(l),u.fill=h;else{var p=MS(a,n,i,s,l,f);M(f,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=CS(n,l,d,g,p,r);ef(d,y,t,r)}})}}}function AS(a,e,t){var r=W({},e),n=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=a.get(i);n[i]=null,o!=null&&(r[i]=o)}),r}function gu(a){var e=ai(a,"color");if(e){var t=ai(a,"colorAlpha"),r=ai(a,"colorSaturation");return r&&(e=Ur(e,null,null,r)),t&&(e=Ka(e,t)),e}}function TS(a,e){return e!=null?Ur(e,null,null,a):null}function ai(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function MS(a,e,t,r,n,i){if(!(!i||!i.length)){var o=ni(e,"color")||n.color!=null&&n.color!=="none"&&(ni(e,"colorAlpha")||ni(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var v=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(v==="index"||v==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new At(c);return tf(h).drColorMappingBy=v,h}}}function ni(a,e){var t=a.get(e);return B(t)&&t.length?{name:e,range:t}:null}function CS(a,e,t,r,n,i){var o=W({},e);if(n){var s=n.type,l=s==="color"&&tf(n).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var aa=Math.max,on=Math.min,yu=Xt,cs=M,rf=["itemStyle","borderWidth"],DS=["itemStyle","gapWidth"],IS=["upperLabel","show"],LS=["upperLabel","height"];const PS={seriesType:"treemap",reset:function(a,e,t,r){var n=t.getWidth(),i=t.getHeight(),o=a.option,s=ne(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=G(yu(s.width,l[0]),n),v=G(yu(s.height,l[1]),i),c=r&&r.type,h=["treemapZoomToNode","treemapRootToNode"],f=ea(r,h,a),p=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,d=a.getViewRoot(),g=qh(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?zS(a,f,d,u,v):p?[p.width,p.height]:[u,v],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),af(d,S,!1,0),x=d.getLayout(),cs(g,function(b,w){var T=(g[w+1]||d).getValue();b.setLayout(W({dataExtent:[T,T],borderWidth:0,upperHeight:0},x))})}var _=a.getData().tree.root;_.setLayout(OS(s,p,f),!0),a.setLayoutInfo(s),nf(_,new wt(-s.x,-s.y,n,i),g,d,0)}};function af(a,e,t,r){var n,i;if(!a.isRemoved()){var o=a.getLayout();n=o.width,i=o.height;var s=a.getModel(),l=s.get(rf),u=s.get(DS)/2,v=of(s),c=Math.max(l,v),h=l-u,f=c-u;a.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:v},!0),n=aa(n-2*h,0),i=aa(i-h-f,0);var p=n*i,d=ES(a,s,p,e,t,r);if(d.length){var g={x:h,y:f,width:n,height:i},y=on(n,i),m=1/0,S=[];S.area=0;for(var x=0,_=d.length;x<_;){var b=d[x];S.push(b),S.area+=b.getLayout().area;var w=NS(S,y,e.squareRatio);w<=m?(x++,m=w):(S.area-=S.pop().getLayout().area,mu(S,y,g,u,!1),y=on(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&mu(S,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(t=!0)}for(var x=0,_=d.length;x<_;x++)af(d[x],e,t,r+1)}}}function ES(a,e,t,r,n,i){var o=a.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(n&&!l)return a.viewChildren=[];o=Lt(o,function(f){return!f.isRemoved()}),VS(o,s);var u=kS(e,o,s);if(u.sum===0)return a.viewChildren=[];if(u.sum=RS(e,t,u.sum,s,o),u.sum===0)return a.viewChildren=[];for(var v=0,c=o.length;v<c;v++){var h=o[v].getValue()/u.sum*t;o[v].setLayout({area:h})}return l&&(o.length&&a.setLayout({isLeafRoot:!0},!0),o.length=0),a.viewChildren=o,a.setLayout({dataExtent:u.dataExtent},!0),o}function RS(a,e,t,r,n){if(!r)return t;for(var i=a.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[r==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return r==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function VS(a,e){return e&&a.sort(function(t,r){var n=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:n}),a}function kS(a,e,t){for(var r=0,n=0,i=e.length;n<i;n++)r+=e[n].getValue();var o=a.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],cs(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function NS(a,e,t){for(var r=0,n=1/0,i=0,o=void 0,s=a.length;i<s;i++)o=a[i].getLayout().area,o&&(o<n&&(n=o),o>r&&(r=o));var l=a.area*a.area,u=e*e*t;return l?aa(u*r/l,l/(u*n)):1/0}function mu(a,e,t,r,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],v=e?a.area/e:0;(n||v>t[l[o]])&&(v=t[l[o]]);for(var c=0,h=a.length;c<h;c++){var f=a[c],p={},d=v?f.getLayout().area/v:0,g=p[l[o]]=aa(v-2*r,0),y=t[s[i]]+t[l[i]]-u,m=c===h-1||y<d?y:d,S=p[l[i]]=aa(m-2*r,0);p[s[o]]=t[s[o]]+on(r,g/2),p[s[i]]=u+on(r,S/2),u+=m,f.setLayout(p,!0)}t[s[o]]+=v,t[l[o]]-=v}function zS(a,e,t,r,n){var i=(e||{}).node,o=[r,n];if(!i||i===t)return o;for(var s,l=r*n,u=l*a.option.zoomToNodeRatio;s=i.parentNode;){for(var v=0,c=s.children,h=0,f=c.length;h<f;h++)v+=c[h].getValue();var p=i.getValue();if(p===0)return o;u*=v/p;var d=s.getModel(),g=d.get(rf),y=Math.max(g,of(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>rl&&(u=rl),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,n*m]}function OS(a,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var n=t.node,i=n.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:a.width/2-o[0],y:a.height/2-o[1]}}function nf(a,e,t,r,n){var i=a.getLayout(),o=t[n],s=o&&o===a;if(!(o&&!s||n===t.length&&a!==r)){a.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new wt(e.x-i.x,e.y-i.y,e.width,e.height);cs(a.viewChildren||[],function(u){nf(u,l,t,r,n+1)})}}function of(a){return a.get(IS)?a.get(LS):0}function GS(a){a.registerSeriesModel(nS),a.registerChartView(dS),a.registerVisual(wS),a.registerLayout(PS),aS(a)}function BS(a){var e=a.findComponents({mainType:"legend"});!e||!e.length||a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){le(u)&&(u=o[u]);for(var v=0;v<e.length;v++)if(!e[v].isSelected(u))return!1}return!0})})}function FS(a){var e={};a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),n=t.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++){var h=l.getShallow(v[c],!0);h!=null&&r.setItemVisual(o,v[c],h)}}),r.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){et(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),v=n.ensureUniqueItemVisual(o,"style");W(v,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)n.setItemVisual(o,c[h],r.getItemVisual(l,c[h]))}})})}function Ia(a){return a instanceof Array||(a=[a,a]),a}function HS(a){a.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),n=Ia(e.get("edgeSymbol")),i=Ia(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",n&&n[0]),r.setVisual("toSymbol",n&&n[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=t.getEdgeByIndex(o),u=Ia(s.getShallow("symbol",!0)),v=Ia(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=r.ensureUniqueItemVisual(o,"style");switch(W(h,c),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),v[0]&&l.setVisual("fromSymbolSize",v[0]),v[1]&&l.setVisual("toSymbolSize",v[1])})})}var vo="-->",Nn=function(a){return a.get("autoCurveness")||null},sf=function(a,e){var t=Nn(a),r=20,n=[];if(le(t))r=t;else if(B(t)){a.__curvenessList=t;return}e>r&&(r=e);var i=r%2?r+2:r+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));a.__curvenessList=n},na=function(a,e,t){var r=[a.id,a.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,r,n].join(vo)},lf=function(a){var e=a.split(vo);return[e[0],e[2],e[1]].join(vo)},WS=function(a,e){var t=na(a.node1,a.node2,e);return e.__edgeMap[t]},ZS=function(a,e){var t=co(na(a.node1,a.node2,e),e),r=co(na(a.node2,a.node1,e),e);return t+r},co=function(a,e){var t=e.__edgeMap;return t[a]?t[a].length:0};function US(a){Nn(a)&&(a.__curvenessList=[],a.__edgeMap={},sf(a))}function YS(a,e,t,r){if(Nn(t)){var n=na(a,e,t),i=t.__edgeMap,o=i[lf(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(r)}}function hs(a,e,t,r){var n=Nn(e),i=B(n);if(!n)return null;var o=WS(a,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=ZS(a,e);sf(e,u),a.lineStyle=a.lineStyle||{};var v=na(a.node1,a.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var f=lf(v),p=co(f,e),d=c[s+p+h];return r?i?n&&n[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function uf(a){var e=a.coordinateSystem;if(!(e&&e.type!=="view")){var t=a.getGraph();t.eachNode(function(r){var n=r.getModel();r.setLayout([+n.get("x"),+n.get("y")])}),fs(t,a)}}function fs(a,e){a.eachEdge(function(t,r){var n=pa(t.getModel().get(["lineStyle","curveness"]),-hs(t,e,r,!0),0),i=Le(t.node1.getLayout()),o=Le(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function $S(a,e){a.eachSeriesByType("graph",function(t){var r=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];M(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,v=0;v<o.length;v++){var c=i.get(o[v],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}fs(i.graph,t)}else(!r||r==="none")&&uf(t)})}function Wr(a){var e=a.coordinateSystem;if(e.type!=="view")return 1;var t=a.option.nodeScaleRatio,r=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/r}function Zr(a){var e=a.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Su=Math.PI,ii=[];function ps(a,e,t,r){var n=a.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=a.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,v=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=n.pointToData(r),f=h[0],p=h[1],d=[f-l,p-u];da(d,d),Pd(d,d,v),t.setLayout([l+d[0],u+d[1]],!0);var g=a.get(["circular","rotateLabel"]);vf(t,g,l,u)}XS[e](a,s,o,v,l,u,c),s.eachEdge(function(y,m){var S=pa(y.getModel().get(["lineStyle","curveness"]),hs(y,a,m),0),x=Le(y.node1.getLayout()),_=Le(y.node2.getLayout()),b,w=(x[0]+_[0])/2,T=(x[1]+_[1])/2;+S&&(S*=3,b=[l*S+w*(1-S),u*S+T*(1-S)]),y.setLayout([x,_,b])})}}}var XS={value:function(a,e,t,r,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(v){var c=v.getValue("value"),h=u*(l?c:1)/2;s+=h,v.setLayout([r*Math.cos(s)+n,r*Math.sin(s)+i]),s+=h})},symbolSize:function(a,e,t,r,n,i,o){var s=0;ii.length=o;var l=Wr(a);e.eachNode(function(c){var h=Zr(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/r);isNaN(f)&&(f=Su/2),ii[c.dataIndex]=f,s+=f*2});var u=(2*Su-s)/o/2,v=0;e.eachNode(function(c){var h=u+ii[c.dataIndex];v+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([r*Math.cos(v)+n,r*Math.sin(v)+i]),v+=h})}};function vf(a,e,t,r){var n=a.getGraphicEl();if(n){var i=a.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=a.getLayout(),u=Math.atan2(l[1]-r,l[0]-t);u<0&&(u=Math.PI*2+u);var v=l[0]<t;v&&(u=u-Math.PI);var c=v?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");W(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function KS(a){a.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&ps(e,"symbolSize")})}var ir=Ki;function qS(a,e,t){for(var r=a,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,v=0;v<r.length;v++){var c=r[v];c.p||(c.p=Ed(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Le(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,f=h,p,d;return{warmUp:function(){f=h*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(r,n);for(var y=[],m=r.length,S=0;S<n.length;S++){var x=n[S];if(!x.ignoreForceLayout){var _=x.n1,b=x.n2;gr(y,b.p,_.p);var w=al(y)-x.d,T=b.w/(_.w+b.w);isNaN(T)&&(T=0),da(y,y),!_.fixed&&ir(_.p,_.p,y,T*w*f),!b.fixed&&ir(b.p,b.p,y,-(1-T)*w*f)}}for(var S=0;S<m;S++){var A=r[S];A.fixed||(gr(y,l,A.p),ir(A.p,A.p,y,u*f))}for(var S=0;S<m;S++)for(var _=r[S],C=S+1;C<m;C++){var b=r[C];gr(y,b.p,_.p);var w=al(y);w===0&&(Rd(y,Math.random()-.5,Math.random()-.5),w=1);var D=(_.rep+b.rep)/w/w;!_.fixed&&ir(_.pp,_.pp,y,D),!b.fixed&&ir(b.pp,b.pp,y,-D)}for(var L=[],S=0;S<m;S++){var A=r[S];A.fixed||(gr(L,A.p,A.pp),ir(A.p,A.p,L,f),Ot(A.pp,A.p))}f=f*.992;var I=f<.01;d&&d(r,n,I),g&&g(I)}}}function jS(a){a.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(S){var x=i.getId(S);i.setItemLayout(S,r[x]||[NaN,NaN])}):!l||l==="none"?uf(e):l==="circular"&&ps(e,"value");var u=i.getDataExtent("value"),v=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),f=B(c)?c:[c,c],p=B(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(S,x){var _=i.getItemLayout(x),b=it(S,u,f);return isNaN(b)&&(b=(f[0]+f[1])/2),{w:b,rep:b,fixed:i.getItemModel(x).get("fixed"),p:!_||isNaN(_[0])||isNaN(_[1])?null:_}}),g=o.mapArray("value",function(S,x){var _=n.getEdgeByIndex(x),b=it(S,v,p);isNaN(b)&&(b=(p[0]+p[1])/2);var w=_.getModel(),T=pa(_.getModel().get(["lineStyle","curveness"]),-hs(_,e,x,!0),0);return{n1:d[_.node1.dataIndex],n2:d[_.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=qS(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,x){for(var _=0,b=S.length;_<b;_++)S[_].fixed&&Ot(S[_].p,n.getNodeByIndex(_).getLayout())}),m.afterStep(function(S,x,_){for(var b=0,w=S.length;b<w;b++)S[b].fixed||n.getNodeByIndex(b).setLayout(S[b].p),r[i.getId(b)]=S[b].p;for(var b=0,w=x.length;b<w;b++){var T=x[b],A=n.getEdgeByIndex(b),C=T.n1.p,D=T.n2.p,L=A.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ot(L[0],C),Ot(L[1],D),+T.curveness&&(L[2]=[(C[0]+D[0])/2-(C[1]-D[1])*T.curveness,(C[1]+D[1])/2-(D[0]-C[0])*T.curveness]),A.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function JS(a,e,t){var r=W(a.getBoxLayoutParams(),{aspect:t});return ne(r,{width:e.getWidth(),height:e.getHeight()})}function QS(a,e){var t=[];return a.eachSeriesByType("graph",function(r){var n=r.get("coordinateSystem");if(!n||n==="view"){var i=r.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Mn(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),v=JS(r,e,u);isNaN(u)&&(s=[v.x,v.y],l=[v.x+v.width,v.y+v.height]);var c=l[0]-s[0],h=l[1]-s[1],f=v.width,p=v.height,d=r.coordinateSystem=new _a;d.zoomLimit=r.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(v.x,v.y,f,p),d.setCenter(r.get("center"),e),d.setZoom(r.get("zoom")),t.push(d)}}),t}var xu=se.prototype,oi=th.prototype,cf=(function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return a})();(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e})(cf);function si(a){return isNaN(+a.cpx1)||isNaN(+a.cpy1)}var t1=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cf},e.prototype.buildPath=function(t,r){si(r)?xu.buildPath.call(this,t,r):oi.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return si(this.shape)?xu.pointAt.call(this,t):oi.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,n=si(r)?[r.x2-r.x1,r.y2-r.y1]:oi.tangentAt.call(this,t);return da(n,n)},e})(Vt),li=["fromSymbol","toSymbol"];function _u(a){return"_"+a+"Type"}function bu(a,e,t){var r=e.getItemVisual(t,a);if(!r||r==="none")return r;var n=e.getItemVisual(t,a+"Size"),i=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=ua(n),u=ga(o||0,l);return r+l+u+(i||"")+(s||"")}function wu(a,e,t){var r=e.getItemVisual(t,a);if(!(!r||r==="none")){var n=e.getItemVisual(t,a+"Size"),i=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=ua(n),u=ga(o||0,l),v=Wt(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return v.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,v.name=a,v}}function e1(a){var e=new t1({name:"line",subPixelOptimize:!0});return ho(e.shape,a),e}function ho(a,e){a.x1=e[0][0],a.y1=e[0][1],a.x2=e[1][0],a.y2=e[1][1],a.percent=1;var t=e[2];t?(a.cpx1=t[0],a.cpy1=t[1]):(a.cpx1=NaN,a.cpy1=NaN)}var ds=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i._createLine(t,r,n),i}return e.prototype._createLine=function(t,r,n){var i=t.hostModel,o=t.getItemLayout(r),s=e1(o);s.shape.percent=0,Ft(s,{shape:{percent:1}},i,r),this.add(s),M(li,function(l){var u=wu(l,t,r);this.add(u),this[_u(l)]=bu(l,t,r)},this),this._updateCommonStl(t,r,n)},e.prototype.updateData=function(t,r,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(r),l={shape:{}};ho(l.shape,s),ct(o,l,i,r),M(li,function(u){var v=bu(u,t,r),c=_u(u);if(this[c]!==v){this.remove(this.childOfName(u));var h=wu(u,t,r);this.add(h)}this[c]=v},this),this._updateCommonStl(t,r,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,v=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,f=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(r),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),f=d.get("blurScope"),v=Ht(p)}var g=t.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(li,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<qi.length;T++){var A=qi[T],C=o.getState(A);if(C){var D=C.style||{},L=w.ensureState(A),I=L.style||(L.style={});D.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(r);ae(this,v,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(r):isFinite(m)?Fo(m):m)+""});var S=this.getTextContent();if(S){var x=v.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var _=x.get("distance");B(_)||(_=[_,_]),S.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),xt(this,h,f,c)},e.prototype.highlight=function(){qr(this)},e.prototype.downplay=function(){jr(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");ho(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!r&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,v=l.pointAt(0),c=l.pointAt(u),h=gr([],c,v);da(h,h);function f(C,D){var L=C.__specifiedRotation;if(L==null){var I=l.tangentAt(D);C.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else C.attr("rotation",L)}if(r&&(r.setPosition(v),f(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),n&&(n.setPosition(c),f(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,x=l.tangentAt(S),_=[x[1],-x[0]],b=l.pointAt(S);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var w=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(x[1],x[0]);c[0]<v[0]&&(T=Math.PI+T),i.rotation=T}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,d="top";break;default:A=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+v[0],i.y=-h[1]*m+v[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+v[0],i.y=v[1]+A,p=x[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+A,p="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+A,p=x[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e})($),gs=(function(){function a(e){this.group=new $,this._LineCtor=e||ds}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,n=r.group,i=r._lineData;r._lineData=e,i||n.removeAll();var o=Au(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Au(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!r1(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(ui(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(r),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},a.prototype.remove=function(){this.group.removeAll()},a.prototype.eachRendered=function(e){Cn(this._progressiveEls||this.group,e)},a.prototype._doAdd=function(e,t,r){var n=e.getItemLayout(t);if(ui(n)){var i=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,i),this.group.add(i)}},a.prototype._doUpdate=function(e,t,r,n,i){var o=e.getItemGraphicEl(r);if(!ui(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},a})();function r1(a){return a.animators&&a.animators.length>0}function Au(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Ht(e)}}function Tu(a){return isNaN(a[0])||isNaN(a[1])}function ui(a){return a&&!Tu(a[0])&&!Tu(a[1])}var vi=[],ci=[],hi=[],or=ah,fi=kd,Mu=Math.abs;function Cu(a,e,t){for(var r=a[0],n=a[1],i=a[2],o=1/0,s,l=t*t,u=.1,v=.1;v<=.9;v+=.1){vi[0]=or(r[0],n[0],i[0],v),vi[1]=or(r[1],n[1],i[1],v);var c=Mu(fi(vi,e)-l);c<o&&(o=c,s=v)}for(var h=0;h<32;h++){var f=s+u;ci[0]=or(r[0],n[0],i[0],s),ci[1]=or(r[1],n[1],i[1],s),hi[0]=or(r[0],n[0],i[0],f),hi[1]=or(r[1],n[1],i[1],f);var c=fi(ci,e)-l;if(Mu(c)<.01)break;var p=fi(hi,e)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function pi(a,e){var t=[],r=Vd,n=[[],[],[]],i=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Le(u[0]),Le(u[1])],u[2]&&u.__original.push(Le(u[2])));var h=u.__original;if(u[2]!=null){if(Ot(n[0],h[0]),Ot(n[1],h[2]),Ot(n[2],h[1]),v&&v!=="none"){var f=Zr(s.node1),p=Cu(n,h[0],f*e);r(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],r(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}if(c&&c!=="none"){var f=Zr(s.node2),p=Cu(n,h[1],f*e);r(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],r(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]}Ot(u[0],n[0]),Ot(u[1],n[2]),Ot(u[2],n[1])}else{if(Ot(i[0],h[0]),Ot(i[1],h[1]),gr(o,i[1],i[0]),da(o,o),v&&v!=="none"){var f=Zr(s.node1);Ki(i[0],i[0],o,f*e)}if(c&&c!=="none"){var f=Zr(s.node2);Ki(i[1],i[1],o,-f*e)}Ot(u[0],i[0]),Ot(u[1],i[1])}})}function Du(a){return a.type==="view"}var a1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var n=new Ho,i=new gs,o=this.group;this._controller=new xa(r.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Du(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):ct(u,v,t)}pi(t.getGraph(),Wr(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,r,n),clearTimeout(this._layoutTimeout);var f=t.forceLayout,p=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var d=t.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,_=S.getGraphicEl(),b=S.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(d){case"force":f.warmUp(),!i._layouting&&i._startForceLayoutIteration(f,p),f.setFixed(x),c.setItemLayout(x,[_.x,_.y]);break;case"circular":c.setItemLayout(x,[_.x,_.y]),S.setLayout({fixed:!0},!0),ps(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(x,[_.x,_.y]),fs(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(x)}),_.setDraggable(w,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(ut(_).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),_=S.getModel().get(["emphasis","focus"]);x&&_==="adjacency"&&(ut(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(S){vf(S,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(r?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(v,c)&&!Rn(u,n,t)}),!Du(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ns(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){is(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),pi(t.getGraph(),Wr(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),n=Wr(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){pi(t.getGraph(),Wr(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(Tt);function sr(a){return"_EC_"+a}var n1=(function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[sr(e)]){var n=new Ue(e,t);return n.hostGraph=this,this.nodes.push(n),r[sr(e)]=n,n}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[sr(e)]},a.prototype.addEdge=function(e,t,r){var n=this._nodesMap,i=this._edgesMap;if(le(e)&&(e=this.nodes[e]),le(t)&&(t=this.nodes[t]),e instanceof Ue||(e=n[sr(e)]),t instanceof Ue||(t=n[sr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new hf(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof Ue&&(e=e.id),t instanceof Ue&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,n=r.length,i=0;i<n;i++)r[i].dataIndex>=0&&e.call(t,r[i],i)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,n=r.length,i=0;i<n;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},a.prototype.breadthFirstTraverse=function(e,t,r,n){if(t instanceof Ue||(t=this._nodesMap[sr(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var v=u[o],c=v.node1===l?v.node2:v.node1;if(!c.__visited){if(e.call(n,c,l))return;s.push(c),c.__visited=!0}}}},a.prototype.update=function(){for(var e=this.data,t=this.edgeData,r=this.nodes,n=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},a.prototype.clone=function(){for(var e=new a(this._directed),t=this.nodes,r=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<r.length;n++){var i=r[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},a})(),Ue=(function(){function a(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return a.prototype.degree=function(){return this.edges.length},a.prototype.inDegree=function(){return this.inEdges.length},a.prototype.outDegree=function(){return this.outEdges.length},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var r=this.edges[t];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},a.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),r=0;r<this.edges.length;r++){var n=this.edges[r];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var v=o[s];s++,t.set(v.dataIndex,!0);for(var u=0;u<v.outEdges.length;u++)e.set(v.outEdges[u].dataIndex,!0),o.push(v.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},a})(),hf=(function(){function a(e,t,r){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=r??-1}return a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},a.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var r=[this.node1],n=[this.node2],i=0;i<r.length;){var o=r[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},a})();function ff(a,e){return{getValue:function(t){var r=this[a][e];return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,r){this.dataIndex>=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}ue(Ue,ff("hostGraph","data"));ue(hf,ff("hostGraph","edgeData"));function pf(a,e,t,r,n){for(var i=new n1(r),o=0;o<a.length;o++)i.addNode(Xt(a[o].id,a[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var v=e[o],c=v.source,h=v.target;i.addEdge(c,h,u)&&(l.push(v),s.push(Xt(xe(v.id,null),c+" > "+h)),u++)}var f=t.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=ya(a,t);else{var d=nh.get(f),g=d?d.dimensions||[]:[];dt(g,"value")<0&&g.concat(["value"]);var y=Go(a,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Bt(y,t),p.initData(a)}var m=new Bt(["value"],t);return m.initData(l,s),n&&n(p,m),Xh({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var i1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function n(){return r._categoriesData}this.legendVisualProvider=new _n(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Tn(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){US(this);var s=pf(i,n,this,!0,l);return M(s.edges,function(u){YS(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=Ut.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=f,g}v.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Zt("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var c=Nd({series:this,dataIndex:t,multipleSeries:r});return c},e.prototype._updateCategoriesData=function(){var t=z(this.option.categories||[],function(n){return n.value!=null?n:W({value:0},n)}),r=new Bt(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(n){return r.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Ct),o1={type:"graphRoam",event:"graphRoam",update:"none"};function s1(a){a.registerChartView(a1),a.registerSeriesModel(i1),a.registerProcessor(BS),a.registerVisual(FS),a.registerVisual(HS),a.registerLayout($S),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,KS),a.registerLayout(jS),a.registerCoordinateSystem("graphView",{dimensions:_a.dimensions,create:QS}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Re),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Re),a.registerAction(o1,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=ss(i,e,void 0,r);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var l1=(function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a})(),u1=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new l1},e.prototype.buildPath=function(t,r){var n=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-n(l)*s*(s>=o/3?1:2),v=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,v),t.lineTo(r.x+n(l)*s,r.y+i(l)*s),t.lineTo(r.x+n(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-n(l)*s,r.y-i(l)*s),t.lineTo(u,v)},e})(Vt);function v1(a,e){var t=a.get("center"),r=e.getWidth(),n=e.getHeight(),i=Math.min(r,n),o=G(t[0],e.getWidth()),s=G(t[1],e.getHeight()),l=G(a.get("radius"),i/2);return{cx:o,cy:s,r:l}}function La(a,e){var t=a==null?"":a+"";return e&&(et(e)?t=e.replace("{value}",t):st(e)&&(t=e(a))),t}var c1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=v1(t,n);this._renderMain(t,r,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,v=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),f=h?nl:tr,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,v];zd(y,!l),u=y[0],v=y[1];for(var m=v-u,S=u,x=[],_=0;p&&_<i.length;_++){var b=Math.min(Math.max(i[_][0],0),1);v=u+m*b;var w=new f({shape:{startAngle:S,endAngle:v,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[_][1]}),w.setStyle(d.getLineStyle(["color","width"])),x.push(w),S=v}x.reverse(),M(x,function(A){return s.add(A)});var T=function(A){if(A<=0)return i[0][1];var C;for(C=0;C<i.length;C++)if(i[C][0]>=A&&(C===0?0:i[C-1][0])<A)return i[C][1];return i[C-1][1]};this._renderTicks(t,r,n,T,o,u,v,l,g),this._renderTitleAndDetail(t,r,n,T,o),this._renderAnchor(t,o),this._renderPointer(t,r,n,T,o,u,v,l,g)},e.prototype._renderTicks=function(t,r,n,i,o,s,l,u,v){for(var c=this.group,h=o.cx,f=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),S=t.getModel("axisLabel"),x=t.get("splitNumber"),_=m.get("splitNumber"),b=G(y.get("length"),p),w=G(m.get("length"),p),T=s,A=(l-s)/x,C=A/_,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,E,R=0;R<=x;R++){if(P=Math.cos(T),E=Math.sin(T),y.get("show")){var k=I?I+v:v,N=new se({shape:{x1:P*(p-k)+h,y1:E*(p-k)+f,x2:P*(p-b-k)+h,y2:E*(p-b-k)+f},style:D,silent:!0});D.stroke==="auto"&&N.setStyle({stroke:i(R/x)}),c.add(N)}if(S.get("show")){var k=S.get("distance")+I,H=La(Fo(R/x*(g-d)+d),S.get("formatter")),Z=i(R/x),U=P*(p-b-k)+h,q=E*(p-b-k)+f,rt=S.get("rotate"),J=0;rt==="radial"?(J=-T+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):rt==="tangential"?J=-T-Math.PI/2:le(rt)&&(J=rt*Math.PI/180),J===0?c.add(new vt({style:St(S,{text:H,x:U,y:q,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:Z}),silent:!0})):c.add(new vt({style:St(S,{text:H,x:U,y:q,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:U,originY:q,rotation:J}))}if(m.get("show")&&R!==x){var k=m.get("distance");k=k?k+v:v;for(var at=0;at<=_;at++){P=Math.cos(T),E=Math.sin(T);var Dt=new se({shape:{x1:P*(p-k)+h,y1:E*(p-k)+f,x2:P*(p-w-k)+h,y2:E*(p-w-k)+f},silent:!0,style:L});L.stroke==="auto"&&Dt.setStyle({stroke:i((R+at/_)/x)}),c.add(Dt),T+=C}T-=C}else T+=A}},e.prototype._renderPointer=function(t,r,n,i,o,s,l,u,v){var c=this.group,h=this._data,f=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),S=m.mapDimension("value"),x=+t.get("min"),_=+t.get("max"),b=[x,_],w=[s,l];function T(C,D){var L=m.getItemModel(C),I=L.getModel("pointer"),P=G(I.get("width"),o.r),E=G(I.get("length"),o.r),R=t.get(["pointer","icon"]),k=I.get("offsetCenter"),N=G(k[0],o.r),H=G(k[1],o.r),Z=I.get("keepAspect"),U;return R?U=Wt(R,N-P/2,H-E,P,E,null,Z):U=new u1({shape:{angle:-Math.PI/2,width:P,r:E,x:N,y:H}}),U.rotation=-(D+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function A(C,D){var L=g.get("roundCap"),I=L?nl:tr,P=g.get("overlap"),E=P?g.get("width"):v/m.count(),R=P?o.r-E:o.r-(C+1)*E,k=P?o.r:o.r-C*E,N=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:k}});return P&&(N.z2=it(m.get(S,C),[x,_],[100,0],!0)),N}(y||d)&&(m.diff(h).add(function(C){var D=m.get(S,C);if(d){var L=T(C,s);Ft(L,{rotation:-((isNaN(+D)?w[0]:it(D,b,w,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(C,L)}if(y){var I=A(C,s),P=g.get("clip");Ft(I,{shape:{endAngle:it(D,b,w,P)}},t),c.add(I),il(t.seriesIndex,m.dataType,C,I),p[C]=I}}).update(function(C,D){var L=m.get(S,C);if(d){var I=h.getItemGraphicEl(D),P=I?I.rotation:s,E=T(C,P);E.rotation=P,ct(E,{rotation:-((isNaN(+L)?w[0]:it(L,b,w,!0))+Math.PI/2)},t),c.add(E),m.setItemGraphicEl(C,E)}if(y){var R=f[D],k=R?R.shape.endAngle:s,N=A(C,k),H=g.get("clip");ct(N,{shape:{endAngle:it(L,b,w,H)}},t),c.add(N),il(t.seriesIndex,m.dataType,C,N),p[C]=N}}).execute(),m.each(function(C){var D=m.getItemModel(C),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled");if(d){var R=m.getItemGraphicEl(C),k=m.getItemVisual(C,"style"),N=k.fill;if(R instanceof ye){var H=R.style;R.useStyle(W({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},k))}else R.useStyle(k),R.type!=="pointer"&&R.setColor(N);R.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(it(m.get(S,C),b,[0,1],!0))),R.z2EmphasisLift=0,Kt(R,D),xt(R,I,P,E)}if(y){var Z=p[C];Z.useStyle(m.getItemVisual(C,"style")),Z.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),Z.z2EmphasisLift=0,Kt(Z,D),xt(Z,I,P,E)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),v=Wt(s,r.cx-o/2+G(l[0],r.r),r.cy-o/2+G(l[1],r.r),o,o,null,u);v.z2=n.get("showAbove")?1:0,v.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(v)}},e.prototype._renderTitleAndDetail=function(t,r,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),v=+t.get("min"),c=+t.get("max"),h=new $,f=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new vt({silent:!0}),p[y]=new vt({silent:!0})}).update(function(y,m){f[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),x=new $,_=i(it(S,[v,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+G(w[0],o.r),A=o.cy+G(w[1],o.r),C=f[y];C.attr({z2:g?0:2,style:St(b,{x:T,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:_})}),x.add(C)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+G(L[0],o.r),P=o.cy+G(L[1],o.r),E=G(D.get("width"),o.r),R=G(D.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:_,C=p[y],N=D.get("formatter");C.attr({z2:g?0:2,style:St(D,{x:I,y:P,text:La(S,N),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Od(C,{normal:D},S,function(Z){return La(Z,N)}),d&&Oc(C,y,l,t,{getFormattedLabel:function(Z,U,q,rt,J,at){return La(at?at.interpolatedValue:S,N)}}),x.add(C)}h.add(x)}),this.group.add(h),this._titleEls=f,this._detailEls=p},e.type="gauge",e})(Tt),h1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return va(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Ct);function f1(a){a.registerChartView(c1),a.registerSeriesModel(h1)}var p1=["itemStyle","opacity"],d1=(function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=n,o=new me,s=new vt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,r,!0),n}return e.prototype.updateData=function(t,r,n){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),v=s.get(p1);v=v??1,n||Ve(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ft(i,{style:{opacity:v}},o,r)):ct(i,{style:{opacity:v},shape:{points:l.points}},o,r),Kt(i,s),this._updateLabel(t,r),xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),v=u.label,c=t.getItemVisual(r,"style"),h=c.fill;ae(o,Ht(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:c.opacity,defaultText:t.getName(r)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),n.setTextConfig({local:!0,inside:!!v.inside,insideStroke:h,outsideFill:h});var f=v.linePoints;i.setShape({points:f}),n.textGuideLineConfig={anchor:f?new _e(f[0][0],f[0][1]):null},ct(o,{style:{x:v.x,y:v.y}},s,r),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),Nc(n,zc(l),{stroke:h})},e})(re),g1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new d1(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(i,l),s.add(v),i.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);Gd(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(Tt),y1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _n(F(this.getData,this),F(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return va(this,{coordDimensions:["value"],encodeDefaulter:tt(qc,this)})},e.prototype._defaultLabelLine=function(t){Tn(t,"labelLine",["show"]);var r=t.labelLine,n=t.emphasis.labelLine;r.show=r.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),n=a.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return n.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Ct);function m1(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S1(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=a.count();o<s;o++)n[o]=o;return st(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),n}function x1(a){var e=a.hostModel,t=e.get("orient");a.each(function(r){var n=a.getItemModel(r),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=a.getItemLayout(r),u=l.points,v=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,f,p;if(v)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),p=[[h,f],[h,f]];else{var d=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-S,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+S,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,f=m-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,f=m+5,c="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,c="center"):(y=d+S,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d+S,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,c="center"):(y=d-S,h=y-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d-S,h=y-5,c="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+S,f=m+5,c="center"):(y=d+S,h=y+5,c="left")),t==="horizontal"?(y=d,h=y):(m=g,f=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:c,inside:v}})}function _1(a,e){a.eachSeriesByType("funnel",function(t){var r=t.getData(),n=r.mapDimension("value"),i=t.get("sort"),o=m1(t,e),s=t.get("orient"),l=o.width,u=o.height,v=S1(r,i),c=o.x,h=o.y,f=s==="horizontal"?[G(t.get("minSize"),u),G(t.get("maxSize"),u)]:[G(t.get("minSize"),l),G(t.get("maxSize"),l)],p=r.getDataExtent(n),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),S=s==="horizontal"?l:u,x=(S-m*(r.count()-1))/r.count(),_=function(P,E){if(s==="horizontal"){var R=r.get(n,P)||0,k=it(R,[d,g],f,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(u-k)/2;break;case"bottom":N=h+(u-k);break}return[[E,N],[E,N+k]]}var H=r.get(n,P)||0,Z=it(H,[d,g],f,!0),U;switch(y){case"left":U=c;break;case"center":U=c+(l-Z)/2;break;case"right":U=c+l-Z;break}return[[U,E],[U+Z,E]]};i==="ascending"&&(x=-x,m=-m,s==="horizontal"?c+=l:h+=u,v=v.reverse());for(var b=0;b<v.length;b++){var w=v[b],T=v[b+1],A=r.getItemModel(w);if(s==="horizontal"){var C=A.get(["itemStyle","width"]);C==null?C=x:(C=G(C,l),i==="ascending"&&(C=-C));var D=_(w,c),L=_(T,c+C);c+=C+m,r.setItemLayout(w,{points:D.concat(L.slice().reverse())})}else{var I=A.get(["itemStyle","height"]);I==null?I=x:(I=G(I,u),i==="ascending"&&(I=-I));var D=_(w,h),L=_(T,h+I);h+=I+m,r.setItemLayout(w,{points:D.concat(L.slice().reverse())})}}x1(r)})}function b1(a){a.registerChartView(g1),a.registerSeriesModel(y1),a.registerLayout(_1),a.registerProcessor(wn("funnel"))}var w1=.3,A1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new $,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,v=u.dimensions,c=Lu(t);s.diff(l).add(h).update(f).remove(p).execute();function h(g){var y=Iu(s,o,g,v,u);di(y,s,g,c)}function f(g,y){var m=l.getItemGraphicEl(y),S=df(s,g,v,u);s.setItemGraphicEl(g,m),ct(m,{shape:{points:S}},t,g),Ve(m),di(m,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=T1(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,r,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,n){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=Lu(r),u=this._progressiveEls=[],v=t.start;v<t.end;v++){var c=Iu(i,this._dataGroup,v,s,o);c.incremental=!0,di(c,i,v,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Tt);function T1(a,e,t){var r=a.model,n=a.getRect(),i=new pt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ft(i,{shape:{width:n.width,height:n.height}},e,t),i}function df(a,e,t,r){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=a.get(a.mapDimension(o),e);M1(s,r.getAxis(o).type)||n.push(r.dataToPoint(s,o))}return n}function Iu(a,e,t,r,n){var i=df(a,t,r,n),o=new me({shape:{points:i},z2:10});return e.add(o),a.setItemGraphicEl(t,o),o}function Lu(a){var e=a.get("smooth",!0);return e===!0&&(e=w1),e=Bd(e),Fd(e)&&(e=0),{smooth:e}}function di(a,e,t,r){a.useStyle(e.getItemVisual(t,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");Kt(a,n,"lineStyle"),xt(a,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function M1(a,e){return e==="category"?a==null:a==null||isNaN(a)}var C1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return ya(null,this,{useEncodeDefaulter:F(D1,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,n=this.getData(),i=[];return r.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(Ct);function D1(a){var e=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(e){var t={};return M(e.dimensions,function(r){var n=I1(r);t[r]=n}),t}}function I1(a){return+a.replace("dim","")}var L1=["lineStyle","opacity"],P1={seriesType:"parallel",reset:function(a,e){var t=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(L1,!0);u!=null&&(l=u)}var v=i.ensureUniqueItemVisual(s,"style");v.opacity=l},n.start,n.end)}}}};function E1(a){R1(a),V1(a)}function R1(a){if(!a.parallel){var e=!1;M(a.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(a.parallel=[{}])}}function V1(a){var e=Gt(a.parallelAxis);M(e,function(t){if(Rt(t)){var r=t.parallelIndex||0,n=Gt(a.parallel)[r];n&&n.parallelAxisDefault&&ft(t,n.parallelAxisDefault,!1)}})}var k1=5,N1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this._model=t,this._api=n,this._handlers||(this._handlers={},M(z1,function(i,o){n.getZr().on(o,this._handlers[o]=F(i,this))},this)),Dn(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){ih(this,"_throttledDispatchExpand"),M(this._handlers,function(n,i){r.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(W({type:"parallelAxisExpand"},t))},e.type="parallel",e})(kt),z1={mousedown:function(a){gi(this,"click")&&(this._mouseDownPoint=[a.offsetX,a.offsetY])},mouseup:function(a){var e=this._mouseDownPoint;if(gi(this,"click")&&e){var t=[a.offsetX,a.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>k1)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!gi(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function gi(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var O1=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&ft(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var n=t.get("parallelIndex");return n!=null&&r.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],n=Lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(n,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Pt),G1=(function(a){V(e,a);function e(t,r,n,i,o){var s=a.call(this,t,r,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ve);function ar(a,e,t,r,n,i){a=a||0;var o=t[1]-t[0];if(n!=null&&(n=lr(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=lr(s,[0,o]),n=i=lr(s,[n,i]),r=0}e[0]=lr(e[0],t),e[1]=lr(e[1],t);var l=yi(e,r);e[r]+=a;var u=n||0,v=t.slice();l.sign<0?v[0]+=u:v[1]-=u,e[r]=lr(e[r],v);var c;return c=yi(e,r),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-r]=e[r]+l.sign*n),c=yi(e,r),i!=null&&c.span>i&&(e[1-r]=e[r]+c.sign*i),e}function yi(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function lr(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var mi=M,gf=Math.min,yf=Math.max,Pu=Math.floor,B1=Math.ceil,Eu=Fo,F1=Math.PI,H1=(function(){function a(e,t,r){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var n=e.dimensions,i=e.parallelAxisIndex;mi(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),v=this._axesMap.set(o,new G1(o,Wo(u),[0,0],u.get("type"),l)),c=v.type==="category";v.onBand=c&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=n&&s<=n+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var n=r.getData();mi(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),qa(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=ne(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,v=Pa(e.get("axisExpandWidth"),l),c=Pa(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&v>0&&s>0,f=e.get("axisExpandWindow"),p;if(f)p=Pa(f[1]-f[0],l),f[1]=f[0]+p;else{p=Pa(v*(c-1),l);var d=e.get("axisExpandCenter")||Pu(u/2);f=[v*d-p/2],f[1]=f[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[Pu(Eu(f[0]/v,1))+1,B1(Eu(f[1]/v,1))-1],m=g/v*f[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),mi(r,function(o,s){var l=(n.axisExpandable?Z1:W1)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},v={horizontal:F1/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],h=v[i],f=Tr();An(f,f,h),Je(f,f,c),this._axesLayout[o]={position:c,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,n){r==null&&(r=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),v=r;v<n;v++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,v),f=0,p=o.length;f<p;f++){var d=l[f].getActiveState(h[f]);if(d==="inactive"){c="inactive";break}}}t(c,v)}},a.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(r=!0);return r},a.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return Pe([e,0],r.transform)},a.prototype.getAxisLayout=function(e){return ot(this._axesLayout[e])},a.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[r]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",v=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(v)h&&v&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&v&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/v,l?ar(l,n,o,"all"):u="none";else{var f=n[1]-n[0],p=o[1]*s/f;n=[yf(0,p-f/2)],n[1]=gf(o[1],n[0]+f),n[0]=n[1]-f}return{axisExpandWindow:n,behavior:u}},a})();function Pa(a,e){return gf(yf(a,e[0]),e[1])}function W1(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function Z1(a,e){var t=e.layoutLength,r=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,v;return a<o[0]?(s=a*i,v=i):a<=o[1]?(s=e.axisExpandWindow0Pos+a*r-e.axisExpandWindow[0],l=r,u=!0):(s=t-(n-1-a)*i,v=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:v}}function U1(a,e){var t=[];return a.eachComponent("parallel",function(r,n){var i=new H1(r,a,e);i.name="parallel_"+n,i.resize(r,e),r.coordinateSystem=i,i.model=r,t.push(i)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var n=r.getReferringComponents("parallel",ge).models[0];r.coordinateSystem=n.coordinateSystem}}),t}var Y1={create:U1},fo=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return rh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=ot(t);if(r)for(var n=r.length-1;n>=0;n--)te(r[n])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var n=r[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=t&&t<=r[i][1])return"active";return"inactive"},e})(Pt);ue(fo,bn);var er=!0,ia=Math.min,_r=Math.max,$1=Math.pow,X1=1e4,K1=6,q1=6,Ru="globalPan",j1={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},J1={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Vu={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Q1=0,ys=(function(a){V(e,a);function e(t){var r=a.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=t,r.group=new $,r._uid="brushController_"+Q1++,M(ox,function(n,i){this._handlers[i]=F(n,this)},r),r}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||Wm(r,Ru,this._uid),M(this._handlers,function(n,i){r.on(i,n)}),this._brushType=t.brushType,this._brushOption=ft(ot(Vu),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Zm(t,Ru,this._uid),M(this._handlers,function(r,n){t.off(n,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};M(t,function(n){r[n.panelId]=ot(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=z(t,function(h){return ft(ot(Vu),h,!0)});var r="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ke(n,t,u,l).add(v).update(v).remove(c).execute(),this;function l(h,f){return(h.id!=null?h.id:r+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function v(h,f){var p=t[h];if(f!=null&&n[f]===s)i[h]=n[f];else{var d=i[h]=f!=null?(n[f].__brushOption=p,n[f]):Sf(o,mf(o,p));ms(o,d)}}function c(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),po(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Yc);function mf(a,e){var t=zn[e.brushType].createCover(a,e);return t.__brushOption=e,_f(t,e),a.group.add(t),t}function Sf(a,e){var t=Ss(e);return t.endCreating&&(t.endCreating(a,e),_f(e,e.__brushOption)),e}function xf(a,e){var t=e.__brushOption;Ss(e).updateCoverShape(a,e,t.range,t)}function _f(a,e){var t=e.z;t==null&&(t=X1),a.traverse(function(r){r.z=t,r.z2=t})}function ms(a,e){Ss(e).updateCommon(a,e),xf(a,e)}function Ss(a){return zn[a.__brushOption.brushType]}function xs(a,e,t){var r=a._panels;if(!r)return er;var n,i=a._transform;return M(r,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function bf(a,e){var t=a._panels;if(!t)return er;var r=e.__brushOption.panelId;return r!=null?t[r]:er}function po(a){var e=a._covers,t=e.length;return M(e,function(r){a.group.remove(r)},a),e.length=0,!!t}function rr(a,e){var t=z(a._covers,function(r){var n=r.__brushOption,i=ot(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});a.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function tx(a){var e=a._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],n=t[0]-r[0],i=t[1]-r[1],o=$1(n*n+i*i,.5);return o>K1}function wf(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function Af(a,e,t,r){var n=new $;return n.add(new pt({name:"main",style:_s(t),silent:!0,draggable:!0,cursor:"move",drift:tt(ku,a,e,n,["n","s","w","e"]),ondragend:tt(rr,e,{isEnd:!0})})),M(r,function(i){n.add(new pt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(ku,a,e,n,i),ondragend:tt(rr,e,{isEnd:!0})}))}),n}function Tf(a,e,t,r){var n=r.brushStyle.lineWidth||0,i=_r(n,q1),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,v=t[0][1],c=t[1][1],h=v-i+n/2,f=c-i+n/2,p=v-o,d=c-s,g=p+n,y=d+n;Se(a,e,"main",o,s,p,d),r.transformable&&(Se(a,e,"w",l,u,i,y),Se(a,e,"e",h,u,i,y),Se(a,e,"n",l,u,g,i),Se(a,e,"s",l,f,g,i),Se(a,e,"nw",l,u,i,i),Se(a,e,"ne",h,u,i,i),Se(a,e,"sw",l,f,i,i),Se(a,e,"se",h,f,i,i))}function go(a,e){var t=e.__brushOption,r=t.transformable,n=e.childAt(0);n.useStyle(_s(t)),n.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?yo(a,i[0]):rx(a,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?J1[s]+"-resize":null})})}function Se(a,e,t,r,n,i,o){var s=e.childOfName(t);s&&s.setShape(nx(bs(a,e,[[r,n],[r+i,n+o]])))}function _s(a){return Q({strokeNoScale:!0},a.brushStyle)}function Mf(a,e,t,r){var n=[ia(a,t),ia(e,r)],i=[_r(a,t),_r(e,r)];return[[n[0],i[0]],[n[1],i[1]]]}function ex(a){return mr(a.group)}function yo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=Zo(t[e],ex(a));return r[n]}function rx(a,e){var t=[yo(a,e[0]),yo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function ku(a,e,t,r,n,i){var o=t.__brushOption,s=a.toRectRange(o.range),l=Cf(e,n,i);M(r,function(u){var v=j1[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=a.fromRectRange(Mf(s[0][0],s[1][0],s[0][1],s[1][1])),ms(e,t),rr(e,{isEnd:!1})}function ax(a,e,t,r){var n=e.__brushOption.range,i=Cf(a,t,r);M(n,function(o){o[0]+=i[0],o[1]+=i[1]}),ms(a,e),rr(a,{isEnd:!1})}function Cf(a,e,t){var r=a.group,n=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function bs(a,e,t){var r=bf(a,e);return r&&r!==er?r.clipPath(t,a._transform):ot(t)}function nx(a){var e=ia(a[0][0],a[1][0]),t=ia(a[0][1],a[1][1]),r=_r(a[0][0],a[1][0]),n=_r(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:n-t}}function ix(a,e,t){if(!(!a._brushType||sx(a,e.offsetX,e.offsetY))){var r=a._zr,n=a._covers,i=xs(a,e,t);if(!a._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===er||s.panelId===i.panelId)&&zn[s.brushType].contain(n[o],t[0],t[1]))return}i&&r.setCursorStyle("crosshair")}}function mo(a){var e=a.event;e.preventDefault&&e.preventDefault()}function So(a,e,t){return a.childOfName("main").contain(e,t)}function Df(a,e,t,r){var n=a._creatingCover,i=a._creatingPanel,o=a._brushOption,s;if(a._track.push(t.slice()),tx(a)||n){if(i&&!n){o.brushMode==="single"&&po(a);var l=ot(o);l.brushType=Nu(l.brushType,i),l.panelId=i===er?null:i.panelId,n=a._creatingCover=mf(a,l),a._covers.push(n)}if(n){var u=zn[Nu(a._brushType,i)],v=n.__brushOption;v.range=u.getCreatingRange(bs(a,n,a._track)),r&&(Sf(a,n),u.updateCommon(a,n)),xf(a,n),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&xs(a,e,t)&&po(a)&&(s={isEnd:r,removeOnClick:!0});return s}function Nu(a,e){return a==="auto"?e.defaultBrushType:a}var ox={mousedown:function(a){if(this._dragging)zu(this,a);else if(!a.target||!a.target.draggable){mo(a);var e=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null;var t=this._creatingPanel=xs(this,a,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(a){var e=a.offsetX,t=a.offsetY,r=this.group.transformCoordToLocal(e,t);if(ix(this,a,r),this._dragging){mo(a);var n=Df(this,a,r,!1);n&&rr(this,n)}},mouseup:function(a){zu(this,a)}};function zu(a,e){if(a._dragging){mo(e);var t=e.offsetX,r=e.offsetY,n=a.group.transformCoordToLocal(t,r),i=Df(a,e,n,!0);a._dragging=!1,a._track=[],a._creatingCover=null,i&&rr(a,i)}}function sx(a,e,t){var r=a._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var zn={lineX:Ou(0),lineY:Ou(1),rect:{createCover:function(a,e){function t(r){return r}return Af({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=wf(a);return Mf(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){Tf(a,e,t,r)},updateCommon:go,contain:So},polygon:{createCover:function(a,e){var t=new $;return t.add(new me({name:"main",style:_s(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new re({name:"main",draggable:!0,drift:tt(ax,a,e),ondragend:tt(rr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:bs(a,e,t)})},updateCommon:go,contain:So}};function Ou(a){return{createCover:function(e,t){return Af({toRectRange:function(r){var n=[r,[0,100]];return a&&n.reverse(),n},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=wf(e),r=ia(t[0][a],t[1][a]),n=_r(t[0][a],t[1][a]);return[r,n]},updateCoverShape:function(e,t,r,n){var i,o=bf(e,t);if(o!==er&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(a);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,i];a&&l.reverse(),Tf(e,t,l,n)},updateCommon:go,contain:So}}function If(a){return a=ws(a),function(e){return Hd(e,a)}}function Lf(a,e){return a=ws(a),function(t){var r=e??t,n=r?a.width:a.height,i=r?a.x:a.y;return[i,i+(n||0)]}}function Pf(a,e,t){var r=ws(a);return function(n,i){return r.contain(i[0],i[1])&&!Rn(n,e,t)}}function ws(a){return wt.create(a)}var lx=["axisLine","axisTickLabel","axisName"],ux=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new ys(r.getZr())).on("brush",F(this._onBrush,this))},e.prototype.render=function(t,r,n,i){if(!vx(t,r,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new $,this.group.add(this._axisGroup),!!t.get("show")){var s=hx(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),v=u.width,c=t.axis.dim,h=l.getAxisLayout(c),f=W({strokeContainThreshold:v},h),p=new qe(t,f);M(lx,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,t,s,v,n),Uo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),c=wt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=v,c.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:If(c),isTargetByCursor:Pf(c,s,i),getLinearBrushOtherExtent:Lf(c,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(cx(n))},e.prototype._onBrush=function(t){var r=t.areas,n=this.axisModel,i=n.axis,o=z(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(kt);function vx(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function cx(a){var e=a.axis;return z(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function hx(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}var fx={type:"axisAreaSelect",event:"axisAreaSelected"};function px(a){a.registerAction(fx,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var dx={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ef(a){a.registerComponentView(N1),a.registerComponentModel(O1),a.registerCoordinateSystem("parallel",Y1),a.registerPreprocessor(E1),a.registerComponentModel(fo),a.registerComponentView(ux),ja(a,"parallel",fo,dx),px(a)}function gx(a){X(Ef),a.registerChartView(A1),a.registerSeriesModel(C1),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,P1)}var yx=(function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return a})(),mx=(function(a){V(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yx},e.prototype.buildPath=function(t,r){var n=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+n,r.y2),t.bezierCurveTo(r.cpx2+n,r.cpy2,r.cpx1+n,r.cpy1,r.x1+n,r.y1)):(t.lineTo(r.x2,r.y2+n),t.bezierCurveTo(r.cpx2,r.cpy2+n,r.cpx1,r.cpy1+n,r.x1,r.y1+n)),t.closePath()},e.prototype.highlight=function(){qr(this)},e.prototype.downplay=function(){jr(this)},e})(Vt),Sx=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,v=l.height,c=t.getData(),h=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new mx,g=ut(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),x=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),T=p.node2.getLayout(),A=p.node2.getModel(),C=A.get("localX"),D=A.get("localY"),L=p.getLayout(),I,P,E,R,k,N,H,Z;d.shape.extent=Math.max(1,L.dy),d.shape.orient=f,f==="vertical"?(I=(b!=null?b*u:x.x)+L.sy,P=(w!=null?w*v:x.y)+x.dy,E=(C!=null?C*u:T.x)+L.ty,R=D!=null?D*v:T.y,k=I,N=P*(1-S)+R*S,H=E,Z=P*S+R*(1-S)):(I=(b!=null?b*u:x.x)+x.dx,P=(w!=null?w*v:x.y)+L.sy,E=C!=null?C*u:T.x,R=(D!=null?D*v:T.y)+L.ty,k=I*(1-S)+E*S,N=P,H=I*S+E*(1-S),Z=R),d.setShape({x1:I,y1:P,x2:E,y2:R,cpx1:k,cpy1:N,cpx2:H,cpy2:Z}),d.useStyle(m.getItemStyle()),Gu(d.style,f,p);var U=""+y.get("value"),q=Ht(y,"edgeLabel");ae(d,q,{labelFetcher:{getFormattedLabel:function(at,Dt,ce,j,Y,lt){return t.getFormattedLabel(at,Dt,"edge",j,pa(Y,q.normal&&q.normal.get("formatter"),U),lt)}},labelDataIndex:p.dataIndex,defaultText:U}),d.setTextConfig({position:"inside"});var rt=y.getModel("emphasis");Kt(d,y,"lineStyle",function(at){var Dt=at.getItemStyle();return Gu(Dt,f,p),Dt}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var J=rt.get("focus");xt(d,J==="adjacency"?p.getAdjacentDataIndices():J==="trajectory"?p.getTrajectoryDataIndices():J,rt.get("blurScope"),rt.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,_=new pt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*v:d.y,width:d.dx,height:d.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});ae(_,Ht(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),Kt(_,g),s.add(_),c.setItemGraphicEl(p.dataIndex,_),ut(_).dataType="node";var b=S.get("focus");xt(_,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,S.get("blurScope"),S.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/v})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(xx(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(Tt);function Gu(a,e,t){switch(a.fill){case"source":a.fill=t.node1.getVisual("color"),a.decal=t.node1.getVisual("style").decal;break;case"target":a.fill=t.node2.getVisual("color"),a.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),n=t.node2.getVisual("color");et(r)&&et(n)&&(a.fill=new ko(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:n,offset:1}]))}}function xx(a,e,t){var r=new pt({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Ft(r,{shape:{width:a.width+20}},e,t),r}var _x=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ut(o[l],this,r));var u=pf(i,n,this,!0,v);return u.data;function v(c,h){c.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(f.parentModel=m)}return f}),h.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=d.levelModels[m];S&&(f.parentModel=S)}return f})}},e.prototype.setNodePosition=function(t,r){var n=this.option.data||this.option.nodes,i=n[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,n){function i(f){return isNaN(f)||f==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Zt("nameValue",{name:u,value:l,noValue:i(l)})}else{var v=this.getGraph().getNodeByIndex(t),c=v.getLayout().value,h=this.getDataParams(t,n).data.name;return Zt("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var n=a.prototype.getDataParams.call(this,t,r);if(n.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(Ct);function bx(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),n=t.get("nodeGap"),i=wx(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,v=l.edges;Tx(u);var c=Lt(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),p=t.get("nodeAlign");Ax(u,v,r,n,o,s,h,f,p)})}function wx(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ax(a,e,t,r,n,i,o,s,l){Mx(a,e,t,n,i,s,l),Lx(a,e,i,n,r,o,s),Gx(a,s)}function Tx(a){M(a,function(e){var t=Ee(e.outEdges,sn),r=Ee(e.inEdges,sn),n=e.getValue()||0,i=Math.max(t,r,n);e.setLayout({value:i},!0)})}function Mx(a,e,t,r,n,i,o){for(var s=[],l=[],u=[],v=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<a.length;h++)l[h]=a[h].inEdges.length,l[h]===0&&u.push(a[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>f&&(f=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var S=d.outEdges[m],x=e.indexOf(S);s[x]=0;var _=S.node2,b=a.indexOf(_);--l[b]===0&&v.indexOf(_)<0&&v.push(_)}}++c,u=v,v=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=f>c-1?f:c-1;o&&o!=="left"&&Cx(a,o,i,w);var T=i==="vertical"?(n-t)/w:(r-t)/w;Ix(a,T,i)}function Rf(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function Cx(a,e,t,r){if(e==="right"){for(var n=[],i=a,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var v=l.inEdges[u];n.indexOf(v.node1)<0&&n.push(v.node1)}}i=n,n=[],++o}M(a,function(c){Rf(c)||c.setLayout({depth:Math.max(0,r-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Dx(a,r)}function Dx(a,e){M(a,function(t){!Rf(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Ix(a,e,t){M(a,function(r){var n=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:n},!0):r.setLayout({x:n},!0)})}function Lx(a,e,t,r,n,i,o){var s=Px(a,o);Ex(s,e,t,r,n,o),Si(s,n,t,r,o);for(var l=1;i>0;i--)l*=.99,Rx(s,l,o),Si(s,n,t,r,o),Ox(s,l,o),Si(s,n,t,r,o)}function Px(a,e){var t=[],r=e==="vertical"?"y":"x",n=ji(a,function(i){return i.getLayout()[r]});return n.keys.sort(function(i,o){return i-o}),M(n.keys,function(i){t.push(n.buckets.get(i))}),t}function Ex(a,e,t,r,n,i){var o=1/0;M(a,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var v=i==="vertical"?(r-(l-1)*n)/u:(t-(l-1)*n)/u;v<o&&(o=v)}),M(a,function(s){M(s,function(l,u){var v=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:v},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:v},!0))})}),M(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Si(a,e,t,r,n){var i=n==="vertical"?"x":"y";M(a,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,v=0,c=o.length,h=n==="vertical"?"dx":"dy",f=0;f<c;f++)l=o[f],u=v-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]+l.getLayout()[h]+e;var p=n==="vertical"?r:t;if(u=v-e-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var f=c-2;f>=0;--f)l=o[f],u=l.getLayout()[i]+l.getLayout()[h]+e-v,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[i]}})}function Rx(a,e,t){M(a.slice().reverse(),function(r){M(r,function(n){if(n.outEdges.length){var i=Ee(n.outEdges,Vx,t)/Ee(n.outEdges,sn);if(isNaN(i)){var o=n.outEdges.length;i=o?Ee(n.outEdges,kx,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ne(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ne(n,t))*e;n.setLayout({y:l},!0)}}})})}function Vx(a,e){return Ne(a.node2,e)*a.getValue()}function kx(a,e){return Ne(a.node2,e)}function Nx(a,e){return Ne(a.node1,e)*a.getValue()}function zx(a,e){return Ne(a.node1,e)}function Ne(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function sn(a){return a.getValue()}function Ee(a,e,t){for(var r=0,n=a.length,i=-1;++i<n;){var o=+e(a[i],t);isNaN(o)||(r+=o)}return r}function Ox(a,e,t){M(a,function(r){M(r,function(n){if(n.inEdges.length){var i=Ee(n.inEdges,Nx,t)/Ee(n.inEdges,sn);if(isNaN(i)){var o=n.inEdges.length;i=o?Ee(n.inEdges,zx,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-Ne(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ne(n,t))*e;n.setLayout({y:l},!0)}}})})}function Gx(a,e){var t=e==="vertical"?"x":"y";M(a,function(r){r.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),r.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),M(a,function(r){var n=0,i=0;M(r.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),M(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function Bx(a){a.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes,n=t.edges;if(r.length){var i=1/0,o=-1/0;M(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(r,function(s){var l=new At({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&M(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Fx(a){a.registerChartView(Sx),a.registerSeriesModel(_x),a.registerLayout(bx),a.registerVisual(Bx),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Vf=(function(){function a(){}return a.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},a.prototype.getInitialData=function(e,t){var r,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],v=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[v],h=u[1-v],f=[n,i],p=f[v].get("type"),d=f[1-v].get("type"),g=e.data;if(g&&l){var y=[];M(g,function(x,_){var b;B(x)?(b=x.slice(),x.unshift(_)):B(x.value)?(b=W({},x),b.value=b.value.slice(),x.value.unshift(_)):b=x,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,S=[{name:c,type:Ji(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ji(d),dimsDef:m.slice()}];return va(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:tt(Wd,S,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a})(),kf=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(Ct);ue(kf,Vf,!0);var Hx=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var v=i.getItemLayout(u),c=Bu(v,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,v){var c=s.getItemGraphicEl(v);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Ve(c),Nf(h,c,i,u)):c=Bu(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e})(Tt),Wx=(function(){function a(){}return a})(),Zx=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Wx},e.prototype.buildPath=function(t,r){var n=r.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Vt);function Bu(a,e,t,r,n){var i=a.ends,o=new Zx({shape:{points:n?Ux(i,r,a):i}});return Nf(a,o,e,t,n),o}function Nf(a,e,t,r,n){var i=t.hostModel,o=Ar[n?"initProps":"updateProps"];o(e,{shape:{points:a.ends}},i,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(r),l=s.getModel("emphasis");Kt(e,s),xt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Ux(a,e,t){return z(a,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}var Yr=M;function Yx(a){var e=$x(a);Yr(e,function(t){var r=t.seriesModels;r.length&&(Xx(t),Yr(r,function(n,i){Kx(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function $x(a){var e=[],t=[];return a.eachSeriesByType("boxplot",function(r){var n=r.getBaseAxis(),i=dt(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(r)}),e}function Xx(a){var e=a.axis,t=a.seriesModels,r=t.length,n=a.boxWidthList=[],i=a.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Yr(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Yr(t,function(p){var d=p.get("boxWidth");B(d)||(d=[d,d]),o.push([G(d[0],s)||0,G(d[1],s)||0])});var v=s*.8-2,c=v/r*.3,h=(v-c*(r-1))/r,f=h/2-v/2;Yr(t,function(p,d){i.push(f),f+=c+h,n.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function Kx(a,e,t){var r=a.coordinateSystem,n=a.getData(),i=t/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),v=n.mapDimensionsAll(l[s]);if(u==null||v.length<5)return;for(var c=0;c<n.count();c++){var h=n.get(u,c),f=S(h,v[2],c),p=S(h,v[0],c),d=S(h,v[1],c),g=S(h,v[3],c),y=S(h,v[4],c),m=[];x(m,d,!1),x(m,g,!0),m.push(p,d,y,g),_(m,p),_(m,y),_(m,f),n.setItemLayout(c,{initBaseline:f[s],ends:m})}function S(b,w,T){var A=n.get(w,T),C=[];C[o]=b,C[s]=A;var D;return isNaN(b)||isNaN(A)?D=[NaN,NaN]:(D=r.dataToPoint(C),D[o]+=e),D}function x(b,w,T){var A=w.slice(),C=w.slice();A[o]+=i,C[o]-=i,T?b.push(A,C):b.push(C,A)}function _(b,w){var T=w.slice(),A=w.slice();T[o]-=i,A[o]+=i,b.push(T,A)}}function qx(a,e){e=e||{};for(var t=[],r=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<a.length;o++){var s=te(a[o].slice()),l=Hn(s,.25),u=Hn(s,.5),v=Hn(s,.75),c=s[0],h=s[s.length-1],f=(n??1.5)*(v-l),p=i?c:Math.max(c,l-f),d=i?h:Math.min(h,v+f),g=e.itemNameFormatter,y=st(g)?g({value:o}):et(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,v,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>d){var x=[y,S];r.push(x)}}}return{boxData:t,outliers:r}}var jx={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==oh){var r="";yt(r)}var n=qx(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function Jx(a){a.registerSeriesModel(kf),a.registerChartView(Hx),a.registerLayout(Yx),a.registerTransform(jx)}var Qx=["itemStyle","borderColor"],t_=["itemStyle","borderColor0"],e_=["itemStyle","borderColorDoji"],r_=["itemStyle","color"],a_=["itemStyle","color0"];function As(a,e){return e.get(a>0?r_:a_)}function Ts(a,e){return e.get(a===0?e_:a>0?Qx:t_)}var n_={seriesType:"candlestick",plan:Yo(),performRawSeries:!0,reset:function(a,e){if(!e.isSeriesFiltered(a)){var t=a.pipelineContext.large;return!t&&{progress:function(r,n){for(var i;(i=r.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=As(s,o),l.stroke=Ts(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}},i_=["color","borderColor"],o_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),n=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(n).add(function(v){if(r.hasValue(v)){var c=r.getItemLayout(v);if(s&&Fu(u,c))return;var h=xi(c,v,!0);Ft(h,{shape:{points:c.ends}},t,v),_i(h,r,v,o),i.add(h),r.setItemGraphicEl(v,h)}}).update(function(v,c){var h=n.getItemGraphicEl(c);if(!r.hasValue(v)){i.remove(h);return}var f=r.getItemLayout(v);if(s&&Fu(u,f)){i.remove(h);return}h?(ct(h,{shape:{points:f.ends}},t,v),Ve(h)):h=xi(f),_i(h,r,v,o),i.add(h),r.setItemGraphicEl(v,h)}).remove(function(v){var c=n.getItemGraphicEl(v);c&&i.remove(c)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),Hu(t,this.group);var r=t.get("clip",!0)?In(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var n=r.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=xi(s);_i(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){Hu(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(Tt),s_=(function(){function a(){}return a})(),l_=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new s_},e.prototype.buildPath=function(t,r){var n=r.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(Vt);function xi(a,e,t){var r=a.ends;return new l_({shape:{points:t?u_(r,a):r},z2:100})}function Fu(a,e){for(var t=!0,r=0;r<e.ends.length;r++)if(a.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function _i(a,e,t,r){var n=e.getItemModel(t);a.useStyle(e.getItemVisual(t,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,Kt(a,n);var i=e.getItemLayout(t).sign;M(a.states,function(s,l){var u=n.getModel(l),v=As(i,u),c=Ts(i,u)||v,h=s.style||(s.style={});v&&(h.fill=v),c&&(h.stroke=c)});var o=n.getModel("emphasis");xt(a,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function u_(a,e){return z(a,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var v_=(function(){function a(){}return a})(),bi=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new v_},e.prototype.buildPath=function(t,r){for(var n=r.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Vt);function Hu(a,e,t,r){var n=a.getData(),i=n.getLayout("largePoints"),o=new bi({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new bi({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new bi({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),wi(1,o,a),wi(-1,s,a),wi(0,l,a),r&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function wi(a,e,t,r){var n=Ts(a,t)||As(a,t),i=t.getModel("itemStyle").getItemStyle(i_);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var zf=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,n){var i=r.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Ct);ue(zf,Vf,!0);function c_(a){!a||!B(a.series)||M(a.series,function(e){Rt(e)&&e.type==="k"&&(e.type="candlestick")})}var h_={seriesType:"candlestick",plan:Yo(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=f_(a,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=z(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],v=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?p:f};function f(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var S=m.get(s,y),x=m.get(u,y),_=m.get(v,y),b=m.get(c,y),w=m.get(h,y),T=Math.min(x,_),A=Math.max(x,_),C=k(T,S),D=k(A,S),L=k(b,S),I=k(w,S),P=[];N(P,D,0),N(P,C,1),P.push(Z(I),Z(D),Z(L),Z(C));var E=g.getItemModel(y),R=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Wu(m,y,x,_,v,R),initBaseline:x>_?D[i]:C[i],ends:P,brushRect:H(b,w,S)})}function k(U,q){var rt=[];return rt[n]=q,rt[i]=U,isNaN(q)||isNaN(U)?[NaN,NaN]:e.dataToPoint(rt)}function N(U,q,rt){var J=q.slice(),at=q.slice();J[n]=Wn(J[n]+r/2,1,!1),at[n]=Wn(at[n]-r/2,1,!0),rt?U.push(J,at):U.push(at,J)}function H(U,q,rt){var J=k(U,rt),at=k(q,rt);return J[n]-=r/2,at[n]-=r/2,{x:J[0],y:J[1],width:r,height:at[1]-J[1]}}function Z(U){return U[n]=Wn(U[n],1),U}}function p(d,g){for(var y=Zd(d.count*4),m=0,S,x=[],_=[],b,w=g.getStore(),T=!!a.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var A=w.get(s,b),C=w.get(u,b),D=w.get(v,b),L=w.get(c,b),I=w.get(h,b);if(isNaN(A)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Wu(w,b,C,D,v,T),x[n]=A,x[i]=L,S=e.dataToPoint(x,null,_),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,x[i]=I,S=e.dataToPoint(x,null,_),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function Wu(a,e,t,r,n,i){var o;return t>r?o=-1:t<r?o=1:o=i?0:e>0?a.get(n,e-1)<=r?1:-1:1,o}function f_(a,e){var t=a.getBaseAxis(),r,n=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=G(It(a.get("barMaxWidth"),n),n),o=G(It(a.get("barMinWidth"),1),n),s=a.get("barWidth");return s!=null?G(s,n):Math.max(Math.min(n/2,i),o)}function p_(a){a.registerChartView(o_),a.registerSeriesModel(zf),a.registerPreprocessor(c_),a.registerVisual(n_),a.registerLayout(h_)}function Zu(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var d_=(function(a){V(e,a);function e(t,r){var n=a.call(this)||this,i=new Qc(t,r),o=new $;return n.add(i),n.add(o),n.updateData(t,r),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Wt(r,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}Zu(o,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}Zu(n,t)},e.prototype.highlight=function(){qr(this)},e.prototype.downplay=function(){jr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var n=this,i=t.hostModel;this.childAt(0).updateData(t,r);var o=this.childAt(1),s=t.getItemModel(r),l=t.getItemVisual(r,"symbol"),u=ua(t.getItemVisual(r,"symbolSize")),v=t.getItemVisual(r,"style"),c=v&&v.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var f=ga(t.getItemVisual(r,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=t.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=r/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&n.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=d,xt(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})($),g_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Ho(d_)},e.prototype.render=function(t,r,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,n=r&&r.getArea&&r.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,r,n){var i=t.getData();this.group.dirty();var o=sh("").reset(t,r,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=Ud(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Tt),y_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,n){return n.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Ct);function m_(a){a.registerChartView(g_),a.registerSeriesModel(y_),a.registerLayout(sh("effectScatter"))}var Of=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i.add(i.createLine(t,r,n)),i._updateEffectSymbol(t,r),i}return e.prototype.createLine=function(t,r,n){return new ds(t,r,n)},e.prototype._updateEffectSymbol=function(t,r){var n=t.getItemModel(r),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");B(o)||(o=[o,o]);var l=t.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,v=this.childAt(1);this._symbolType!==s&&(this.remove(v),v=Wt(s,-.5,-.5,1,1,u),v.z2=100,v.culling=!0,this.add(v)),v&&(v.setStyle("shadowColor",u),v.setStyle(i.getItemStyle(["color"])),v.scaleX=o[0],v.scaleY=o[1],v.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,r))},e.prototype._updateEffectAnimation=function(t,r,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),v=r.get("constantSpeed"),c=Xt(r.get("delay"),function(f){return f/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),v>0&&(s=this._getLineLength(i)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;st(c)?h=c(n):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,n,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Gr(t.__p1,t.__cp1)+Gr(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,n){this.childAt(0).updateData(t,r,n),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ah,v=Yd;s[0]=u(r[0],i[0],n[0],o),s[1]=u(r[1],i[1],n[1],o);var c=t.__t<1?v(r[0],i[0],n[0],o):v(n[0],i[0],r[0],1-o),h=t.__t<1?v(r[1],i[1],n[1],o):v(n[1],i[1],r[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Gr(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Gr(r,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var n=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,n,r)},e})($),Gf=(function(a){V(e,a);function e(t,r,n){var i=a.call(this)||this;return i._createPolyline(t,r,n),i}return e.prototype._createPolyline=function(t,r,n){var i=t.getItemLayout(r),o=new me({shape:{points:i}});this.add(o),this._updateCommonStl(t,r,n)},e.prototype.updateData=function(t,r,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(r)}};ct(o,s,i,r),this._updateCommonStl(t,r,n)},e.prototype._updateCommonStl=function(t,r,n){var i=this.childAt(0),o=t.getItemModel(r),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,v=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),v=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(t.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,xt(this,l,u,v)},e.prototype.updateLayout=function(t,r){var n=this.childAt(0);n.setShape("points",t.getItemLayout(r))},e})($),S_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,n){return new Gf(t,r,n)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var n=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Gr(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var v=(r-i[l])/(i[l+1]-i[l]),c=n[l],h=n[l+1];t.x=c[0]*(1-v)+v*h[0],t.y=c[1]*(1-v)+v*h[1];var f=t.__t<1?h[0]-c[0]:c[0]-h[0],p=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e})(Of),x_=(function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a})(),__=(function(a){V(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new x_},e.prototype.buildPath=function(t,r){var n=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],v=n[o++],c=n[o++],h=n[o++];if(t.moveTo(u,v),i>0){var f=(u+c)/2-(v-h)*i,p=(v+h)/2-(c-u)*i;t.quadraticCurveTo(f,p,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var v=i[u++];if(v>0)for(var c=i[u++],h=i[u++],f=1;f<v;f++){var p=i[u++],d=i[u++];if(ol(c,h,p,d,s,t,r))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if($d(c,h,g,y,p,d,s,t,r))return l}else if(ol(c,h,p,d,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var n=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=n[0],r=n[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,n=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var v=n[u++],c=n[u++];i=Math.min(v,i),s=Math.max(v,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new wt(i,o,s,l)}return t},e})(Vt),b_=(function(){function a(){this.group=new $}return a.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},a.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],n=t.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new __({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},a.prototype._setCommon=function(e,t,r){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ut(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),Bf={seriesType:"lines",plan:Yo(),reset:function(a){var e=a.coordinateSystem;if(e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(n,i){var o=[];if(r){var s=void 0,l=n.end-n.start;if(t){for(var u=0,v=n.start;v<n.end;v++)u+=a.getLineCoordsCount(v);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],v=n.start;v<n.end;v++){var f=a.getLineCoords(v,o);t&&(s[c++]=f);for(var p=0;p<f;p++)h=e.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var v=n.start;v<n.end;v++){var d=i.getItemModel(v),f=a.getLineCoords(v,o),g=[];if(t)for(var y=0;y<f;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(v,g)}}}}}},w_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),v=u.painter.getType()==="svg";v||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!v&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&In(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,n){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Bf.reset(t,r,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,r){var n=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new b_:new gs(o?i?S_:Gf:i?Of:ds),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),n=r.painter.getType()==="svg";!n&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e})(Tt),A_=typeof Uint32Array>"u"?Array:Uint32Array,T_=typeof Float64Array>"u"?Array:Float64Array;function Uu(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=z(e,function(t){var r=[t[0].coord,t[1].coord],n={coords:r};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Oo([n,t[0],t[1]])}))}var M_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Uu(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Uu(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=$a(this._flatCoords,r.flatCoords),this._flatCoordsOffset=$a(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),n=r.option instanceof Array?r.option:r.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[n+o*2],r[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),le(t[0])){for(var n=t.length,i=new A_(n),o=new T_(n),s=0,l=0,u=0,v=0;v<n;){u++;var c=t[v++];i[l++]=s+r,i[l++]=c;for(var h=0;h<c;h++){var f=t[v++],p=t[v++];o[s++]=f,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){var n=new Bt(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Zt("nameValue",{name:v.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Ct);function Ea(a){return a instanceof Array||(a=[a,a]),a}var C_={seriesType:"lines",reset:function(a){var e=Ea(a.get("symbol")),t=Ea(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Ea(s.getShallow("symbol",!0)),u=Ea(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?n:null}}};function D_(a){a.registerChartView(w_),a.registerSeriesModel(M_),a.registerLayout(Bf),a.registerVisual(C_)}var I_=256,L_=(function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=sl.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),v=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=e.length;c.width=t,c.height=r;for(var p=0;p<f;++p){var d=e[p],g=d[0],y=d[1],m=d[2],S=n(m);h.globalAlpha=S,h.drawImage(s,g-v,y-v)}if(!c.width||!c.height)return c;for(var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,T=this.minOpacity,A=this.maxOpacity,C=A-T;b<w;){var S=_[b+3]/256,D=Math.floor(S*(I_-1))*4;if(S>0){var L=o(S)?l:u;S>0&&(S=S*C+T),_[b++]=L[D],_[b++]=L[D+1],_[b++]=L[D+2],_[b++]=L[D+3]*S*256}else b+=4}return h.putImageData(x,0,0),c},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=sl.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var n=e.getContext("2d");return n.clearRect(0,0,r,r),n.shadowOffsetX=r,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,n=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},a})();function P_(a,e,t){var r=a[1]-a[0];e=z(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function E_(a,e){var t=a[1]-a[0];return e=[(e[0]-a[0])/t,(e[1]-a[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function Yu(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var R_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Yu(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,r,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,n,i){var o=r.coordinateSystem;o&&(Yu(o)?this.render(r,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,n,i,o){var s=t.coordinateSystem,l=Ln(s,"cartesian2d"),u,v,c,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,v=p.getBandWidth()+.5,c=f.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),_=Ht(t),b=t.getModel("emphasis"),w=b.get("focus"),T=b.get("blurScope"),A=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=n;D<i;D++){var L=void 0,I=g.getItemVisual(D,"style");if(l){var P=g.get(C[0],D),E=g.get(C[1],D);if(isNaN(g.get(C[2],D))||isNaN(P)||isNaN(E)||P<c[0]||P>c[1]||E<h[0]||E>h[1])continue;var R=s.dataToPoint([P,E]);L=new pt({shape:{x:R[0]-u/2,y:R[1]-v/2,width:u,height:v},style:I})}else{if(isNaN(g.get(C[1],D)))continue;L=new pt({z2:1,shape:s.dataToRect([g.get(C[0],D)]).contentShape,style:I})}if(g.hasItemOption){var k=g.getItemModel(D),N=k.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=k.getModel(["blur","itemStyle"]).getItemStyle(),S=k.getModel(["select","itemStyle"]).getItemStyle(),x=k.get(["itemStyle","borderRadius"]),w=N.get("focus"),T=N.get("blurScope"),A=N.get("disabled"),_=Ht(k)}L.shape.r=x;var H=t.getRawValue(D),Z="-";H&&H[2]!=null&&(Z=H[2]+""),ae(L,_,{labelFetcher:t,labelDataIndex:D,defaultOpacity:I.opacity,defaultText:Z}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=S,xt(L,w,T,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,r,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new L_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var v=t.getViewRect().clone(),c=t.getRoamTransform();v.applyTransform(c);var h=Math.max(v.x,0),f=Math.max(v.y,0),p=Math.min(v.width+v.x,i.getWidth()),d=Math.min(v.height+v.y,i.getHeight()),g=p-h,y=d-f,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(w,T,A){var C=t.dataToPoint([w,T]);return C[0]-=h,C[1]-=f,C.push(A),C}),x=n.getExtent(),_=n.type==="visualMap.continuous"?E_(x,n.option.range):P_(x,n.getPieceList(),n.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new ye({style:{width:g,height:y,x:h,y:f,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Tt),V_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return ya(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=nh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(Ct);function k_(a){a.registerChartView(R_),a.registerSeriesModel(V_)}var N_=["itemStyle","borderWidth"],$u=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ai=new ca,z_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:v,valueDim:$u[+v],categoryDim:$u[1-+v]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=Ku(o,p),g=Xu(o,p,d,h),y=qu(o,h,g);o.setItemGraphicEl(p,y),i.add(y),Ju(y,h,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=Ku(o,p),m=Xu(o,p,y,h),S=Yf(o,m);g&&S!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?Z_(g,h,m):g=qu(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),Ju(g,h,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&ju(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var f=t.get("clip",!0)?In(t.coordinateSystem,!1,t):null;return f?i.setClipPath(f):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,r){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){ju(i,ut(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(Tt);function Xu(a,e,t,r){var n=a.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:n,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};O_(t,i,n,r,h),G_(a,e,n,i,o,h.boundingLength,h.pxSign,v,r,h),B_(t,h.symbolScale,u,r,h);var f=h.symbolSize,p=ga(t.get("symbolOffset"),f);return F_(t,f,n,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function O_(a,e,t,r,n){var i=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),v;if(B(o)){var c=[Ti(s,o[0])-l,Ti(s,o[1])-l];c[1]<c[0]&&c.reverse(),v=c[u]}else o!=null?v=Ti(s,o)-l:e?v=r.coordSysExtent[i.index][u]-l:v=t[i.wh];n.boundingLength=v,e&&(n.repeatCutLength=t[i.wh]);var h=i.xy==="x",f=s.inverse;n.pxSign=h&&!f||!h&&f?v>=0?1:-1:v>0?1:-1}function Ti(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function G_(a,e,t,r,n,i,o,s,l,u){var v=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),f=a.getItemVisual(e,"symbolSize"),p;B(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[c.index]=G(p[c.index],h),p[v.index]=G(p[v.index],r?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[v.index]*=(l.isHorizontal?-1:1)*o}function B_(a,e,t,r,n){var i=a.get(N_)||0;i&&(Ai.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Ai.updateTransform(),i/=Ai.getLineScale(),i*=e[r.valueDim.index]),n.valueLineWidth=i||0}function F_(a,e,t,r,n,i,o,s,l,u,v,c){var h=v.categoryDim,f=v.valueDim,p=c.pxSign,d=Math.max(e[f.index]+s,0),g=d;if(r){var y=Math.abs(l),m=Xt(a.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var x=G(m,e[f.index]),_=Math.max(d+x*2,0),b=S?0:x*2,w=Xd(r),T=w?r:Qu((y+b)/_),A=y-T*d;x=A/2/(S?T:Math.max(T-1,1)),_=d+x*2,b=S?0:x*2,!w&&r!=="fixed"&&(T=u?Qu((Math.abs(u)+b)/_):0),g=T*_-b,c.repeatTimes=T,c.symbolMargin=x}var C=p*(g/2),D=c.pathPosition=[];D[h.index]=t[h.wh]/2,D[f.index]=o==="start"?C:o==="end"?l-C:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=t[h.xy],L[f.index]=t[f.xy];var I=c.barRectShape=W({},t);I[f.wh]=p*Math.max(Math.abs(t[f.wh]),Math.abs(D[f.index]+C)),I[h.wh]=t[h.wh];var P=c.clipShape={};P[h.xy]=-t[h.xy],P[h.wh]=v.ecSize[h.wh],P[f.xy]=0,P[f.wh]=t[f.wh]}function Ff(a){var e=a.symbolPatternSize,t=Wt(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Hf(a,e,t,r){var n=a.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,v=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(Ms(a,function(d){d.__pictorialAnimationIndex=v,d.__pictorialRepeatTimes=u,v<u?Sr(d,null,p(v),t,r):Sr(d,null,{scaleX:0,scaleY:0},t,r,function(){n.remove(d)}),v++});v<u;v++){var h=Ff(t);h.__pictorialAnimationIndex=v,h.__pictorialRepeatTimes=u,n.add(h);var f=p(v);Sr(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},t,r)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Wf(a,e,t,r){var n=a.__pictorialBundle,i=a.__pictorialMainPath;i?Sr(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=a.__pictorialMainPath=Ff(t),n.add(i),Sr(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Zf(a,e,t){var r=W({},e.barRectShape),n=a.__pictorialBarRect;n?Sr(n,null,{shape:r},e,t):(n=a.__pictorialBarRect=new pt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,a.add(n))}function Uf(a,e,t,r){if(t.symbolClip){var n=a.__pictorialClipPath,i=W({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)ct(n,{shape:i},s,l);else{i[o.wh]=0,n=new pt({shape:i}),a.__pictorialBundle.setClipPath(n),a.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Ar[r?"updateProps":"initProps"](n,{shape:u},s,l)}}}function Ku(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=H_,t.isAnimationEnabled=W_,t}function H_(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function W_(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function qu(a,e,t,r){var n=new $,i=new $;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Hf(n,e,t):Wf(n,e,t),Zf(n,t,r),Uf(n,e,t,r),n.__pictorialShapeStr=Yf(a,t),n.__pictorialSymbolMeta=t,n}function Z_(a,e,t){var r=t.animationModel,n=t.dataIndex,i=a.__pictorialBundle;ct(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,n),t.symbolRepeat?Hf(a,e,t,!0):Wf(a,e,t,!0),Zf(a,t,!0),Uf(a,e,t,!0)}function ju(a,e,t,r){var n=r.__pictorialBarRect;n&&n.removeTextContent();var i=[];Ms(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Xa(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function Yf(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ms(a,e,t){M(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Sr(a,e,t,r,n,i){e&&a.attr(e),r.symbolClip&&!n?t&&a.attr(t):t&&Ar[n?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,i)}function Ju(a,e,t){var r=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),v=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");Ms(a,function(d){if(d instanceof ye){var g=d.style;d.useStyle(W({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],p=a.__pictorialBarRect;p.ignoreClip=!0,ae(p,Ht(n),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Qi(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),xt(a,v,c,i.get("disabled"))}function Qu(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}var U_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Mr(ll.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(ll);function Y_(a){a.registerChartView(z_),a.registerSeriesModel(U_),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,tt(Kd,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qd("pictorialBar"))}var $_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),v=u.rect,c=u.boundaryGap;s.x=0,s.y=v.y+c[0];function h(g){return g.name}var f=new ke(this._layersSeries||[],l,h,h),p=[];f.add(F(d,this,"add")).update(F(d,this,"update")).remove(F(d,this,"remove")).execute();function d(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var x=[],_=[],b,w=l[y].indices,T=0;T<w.length;T++){var A=i.getItemLayout(w[T]),C=A.x,D=A.y0,L=A.y;x.push(C,D),_.push(C,D+L),b=i.getItemVisual(w[T],"style")}var I,P=i.getItemLayout(w[0]),E=t.getModel("label"),R=E.get("margin"),k=t.getModel("emphasis");if(g==="add"){var N=p[y]=new $;I=new jd({shape:{points:x,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(I),s.add(N),t.isAnimationEnabled()&&I.setClipPath(X_(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var N=S[m];I=N.childAt(0),s.add(N),p[y]=N,ct(I,{shape:{points:x,stackedOnPoints:_}},t),Ve(I)}ae(I,Ht(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var H=I.getTextContent();H&&(H.x=P.x-R,H.y=P.y0+P.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),Kt(I,t),xt(I,k.get("focus"),k.get("blurScope"),k.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e})(Tt);function X_(a,e,t){var r=new pt({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return Ft(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},e,t),r}var Mi=2,K_=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _n(F(this.getData,this),F(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,n={},i=ji(t,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,v=0;v<o[l].dataList.length;++v){var c=o[l].dataList[v][0]+"";n[c]=l}for(var c in n)n.hasOwnProperty(c)&&n[c]!==l&&(n[c]=l,t[r]=[c,0,u],r++)}return t},e.prototype.getInitialData=function(t,r){for(var n=this.getReferringComponents("singleAxis",ge).models[0],i=n.get("type"),o=Lt(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),v=0,c=0;c<s.length;++c)l.push(s[c][Mi]),u.get(s[c][Mi])||(u.set(s[c][Mi],v),v++);var h=Go(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ji(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new Bt(h,this);return f.initData(s),f},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),n=[],i=0;i<r;++i)n[i]=i;var o=t.mapDimension("single"),s=ji(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,v){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:v,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,r,n){B(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,v=0;v<l;++v){for(var c=Number.MAX_VALUE,h=-1,f=o[v].indices.length,p=0;p<f;++p){var d=i.get(t[0],o[v].indices[p]),g=Math.abs(d-r);g<=c&&(u=d,c=g,h=o[v].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return Zt("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Ct);function q_(a,e){a.eachSeriesByType("themeRiver",function(t){var r=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=G(s[0],o.height),s[1]=G(s[1],o.height);var u=o.height-s[0]-s[1];tv(r,t,u)}else{s[0]=G(s[0],o.width),s[1]=G(s[1],o.width);var v=o.width-s[0]-s[1];tv(r,t,v)}r.setLayout("layoutInfo",i)})}function tv(a,e,t){if(a.count())for(var r=e.coordinateSystem,n=e.getLayerSeries(),i=a.mapDimension("single"),o=a.mapDimension("value"),s=z(n,function(g){return z(g.indices,function(y){var m=r.dataToPoint(a.get(i,y));return m[1]=a.get(o,y),m})}),l=j_(s),u=l.y0,v=t/l.max,c=n.length,h=n[0].indices.length,f,p=0;p<h;++p){f=u[p]*v,a.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*v});for(var d=1;d<c;++d)f+=s[d-1][p][1]*v,a.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:f,y:s[d][p][1]*v})}}function j_(a){for(var e=a.length,t=a[0].length,r=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=a[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<t;++u)n[u]=(i-r[u])/2;i=0;for(var v=0;v<t;++v){var c=r[v]+n[v];c>i&&(i=c)}return{y0:n,max:i}}function J_(a){a.registerChartView($_),a.registerSeriesModel(K_),a.registerLayout(q_),a.registerProcessor(wn("themeRiver"))}var Q_=2,tb=4,ev=(function(a){V(e,a);function e(t,r,n,i){var o=a.call(this)||this;o.z2=Q_,o.textConfig={inside:!0},ut(o).seriesIndex=r.seriesIndex;var s=new vt({z2:tb,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,n,i),o}return e.prototype.updateData=function(t,r,n,i,o){this.node=r,r.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ut(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),v=r.getLayout(),c=W({},v);c.label=null;var h=r.getVisual("style");h.lineJoin="bevel";var f=r.getVisual("decal");f&&(h.decal=No(f,o));var p=ul(l.getModel("itemStyle"),c,!0);W(c,p),M(qi,function(m){var S=s.ensureState(m),x=l.getModel([m,"itemStyle"]);S.style=x.getItemStyle();var _=ul(x,c);_&&(S.shape=_)}),t?(s.setShape(c),s.shape.r=v.r0,Ft(s,{shape:{r:v.r}},n,r.dataIndex)):(ct(s,{shape:c},n),Ve(s)),s.useStyle(h),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?$a(r.getAncestorsIndices(),r.getDescendantIndices()):g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;xt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),c=this,h=c.getTextContent(),f=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,M(Qd,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),S=y==="normal",x=S?h:h.ensureState(y),_=t.getFormattedLabel(f,y);S&&(_=_||r.node.name),x.style=St(m,{},null,y!=="normal",!0),_&&(x.style.text=_);var b=m.get("show");b!=null&&!S&&(x.ignore=!b);var w=g(m,"position"),T=S?c:c.states[y],A=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?A:null,inside:w!=="outside"};var C,D=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,R=zr(I==="tangential"?Math.PI/2-l:l),k=R>P&&!Jd(R-P)&&R<E;w==="outside"?(C=o.r+D,L=k?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,L="center"):L==="left"?(C=o.r0+D,L=k?"right":"left"):L==="right"&&(C=o.r-D,L=k?"left":"right"),x.style.align=L,x.style.verticalAlign=g(m,"verticalAlign")||"middle",x.x=C*u+o.cx,x.y=C*v+o.cy;var N=0;I==="radial"?N=zr(-l)+(k?Math.PI:0):I==="tangential"?N=zr(Math.PI/2-l)+(k?Math.PI:0):le(I)&&(N=I*Math.PI/180),x.rotation=zr(N)});function g(y,m){var S=y.get(m);return S??i.get(m)}h.dirtyStyle()},e})(tr),xo="sunburstRootToNode",rv="sunburstHighlight",eb="sunburstUnhighlight";function rb(a){a.registerAction({type:xo,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(n,i){var o=ea(e,[xo],n);if(o){var s=n.getViewRoot();s&&(e.direction=vs(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),a.registerAction({type:rv,update:"none"},function(e,t,r){e=W({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=ea(e,[rv],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(W(e,{type:"highlight"}))}),a.registerAction({type:eb,update:"updateView"},function(e,t,r){e=W({},e),r.dispatchAction(W(e,{type:"downplay"}))})}var ab=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),v=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var f=this._oldChildren||[];p(h,f),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,S){if(m.length===0&&S.length===0)return;new ke(S,m,x,x).add(_).update(_).remove(tt(_,null)).execute();function x(b){return b.getId()}function _(b,w){var T=b==null?null:m[b],A=w==null?null:S[w];d(T,A)}}function d(m,S){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,t,r,n),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var x=new ev(m,t,r,n);v.add(x),s.setItemGraphicEl(m.dataIndex,x)}}}function g(m){m&&m.piece&&(v.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,r,n):(o.virtualPiece=new ev(m,t,r,n),v.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(S.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";eh(u,v)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xo,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var n=r.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(Tt),nb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var n={name:t.name,children:t.data};$f(n);var i=this._levelModels=z(t.levels||[],function(l){return new Ut(l,this,r)},this),o=us.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var c=o.getNodeByDataIndex(v),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=kn(n,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){jh(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Ct);function $f(a){var e=0;M(a.children,function(r){$f(r);var n=r.value;B(n)&&(n=n[0]),e+=n});var t=a.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(a.value)?a.value[0]=t:a.value=t}var av=Math.PI/180;function ib(a,e,t){e.eachSeriesByType(a,function(r){var n=r.get("center"),i=r.get("radius");B(i)||(i=[0,i]),B(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=G(n[0],o),v=G(n[1],s),c=G(i[0],l/2),h=G(i[1],l/2),f=-r.get("startAngle")*av,p=r.get("minAngle")*av,d=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&Xf(g,m);var S=0;M(g.children,function(R){!isNaN(R.getValue())&&S++});var x=g.getValue(),_=Math.PI/(x||S)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(h-c)/(w||1),A=r.get("clockwise"),C=r.get("stillShowZeroSum"),D=A?1:-1,L=function(R,k){if(R){var N=k;if(R!==d){var H=R.getValue(),Z=x===0&&C?_:H*_;Z<p&&(Z=p),N=k+D*Z;var U=R.depth-y-(b?-1:1),q=c+T*U,rt=c+T*(U+1),J=r.getLevelModel(R);if(J){var at=J.get("r0",!0),Dt=J.get("r",!0),ce=J.get("radius",!0);ce!=null&&(at=ce[0],Dt=ce[1]),at!=null&&(q=G(at,l/2)),Dt!=null&&(rt=G(Dt,l/2))}R.setLayout({angle:Z,startAngle:k,endAngle:N,clockwise:A,cx:u,cy:v,r0:q,r:rt})}if(R.children&&R.children.length){var j=0;M(R.children,function(Y){j+=L(Y,k+j)})}return N-k}};if(b){var I=c,P=c+T,E=Math.PI*2;d.setLayout({angle:E,startAngle:f,endAngle:f+E,clockwise:A,cx:u,cy:v,r0:I,r:P})}L(g,f)})}function Xf(a,e){var t=a.children||[];a.children=ob(t,e),t.length&&M(a.children,function(r){Xf(r,e)})}function ob(a,e){if(st(e)){var t=z(a,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),z(t,function(n){return a[n.index]})}else{var r=e==="asc";return a.sort(function(n,i){var o=(n.getValue()-i.getValue())*(r?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(r?-1:1):o})}}function sb(a){var e={};function t(r,n,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&et(s)&&(s=tg(s,(r.depth-1)/(i-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var n=r.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");W(u,l)})})}function lb(a){a.registerChartView(ab),a.registerSeriesModel(nb),a.registerLayout(tt(ib,"sunburst")),a.registerProcessor(tt(wn,"sunburst")),a.registerVisual(sb),rb(a)}var nv={color:"fill",borderColor:"stroke"},ub={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},be=_t(),vb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return ya(null,this)},e.prototype.getDataParams=function(t,r,n){var i=a.prototype.getDataParams.call(this,t,r);return n&&(i.info=be(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Ct);function cb(a,e){return e=e||[0,0],z(["x","y"],function(t,r){var n=this.getAxis(t),i=e[r],o=a[r]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function hb(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(cb,a)}}}function fb(a,e){return e=e||[0,0],z([0,1],function(t){var r=e[t],n=a[t]/2,i=[],o=[];return i[t]=r-n,o[t]=r+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function pb(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:F(fb,a)}}}function db(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,n=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-n)-t.dataToCoord(r+n))}function gb(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(db,a)}}}function yb(a,e){return e=e||[0,0],z(["Radius","Angle"],function(t,r){var n="get"+t+"Axis",i=this[n](),o=e[r],s=a[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function mb(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=a.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:F(yb,a)}}}function Sb(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,n){return a.dataToPoint(r,n)}}}}function Kf(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||O(a,"text")))}function qf(a,e,t){var r=a,n,i,o;if(e==="text")o=r;else{o={},O(r,"text")&&(o.text=r.text),O(r,"rich")&&(o.rich=r.rich),O(r,"textFill")&&(o.fill=r.textFill),O(r,"textStroke")&&(o.stroke=r.textStroke),O(r,"fontFamily")&&(o.fontFamily=r.fontFamily),O(r,"fontSize")&&(o.fontSize=r.fontSize),O(r,"fontStyle")&&(o.fontStyle=r.fontStyle),O(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=O(r,"textPosition");t?n.position=s?r.textPosition:"inside":s&&(n.position=r.textPosition),O(r,"textPosition")&&(n.position=r.textPosition),O(r,"textOffset")&&(n.offset=r.textOffset),O(r,"textRotation")&&(n.rotation=r.textRotation),O(r,"textDistance")&&(n.distance=r.textDistance)}return iv(o,a),M(o.rich,function(l){iv(l,l)}),{textConfig:n,textContent:i}}function iv(a,e){e&&(e.font=e.textFont||e.font,O(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),O(e,"textAlign")&&(a.align=e.textAlign),O(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),O(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),O(e,"textWidth")&&(a.width=e.textWidth),O(e,"textHeight")&&(a.height=e.textHeight),O(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),O(e,"textPadding")&&(a.padding=e.textPadding),O(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),O(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),O(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),O(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),O(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),O(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),O(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function ov(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var n=r.textPosition.indexOf("inside")>=0,i=a.fill||"#000";sv(r,e);var o=r.textFill==null;return n?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){sv(s,s)}),r}function sv(a,e){e&&(O(e,"fill")&&(a.textFill=e.fill),O(e,"stroke")&&(a.textStroke=e.fill),O(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),O(e,"font")&&(a.font=e.font),O(e,"fontStyle")&&(a.fontStyle=e.fontStyle),O(e,"fontWeight")&&(a.fontWeight=e.fontWeight),O(e,"fontSize")&&(a.fontSize=e.fontSize),O(e,"fontFamily")&&(a.fontFamily=e.fontFamily),O(e,"align")&&(a.textAlign=e.align),O(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),O(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),O(e,"width")&&(a.textWidth=e.width),O(e,"height")&&(a.textHeight=e.height),O(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),O(e,"padding")&&(a.textPadding=e.padding),O(e,"borderColor")&&(a.textBorderColor=e.borderColor),O(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),O(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),O(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),O(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),O(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),O(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),O(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),O(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),O(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),O(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}var jf={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lv=mt(jf);jc(Jr,function(a,e){return a[e]=1,a},{});Jr.join(", ");var ln=["","style","shape","extra"],br=_t();function Cs(a,e,t,r,n){var i=a+"Animation",o=ma(a,r,n)||{},s=br(e).userDuring;return o.duration>0&&(o.during=s?F(Ab,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),W(o,t[i]),o}function Wa(a,e,t,r){r=r||{};var n=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=br(a),u=e.style;l.userDuring=e.during;var v={},c={};if(Mb(a,e,c),vv("shape",e,c),vv("extra",e,c),!i&&s&&(Tb(a,e,v),uv("shape",a,e,v),uv("extra",a,e,v),Cb(a,e,u,v)),c.style=u,xb(a,c,o),bb(a,e),s)if(i){var h={};M(ln,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),W(p?h[p]:h,d.enterFrom))});var f=Cs("enter",a,e,t,n);f.duration>0&&a.animateFrom(h,f)}else _b(a,e,n||0,t,v);Jf(a,e),u?a.dirty():a.markRedraw()}function Jf(a,e){for(var t=br(a).leaveToProps,r=0;r<ln.length;r++){var n=ln[r],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=br(a).leaveToProps={}),n&&(t[n]=t[n]||{}),W(n?t[n]:t,i.leaveTo))}}function On(a,e,t,r){if(a){var n=a.parent,i=br(a).leaveToProps;if(i){var o=Cs("update",a,e,t,0);o.done=function(){n.remove(a)},a.animateTo(i,o)}else n.remove(a)}}function Ke(a){return a==="all"}function xb(a,e,t){var r=e.style;if(!a.isGroup&&r){if(t){a.useStyle({});for(var n=a.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(a.style)}}a.setStyle(r)}e&&(e.style=null,e&&a.attr(e),e.style=r)}function _b(a,e,t,r,n){if(n){var i=Cs("update",a,e,r,t);i.duration>0&&a.animateFrom(n,i)}}function bb(a,e){O(e,"silent")&&(a.silent=e.silent),O(e,"ignore")&&(a.ignore=e.ignore),a instanceof Qe&&O(e,"invisible")&&(a.invisible=e.invisible),a instanceof Vt&&O(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var fe={},wb={setTransform:function(a,e){return fe.el[a]=e,this},getTransform:function(a){return fe.el[a]},setShape:function(a,e){var t=fe.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=fe.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=fe.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=fe.el.style;if(e)return e[a]},setExtra:function(a,e){var t=fe.el.extra||(fe.el.extra={});return t[a]=e,this},getExtra:function(a){var e=fe.el.extra;if(e)return e[a]}};function Ab(){var a=this,e=a.el;if(e){var t=br(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}fe.el=e,r(wb)}}function uv(a,e,t,r){var n=t[a];if(n){var i=e[a],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=r[a]={}),Ke(l))W(o,i);else for(var u=Gt(l),v=0;v<u.length;v++){var c=u[v],h=i[c];o[c]=h}else if(Ke(s)||dt(s,a)>=0){!o&&(o=r[a]={});for(var f=mt(i),v=0;v<f.length;v++){var c=f[v],h=i[c];Db(n[c],h)&&(o[c]=h)}}}}}function vv(a,e,t){var r=e[a];if(r)for(var n=t[a]={},i=mt(r),o=0;o<i.length;o++){var s=i[o];n[s]=eg(r[s])}}function Tb(a,e,t){for(var r=e.transition,n=Ke(r)?Jr:Gt(r||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=a[o];t[o]=s}}}function Mb(a,e,t){for(var r=0;r<lv.length;r++){var n=lv[r],i=jf[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var r=0;r<Jr.length;r++){var s=Jr[r];e[s]!=null&&(t[s]=e[s])}}function Cb(a,e,t,r){if(t){var n=a.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!Ke(o)){var l=Gt(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var v=l[u],c=n[v];i[v]=c}}else if(a.getAnimationStyleProps&&(Ke(s)||Ke(o)||dt(s,"style")>=0)){var h=a.getAnimationStyleProps(),f=h?h.style:null;if(f){!i&&(i=r.style={});for(var p=mt(t),u=0;u<p.length;u++){var v=p[u];if(f[v]){var c=n[v];i[v]=c}}}}}}}function Db(a,e){return lh(a)?a!==e:a!=null&&isFinite(a)}var Qf=_t(),Ib=["percent","easing","shape","style","extra"];function tp(a){a.stopAnimation("keyframe"),a.attr(Qf(a))}function un(a,e,t){if(!(!t.isAnimationEnabled()||!e)){if(B(e)){M(e,function(s){un(a,s,t)});return}var r=e.keyframes,n=e.duration;if(t&&n==null){var i=ma("enter",t,0);n=i&&i.duration}if(!(!r||!n)){var o=Qf(a);M(ln,function(s){if(!(s&&!a[s])){var l;r.sort(function(u,v){return u.percent-v.percent}),M(r,function(u){var v=a.animators,c=s?u[s]:u;if(c){var h=mt(c);if(s||(h=Lt(h,function(d){return dt(Ib,d)<0})),!!h.length){l||(l=a.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<v.length;f++)v[f]!==l&&v[f].targetName===l.targetName&&v[f].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;M(h,function(d){p[d]=((s?a[s]:a)||{})[d]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var we="emphasis",De="normal",Ds="blur",Is="select",ze=[De,we,Ds,Is],Ci={normal:["itemStyle"],emphasis:[we,"itemStyle"],blur:[Ds,"itemStyle"],select:[Is,"itemStyle"]},Di={normal:["label"],emphasis:[we,"label"],blur:[Ds,"label"],select:[Is,"label"]},Lb=["x","y"],Pb="e\0\0",jt={normal:{},emphasis:{},blur:{},select:{}},Eb={cartesian2d:hb,geo:pb,single:gb,polar:mb,calendar:Sb};function _o(a){return a instanceof Vt}function bo(a){return a instanceof Qe}function Rb(a,e){e.copyTransform(a),bo(e)&&bo(a)&&(e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel,e.invisible=a.invisible,e.ignore=a.ignore,_o(e)&&_o(a)&&e.setShape(a.shape))}var Vb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=cv(t,s,r,n);o||l.removeAll(),s.diff(o).add(function(c){Ii(n,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&On(h,be(h).option,t)}).update(function(c,h){var f=o.getItemGraphicEl(h);Ii(n,f,c,u(c,i),t,l,s)}).execute();var v=t.get("clip",!0)?In(t.coordinateSystem,!1,t):null;v?l.setClipPath(v):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,r,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,n,i,o){var s=r.getData(),l=cv(r,s,n,i),u=this._progressiveEls=[];function v(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=Ii(null,null,c,l(c,o),r,this.group,s);h&&(h.traverse(v),u.push(h))}},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,n,i){var o=r.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(Tt);function Ls(a){var e=a.type,t;if(e==="path"){var r=a.shape,n=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=ap(r);t=ag(i,null,n,r.layout||"center"),be(t).customPathData=i}else if(e==="image")t=new ye({}),be(t).customImagePath=a.style.image;else if(e==="text")t=new vt({});else if(e==="group")t=new $;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=vh(e);if(!o){var s="";yt(s)}t=new o}return be(t).customGraphicType=e,t.name=a.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Ps(a,e,t,r,n,i,o){tp(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=Lb);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;O(u,"textFill")&&(u.fill=u.textFill),O(u,"textStroke")&&(u.stroke=u.textStroke)}var v=void 0,c=_o(e)?l.decal:null;a&&c&&(c.dirty=!0,v=No(c,a)),l.__decalPattern=v}if(bo(e)&&l){var v=l.__decalPattern;v&&(l.decal=v)}Wa(e,r,i,{dataIndex:t,isInit:o,clearStyle:!0}),un(e,r.keyframeAnimation,i)}function ep(a,e,t,r,n){var i=e.isGroup?null:e,o=n&&n[a].cfg;if(i){var s=i.ensureState(a);if(r===!1){var l=i.getState(a);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),xr(i)}}function kb(a,e,t){if(!a.isGroup){var r=a,n=t.currentZ,i=t.currentZLevel;r.z=n,r.zlevel=i;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<ze.length;s++)Nb(r,e,ze[s])}}function Nb(a,e,t){var r=t===De,n=r?e:vn(e,t),i=n?n.z2:null,o;i!=null&&(o=r?a:a.ensureState(t),o.z2=i||0)}function cv(a,e,t,r){var n=a.get("renderItem"),i=a.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):Eb[i.type](i));for(var s=Q({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:b,ordinalRawValue:_,styleEmphasis:w,visual:C,barLayout:D,currentSeriesIndices:L,font:I},o.api||{}),l={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:zb(a.getData())},u,v,c={},h={},f={},p={},d=0;d<ze.length;d++){var g=ze[d];f[g]=a.getModel(Ci[g]),p[g]=a.getModel(Di[g])}function y(P){return P===u?v||(v=e.getItemModel(P)):e.getItemModel(P)}function m(P,E){return e.hasItemOption?P===u?c[E]||(c[E]=y(P).getModel(Ci[E])):y(P).getModel(Ci[E]):f[E]}function S(P,E){return e.hasItemOption?P===u?h[E]||(h[E]=y(P).getModel(Di[E])):y(P).getModel(Di[E]):p[E]}return function(P,E){return u=P,v=null,c={},h={},n&&n(Q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:E?E.type:null},l),s)};function x(P,E){return E==null&&(E=u),e.getStore().get(e.getDimensionIndex(P||0),E)}function _(P,E){E==null&&(E=u),P=P||0;var R=e.getDimensionInfo(P);if(!R){var k=e.getDimensionIndex(P);return k>=0?e.getStore().get(k,E):void 0}var N=e.get(R.name,E),H=R&&R.ordinalMeta;return H?H.categories[N]:N}function b(P,E){E==null&&(E=u);var R=e.getItemVisual(E,"style"),k=R&&R.fill,N=R&&R.opacity,H=m(E,De).getItemStyle();k!=null&&(H.fill=k),N!=null&&(H.opacity=N);var Z={inheritColor:et(k)?k:"#000"},U=S(E,De),q=St(U,null,Z,!1,!0);q.text=U.getShallow("show")?It(a.getFormattedLabel(E,De),Qi(e,E)):null;var rt=vl(U,Z,!1);return A(P,H),H=ov(H,q,rt),P&&T(H,P),H.legacy=!0,H}function w(P,E){E==null&&(E=u);var R=m(E,we).getItemStyle(),k=S(E,we),N=St(k,null,null,!0,!0);N.text=k.getShallow("show")?pa(a.getFormattedLabel(E,we),a.getFormattedLabel(E,De),Qi(e,E)):null;var H=vl(k,null,!0);return A(P,R),R=ov(R,N,H),P&&T(R,P),R.legacy=!0,R}function T(P,E){for(var R in E)O(E,R)&&(P[R]=E[R])}function A(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function C(P,E){if(E==null&&(E=u),O(nv,P)){var R=e.getItemVisual(E,"style");return R?R[nv[P]]:null}if(O(ub,P))return e.getItemVisual(E,P)}function D(P){if(i.type==="cartesian2d"){var E=i.getBaseAxis();return rg(Q({axis:E},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return uh(P,t)}}function zb(a){var e={};return M(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var n=r.coordDim,i=e[n]=e[n]||[];i[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function Ii(a,e,t,r,n,i,o){if(!r){i.remove(e);return}var s=Es(a,e,t,r,n,i);return s&&o.setItemGraphicEl(t,s),s&&xt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function Es(a,e,t,r,n,i){var o=-1,s=e;e&&rp(e,r,n)&&(o=dt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ls(r),s&&Rb(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),jt.normal.cfg=jt.normal.conOpt=jt.emphasis.cfg=jt.emphasis.conOpt=jt.blur.cfg=jt.blur.conOpt=jt.select.cfg=jt.select.conOpt=null,jt.isLegacy=!1,Gb(u,t,r,n,l,jt),Ob(u,t,r,n,l),Ps(a,u,t,r,jt,n,l),O(r,"info")&&(be(u).info=r.info);for(var v=0;v<ze.length;v++){var c=ze[v];if(c!==De){var h=vn(r,c),f=Rs(r,h,c);ep(c,u,h,f,jt)}}return kb(u,r,n),r.type==="group"&&Bb(a,u,t,r,n),o>=0?i.replaceAt(u,o):i.add(u),u}function rp(a,e,t){var r=be(a),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==r.customGraphicType||n==="path"&&Zb(i)&&ap(i)!==r.customPathData||n==="image"&&O(o,"image")&&o.image!==r.customImagePath}function Ob(a,e,t,r,n){var i=t.clipPath;if(i===!1)a&&a.getClipPath()&&a.removeClipPath();else if(i){var o=a.getClipPath();o&&rp(o,i,r)&&(o=null),o||(o=Ls(i),a.setClipPath(o)),Ps(null,o,e,i,null,r,n)}}function Gb(a,e,t,r,n,i){if(!a.isGroup){hv(t,null,i),hv(t,we,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=a.getTextContent();if(o===!1)v&&a.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=Ls(o),a.setTextContent(v)),Ps(null,v,e,o,null,r,n);for(var c=o&&o.style,h=0;h<ze.length;h++){var f=ze[h];if(f!==De){var p=i[f].conOpt;ep(f,v,p,Rs(o,p,f),null)}}c?v.dirty():v.markRedraw()}}}}function hv(a,e,t){var r=e?vn(a,e):a,n=e?Rs(a,r,we):a.style,i=a.type,o=r?r.textConfig:null,s=a.textContent,l=s?e?vn(s,e):s:null;if(n&&(t.isLegacy||Kf(n,i,!!o,!!l))){t.isLegacy=!0;var u=qf(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var v=l;!v.type&&(v.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function vn(a,e){return e?a?a[e]:null:a}function Rs(a,e,t){var r=e&&e.style;return r==null&&t===we&&a&&(r=a.styleEmphasis),r}function Bb(a,e,t,r,n){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Hb({api:a,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var v=0;v<o;v++){var c=i[v],h=e.childAt(v);c?(c.ignore==null&&(c.ignore=!1),Es(a,h,t,c,n,e)):h.ignore=!0}for(var f=e.childCount()-1;f>=v;f--){var p=e.childAt(f);Fb(e,p,n)}}}function Fb(a,e,t){e&&On(e,be(a).option,t)}function Hb(a){new ke(a.oldChildren,a.newChildren,fv,fv,a).add(pv).update(pv).remove(Wb).execute()}function fv(a,e){var t=a&&a.name;return t??Pb+e}function pv(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,n=e!=null?t.oldChildren[e]:null;Es(t.api,n,t.dataIndex,r,t.seriesModel,t.group)}function Wb(a){var e=this.context,t=e.oldChildren[a];t&&On(t,be(t).option,e.seriesModel)}function ap(a){return a&&(a.pathData||a.d)}function Zb(a){return a&&(O(a,"pathData")||O(a,"d"))}function Ub(a){a.registerChartView(Vb),a.registerSeriesModel(vb)}var Yb=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),c=s.dataToCoord(r),h=i.get("type");if(h&&h!=="none"){var f=ch(i),p=Xb[h](s,l,c,v);p.style=f,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=$b(r,n,i,l,d);ng(t,n,i,o,g)},e})(hh);function $b(a,e,t,r,n){var i=e.axis,o=i.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,v,c;if(i.dim==="radius"){var h=Tr();An(h,h,s),Je(h,h,[r.cx,r.cy]),u=Pe([o,-n],h);var f=e.getModel("axisLabel").get("rotate")||0,p=qe.innerTextLayout(s,f*Math.PI/180,-1);v=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=r.coordToPoint([d+n,o]);var g=r.cx,y=r.cy;v=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:v,verticalAlign:c}}var Xb={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:fh(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var n=Math.max(1,a.getBandWidth()),i=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:cl(e.cx,e.cy,r[0],r[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:cl(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},Kb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Pt),Vs=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ge).models[0]},e.type="polarAxis",e})(Pt);ue(Vs,bn);var qb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(Vs),jb=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(Vs),ks=(function(a){V(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e})(ve);ks.prototype.dataToRadius=ve.prototype.dataToCoord;ks.prototype.radiusToData=ve.prototype.coordToData;var Jb=_t(),Ns=(function(a){V(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),v=ph(s==null?"":s+"",r.getFont(),"center","top"),c=Math.max(v.height,7),h=c/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=Jb(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-f)<=1&&Math.abs(g-o)<=1&&d>f?f=d:(p.lastTickCount=o,p.lastAutoInterval=f),f},e})(ve);Ns.prototype.dataToAngle=ve.prototype.dataToCoord;Ns.prototype.angleToData=ve.prototype.coordToData;var np=["radius","angle"],Qb=(function(){function a(e){this.dimensions=np,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new ks,this._angleAxis=new Ns,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,n=this._radiusAxis;return r.scale.type===e&&t.push(r),n.scale.type===e&&t.push(n),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,v=u<o?1:-1;u<o||u>s;)u+=v*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,n=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[n,i]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,v=l-this.cy,c=u*u+v*v,h=this.r,f=this.r0;return h!==f&&c-o<=h*h&&c+o>=f*f}}},a.prototype.convertToPixel=function(e,t,r){var n=dv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=dv(t);return n===this?this.pointToData(r):null},a})();function dv(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function tw(a,e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight();a.cx=G(r[0],n),a.cy=G(r[1],i);var o=a.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[G(l[0],s),G(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function ew(a,e){var t=this,r=t.getAngleAxis(),n=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(hl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),M(hl(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),qa(r.scale,r.model),qa(n.scale,n.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function rw(a){return a.mainType==="angleAxis"}function gv(a,e){var t;if(a.type=e.get("type"),a.scale=Wo(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),rw(e)){a.inverse=a.inverse!==e.get("clockwise");var r=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:r+(a.inverse?-360:360);a.setExtent(r,n)}e.axis=a,a.model=e}var aw={dimensions:np,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,n){var i=new Qb(n+"");i.update=ew;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");gv(o,l),gv(s,u),tw(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var n=r.getReferringComponents("polar",ge).models[0];r.coordinateSystem=n.coordinateSystem}}),t}},nw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ra(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),n=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:n[0],y2:n[1]}}function Va(a){var e=a.getRadiusAxis();return e.inverse?0:1}function yv(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var iw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=z(n.getViewLabels(),function(v){v=ot(v);var c=n.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=n.dataToCoord(h),v});yv(u),yv(s),M(nw,function(v){t.get([v,"show"])&&(!n.scale.isBlank()||v==="axisLine")&&ow[v](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(Sa),ow={axisLine:function(a,e,t,r,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=Va(t),c=v?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new Ar[f]({shape:{cx:t.cx,cy:t.cy,r:i[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Uc({shape:{cx:t.cx,cy:t.cy,r:i[v],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,a.add(h)},axisTick:function(a,e,t,r,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Va(t)],u=z(r,function(v){return new se({shape:Ra(t,[l,l+s],v.coord)})});a.add(oe(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Va(t)],v=[],c=0;c<n.length;c++)for(var h=0;h<n[c].length;h++)v.push(new se({shape:Ra(t,[u,u+l],n[c][h].coord)}));a.add(oe(v,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(a,e,t,r,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),v=e.get("triggerEvent");M(o,function(c,h){var f=l,p=c.tickValue,d=i[Va(t)],g=t.coordToPoint([d+u,c.coord]),y=t.cx,m=t.cy,S=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var _=s[p];Rt(_)&&_.textStyle&&(f=new Ut(_.textStyle,l,l.ecModel))}var b=new vt({silent:qe.isLabelSilent(e),style:St(f,{x:g[0],y:g[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:S,verticalAlign:x})});if(a.add(b),v){var w=qe.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,ut(b).eventData=w}},this)},splitLine:function(a,e,t,r,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=0;c<r.length;c++){var h=u++%l.length;v[h]=v[h]||[],v[h].push(new se({shape:Ra(t,i,r[c].coord)}))}for(var c=0;c<v.length;c++)a.add(oe(v[c],{style:Q({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(a,e,t,r,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var v=0;v<n[u].length;v++)l.push(new se({shape:Ra(t,i,n[u][v].coord)}));a.add(oe(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(a,e,t,r,n,i){if(r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=Math.PI/180,h=-r[0].coord*c,f=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,S=u++%l.length;v[S]=v[S]||[],v[S].push(new tr({shape:{cx:t.cx,cy:t.cy,r0:f,r:p,startAngle:h,endAngle:-m*c,clockwise:d},silent:!0})),h=-m*c}for(var g=0;g<v.length;g++)a.add(oe(v[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},sw=["axisLine","axisTickLabel","axisName"],lw=["splitLine","splitArea","minorSplitLine"],uw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new $;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),v=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),f=cw(s,t,c),p=new qe(t,f);M(sw,p.add,p),i.add(p.getGroup()),Uo(n,i,t),M(lw,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&vw[d](this.group,t,s,c,h,u,v)},this)}},e.type="radiusAxis",e})(Sa),vw={splitLine:function(a,e,t,r,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,v=t.getAngleAxis(),c=Math.PI/180,h=v.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Ar[f]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[d].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:v.inverse}}))}for(var d=0;d<p.length;d++)a.add(oe(p[d],{style:Q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(a,e,t,r,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],v=0;v<o.length;v++)for(var c=0;c<o[v].length;c++)u.push(new ca({shape:{cx:t.cx,cy:t.cy,r:o[v][c].coord}}));a.add(oe(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(a,e,t,r,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],c=i[0].coord,h=1;h<i.length;h++){var f=u++%l.length;v[f]=v[f]||[],v[f].push(new tr({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<v.length;h++)a.add(oe(v[h],{style:Q({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function cw(a,e,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function ip(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function op(a,e){return e.dim+a.model.componentIndex}function hw(a,e,t){var r={},n=fw(Lt(e.getSeriesByType(a),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(a,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=op(s,l),v=ip(i),c=n[u][v],h=c.offset,f=c.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;r[v]=r[v]||[];for(var S=o.mapDimension(p.dim),x=o.mapDimension(l.dim),_=dh(o,S),b=l.dim!=="radius"||!i.get("roundCap",!0),w=p.model,T=w.get("startValue"),A=p.dataToCoord(T||0),C=0,D=o.count();C<D;C++){var L=o.get(S,C),I=o.get(x,C),P=L>=0?"p":"n",E=A;_&&(r[v][I]||(r[v][I]={p:A,n:A}),E=r[v][I][P]);var R=void 0,k=void 0,N=void 0,H=void 0;if(p.dim==="radius"){var Z=p.dataToCoord(L)-A,U=l.dataToCoord(I);Math.abs(Z)<y&&(Z=(Z<0?-1:1)*y),R=E,k=E+Z,N=U-h,H=N-f,_&&(r[v][I][P]=k)}else{var q=p.dataToCoord(L,b)-A,rt=l.dataToCoord(I);Math.abs(q)<m&&(q=(q<0?-1:1)*m),R=rt+h,k=R+f,N=E,H=E+q,_&&(r[v][I][P]=H)}o.setItemLayout(C,{cx:d,cy:g,r0:R,r:k,startAngle:-N*Math.PI/180,endAngle:-H*Math.PI/180,clockwise:N>=H})}}})}function fw(a){var e={};M(a,function(r,n){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=op(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var f=ip(r);h[f]||c.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=G(r.get("barWidth"),v),d=G(r.get("barMaxWidth"),v),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(c.remainedWidth,p),h[f].width=p,c.remainedWidth-=p),d&&(h[f].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return M(e,function(r,n){t[n]={};var i=r.stacks,o=r.bandWidth,s=G(r.categoryGap,o),l=G(r.gap,1),u=r.remainedWidth,v=r.autoWidthCount,c=(u-s)/(v+(v-1)*l);c=Math.max(c,0),M(i,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,v--)}),c=(u-s)/(v+(v-1)*l),c=Math.max(c,0);var h=0,f;M(i,function(d,g){d.width||(d.width=c),f=d,h+=d.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;M(i,function(d,g){t[n][g]=t[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var pw={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},dw={splitNumber:5},gw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(kt);function yw(a){X($o),Sa.registerAxisPointerClass("PolarAxisPointer",Yb),a.registerCoordinateSystem("polar",aw),a.registerComponentModel(Kb),a.registerComponentView(gw),ja(a,"angle",qb,pw),ja(a,"radius",jb,dw),a.registerComponentView(iw),a.registerComponentView(uw),a.registerLayout(tt(hw,"bar"))}function wo(a,e){e=e||{};var t=a.coordinateSystem,r=a.axis,n={},i=r.position,o=r.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var v={horizontal:0,vertical:1};n.rotation=Math.PI/2*v[o];var c={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=c[i],a.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Xt(e.labelInside,a.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=e.rotate;return h==null&&(h=a.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-h:h,n.z2=1,n}var mw=["axisLine","axisTickLabel","axisName"],Sw=["splitArea","splitLine"],xw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new $;var l=wo(t),u=new qe(t,l);M(mw,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),M(Sw,function(v){t.get([v,"show"])&&_w[v](this,this.group,this._axisGroup,t)},this),Uo(s,this._axisGroup,t),a.prototype.render.call(this,t,r,n,i)},e.prototype.remove=function(){ig(this)},e.type="singleAxis",e})(Sa),_w={splitLine:function(a,e,t,r){var n=r.axis;if(!n.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),v=n.isHorizontal(),c=[],h=0,f=n.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<f.length;++g){var y=n.toGlobalCoord(f[g].coord);v?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new se({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});sg(m.shape,l);var S=h++%s.length;c[S]=c[S]||[],c[S].push(m)}for(var x=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(oe(c[g],{style:Q({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(a,e,t,r){og(a,t,r,r)}},Za=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})(Pt);ue(Za,bn.prototype);var bw=(function(a){V(e,a);function e(t,r,n,i,o){var s=a.call(this,t,r,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e})(ve),sp=["single"],ww=(function(){function a(e,t,r){this.type="single",this.dimension="single",this.dimensions=sp,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var n=this.dimension,i=new bw(n,Wo(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},a.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var n=r.getData();M(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),qa(this._axis.scale,this._axis.model)}},this)},a.prototype.resize=function(e,t){this._rect=ne({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},a.prototype.getRect=function(){return this._rect},a.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),n=r?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,r?e.x:e.y)},a.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),n=r[0]+r[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},a.prototype.getAxis=function(){return this._axis},a.prototype.getBaseAxis=function(){return this._axis},a.prototype.getAxes=function(){return[this._axis]},a.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},a.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),n=r.orient;return n==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,n},a.prototype.convertToPixel=function(e,t,r){var n=mv(t);return n===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=mv(t);return n===this?this.pointToData(r):null},a})();function mv(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Aw(a,e){var t=[];return a.eachComponent("singleAxis",function(r,n){var i=new ww(r,a,e);i.name="single_"+n,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var n=r.getReferringComponents("singleAxis",ge).models[0];r.coordinateSystem=n&&n.coordinateSystem}}),t}var Tw={create:Aw,dimensions:sp},Sv=["x","y"],Mw=["width","height"],Cw=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Li(l,1-cn(s)),v=l.dataToPoint(r)[0],c=i.get("type");if(c&&c!=="none"){var h=ch(i),f=Dw[c](s,v,u);f.style=h,t.graphicKey=f.type,t.pointer=f}var p=wo(n);lg(r,t,p,n,i,o)},e.prototype.getHandleTransform=function(t,r,n){var i=wo(r,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ug(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,n,i){var o=n.axis,s=o.coordinateSystem,l=cn(o),u=Li(s,l),v=[t.x,t.y];v[l]+=r[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var c=Li(s,1-l),h=(c[1]+c[0])/2,f=[h,h];return f[l]=v[l],{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e})(hh),Dw={line:function(a,e,t){var r=fh([e,t[0]],[e,t[1]],cn(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:vg([e-r/2,t[0]],[r,n],cn(a))}}};function cn(a){return a.isHorizontal()?0:1}function Li(a,e){var t=a.getRect();return[t[Sv[e]],t[Sv[e]]+t[Mw[e]]]}var Iw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(kt);function Lw(a){X($o),Sa.registerAxisPointerClass("SingleAxisPointer",Cw),a.registerComponentView(Iw),a.registerComponentView(xw),a.registerComponentModel(Za),ja(a,"single",Za,Za.defaultOption),a.registerCoordinateSystem("single",Tw)}var Pw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,n){var i=gh(t);a.prototype.init.apply(this,arguments),xv(t,i)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),xv(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Pt);function xv(a,e){var t=a.cellSize,r;B(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var n=z([0,1],function(i){return cg(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});yh(a,e,{type:"box",ignoreSize:n})}var Ew=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var v=i.dataToRect([u],!1).tl,c=new pt({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,r,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=r.start,h=0;c.time<=r.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(r.start.y+"-"+r.start.m));var f=c.date;f.setMonth(f.getMonth()+1),c=s.getDateInfo(f)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,n),l,i)},e.prototype._getEdgesPoints=function(t,r,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,n){var i=new me({z2:20,shape:{points:t},style:r});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,n){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),v=i.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return et(t)&&t?hg(t,r):st(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,n,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(i==="left"||i==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,f={top:[v,u[h][1]],bottom:[v,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var d=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new vt({z2:30,style:St(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,f[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,r,n,i,o){var s="left",l="top",u=t[0],v=t[1];return n==="horizontal"?(v=v+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||et(s))&&(s&&(r=fl(s)||r),s=r.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=v==="center",d=o.get("silent"),g=0;g<c[h].length-1;g++){var y=c[h][g].slice(),m=this._firstDayOfMonth[g];if(p){var S=this._firstDayPoints[g];y[f]=(S[f]+c[0][g+1][f])/2}var x=o.get("formatter"),_=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:_},w=this._formatterLabel(x,b),T=new vt({z2:30,style:W(St(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(T)}}},e.prototype._weekTextPositionControl=function(t,r,n,i,o){var s="center",l="middle",u=t[0],v=t[1],c=n==="start";return r==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(v=v+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:v,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,r,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),v=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!v||et(v)){v&&(r=fl(v)||r);var f=r.get(["time","dayOfWeekShort"]);v=f||z(r.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=G(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),S=l.dataToRect([m.time],!1).center,x=y;x=Math.abs((y+h)%7);var _=new vt({z2:30,style:W(St(s,{text:v[x]}),this._weekTextPositionControl(S,i,u,c,d)),silent:g});o.add(_)}}},e.type="calendar",e})(kt),Pi=864e5,Rw=(function(){function a(e,t,r){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=e}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(e){e=fg(e);var t=e.getFullYear(),r=e.getMonth()+1,n=r<10?"0"+r:""+r,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},a.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},a.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];M([0,1],function(c){v(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ne(o,l);M([0,1],function(c){v(i,c)||(i[c]=u[n[c]]/s[c])});function v(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},a.prototype.dataToPoint=function(e,t){B(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),n=this._rangeInfo,i=r.formatedDate;if(t&&!(r.time>=n.start.time&&r.time<n.end.time+Pi))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},a.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},a.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},a.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,n):this._getDateByWeeksAndDay(t,r-1,n)},a.prototype.convertToPixel=function(e,t,r){var n=_v(t);return n===this?n.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var n=_v(t);return n===this?n.pointToData(r):null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(B(e)&&e.length===1&&(e=e[0]),B(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var n=this.getDateInfo(r),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var n=Math.floor(t[1].time/Pi)-Math.floor(t[0].time/Pi)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var v=Math.floor((n+t[0].day+6)/7),c=r?-v+1:v-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:v,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var n=this._getRangeInfo(r);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(n){var i=new a(n);r.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=r[n.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a})();function _v(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}function Vw(a){a.registerComponentModel(Pw),a.registerComponentView(Ew),a.registerCoordinateSystem("calendar",Rw)}function kw(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function bv(a,e){var t;return M(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function Nw(a,e,t){var r=W({},t),n=a[e],i=t.$action||"merge";i==="merge"?n?(ft(n,r,!0),yh(n,r,{ignoreSize:!0}),dg(t,n),ka(t,n),ka(t,n,"shape"),ka(t,n,"style"),ka(t,n,"extra"),t.clipPath=n.clipPath):a[e]=r:i==="replace"?a[e]=r:i==="remove"&&n&&(a[e]=null)}var lp=["transition","enterFrom","leaveTo"],zw=lp.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ka(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?lp:zw,n=0;n<r.length;n++){var i=r[n];a[i]==null&&e[i]!=null&&(a[i]=e[i])}}function Ow(a,e){if(a&&(a.hv=e.hv=[bv(e,["left","right"]),bv(e,["top","bottom"])],a.type==="group")){var t=a,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var Gw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var n=this.option.elements;this.option.elements=null,a.prototype.mergeOption.call(this,t,r),this.option.elements=n},e.prototype.optionUpdated=function(t,r){var n=this.option,i=(r?n:t).elements,o=n.elements=r?[]:n.elements,s=[];this._flatten(i,s,null);var l=pg(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(v,c){var h=v.newOption;h&&(u.push(h),kw(v,h),Nw(o,c,h),Ow(o[c],h))},this),n.elements=Lt(o,function(v){return v&&delete v.$action,v!=null})},e.prototype._flatten=function(t,r,n){M(t,function(i){if(i){n&&(i.parentOption=n),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Pt),wv={path:null,compoundPath:null,group:$,image:ye,text:vt},Jt=_t(),Bw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=K()},e.prototype.render=function(t,r,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(r){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");M(r,function(l){var u=xe(l.id,null),v=u!=null?n.get(u):null,c=xe(l.parentId,null),h=c!=null?n.get(c):i,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&Kf(p,f,!!g,!!d)){var y=qf(p,f,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=Fw(l),S=l.$action||"merge",x=S==="merge",_=S==="replace";if(x){var b=!v,w=v;b?w=Av(u,h,l.type,n):(w&&(Jt(w).isNew=!1),tp(w)),w&&(Wa(w,m,t,{isInit:b}),Tv(w,l,o,s))}else if(_){Ua(v,l,n,t);var T=Av(u,h,l.type,n);T&&(Wa(T,m,t,{isInit:!0}),Tv(T,l,o,s))}else S==="remove"&&(Jf(v,l),Ua(v,l,n,t));var A=n.get(u);if(A&&d)if(x){var C=A.getTextContent();C?C.attr(d):A.setTextContent(new vt(d))}else _&&A.setTextContent(new vt(d));if(A){var D=l.clipPath;if(D){var L=D.type,I=void 0,b=!1;if(x){var P=A.getClipPath();b=!P||Jt(P).type!==L,I=b?Ao(L):P}else _&&(b=!0,I=Ao(L));A.setClipPath(I),Wa(I,D,t,{isInit:b}),un(I,D.keyframeAnimation,t)}var E=Jt(A);A.setTextConfig(g),E.option=l,Hw(A,t,l),zo({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),un(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var n=t.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],v=0;v<n.length;v++){var c=n[v],h=xe(c.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,d=p===i,g=Jt(f),y=Jt(p);g.width=G(g.option.width,d?s:y.width)||0,g.height=G(g.option.height,d?l:y.height)||0}}for(var v=n.length-1;v>=0;v--){var c=n[v],h=xe(c.id,null),f=h!=null?o.get(h):null;if(f){var p=f.parent,y=Jt(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},S={},x=Bo(f,c,m,null,{hv:c.hv,boundingMode:c.bounding},S);if(!Jt(f).isNew&&x){for(var _=c.transition,b={},w=0;w<u.length;w++){var T=u[w],A=S[T];_&&(Ke(_)||dt(_,T)>=0)?b[T]=A:f[T]=A}ct(f,b,t,0)}else f.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(n){Ua(n,Jt(n).option,r,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(kt);function Ao(a){var e=O(wv,a)?wv[a]:vh(a),t=new e({});return Jt(t).type=a,t}function Av(a,e,t,r){var n=Ao(t);return e.add(n),r.set(a,n),Jt(n).id=a,Jt(n).isNew=!0,n}function Ua(a,e,t,r){var n=a&&a.parent;n&&(a.type==="group"&&a.traverse(function(i){Ua(i,e,t,r)}),On(a,e,r),t.removeKey(Jt(a).id))}function Tv(a,e,t,r){a.isGroup||M([["cursor",Qe.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(n){var i=n[0];O(e,i)?a[i]=It(e[i],n[1]):a[i]==null&&(a[i]=n[1])}),M(mt(e),function(n){if(n.indexOf("on")===0){var i=e[n];a[n]=st(i)?i:null}}),O(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function Fw(a){return a=W({},a),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(gg),function(e){delete a[e]}),a}function Hw(a,e,t){var r=ut(a).eventData;!a.silent&&!a.ignore&&!r&&(r=ut(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function Ww(a){a.registerComponentModel(Gw),a.registerComponentView(Bw),a.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Mv=["x","y","radius","angle","single"],Zw=["cartesian2d","polar","singleAxis"];function Uw(a){var e=a.get("coordinateSystem");return dt(Zw,e)>=0}function Ie(a){return a+"Axis"}function Yw(a,e){var t=K(),r=[],n=K();a.eachComponent({mainType:"dataZoom",query:e},function(v){n.get(v.uid)||s(v)});var i;do i=!1,a.eachComponent("dataZoom",o);while(i);function o(v){!n.get(v.uid)&&l(v)&&(s(v),i=!0)}function s(v){n.set(v.uid,!0),r.push(v),u(v)}function l(v){var c=!1;return v.eachTargetAxis(function(h,f){var p=t.get(h);p&&p[f]&&(c=!0)}),c}function u(v){v.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return r}function up(a){var e=a.ecModel,t={infoList:[],infoMap:K()};return a.eachTargetAxis(function(r,n){var i=e.getComponent(Ie(r),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Ei=(function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a})(),oa=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,n){var i=Cv(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var r=Cv(t);ft(this.option,t,!0),ft(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(r);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(Mv,function(n){var i=this.getReferringComponents(Ie(n),yg);if(i.specified){r=!0;var o=new Ei;M(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var n=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===r}});l(s,"single")}function l(u,v){var c=u[0];if(c){var h=new Ei;if(h.add(c.componentIndex),t.set(v,h),i=!1,v==="x"||v==="y"){var f=c.getReferringComponents("grid",ge).models[0];f&&M(u,function(p){c.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",ge).models[0]&&h.add(p.componentIndex)})}}}i&&M(Mv,function(u){if(i){var v=n.findComponents({mainType:Ie(u),filter:function(h){return h.get("type",!0)==="category"}});if(v[0]){var c=new Ei;c.add(v[0].componentIndex),t.set(u,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,n=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":n?r[o]=n[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,n){t==null&&(t=this.ecModel.getComponent(Ie(r),n))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(n,i){M(n.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var n=this.getAxisModel(t,r);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[r])return this.ecModel.getComponent(Ie(t),r)},e.prototype.setRawRange=function(t){var r=this.option,n=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=n[i[0]]=t[i[0]],r[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(n){r[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Pt);function Cv(a){var e={};return M(["start","end","startValue","endValue","throttle"],function(t){a.hasOwnProperty(t)&&(e[t]=a[t])}),e}var $w=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(oa),zs=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,n,i){this.dataZoomModel=t,this.ecModel=r,this.api=n},e.type="dataZoom",e})(kt),Xw=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(zs),fr=M,Dv=te,Kw=(function(){function a(e,t,r,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=r}return a.prototype.hostedBy=function(e){return this._dataZoomModel===e},a.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},a.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},a.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Uw(t)){var r=Ie(this._dimName),n=t.getReferringComponents(r,ge).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return ot(this._minMaxSpan)},a.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),n=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;fr(["start","end"],function(h,f){var p=e[h],d=e[h+"Value"];i[f]==="percent"?(p==null&&(p=o[f]),d=n.parse(it(p,o,t))):(u=!0,d=d==null?t[f]:n.parse(d),p=it(d,t,o)),l[f]=d==null||isNaN(d)?t[f]:d,s[f]=p==null||isNaN(p)?o[f]:p}),Dv(l),Dv(s);var v=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,f,p,d,g){var y=g?"Span":"ValueSpan";ar(0,h,p,"all",v["min"+y],v["max"+y]);for(var m=0;m<2;m++)f[m]=it(h[m],p,d,!0),g&&(f[m]=n.parse(f[m]))}return{valueWindow:l,percentWindow:s}},a.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=qw(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;fr(n,function(l){var u=l.getData(),v=u.mapDimensionsAll(r);if(v.length){if(i==="weakFilter"){var c=u.getStore(),h=z(v,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,d,g,y=0;y<v.length;y++){var m=c.get(h[y],f),S=!isNaN(m),x=m<o[0],_=m>o[1];if(S&&!x&&!_)return!0;S&&(g=!0),x&&(p=!0),_&&(d=!0)}return g&&p&&d})}else fr(v,function(f){if(i==="empty")l.setData(u=u.map(f,function(d){return s(d)?d:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});fr(v,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;fr(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=it(r[0]+o,r,[0,100],!0):i!=null&&(o=it(i,[0,100],r,!0)-r[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},a.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var n=mg(r,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(n)),i.freeze()}},a})();function qw(a,e,t){var r=[1/0,-1/0];fr(t,function(o){Sg(r,o.getData(),e)});var n=a.getAxisModel(),i=xg(n.axis.scale,n,r).calculate();return[i.min,i.max]}var jw={getTargetSeries:function(a){function e(n){a.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=a.getComponent(Ie(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Kw(n,i,s,a),t.push(o.__dzAxisProxy))});var r=K();return M(t,function(n){M(n.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,n){t.getAxisProxy(r,n).reset(t)}),t.eachTargetAxis(function(r,n){t.getAxisProxy(r,n).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var n=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function Jw(a){a.registerAction("dataZoom",function(e,t){var r=Yw(t,e);M(r,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Iv=!1;function Os(a){Iv||(Iv=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,jw),Jw(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Qw(a){a.registerComponentModel($w),a.registerComponentView(Xw),Os(a)}var Qt=(function(){function a(){}return a})(),vp={};function pr(a,e){vp[a]=e}function cp(a){return vp[a]}var tA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,n){var i=cp(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ft(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})(Pt),eA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},v=this._features||(this._features={}),c=[];M(u,function(p,d){c.push(d)}),new ke(this._featureNames||[],c).add(h).update(h).remove(tt(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],S=new Ut(m,t,t.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(rA(g))x={onclick:S.option.onclick,featureName:g};else{var _=cp(g);if(!_)return;x=new _}v[g]=x}else if(x=v[y],!x)return;x.uid=Xc("toolbox-feature"),x.model=S,x.ecModel=r,x.api=n;var b=x instanceof Qt;if(!g&&y){b&&x.dispose&&x.dispose(r,n);return}if(!S.get("show")||b&&x.unusable){b&&x.remove&&x.remove(r,n);return}f(S,x,g),S.setIconStatus=function(w,T){var A=this.option,C=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=T,C[w]&&(T==="emphasis"?qr:jr)(C[w])},x instanceof Qt&&x.render&&x.render(S,r,n,i)}function f(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),S=d instanceof Qt&&d.getIcons?d.getIcons():p.get("icon"),x=p.get("title")||{},_,b;et(S)?(_={},_[g]=S):_=S,et(x)?(b={},b[g]=x):b=x;var w=p.iconPaths={};M(_,function(T,A){var C=mh(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var D=C.ensureState("emphasis");D.style=m.getItemStyle();var L=new vt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:uh({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},r)},ignore:!0});C.setTextContent(L),zo({el:C,componentModel:t,itemName:A,formatterParamsExtra:{title:b[A]}}),C.__title=b[A],C.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",A])==="emphasis"?qr:jr)(C),o.add(C),C.on("click",F(d.onclick,d,r,n,A)),w[A]=C})}_g(o,t,n),o.add(bg(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!st(S)&&d){var x=S.style||(S.style={}),_=ph(d,vt.makeFont(x)),b=p.x+o.x,w=p.y+o.y+s,T=!1;w+_.height>n.getHeight()&&(y.position="top",T=!0);var A=T?-5-_.height:s+10;b+_.width/2>n.getWidth()?(y.position=["100%",A],x.align="right"):b-_.width/2<0&&(y.position=[0,A],x.align="left")}})},e.prototype.updateView=function(t,r,n,i){M(this._features,function(o){o instanceof Qt&&o.updateView&&o.updateView(o.model,r,n,i)})},e.prototype.remove=function(t,r){M(this._features,function(n){n instanceof Qt&&n.remove&&n.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(n){n instanceof Qt&&n.dispose&&n.dispose(t,r)})},e.type="toolbox",e})(kt);function rA(a){return a.indexOf("my")===0}var aA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Xo.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=i+"."+s,v.target="_blank",v.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(S)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e})(Qt),Lv="__ec_magicType_stack__",nA=[["line","bar"],["stack"]],iA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),n={};return M(t.get("type"),function(i){r[i]&&(n[i]=r[i])}),n},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Pv[n]){var s={series:[]},l=function(c){var h=c.subType,f=c.id,p=Pv[n](h,f,c,i);p&&(Q(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=c.getReferringComponents(m,ge).models[0],x=S.componentIndex;s[m]=s[m]||[];for(var _=0;_<=x;_++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=n==="bar"}}};M(nA,function(c){dt(c,n)>=0&&M(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=n;n==="stack"&&(u=ft({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(v="tiled")),r.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Qt),Pv={line:function(a,e,t,r){if(a==="bar")return ft({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return ft({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var n=t.get("stack")===Lv;if(a==="line"||a==="bar")return r.setIconStatus("stack",n?"normal":"emphasis"),ft({id:e,stack:n?"":Lv},r.get(["option","stack"])||{},!0)}};ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});var Gn=new Array(60).join("-"),wr=" ";function oA(a){var e={},t=[],r=[];return a.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function sA(a){var e=[];return M(a,function(t,r){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(z(t.series,function(f){return f.name})),l=[n.model.getCategories()];M(t.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(wr)],v=0;v<l[0].length;v++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][v]);u.push(c.join(wr))}e.push(u.join(`
|
|
6
6
|
`))}),e.join(`
|
|
7
7
|
|
|
8
|
-
`+
|
|
8
|
+
`+Gn+`
|
|
9
9
|
|
|
10
|
-
`)}function
|
|
10
|
+
`)}function lA(a){return z(a,function(e){var t=e.getRawData(),r=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];r.push((s?s+wr:"")+n.join(wr))}),r.join(`
|
|
11
11
|
`)}).join(`
|
|
12
12
|
|
|
13
|
-
`+
|
|
13
|
+
`+Gn+`
|
|
14
14
|
|
|
15
|
-
`)}function
|
|
15
|
+
`)}function uA(a){var e=oA(a);return{value:Lt([sA(e.seriesGroupByCategoryAxis),lA(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
16
16
|
|
|
17
|
-
`+
|
|
17
|
+
`+Gn+`
|
|
18
18
|
|
|
19
|
-
`),meta:e.meta}}function
|
|
20
|
-
`));if(e.indexOf(
|
|
21
|
-
*`+
|
|
22
|
-
*`,"g")),r={series:[]};return M(t,function(n,i){if(bA(n)){var o=wA(n),s=e[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=AA(n);r.series.push(o)}}),r}var MA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var n=r.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),v=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),f=_A(t);if(st(c)){var p=c(r.getOption());et(p)?u.innerHTML=p:kg(p)&&u.appendChild(p)}else{v.readOnly=i.get("readOnly");var d=v.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),v.value=f.value,u.appendChild(v)}var g=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(o),_._dom=null}Sl(S,"click",b),Sl(x,"click",function(){if(h==null&&c!=null||h!=null&&c==null){b();return}var w;try{st(h)?w=h(u,r.getOption()):w=TA(v.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),b()}),S.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e})(Qt);function IA(a,e){return z(a,function(t,r){var n=e&&e[r];if(Rt(n)&&!B(n)){var i=Rt(t)&&!B(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=Q(t,n),o&&delete t.name,t}else return t})}fa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(a,e){var t=[];M(a.newOption.series,function(r){var n=e.getSeriesByName(r.name)[0];if(!n)t.push(W({type:"scatter"},r));else{var i=n.get("data");t.push({name:r.name,data:IA(r.data,i)})}}),e.mergeOption(Q({series:t},a.newOption))});var xp=M,_p=_t();function CA(a,e){var t=Hs(a);xp(e,function(r,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function DA(a){var e=Hs(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return xp(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){r[i]=n;break}}),r}function LA(a){_p(a).snapshots=null}function PA(a){return Hs(a).length}function Hs(a){var e=_p(a);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var EA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){LA(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e})(Qt);fa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,e){e.resetOption("recreate")});var RA=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Ws=(function(){function a(e,t,r){var n=this;this._targetInfoList=[];var i=zv(t,e);M(VA,function(o,s){(!r||!r.include||dt(r.include,s)>=0)&&o(i,n._targetInfoList)})}return a.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,n,i){if((r.coordRanges||(r.coordRanges=[])).push(n),!r.coordRange){r.coordRange=n;var o=ki[r.brushType](0,i,n);r.__rangeOffset={offset:Fv[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},a.prototype.matchOutputRanges=function(e,t,r){M(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=ki[n.brushType](1,o,n.range,!0);r(n,s.values,o,t)})},this)},a.prototype.setInputRanges=function(e,t){M(e,function(r){var n=this.findTargetInfo(r,t);if(r.range=r.range||[],n&&n!==!0){r.panelId=n.panelId;var i=ki[r.brushType](0,n.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?Fv[r.brushType](i.values,o.offset,kA(i.xyMinMax,o.xyMinMax)):i.values}},this)},a.prototype.makePanelOpts=function(e,t){return z(this._targetInfoList,function(r){var n=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:zf(n),isTargetByCursor:Gf(n,e,r.coordSysModel),getLinearBrushOtherExtent:Of(n)}})},a.prototype.controlSeries=function(e,t,r){var n=this.findTargetInfo(e,r);return n===!0||n&&dt(n.coordSyses,t.coordinateSystem)>=0},a.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,n=zv(t,e),i=0;i<r.length;i++){var o=r[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Ov.length;l++)if(Ov[l](n,o))return o}return!0},a})();function Do(a){return a[0]>a[1]&&a.reverse(),a}function zv(a,e){return Ih(a,e,{includeMainTypes:RA})}var VA={grid:function(a,e){var t=a.xAxisModels,r=a.yAxisModels,n=a.gridModels,i=K(),o={},s={};!t&&!r&&!n||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,v=[];M(u.getCartesians(),function(c,h){(dt(t,c.getAxis("x").model)>=0||dt(r,c.getAxis("y").model)>=0)&&v.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:Gv.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(a,e){M(a.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:Gv.geo})})}},Ov=[function(a,e){var t=a.xAxisModel,r=a.yAxisModel,n=a.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&r&&(n=r.axis.grid.model),n&&n===e.gridModel},function(a,e){var t=a.geoModel;return t&&t===e.geoModel}],Gv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,e=a.getBoundingRect().clone();return e.applyTransform(Sr(a)),e}},ki={lineX:tt(Bv,0),lineY:tt(Bv,1),rect:function(a,e,t,r){var n=a?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=a?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[Do([n[0],i[0]]),Do([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(a,e,t,r){var n=[[1/0,-1/0],[1/0,-1/0]],i=z(t,function(o){var s=a?e.pointToData(o,r):e.dataToPoint(o,r);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function Bv(a,e,t,r){var n=t.getAxis(["x","y"][a]),i=Do(z([0,1],function(s){return e?n.coordToData(n.toLocalCoord(r[s]),!0):n.toGlobalCoord(n.dataToCoord(r[s]))})),o=[];return o[a]=i,o[1-a]=[NaN,NaN],{values:i,xyMinMax:o}}var Fv={lineX:tt(Hv,0),lineY:tt(Hv,1),rect:function(a,e,t){return[[a[0][0]-t[0]*e[0][0],a[0][1]-t[0]*e[0][1]],[a[1][0]-t[1]*e[1][0],a[1][1]-t[1]*e[1][1]]]},polygon:function(a,e,t){return z(a,function(r,n){return[r[0]-t[0]*e[n][0],r[1]-t[1]*e[n][1]]})}};function Hv(a,e,t,r){return[e[0]-r[a]*t[0],e[1]-r[a]*t[1]]}function kA(a,e){var t=Wv(a),r=Wv(e),n=[t[0]/r[0],t[1]/r[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Wv(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}var Lo=M,NA=zg("toolbox-dataZoom_"),zA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){this._brushController||(this._brushController=new xs(n.getZr()),this._brushController.on("brush",F(this._onBrush,this)).mount()),BA(t,r,this,i,n),GA(t,r)},e.prototype.onclick=function(t,r,n){OA[n].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Ws(Zs(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,v,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,v[0]),s("y",c,v[1])):s({lineX:"x",lineY:"y"}[h],c,v)}}),CA(i,n),this._dispatchZoomAction(n);function s(u,v,c){var h=v.getAxis(u),f=h.model,p=l(u,f,i),d=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=ar(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,v,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,v.componentIndex);p&&(h=f)}),h}},e.prototype._dispatchZoomAction=function(t){var r=[];Lo(t,function(n,i){r.push(ot(n))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e})(Qt),OA={zoom:function(){var a=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:a})},back:function(){this._dispatchZoomAction(DA(this.ecModel))}};function Zs(a){var e={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function GA(a,e){a.setIconStatus("back",PA(e)>1?"emphasis":"normal")}function BA(a,e,t,r,n){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,a.setIconStatus("zoom",i?"emphasis":"normal");var o=new Ws(Zs(a),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()}:!1)}Ng("dataZoom",function(a){var e=a.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),n=[],i=Zs(r),o=Ih(a,i);Lo(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Lo(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:NA+u+c};h[v]=c,n.push(h)}return n});function FA(a){a.registerComponentModel(hA),a.registerComponentView(fA),dr("saveAsImage",dA),dr("magicType",yA),dr("dataView",MA),dr("dataZoom",zA),dr("restore",EA),X(cA)}var HA=["rect","polygon","keep","clear"];function WA(a,e){var t=Gt(a?a.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var n=a&&a.toolbox;B(n)&&(n=n[0]),n||(n={feature:{}},a.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),ZA(s),e&&!s.length&&s.push.apply(s,HA)}}function ZA(a){var e={};M(a,function(t){e[t]=1}),a.length=0,M(e,function(t,r){a.push(r)})}var Zv=M;function Uv(a){if(a){for(var e in a)if(a.hasOwnProperty(e))return!0}}function Po(a,e,t){var r={};return Zv(e,function(i){var o=r[i]=n();Zv(a[i],function(s,l){if(At.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new At(u),l==="opacity"&&(u=ot(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new At(u))}})}),r;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function bp(a,e,t){var r;M(t,function(n){e.hasOwnProperty(n)&&Uv(e[n])&&(r=!0)}),r&&M(t,function(n){e.hasOwnProperty(n)&&Uv(e[n])?a[n]=ot(e[n]):delete a[n]})}function UA(a,e,t,r,n,i){var o={};M(a,function(c){var h=At.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return Ch(t,s,c)}function u(c,h){Dh(t,s,c,h)}t.each(v);function v(c,h){s=c;var f=t.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=r.call(n,c),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];d[S]&&d[S].applyVisual(c,l,u)}}}function YA(a,e,t,r){var n={};return M(a,function(i){var o=At.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(_){return Ch(s,c,_)}function v(_,b){Dh(s,c,_,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var f=s.getRawDataItem(c);if(!(f&&f.visualMap===!1))for(var p=r!=null?h.get(l,c):c,d=t(p),g=e[d],y=n[d],m=0,S=y.length;m<S;m++){var x=y[m];g[x]&&g[x].applyVisual(p,u,v)}}}}}function $A(a){var e=a.brushType,t={point:function(r){return Yv[e].point(r,t,a)},rect:function(r){return Yv[e].rect(r,t,a)}};return t}var Yv={lineX:$v(0),lineY:$v(1),rect:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,e,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])&&Dr(t.range,a[0],a[1])},rect:function(a,e,t){var r=t.range;if(!a||r.length<=1)return!1;var n=a.x,i=a.y,o=a.width,s=a.height,l=r[0];if(Dr(r,n,i)||Dr(r,n+o,i)||Dr(r,n,i+s)||Dr(r,n+o,i+s)||wt.create(a).contain(l[0],l[1])||wa(n,i,n+o,i,r)||wa(n,i,n,i+s,r)||wa(n+o,i,n+o,i+s,r)||wa(n,i+s,n+o,i+s,r))return!0}}};function $v(a){var e=["x","y"],t=["width","height"];return{point:function(r,n,i){if(r){var o=i.range,s=r[a];return kr(s,o)}},rect:function(r,n,i){if(r){var o=i.range,s=[r[e[a]],r[e[a]]+r[t[a]]];return s[1]<s[0]&&s.reverse(),kr(s[0],o)||kr(s[1],o)||kr(o[0],s)||kr(o[1],s)}}}}function kr(a,e){return e[0]<=a&&a<=e[1]}var Xv=["inBrush","outOfBrush"],Ni="__ecBrushSelect",Eo="__ecInBrushSelectEvent";function wp(a){a.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Ws(e.option,a);t.setInputRanges(e.areas,a)})}function XA(a,e,t){var r=[],n,i;a.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),wp(a),a.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ot(o.areas),selected:[]};r.push(l);var u=o.option,v=u.brushLink,c=[],h=[],f=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=z(o.areas,function(_){var b=JA[_.brushType],w=Q({boundingRect:b?b(_):void 0},_);return w.selectors=$A(w),w}),g=Po(o.option,Xv,function(_){_.mappingMethod="fixed"});B(v)&&M(v,function(_){c[_]=1});function y(_){return v==="all"||!!c[_]}function m(_){return!!_.length}a.eachSeries(function(_,b){var w=f[b]=[];_.subType==="parallel"?S(_,b):x(_,b,w)});function S(_,b){var w=_.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(_.getData(),function(T,A){T==="active"&&(h[A]=1)})}function x(_,b,w){if(!(!_.brushSelector||jA(o,b))&&(M(d,function(A){o.brushTargetManager.controlSeries(A,_,a)&&w.push(A),p=p||m(w)}),y(b)&&m(w))){var T=_.getData();T.each(function(A){Kv(_,w,T,A)&&(h[A]=1)})}}a.eachSeries(function(_,b){var w={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(w);var T=f[b],A=_.getData(),I=y(b)?function(C){return h[C]?(w.dataIndex.push(A.getRawIndex(C)),"inBrush"):"outOfBrush"}:function(C){return Kv(_,T,A,C)?(w.dataIndex.push(A.getRawIndex(C)),"inBrush"):"outOfBrush"};(y(b)?p:m(T))&&UA(Xv,g,A,I)})}),KA(e,n,i,r,t)}function KA(a,e,t,r,n){if(n){var i=a.getZr();if(!i[Eo]){i[Ni]||(i[Ni]=qA);var o=Dn(i,Ni,t,e);o(a,r)}}}function qA(a,e){if(!a.isDisposed()){var t=a.getZr();t[Eo]=!0,a.dispatchAction({type:"brushSelect",batch:e}),t[Eo]=!1}}function Kv(a,e,t,r){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(a.brushSelector(r,t,o.selectors,o))return!0}}function jA(a,e){var t=a.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?dt(t,e)<0:e!==t)}var JA={rect:function(a){return qv(a.range)},polygon:function(a){for(var e,t=a.range,r=0,n=t.length;r<n;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[r];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&&qv(e)}};function qv(a){return new wt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var QA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new xs(r.getZr())).on("brush",F(this._onBrush,this)).mount()},e.prototype.render=function(t,r,n,i){this.model=t,this._updateController(t,r,n,i)},e.prototype.updateTransform=function(t,r,n,i){wp(r),this._updateController(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.updateTransform(t,r,n,i)},e.prototype.updateView=function(t,r,n,i){this._updateController(t,r,n,i)},e.prototype._updateController=function(t,r,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 r=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:ot(n),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:ot(n),$from:r})},e.type="brush",e})(kt),tT="#ddd",eT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var n=this.option;!r&&bp(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:tT},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=z(t,function(r){return jv(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=jv(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})(Pt);function jv(a,e){return ft({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Ut(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},e,!0)}var rT=["rect","polygon","lineX","lineY","keep","clear"],aT=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(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,r,n){this.render(t,r,n)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),n={};return M(t.get("type",!0),function(i){r[i]&&(n[i]=r[i])}),n},e.prototype.onclick=function(t,r,n){var i=this._brushType,o=this._brushMode;n==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.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 r={show:!0,type:rT.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 r},e})(Qt);function nT(a){a.registerComponentView(QA),a.registerComponentModel(eT),a.registerPreprocessor(WA),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,XA),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Re),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Re),dr("brush",aT)}var Jv=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-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,r=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],M(r,function(u,v){var c=xe(Og(u),""),h;Rt(u)?(h=ot(u),h.value=v):h=v,o.push(h),i.push(c)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Bt([{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})(Pt),Ap=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Ir(Jv.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})(Jv);ue(Ap,Jo.prototype);var iT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(kt),oT=(function(a){V(e,a);function e(t,r,n,i){var o=a.call(this,t,r,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})(ve),zi=Math.PI,Qv=_t(),sT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,n){if(this.model=t,this.api=n,this.ecModel=r,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 v=l.scale.getLabel({value:u});return Zt("nameValue",{noName:!0,value:v})},M(["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,r){var n=t.get(["label","position"]),i=t.get("orient"),o=uT(t,r),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":et(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"},v={horizontal:0,vertical:zi/2},c=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,d=f?h.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*zi/180;var m,S,x,_=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),w=f&&h.get("showPrevBtn",!0),T=f&&h.get("showNextBtn",!0),A=0,I=c;_==="left"||_==="bottom"?(b&&(m=[0,0],A+=g),w&&(S=[A,0],A+=g),T&&(x=[I-p,0],I-=g)):(b&&(m=[I-p,0],I-=g),w&&(S=[0,0],A+=g),T&&(x=[I-p,0],I-=g));var C=[A,I];return t.get("inverse")&&C.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:v[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:S,nextBtnPosition:x,axisExtent:C,controlSize:p,controlGap:d}},e.prototype._position=function(t,r){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Mr(),l=o.x,u=o.y+o.height;Je(s,s,[-l,-u]),Tn(s,s,-zi/2),Je(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=m(o),c=m(n.getBoundingRect()),h=m(i.getBoundingRect()),f=[n.x,n.y],p=[i.x,i.y];p[0]=f[0]=v[0][0];var d=t.labelPosOpt;if(d==null||et(d)){var g=d==="+"?0:1;S(f,c,v,1,g),S(p,h,v,1,1-g)}else{var g=d>=0?0:1;S(f,c,v,1,g),p[1]=f[1]+d}n.setPosition(f),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(x){x.originX=v[0][0]-x.x,x.originY=v[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,_,b,w,T){x[w]+=b[w][T]-_[w][T]}},e.prototype._createAxis=function(t,r){var n=r.getData(),i=r.get("axisType"),o=lT(r,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 oT("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new $;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new se({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:W({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new se({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],M(l,function(u){var v=n.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),f=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:v,y:0,onclick:F(o._changeTimeline,o,u.value)},g=tc(c,h,r,d);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Ha(g);var y=ut(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],M(u,function(v){var c=v.tickValue,h=l.getItemModel(c),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=n.dataToCoord(v.tickValue),y=new vt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:F(o._changeTimeline,o,c),silent:!1,style:St(f,{text:v.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=St(p),y.ensureState("progress").style=St(d),r.add(y),Ha(y),Qv(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),v=i.getPlayState(),c=i.get("inverse",!0);h(t.nextBtnPosition,"next",F(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",F(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,v?"stop":"play",F(this._handlePlayClick,this,!v),!0);function h(f,p,d,g){if(f){var y=ao(Dt(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=vT(i,p+"Icon",m,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});S.ensureState("emphasis").style=u,r.add(S),Ha(S)}}},e.prototype._renderCurrentPointer=function(t,r,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(c){c.draggable=!0,c.drift=F(u._handlePointerDrag,u),c.ondragend=F(u._handlePointerDragend,u),ec(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){ec(c,u._progressLine,s,n,i)}};this._currentPointer=tc(l,l,this._mainGroup,{},this._currentPointer,v)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,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,r){var n=this._toAxisCoord(t)[0],i=this._axis,o=te(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;(r||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 r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return Pe(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),n=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),v=Math.abs(u-t);v<n&&(n=v,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,n=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Qv(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(iT);function lT(a,e){if(e=e||a.get("type"),e)switch(e){case"category":return new Bg({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new Gg({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Ki}}function uT(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},a.get("padding"))}function vT(a,e,t,r){var n=r.style,i=Mh(a.get(["controlStyle",e]),r||{},new wt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function tc(a,e,t,r,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=a.get("symbol");n=Wt(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),r=ft({rectHover:!0,z2:100},r,!0);var u=va(a.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var v=ya(a.get("symbolOffset"),u);v&&(r.x=(r.x||0)+v[0],r.y=(r.y||0)+v[1]);var c=a.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,n.attr(r),n.updateTransform(),n}function ec(a,e,t,r,n,i){if(!a.dragging){var o=n.getModel("checkpointStyle"),s=r.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))a.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};a.stopAnimation(null,!0),a.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function cT(a){a.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){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),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Q({currentIndex:n.option.currentIndex},e)}),a.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function hT(a){var e=a&&a.timeline;B(e)||(e=e?[e]:[]),M(e,function(t){t&&fT(t)})}function fT(a){var e=a.type,t={number:"value",time:"time"};if(t[e]&&(a.axisType=t[e],delete a.type),rc(a),Xe(a,"controlPosition")){var r=a.controlStyle||(a.controlStyle={});Xe(r,"position")||(r.position=a.controlPosition),r.position==="none"&&!Xe(r,"show")&&(r.show=!1,delete r.position),delete a.controlPosition}M(a.data||[],function(n){Rt(n)&&!B(n)&&(!Xe(n,"value")&&Xe(n,"name")&&(n.value=n.name),rc(n))})}function rc(a){var e=a.itemStyle||(a.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=a.label||a.label||{},n=r.normal||(r.normal={}),i={normal:1,emphasis:1};M(r,function(o,s){!i[s]&&!Xe(n,s)&&(n[s]=o)}),t.label&&!Xe(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function Xe(a,e){return a.hasOwnProperty(e)}function pT(a){a.registerComponentModel(Ap),a.registerComponentView(sT),a.registerSubTypeDefaulter("timeline",function(){return"slider"}),cT(a),a.registerPreprocessor(hT)}function Us(a,e){if(!a)return!1;for(var t=B(a)?a:[a],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function za(a){Mn(a,"label",["show"])}var Oa=_t(),Te=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(jo.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,n,i){var o=this.mainType;n||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Oa(s)[o];if(!l||!l.data){Oa(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&za(l),M(l.data,function(v){v instanceof Array?(za(v[0]),za(v[1])):za(v)}),u=this.createMarkerModelFromSeries(l,this,r),W(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Oa(s)[o]=u},this)},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Zt("section",{header:this.name,blocks:[Zt("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,r){var n=Jo.prototype.getDataParams.call(this,t,r),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,r){return Oa(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Pt);ue(Te,Jo.prototype);var dT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te);function Ro(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}function gT(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}function Ga(a,e,t,r,n,i){var o=[],s=wh(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=Ys(e,l,a),v=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,v),o[i]=e.get(l,v);var c=e.get(r,v),h=Fg(e.get(r,v));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var Oi={min:tt(Ga,"min"),max:tt(Ga,"max"),average:tt(Ga,"average"),median:tt(Ga,"median")};function la(a,e){if(e){var t=a.getData(),r=a.coordinateSystem,n=r&&r.dimensions;if(!gT(e)&&!B(e.coord)&&B(n)){var i=Tp(e,t,r,a);if(e=ot(e),e.type&&Oi[e.type]&&i.baseAxis&&i.valueAxis){var o=dt(n,i.baseAxis.dim),s=dt(n,i.valueAxis.dim),l=Oi[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||!B(n))e.coord=[];else for(var u=e.coord,v=0;v<2;v++)Oi[u[v]]&&(u[v]=Ys(t,t.mapDimension(n[v]),u[v]));return e}}function Tp(a,e,t,r){var n={};return a.valueIndex!=null||a.valueDim!=null?(n.valueDataDim=a.valueIndex!=null?e.getDimension(a.valueIndex):a.valueDim,n.valueAxis=t.getAxis(yT(r,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=r.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function yT(a,e){var t=a.getData().getDimensionInfo(e);return t&&t.coordDim}function ua(a,e){return a&&a.containData&&e.coord&&!Ro(e)?a.containData(e.coord):!0}function mT(a,e,t){return a&&a.containZone&&e.coord&&t.coord&&!Ro(e)&&!Ro(t)?a.containZone(e.coord,t.coord):!0}function Mp(a,e){return a?function(t,r,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Qa(o,e[i])}:function(t,r,n,i){return Qa(t.value,e[i])}}function Ys(a,e,t){if(t==="average"){var r=0,n=0;return a.each(e,function(i,o){isNaN(i)||(r+=i,n++)}),r/n}else return t==="median"?a.getMedian(e):a.getDataExtent(e)[t==="max"?1:0]}var Gi=_t(),$s=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(t,r,n){var i=this,o=this.markerGroupMap;o.each(function(s){Gi(s).keep=!1}),r.eachSeries(function(s){var l=Te.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,n)}),o.each(function(s){!Gi(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Gi(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var n=this;M(t,function(i){var o=Te.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?Hg(l):Wg(l))})}})},e.type="marker",e})(kt);function ac(a,e,t){var r=e.coordinateSystem;a.each(function(n){var i=a.getItemModel(n),o,s=G(i.get("x"),t.getWidth()),l=G(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(a.getValues(a.dimensions,n));else if(r){var u=a.get(r.dimensions[0],n),v=a.get(r.dimensions[1],n);o=r.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),a.setItemLayout(n,o)})}var ST=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markPoint");o&&(ac(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Uo),c=xT(o,t,r);r.setData(c),ac(r.getData(),t,i),c.each(function(h){var f=c.getItemModel(h),p=f.getShallow("symbol"),d=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),m=f.getShallow("symbolKeepAspect");if(st(p)||st(d)||st(g)||st(y)){var S=r.getRawValue(h),x=r.getDataParams(h);st(p)&&(p=p(S,x)),st(d)&&(d=d(S,x)),st(g)&&(g=g(S,x)),st(y)&&(y=y(S,x))}var _=f.getModel("itemStyle").getItemStyle(),b=En(l,"color");_.fill||(_.fill=b),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:_})}),v.updateData(c),this.group.add(v.group),c.eachItemGraphicEl(function(h){h.traverse(function(f){ut(f).dataModel=r})}),this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e})($s);function xT(a,e,t){var r;a?r=z(a&&a.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return W(W({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new Bt(r,t),i=z(t.get("data"),tt(la,e));a&&(i=Lt(i,tt(ua,a)));var o=Mp(!!a,r);return n.initData(i,null,o),n}function _T(a){a.registerComponentModel(dT),a.registerComponentView(ST),a.registerPreprocessor(function(e){Us(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var bT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te),Ba=_t(),wT=function(a,e,t,r){var n=a.getData(),i;if(B(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Xt(r.yAxis,r.xAxis);else{var u=Tp(r,n,e,a);s=u.valueAxis;var v=Zg(n,u.valueDataDim);l=Ys(n,v,o)}var c=s.dim==="x"?0:1,h=1-c,f=ot(r),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var d=t.get("precision");d>=0&&le(l)&&(l=+l.toFixed(Math.min(d,20))),f.coord[c]=p.coord[c]=l,i=[f,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[la(a,i[0]),la(a,i[1]),W({},i[2])];return g[2].type=g[2].type||null,ft(g[2],g[0]),ft(g[2],g[1]),g};function pn(a){return!isNaN(a)&&!isFinite(a)}function nc(a,e,t,r){var n=1-a,i=r.dimensions[a];return pn(e[n])&&pn(t[n])&&e[a]===t[a]&&r.getAxis(i).containData(e[a])}function AT(a,e){if(a.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(nc(1,t,r,a)||nc(0,t,r,a)))return!0}return ua(a,e[0])&&ua(a,e[1])}function Bi(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get("x"),n.getWidth()),u=G(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(a.dimensions,e));else{var v=i.dimensions,c=a.get(v[0],e),h=a.get(v[1],e);s=i.dataToPoint([c,h])}if(Pn(i,"cartesian2d")){var f=i.getAxis("x"),p=i.getAxis("y"),v=i.dimensions;pn(a.get(v[0],e))?s[0]=f.toGlobalCoord(f.getExtent()[t?0:1]):pn(a.get(v[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}a.setItemLayout(e,s)}var TT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ba(o).from,u=Ba(o).to;l.each(function(v){Bi(l,v,!0,i,n),Bi(u,v,!1,i,n)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Ss);this.group.add(v.group);var c=MT(o,t,r),h=c.from,f=c.to,p=c.line;Ba(r).from=h,Ba(r).to=f,r.setData(p);var d=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),c.from.each(function(x){S(h,x,!0),S(f,x,!1)}),p.each(function(x){var _=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[h.getItemLayout(x),f.getItemLayout(x)]),_.stroke==null&&(_.stroke=h.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(x,"symbolOffset"),toSymbolRotate:f.getItemVisual(x,"symbolRotate"),toSymbolSize:f.getItemVisual(x,"symbolSize"),toSymbol:f.getItemVisual(x,"symbol"),style:_})}),v.updateData(p),c.line.eachItemGraphicEl(function(x){ut(x).dataModel=r,x.traverse(function(_){ut(_).dataModel=r})});function S(x,_,b){var w=x.getItemModel(_);Bi(x,_,b,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=En(l,"color")),x.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Dt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:Dt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:Dt(w.get("symbolSize"),g[b?0:1]),symbol:Dt(w.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e})($s);function MT(a,e,t){var r;a?r=z(a&&a.dimensions,function(u){var v=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return W(W({},v),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new Bt(r,t),i=new Bt(r,t),o=new Bt([],t),s=z(t.get("data"),tt(wT,e,a,t));a&&(s=Lt(s,tt(AT,a)));var l=Mp(!!a,r);return n.initData(z(s,function(u){return u[0]}),null,l),i.initData(z(s,function(u){return u[1]}),null,l),o.initData(z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function IT(a){a.registerComponentModel(bT),a.registerComponentView(TT),a.registerPreprocessor(function(e){Us(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var CT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te),Fa=_t(),DT=function(a,e,t,r){var n=r[0],i=r[1];if(!(!n||!i)){var o=la(a,n),s=la(a,i),l=o.coord,u=s.coord;l[0]=Xt(l[0],-1/0),l[1]=Xt(l[1],-1/0),u[0]=Xt(u[0],1/0),u[1]=Xt(u[1],1/0);var v=Fo([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function dn(a){return!isNaN(a)&&!isFinite(a)}function ic(a,e,t,r){var n=1-a;return dn(e[n])&&dn(t[n])}function LT(a,e){var t=e.coord[0],r=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return Pn(a,"cartesian2d")?t&&r&&(ic(1,t,r)||ic(0,t,r))?!0:mT(a,n,i):ua(a,n)||ua(a,i)}function oc(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get(t[0]),n.getWidth()),u=G(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var v=a.getValues(["x0","y0"],e),c=a.getValues(["x1","y1"],e),h=i.clampData(v),f=i.clampData(c),p=[];t[0]==="x0"?p[0]=h[0]>f[0]?c[0]:v[0]:p[0]=h[0]>f[0]?v[0]:c[0],t[1]==="y0"?p[1]=h[1]>f[1]?c[1]:v[1]:p[1]=h[1]>f[1]?v[1]:c[1],s=r.getMarkerPosition(p,t,!0)}else{var d=a.get(t[0],e),g=a.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Pn(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),d=a.get(t[0],e),g=a.get(t[1],e);dn(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):dn(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var sc=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],PT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=z(sc,function(c){return oc(s,l,c,i,n)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new $});this.group.add(v.group),this.markKeep(v);var c=ET(o,t,r);r.setData(c),c.each(function(h){var f=z(sc,function(T){return oc(c,h,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],S=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];te(m),te(S);var x=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),_=!x;c.setItemLayout(h,{points:f,allClipped:_});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=En(l,"color");b.fill||(b.fill=w,et(b.fill)&&(b.fill=qa(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Fa(v).data).add(function(h){var f=c.getItemLayout(h);if(!f.allClipped){var p=new re({shape:{points:f.points}});c.setItemGraphicEl(h,p),v.group.add(p)}}).update(function(h,f){var p=Fa(v).data.getItemGraphicEl(f),d=c.getItemLayout(h);d.allClipped?p&&v.group.remove(p):(p?ct(p,{shape:{points:d.points}},r,h):p=new re({shape:{points:d.points}}),c.setItemGraphicEl(h,p),v.group.add(p))}).remove(function(h){var f=Fa(v).data.getItemGraphicEl(h);v.group.remove(f)}).execute(),c.eachItemGraphicEl(function(h,f){var p=c.getItemModel(f),d=c.getItemVisual(f,"style");h.useStyle(c.getItemVisual(f,"style")),ae(h,Ht(p),{labelFetcher:r,labelDataIndex:f,defaultText:c.getName(f)||"",inheritColor:et(d.fill)?qa(d.fill,1):"#000"}),Kt(h,p),xt(h,null,null,p.get(["emphasis","disabled"])),ut(h).dataModel=r}),Fa(v).data=c,v.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e})($s);function ET(a,e,t){var r,n,i=["x0","y0","x1","y1"];if(a){var o=z(a&&a.dimensions,function(u){var v=e.getData(),c=v.getDimensionInfo(v.mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})});n=z(i,function(u,v){return{name:u,type:o[v%2].type}}),r=new Bt(n,t)}else n=[{name:"value",type:"float"}],r=new Bt(n,t);var s=z(t.get("data"),tt(DT,e,a,t));a&&(s=Lt(s,tt(LT,a)));var l=a?function(u,v,c,h){var f=u.coord[Math.floor(h/2)][h%2];return Qa(f,n[h])}:function(u,v,c,h){return Qa(u.value,n[h])};return r.initData(s,null,l),r.hasItemOption=!0,r}function RT(a){a.registerComponentModel(CT),a.registerComponentView(PT),a.registerPreprocessor(function(e){Us(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var VT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Ir(sa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(sa),Xs=_t();function kT(a,e,t){Xs(a).coordSysRecordMap.each(function(r){var n=r.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function NT(a,e){for(var t=Xs(a).coordSysRecordMap,r=t.keys(),n=0;n<r.length;n++){var i=r[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||Ip(t,o))}}}function Ip(a,e){if(e){a.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function zT(a,e){var t={model:e,containsPoint:tt(GT,e),dispatchAction:tt(OT,a),dataZoomInfoMap:null,controller:null},r=t.controller=new _a(a.getZr());return M(["pan","zoom","scrollMove"],function(n){r.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 OT(a,e){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function GT(a,e,t,r){return a.coordinateSystem.containPoint([t,r])}function BT(a){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return a.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[t+s]>r[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function FT(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=Xs(t),n=r.coordSysRecordMap||(r.coordSysRecordMap=K());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=yp(i);M(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,zT(t,s.model)),v=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());v.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){Ip(n,i);return}var v=BT(l);o.enable(v.controlType,v.opt),o.setPointerChecker(i.containsPoint),Dn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var HT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,n){if(a.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),kT(n,t,{pan:F(Fi.pan,this),zoom:F(Fi.zoom,this),scrollMove:F(Fi.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){NT(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(Bs),Fi={zoom:function(a,e,t,r){var n=this.range,i=n.slice(),o=a.axisModels[0];if(o){var s=Hi[e](null,[r.originX,r.originY],o,t,a),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/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ar(0,i,[0,100],0,v.minSpan,v.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:lc(function(a,e,t,r,n,i){var o=Hi[r]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:lc(function(a,e,t,r,n,i){var o=Hi[r]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(a[1]-a[0])*i.scrollDelta})};function lc(a){return function(e,t,r,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=a(o,s,e,t,r,n);if(ar(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Hi={grid:function(a,e,t,r,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return a=a||[0,0],i.dim==="x"?(o.pixel=e[0]-a[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(a,e,t,r,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return a=a?s.pointToCoord(a):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-a[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(a,e,t,r,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return a=a||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-a[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-a[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function Cp(a){Fs(a),a.registerComponentModel(VT),a.registerComponentView(HT),FT(a)}var WT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ir(sa.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})(sa),Nr=pt,uc=7,ZT=1,Wi=30,UT=7,zr="horizontal",vc="vertical",YT=5,$T=["line","bar","candlestick","scatter"],XT={easing:"cubicOut",duration:100,delay:0},KT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=F(this._onBrush,this),this._onBrushEnd=F(this._onBrushEnd,this)},e.prototype.render=function(t,r,n,i){if(a.prototype.render.apply(this,arguments),Dn(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(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){fh(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 r=this._displayables.sliderGroup=new $;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,n=t.get("brushSelect"),i=n?UT:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===zr?{right:s.width-o.x-o.width,top:s.height-Wi-uc-i,width:o.width,height:Wi}:{right:uc,top:o.y,width:Wi,height:o.height},u=Ah(t.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var v=ne(u,s);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===vc&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=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===zr&&!o?{scaleY:l?1:-1,scaleX:1}:n===zr&&o?{scaleY:l?1:-1,scaleX:-1}:n===vc&&!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=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Nr({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Nr({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:F(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 r=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,v=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==n[0]||r[1]!==n[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var f=[0,r[1]],p=[0,r[0]],d=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),x;o.each([l],function(A,I){if(S>0&&I%S){m+=y;return}var C=A==null||isNaN(A)||A==="",L=C?0:it(A,c,f,!0);C&&!x&&I?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!C&&x&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,x=C}),u=this._shadowPolygonPts=d,v=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var _=this.dataZoomModel;function b(A){var I=_.getModel(A?"selectedDataBackground":"dataBackground"),C=new $,L=new re({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new me({shape:{points:v},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(L),C.add(D),C}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,r=t.get("showDataShadow");if(r!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!n&&!(r!==!0&&dt($T,u.get("type"))<0)){var v=i.getComponent(De(o),s).axis,c=qT(o),h,f=u.coordinateSystem;c!=null&&f.getOtherAxis&&(h=f.getOtherAxis(v).inverse),c=u.getData().mapDimension(c),n={thisAxis:v,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,n=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,v=l.get("borderRadius")||0,c=l.get("brushSelect"),h=r.filler=new Nr({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Nr({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:v},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ZT,fill:"rgba(0,0,0,0)"}})),M([0,1],function(S){var x=l.get("handleIcon");!Ug[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var _=Wt(x,-1,0,2,2,null,!0);_.attr({cursor:cc(this._orient),draggable:!0,drift:F(this._onDragMove,this,S),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=G(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ha(_);var T=l.get("handleColor");T!=null&&(_.style.fill=T),o.add(n[S]=_);var A=l.getModel("textStyle"),I=l.get("handleLabel")||{},C=I.show||!1;t.add(i[S]=new vt({silent:!0,invisible:!C,style:St(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var f=h;if(c){var p=G(l.get("moveHandleSize"),s[1]),d=r.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=Wt(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));f=r.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),f.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:cc(this._orient),drift:F(this._onDragMove,this,"all"),ondragstart:F(this._showDataInfo,this,!0),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[it(t[0],[0,100],r,!0),it(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ar(r,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?it(s.minSpan,l,o,!0):null,s.maxSpan!=null?it(s.maxSpan,l,o,!0):null);var u=this._range,v=this._range=te([it(i[0],o,l,!0),it(i[1],o,l,!0)]);return!u||u[0]!==v[0]||u[1]!==v[1]},e.prototype._updateView=function(t){var r=this._displayables,n=this._handleEnds,i=te(n.slice()),o=this._size;M([0,1],function(f){var p=r.handles[f],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[f]+(f?-1:1),y:o[1]/2-d/2})},this),r.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]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],v=0;v<l.length;v++){var c=l[v],h=c.getClipPath();h||(h=new pt,c.setClipPath(h)),h.setShape({x:u[v],y:0,width:u[v+1]-u[v],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,v=this._range,c=t?l.calculateDataWindow({start:v[0],end:v[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=te(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var d=Sr(n.handles[p].parent,this.group),g=$o(p===0?"right":"left",d),y=this._handleWidth/2+YT,m=Pe([h[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===zr?"middle":g,align:o===zr?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,r){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return st(i)?i(t,s):et(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var r=this.dataZoomModel.get("handleLabel")||{},n=r.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,r,n,i){this._dragging=!0,je(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Pe([r,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 r=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>r[0]||n[1]<0||n[1]>r[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 r=t.offsetX,n=t.offsetY;this._brushStart=new _e(r,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var n=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=te([it(n.x,o,s,!0),it(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&&(je(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Nr({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,r),v=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:v[0],y:0,width:u[0]-v[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?XT:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=yp(this.dataZoomModel).infoList;if(!t&&r.length){var n=r[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})(Bs);function qT(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function cc(a){return a==="vertical"?"ns-resize":"ew-resize"}function Dp(a){a.registerComponentModel(WT),a.registerComponentView(KT),Fs(a)}function jT(a){X(Cp),X(Dp)}var Lp={get:function(a,e,t){var r=ot((JT[a]||{})[e]);return t&&B(r)?r[r.length-1]:r}},JT={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]}},hc=At.mapVisual,QT=At.eachVisual,tM=B,fc=M,eM=te,rM=it,gn=(function(a){V(e,a);function e(){var t=a!==null&&a.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,r,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,r){var n=this.option;!r&&bp(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=F(t,this),this.controllerVisuals=Po(this.option.controller,r,t),this.targetVisuals=Po(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){r.push(i)}):r=Gt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(n){n===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],B(t)&&(t=t.slice(),u=!0);var v=r?t:u?[c(t[0]),c(t[1])]:c(t);if(et(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(st(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+v[1]:t[1]===s[1]?n[1]+" "+v[0]:v[0]+" - "+v[1];return v;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=eM([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);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,r=this.option,n={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});ft(i,n),ft(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),v.call(this,o);function l(c){tM(r.color)&&!c.inRange&&(c.inRange={color:r.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,f){var p=c[h],d=c[f];p&&!d&&(d=c[f]={},fc(p,function(g,y){if(At.isValidType(y)){var m=Lp.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function v(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,f=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";fc(this.stateList,function(y){var m=this.itemSize,S=c[y];S||(S=c[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=h&&ot(h)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=f&&ot(f)||(s?m[0]:[m[0],m[0]])),S.symbol=hc(S.symbol,function(b){return b==="none"?g:b});var x=S.symbolSize;if(x!=null){var _=-1/0;QT(x,function(b){b>_&&(_=b)}),S.symbolSize=hc(x,function(b){return rM(b,[0,_],[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})(Pt),pc=[20,140],aM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=pc[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=pc[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):B(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=te((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,n=this.getExtent();return(r[0]<=n[0]||r[0]<=t)&&(r[1]>=n[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];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),r.push({seriesId:n.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=dc(this,"outOfRange",this.getExtent()),n=dc(this,"inRange",this.option.range.slice()),i=[];function o(f,p){i.push({value:f,color:t(f,p)})}for(var s=0,l=0,u=n.length,v=r.length;l<v&&(!n.length||r[l]<=n[0]);l++)r[l]<n[s]&&o(r[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<v;l++)(!n.length||n[n.length-1]<r[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(r[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ir(gn.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})(gn);function dc(a,e,t){if(t[0]===t[1])return t.slice();for(var r=200,n=(t[1]-t[0])/r,i=t[0],o=[],s=0;s<=r&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var Pp=(function(a){V(e,a);function e(){var t=a!==null&&a.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,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,n,i)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,n=Yg(r.get("padding")||0),i=t.getBoundingRect();t.add(new pt({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:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function v(f,p){s[f]=p}var c=o.controllerVisuals[i||o.getValueState(t)],h=At.prepareVisualTypes(c);return M(h,function(f){var p=c[f];n.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=c.__alphaForOpacity),At.dependsOn(f,r)&&p&&p.applyVisual(t,u,v)}),s[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,n=this.api;Wo(t,r.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,r,n,i){},e.type="visualMap",e})(kt),gc=[["left","right","width"],["top","bottom","height"]];function Ep(a,e,t){var r=a.option,n=r.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=gc[o],l=[0,null,10],u={},v=0;v<3;v++)u[gc[1-o][v]]=l[v],u[s[v]]=v===2?t[0]:r[s[v]];var c=[["x","width",3],["y","height",0]][o],h=ne(u,i,r.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function $a(a,e){return M(a||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),a}var pe=it,nM=M,yc=Math.min,Zi=Math.max,iM=12,oM=6,sM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,r){a.prototype.init.call(this,t,r),this._hoverLinkFromSeriesMouseOver=F(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=F(this._hideIndicator,this)},e.prototype.doRender=function(t,r,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var n=t.get("text");this._renderEndsText(r,n,0),this._renderEndsText(r,n,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,n){if(r){var i=r[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,v=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new vt({style:St(f,{x:v[0],y:v[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,n=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=Ep(r,this.api,i),u=n.mainGroup=this._createBarGroup(l),v=new $;u.add(v),v.add(n.outOfRange=mc()),v.add(n.inRange=mc(null,s?xc(this._orient):null,F(this._dragHandle,this,"all",!1),F(this._dragHandle,this,"all",!0))),v.setClipPath(new pt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=r.textStyleModel.getTextRect("国"),h=Zi(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(r,u,0,i,h,o),this._createHandle(r,u,1,i,h,o)),this._createIndicator(r,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,r,n,i,o,s){var l=F(this._dragHandle,this,n,!1),u=F(this._dragHandle,this,n,!0),v=ao(t.get("handleSize"),i[0]),c=Wt(t.get("handleIcon"),-v/2,-v/2,v,v,null,!0),h=xc(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){je(y.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Gr(c,!0),r.add(c);var f=this.visualMapModel.textStyleModel,p=new vt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){je(y.event)},ondragend:u,style:St(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[v,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,r,n,i,o){var s=ao(t.get("indicatorSize"),n[0]),l=Wt(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 ye){var v=l.style;l.useStyle(W({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},u))}else l.useStyle(u);r.add(l);var c=this.visualMapModel.textStyleModel,h=new vt({silent:!0,invisible:!0,style:St(c,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?i/2:oM)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,n,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():Sc(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[pe(r[0],n,i,!0),pe(r[1],n,i,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ar(r,i,o,t,0);var s=n.getExtent();this._dataInterval=[pe(i[0],o,s,!0),pe(i[1],o,s,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,n=r.getExtent(),i=this._shapes,o=[0,r.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,r,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 Oo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",r),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",r),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var n=this.visualMapModel.itemSize;return[[n[0]-r[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,n=this.visualMapModel.get("inverse");return new $(r==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),v=this._applyTransform("left",n.mainGroup);nM([0,1],function(c){var h=o[c];h.setStyle("fill",r.handlesColor[c]),h.y=t[c];var f=pe(t[c],[0,l[1]],u,!0),p=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=p/l[0],h.x=l[0]-p/2;var d=Pe(n.handleLabelPoints[c],Sr(h,this.group));if(this._orient==="horizontal"){var g=v==="left"||v==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,c=v.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),d=pe(t,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=Pe(v.indicatorLabelPoint,Sr(c,this.group)),S=v.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",v.mainGroup),_=this._orient,b=_==="horizontal";S.setStyle({text:(n||"")+o.formatValueText(r),verticalAlign:b?x:"middle",align:b?"center":x});var w={x:g,y:d,style:{fill:f}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,A),S.animateTo(T,A)}else c.attr(w),S.attr(T);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var C=0;C<I.length;C++)this.api.enterBlur(I[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);i[1]=yc(Zi(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,r){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=yc(Zi(o[0],t),o[1]);var l=lM(n,s,o),u=[t-l,t+l],v=pe(t,o,s,!0),c=[pe(u[0],o,s,!0),pe(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),r&&(c[0]===-1/0?this._showIndicator(v,c[1],"< ",l):c[1]===1/0?this._showIndicator(v,c[0],"> ",l):this._showIndicator(v,v,"≈ ",l));var h=this._hoverLinkDataIndices,f=[];(r||Sc(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=$g(h,f);this._dispatchHighDown("downplay",$a(p[0],n)),this._dispatchHighDown("highlight",$a(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(oh(t.target,function(l){var u=ut(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var n=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.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 r=this._shapes.handleLabels;if(r)for(var n=0;n<r.length;n++)this.api.leaveBlur(r[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",$a(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,r,n,i){var o=Sr(r,i?null:this.group);return B(t)?Pe(t,o,n):$o(t,o,n)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(Pp);function mc(a,e,t,r){return new re({shape:{points:a},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){je(n.event)},ondragend:r})}function lM(a,e,t){var r=iM/2,n=a.get("hoverLinkDataSize");return n&&(r=pe(n,e,t,!0)/2),r}function Sc(a){var e=a.get("hoverLinkOnHandle");return!!(e??a.get("realtime"))}function xc(a){return a==="vertical"?"ns-resize":"ew-resize"}var uM={type:"selectDataRange",event:"dataRangeSelected",update:"update"},vM=function(a,e){e.eachComponent({mainType:"visualMap",query:a},function(t){t.setSelected(a.selected)})},cM=[{createOnAllSeries:!0,reset:function(a,e){var t=[];return e.eachComponent("visualMap",function(r){var n=a.pipelineContext;!r.isTargetSeries(a)||n&&n.large||t.push(YA(r.stateList,r.targetVisuals,F(r.getValueState,r),r.getDataDimensionIndex(a.getData())))}),t}},{createOnAllSeries:!0,reset:function(a,e){var t=a.getData(),r=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(a)){var i=n.getVisualMeta(F(hM,null,a,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,r.push(i))}}),a.getData().setVisual("visualMeta",r)}}];function hM(a,e,t,r){for(var n=e.targetVisuals[r],i=At.prepareVisualTypes(n),o={color:En(a.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],v=n[u==="opacity"?"__alphaForOpacity":u];v&&v.applyVisual(t,c,h)}return o.color;function c(f){return o[f]}function h(f,p){o[f]=p}}var _c=M;function fM(a){var e=a&&a.visualMap;B(e)||(e=e?[e]:[]),_c(e,function(t){if(t){ur(t,"splitList")&&!ur(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&B(r)&&_c(r,function(n){Rt(n)&&(ur(n,"start")&&!ur(n,"min")&&(n.min=n.start),ur(n,"end")&&!ur(n,"max")&&(n.max=n.end))})}})}function ur(a,e){return a&&a.hasOwnProperty&&a.hasOwnProperty(e)}var bc=!1;function Rp(a){bc||(bc=!0,a.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),a.registerAction(uM,vM),M(cM,function(e){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,e)}),a.registerPreprocessor(fM))}function Vp(a){a.registerComponentModel(aM),a.registerComponentView(sM),Rp(a)}var pM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],dM[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ot(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=z(this._pieceList,function(l){return l=ot(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},n=At.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(n,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(v){u=u||o(t,v,l)||o(t.target,v,l)},this),!u&&M(this.stateList,function(v){(t[v]||(t[v]={}))[l]=Lp.get(l,v==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}a.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var n=this.option,i=this._pieceList,o=(r?n:t).selected||{};if(n.selected=o,M(i,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),n.selectedMode==="single"){var s=!1;M(i,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!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=ot(t)},e.prototype.getValueState=function(t){var r=At.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=At.findPieceIndex(l,n);v===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var n=t.interval||[];r=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],n=["",""],i=this;function o(v,c){var h=i.getRepresentValue({interval:v});c||(c=i.getValueState(h));var f=t(h,c);v[0]===-1/0?n[0]=f:v[1]===1/0?n[1]=f:r.push({value:v[0],color:f},{value:v[1],color:f})}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 M(s,function(v){var c=v.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:r,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=Ir(gn.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})(gn),dM={splitNumber:function(a){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(r[1]-r[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&a.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<n;s+=i,o++){var l=o===n-1?r[1]:s+i;a.push({interval:[s,l],close:[1,1]})}e.maxOpen&&a.push({interval:[r[1],1/0],close:[0,0]}),xl(a),M(a,function(u,v){u.index=v,u.text=this.formatValueText(u.interval)},this)},categories:function(a){var e=this.option;M(e.categories,function(t){a.push({text:this.formatValueText(t,!0),value:t})},this),wc(e,a)},pieces:function(a){var e=this.option;M(e.pieces,function(t,r){Rt(t)||(t={value:t});var n={text:"",index:r};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],v=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&o[c]==null;f++)o[c]=t[h[f]],s[c]=l[f],v[c]=f===2;o[c]==null&&(o[c]=u[c])}v[0]&&o[1]===1/0&&(s[0]=0),v[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=At.retrieveVisuals(t),a.push(n)},this),wc(e,a),xl(a),M(a,function(t){var r=t.close,n=[["<","≤"][r[1]],[">","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function wc(a,e){var t=a.inverse;(a.orient==="vertical"?!t:t)&&e.reverse()}var gM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,n=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,v=this._getViewData(),c=v.endsText,h=Xt(r.get("showLabel",!0),!c),f=!r.get("selectedMode");c&&this._renderEndsText(t,c[0],u,h,l),M(v.viewPieceList,function(p){var d=p.piece,g=new $;g.onclick=F(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=r.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],f),h){var m=this.visualMapModel.getValueState(y);g.add(new vt({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:f}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,h,l),Xg(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){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:$a(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Ep(t,this.api,t.itemSize);var n=r.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,r,n,i,o){if(r){var s=new $,l=this.visualMapModel.textStyleModel;s.add(new vt({style:St(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=z(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)?r.reverse():n&&(n=n.slice().reverse()),{viewPieceList:r,endsText:n}},e.prototype._createItemSymbol=function(t,r,n,i){var o=Wt(this.getControllerVisual(r,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(r,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var r=this.visualMapModel,n=r.option,i=n.selectedMode;if(i){var o=ot(n.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(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})(Pp);function kp(a){a.registerComponentModel(pM),a.registerComponentView(gM),Rp(a)}function yM(a){X(Vp),X(kp)}var Ac={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mM=(function(){function a(e){var t=this._condVal=et(e)?new RegExp(e):qg(e)?e:null;if(t==null){var r="";yt(r)}}return a.prototype.evaluate=function(e){var t=typeof e;return et(t)?this._condVal.test(e):le(t)?this._condVal.test(e+""):!1},a})(),SM=(function(){function a(){}return a.prototype.evaluate=function(){return this.value},a})(),xM=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},a})(),_M=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},a})(),bM=(function(){function a(){}return a.prototype.evaluate=function(){return!this.child.evaluate()},a})(),wM=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,r=t(this.valueGetterParam),n=e?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:r))return!1;return!0},a})();function Ks(a,e){if(a===!0||a===!1){var t=new SM;return t.value=a,t}var r="";return Np(a)||yt(r),a.and?Tc("and",a,e):a.or?Tc("or",a,e):a.not?AM(a,e):TM(a,e)}function Tc(a,e,t){var r=e[a],n="";B(r)||yt(n),r.length||yt(n);var i=a==="and"?new xM:new _M;return i.children=z(r,function(o){return Ks(o,t)}),i.children.length||yt(n),i}function AM(a,e){var t=a.not,r="";Np(t)||yt(r);var n=new bM;return n.child=Ks(t,e),n.child||yt(r),n}function TM(a,e){for(var t="",r=e.prepareGetValue(a),n=[],i=mt(a),o=a.parser,s=o?Lh(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var v=O(Ac,u)?Ac[u]:u,c=a[u],h=s?s(c):c,f=Kg(v,h)||v==="reg"&&new mM(h);f||yt(t),n.push(f)}}n.length||yt(t);var p=new wM;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}function Np(a){return Rt(a)&&!gh(a)}var MM=(function(){function a(e,t){this._cond=Ks(e,t)}return a.prototype.evaluate=function(){return this._cond.evaluate()},a})();function IM(a,e){return new MM(a,e)}var CM={type:"echarts:filter",transform:function(a){for(var e=a.upstream,t,r=IM(a.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;O(s,"dimension")||yt(l);var v=e.getDimensionInfo(u);return v||yt(l),{dimIdx:v.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),r.evaluate()&&n.push(t);return{data:n}}},DM={type:"echarts:sort",transform:function(a){var e=a.upstream,t=a.config,r="",n=Gt(t);n.length||yt(r);var i=[];M(n,function(v){var c=v.dimension,h=v.order,f=v.parser,p=v.incomparable;if(c==null&&yt(r),h!=="asc"&&h!=="desc"&&yt(r),p&&p!=="min"&&p!=="max"){var d="";yt(d)}if(h!=="asc"&&h!=="desc"){var g="";yt(g)}var y=e.getDimensionInfo(c);y||yt(r);var m=f?Lh(f):null;f&&!m&&yt(r),i.push({dimIdx:y.index,parser:m,comparator:new jg(h,p)})});var o=e.sourceFormat;o!==ph&&o!==Jg&&yt(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(v,c){for(var h=0;h<i.length;h++){var f=i[h],p=e.retrieveValueFromItem(v,f.dimIdx),d=e.retrieveValueFromItem(c,f.dimIdx);f.parser&&(p=f.parser(p),d=f.parser(d));var g=f.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function LM(a){a.registerTransform(CM),a.registerTransform(DM)}var PM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,r,n){a.prototype.init.call(this,t,r,n),this._sourceManager=new Qg(this),_l(this)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.call(this,t,r),_l(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ty},e})(Pt),EM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(kt);function RM(a){a.registerComponentModel(PM),a.registerComponentView(EM)}var he=qc.CMD;function mr(a,e){return Math.abs(a-e)<1e-5}function Vo(a){var e=a.data,t=a.len(),r=[],n,i=0,o=0,s=0,l=0;function u(D,P){n&&n.length>2&&r.push(n),n=[D,P]}function v(D,P,E,R){mr(D,E)&&mr(P,R)||n.push(D,P,E,R,E,R)}function c(D,P,E,R,k,N){var H=Math.abs(P-D),Z=Math.tan(H/4)*4/3,U=P<D?-1:1,q=Math.cos(D),rt=Math.sin(D),J=Math.cos(P),at=Math.sin(P),Ct=q*k+E,ce=rt*N+R,j=J*k+E,Y=at*N+R,lt=k*Z*U,nt=N*Z*U;n.push(Ct-lt*rt,ce+nt*q,j+lt*at,Y-nt*J,j,Y)}for(var h,f,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===he.L||y===he.C||y===he.Q)&&(n=[s,l])),y){case he.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case he.L:h=e[g++],f=e[g++],v(i,o,h,f),i=h,o=f;break;case he.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case he.Q:h=e[g++],f=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(h-i),o+2/3*(f-o),p+2/3*(h-p),d+2/3*(f-d),p,d),i=p,o=d;break;case he.A:var S=e[g++],x=e[g++],_=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var A=!e[g++];h=Math.cos(w)*_+S,f=Math.sin(w)*b+x,m?(s=h,l=f,u(s,l)):v(i,o,h,f),i=Math.cos(T)*_+S,o=Math.sin(T)*b+x;for(var I=(A?-1:1)*Math.PI/2,C=w;A?C>T:C<T;C+=I){var L=A?Math.max(C+I,T):Math.min(C+I,T);c(C,L,S,x,_,b)}break;case he.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],f=l+e[g++],u(h,l),v(h,l,h,f),v(h,f,s,f),v(s,f,s,l),v(s,l,h,l);break;case he.Z:n&&v(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&r.push(n),r}function ko(a,e,t,r,n,i,o,s,l,u){if(mr(a,t)&&mr(e,r)&&mr(n,o)&&mr(i,s)){l.push(o,s);return}var v=2/u,c=v*v,h=o-a,f=s-e,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var d=t-a,g=r-e,y=n-o,m=i-s,S=d*d+g*g,x=y*y+m*m;if(S<c&&x<c){l.push(o,s);return}var _=h*d+f*g,b=-h*y-f*m,w=S-_*_,T=x-b*b;if(w<c&&_>=0&&T<c&&b>=0){l.push(o,s);return}var A=[],I=[];tn(a,t,n,o,.5,A),tn(e,r,i,s,.5,I),ko(A[0],I[0],A[1],I[1],A[2],I[2],A[3],I[3],l,u),ko(A[4],I[4],A[5],I[5],A[6],I[6],A[7],I[7],l,u)}function VM(a,e){var t=Vo(a),r=[];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 v=i[u++],c=i[u++],h=i[u++],f=i[u++],p=i[u++],d=i[u++];ko(s,l,v,c,h,f,p,d,o,e),s=p,l=d}r.push(o)}return r}function zp(a,e,t){var r=a[e],n=a[1-e],i=Math.abs(r/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 v=o*s,c=t-v;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Mc(a,e,t){for(var r=a.r0,n=a.r,i=a.startAngle,o=a.endAngle,s=Math.abs(o-i),l=s*n,u=n-r,v=l>Math.abs(u),c=zp([l,u],v?0:1,e),h=(v?s:u)/c.length,f=0;f<c.length;f++)for(var p=(v?u:s)/c[f],d=0;d<c[f];d++){var g={};v?(g.startAngle=i+h*f,g.endAngle=i+h*(f+1),g.r0=r+p*d,g.r=r+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=r+h*f,g.r=r+h*(f+1)),g.clockwise=a.clockwise,g.cx=a.cx,g.cy=a.cy,t.push(g)}}function kM(a,e,t){for(var r=a.width,n=a.height,i=r>n,o=zp([r,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",v=i?"y":"x",c=a[s]/o.length,h=0;h<o.length;h++)for(var f=a[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[v]=p*f,d[s]=c,d[l]=f,d.x+=a.x,d.y+=a.y,t.push(d)}}function Ic(a,e,t,r){return a*r-t*e}function NM(a,e,t,r,n,i,o,s){var l=t-a,u=r-e,v=o-n,c=s-i,h=Ic(v,c,l,u);if(Math.abs(h)<1e-6)return null;var f=a-n,p=e-i,d=Ic(f,p,v,c)/h;return d<0||d>1?null:new _e(d*l+a,d*u+e)}function zM(a,e,t){var r=new _e;_e.sub(r,t,e),r.normalize();var n=new _e;_e.sub(n,a,e);var i=n.dot(r);return i}function vr(a,e){var t=a[a.length-1];t&&t[0]===e[0]&&t[1]===e[1]||a.push(e)}function OM(a,e,t){for(var r=a.length,n=[],i=0;i<r;i++){var o=a[i],s=a[(i+1)%r],l=NM(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:zM(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:a},{points:a}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],v=n[n.length-1];if(v.idx<u.idx){var c=u;u=v,v=c}for(var h=[u.pt.x,u.pt.y],f=[v.pt.x,v.pt.y],p=[h],d=[f],i=u.idx+1;i<=v.idx;i++)vr(p,a[i].slice());vr(p,f),vr(p,h);for(var i=v.idx+1;i<=u.idx+r;i++)vr(d,a[i%r].slice());return vr(d,h),vr(d,f),[{points:p},{points:d}]}function Cc(a){var e=a.points,t=[],r=[];In(e,t,r);var n=new wt(t[0],t[1],r[0]-t[0],r[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new _e,v=new _e;return i>o?(u.x=v.x=s+i/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+i),OM(e,u,v)}function yn(a,e,t,r){if(t===1)r.push(e);else{var n=Math.floor(t/2),i=a(e);yn(a,i[0],n,r),yn(a,i[1],t-n,r)}return r}function GM(a,e){for(var t=[],r=0;r<e;r++)t.push(Qo(a));return t}function BM(a,e){e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel}function FM(a){for(var e=[],t=0;t<a.length;)e.push([a[t++],a[t++]]);return e}function HM(a,e){var t=[],r=a.shape,n;switch(a.type){case"rect":kM(r,e,t),n=pt;break;case"sector":Mc(r,e,t),n=tr;break;case"circle":Mc({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,t),n=tr;break;default:var i=a.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=z(VM(a.getUpdatedPathProxy(),o),function(y){return FM(y)}),l=s.length;if(l===0)yn(Cc,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var v=0,c=z(s,function(y){var m=[],S=[];In(y,m,S);var x=(S[1]-m[1])*(S[0]-m[0]);return v+=x,{poly:y,area:x}});c.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var f=c[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(f.area/v*e);p<0||(yn(Cc,{points:f.poly},p,t),h-=p)}}n=re;break}if(!n)return GM(a,e);for(var d=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),BM(a,g),d.push(g)}return d}function WM(a,e){var t=a.length,r=e.length;if(t===r)return[a,e];for(var n=[],i=[],o=t<r?a:e,s=Math.min(t,r),l=Math.abs(r-t)/6,u=(s-2)/6,v=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],d=o[f-1],g=o[f++],y=o[f++],m=o[f++],S=o[f++],x=o[f++],_=o[f++];if(h<=0){c.push(g,y,m,S,x,_);continue}for(var b=Math.min(h,v-1)+1,w=1;w<=b;w++){var T=w/b;tn(p,g,m,x,T,n),tn(d,y,S,_,T,i),p=n[3],d=i[3],c.push(n[1],i[1],n[2],i[2],p,d),g=n[5],y=i[5],m=n[6],S=i[6]}h-=b-1}return o===a?[c,e]:[a,c]}function Dc(a,e){for(var t=a.length,r=a[t-2],n=a[t-1],i=[],o=0;o<e.length;)i[o++]=r,i[o++]=n;return i}function ZM(a,e){for(var t,r,n,i=[],o=[],s=0;s<Math.max(a.length,e.length);s++){var l=a[s],u=e[s],v=void 0,c=void 0;l?u?(t=WM(l,u),v=t[0],c=t[1],r=v,n=c):(c=Dc(n||l,l),v=l):(v=Dc(r||u,u),c=u),i.push(v),o.push(c)}return[i,o]}function Lc(a){for(var e=0,t=0,r=0,n=a.length,i=0,o=n-2;i<n;o=i,i+=2){var s=a[o],l=a[o+1],u=a[i],v=a[i+1],c=s*v-u*l;e+=c,t+=(s+u)*c,r+=(l+v)*c}return e===0?[a[0]||0,a[1]||0]:[t/e/3,r/e/3,e]}function UM(a,e,t,r){for(var n=(a.length-2)/6,i=1/0,o=0,s=a.length,l=s-2,u=0;u<n;u++){for(var v=u*6,c=0,h=0;h<s;h+=2){var f=h===0?v:(v+h-2)%l+2,p=a[f]-t[0],d=a[f+1]-t[1],g=e[h]-r[0],y=e[h+1]-r[1],m=g-p,S=y-d;c+=m*m+S*S}c<i&&(i=c,o=u)}return o}function YM(a){for(var e=[],t=a.length,r=0;r<t;r+=2)e[r]=a[t-r-2],e[r+1]=a[t-r-1];return e}function $M(a,e,t,r){for(var n=[],i,o=0;o<a.length;o++){var s=a[o],l=e[o],u=Lc(s),v=Lc(l);i==null&&(i=u[2]<0!=v[2]<0);var c=[],h=[],f=0,p=1/0,d=[],g=s.length;i&&(s=YM(s));for(var y=UM(s,l,u,v)*6,m=g-2,S=0;S<m;S+=2){var x=(y+S)%m+2;c[S+2]=s[x]-u[0],c[S+3]=s[x+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var _=r/t,b=-r/2;b<=r/2;b+=_){for(var w=Math.sin(b),T=Math.cos(b),A=0,S=0;S<s.length;S+=2){var I=c[S],C=c[S+1],L=l[S]-v[0],D=l[S+1]-v[1],P=L*T-D*w,E=L*w+D*T;d[S]=P,d[S+1]=E;var R=P-I,k=E-C;A+=R*R+k*k}if(A<p){p=A,f=b;for(var N=0;N<d.length;N++)h[N]=d[N]}}n.push({from:c,to:h,fromCp:u,toCp:v,rotation:-f})}return n}function mn(a){return a.__isCombineMorphing}var Op="__mOriginal_";function Sn(a,e,t){var r=Op+e,n=a[r]||a[e];a[r]||(a[r]=a[e]);var i=t.replace,o=t.after,s=t.before;a[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 Xr(a,e){var t=Op+e;a[t]&&(a[e]=a[t],a[t]=null)}function Pc(a,e){for(var t=0;t<a.length;t++)for(var r=a[t],n=0;n<r.length;){var i=r[n],o=r[n+1];r[n++]=e[0]*i+e[2]*o+e[4],r[n++]=e[1]*i+e[3]*o+e[5]}}function Gp(a,e){var t=a.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),n=ZM(Vo(t),Vo(r)),i=n[0],o=n[1],s=a.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Pc(i,s),l&&Pc(o,l),Sn(e,"updateTransform",{replace:u}),e.transform=null;var v=$M(i,o,10,Math.PI),c=[];Sn(e,"buildPath",{replace:function(h){for(var f=e.__morphT,p=1-f,d=[],g=0;g<v.length;g++){var y=v[g],m=y.from,S=y.to,x=y.rotation*f,_=y.fromCp,b=y.toCp,w=Math.sin(x),T=Math.cos(x);ey(d,_,b,f);for(var A=0;A<m.length;A+=2){var I=m[A],C=m[A+1],L=S[A],D=S[A+1],P=I*p+L*f,E=C*p+D*f;c[A]=P*T-E*w+d[0],c[A+1]=P*w+E*T+d[1]}var R=c[0],k=c[1];h.moveTo(R,k);for(var A=2;A<m.length;){var L=c[A++],D=c[A++],N=c[A++],H=c[A++],Z=c[A++],U=c[A++];R===L&&k===D&&N===Z&&H===U?h.lineTo(Z,U):h.bezierCurveTo(L,D,N,H,Z,U),R=Z,k=U}}}})}function qs(a,e,t){if(!a||!e)return e;var r=t.done,n=t.during;Gp(a,e),e.__morphT=0;function i(){Xr(e,"buildPath"),Xr(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Q({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),r&&r()}},t)),e}function XM(a,e,t,r,n,i){var o=16;a=n===t?0:Math.round(32767*(a-t)/(n-t)),e=i===r?0:Math.round(32767*(e-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var v=0,c=0;(a&u)>0&&(v=1),(e&u)>0&&(c=1),s+=u*u*(3*v^c),c===0&&(v===1&&(a=u-1-a,e=u-1-e),l=a,a=e,e=l)}return s}function xn(a){var e=1/0,t=1/0,r=-1/0,n=-1/0,i=z(a,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(v,e),t=Math.min(c,t),r=Math.max(v,r),n=Math.max(c,n),[v,c]}),o=z(i,function(s,l){return{cp:s,z:XM(s[0],s[1],e,t,r,n),path:a[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Bp(a){return HM(a.path,a.count)}function No(){return{fromIndividuals:[],toIndividuals:[],count:0}}function KM(a,e,t){var r=[];function n(_){for(var b=0;b<_.length;b++){var w=_[b];mn(w)?n(w.childrenRef()):w instanceof Vt&&r.push(w)}}n(a);var i=r.length;if(!i)return No();var o=t.dividePath||Bp,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),No();r=xn(r),s=xn(s);for(var l=t.done,u=t.during,v=t.individualDelay,c=new gr,h=0;h<i;h++){var f=r[h],p=s[h];p.parent=e,p.copyTransform(c),v||Gp(f,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}Sn(e,"addSelfToZr",{after:function(_){d(_)}}),Sn(e,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Xr(e,"addSelfToZr"),Xr(e,"removeSelfFromZr")}var y=s.length;if(v)for(var m=y,S=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var x=v?Q({delay:(t.delay||0)+v(h,y,r[h],s[h]),done:S},t):t;qs(r[h],s[h],x)}else e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(_){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<a.length;_++)Xr(a[_],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function qM(a,e,t){var r=e.length,n=[],i=t.dividePath||Bp;function o(f){for(var p=0;p<f.length;p++){var d=f[p];mn(d)?o(d.childrenRef()):d instanceof Vt&&n.push(d)}}if(mn(a)){o(a.childrenRef());var s=n.length;if(s<r)for(var l=0,u=s;u<r;u++)n.push(Qo(n[l++%s]));n.length=r}else{n=i({path:a,count:r});for(var v=a.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(v);if(n.length!==r)return console.error("Invalid morphing: unmatched splitted path"),No()}n=xn(n),e=xn(e);for(var c=t.individualDelay,u=0;u<r;u++){var h=c?Q({delay:(t.delay||0)+c(u,r,n[u],e[u])},t):t;qs(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function Ec(a){return B(a[0])}function Rc(a,e){for(var t=[],r=a.length,n=0;n<r;n++)t.push({one:a[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%r].many.push(e[n][o])}for(var s=0,n=r-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 jM={clone:function(a){for(var e=[],t=1-Math.pow(1-a.path.style.opacity,1/a.count),r=0;r<a.count;r++){var n=Qo(a.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Ui(a,e,t,r,n,i){if(!a.length||!e.length)return;var o=Sa("update",r,n);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;Ec(a)&&(u=a,v=e),Ec(e)&&(u=e,v=a);function c(y,m,S,x,_){var b=y.many,w=y.one;if(b.length===1&&!_){var T=m?b[0]:w,A=m?w:b[0];if(mn(T))c({many:[T],one:A},!0,S,x,!0);else{var I=s?Q({delay:s(S,x)},l):l;qs(T,A,I),i(T,A,T,A,I)}}else for(var C=Q({dividePath:jM[t],individualDelay:s&&function(k,N,H,Z){return s(k+S,x)}},l),L=m?KM(b,w,C):qM(w,b,C),D=L.fromIndividuals,P=L.toIndividuals,E=D.length,R=0;R<E;R++){var I=s?Q({delay:s(R,E)},l):l;i(D[R],P[R],m?b[R]:y.one,m?y.one:b[R],I)}}for(var h=u?u===a:a.length>e.length,f=u?Rc(v,u):Rc(h?e:a,[h?a:e]),p=0,d=0;d<f.length;d++)p+=f[d].many.length;for(var g=0,d=0;d<f.length;d++)c(f[d],h,g,p),g+=f[d].many.length}function Ye(a){if(!a)return[];if(B(a)){for(var e=[],t=0;t<a.length;t++)e.push(Ye(a[t]));return e}var r=[];return a.traverse(function(n){n instanceof Vt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&r.push(n)}),r}var Fp=1e4,JM=0,Vc=1,kc=2,QM=_t();function tI(a,e){for(var t=a.dimensions,r=0;r<t.length;r++){var n=a.getDimensionInfo(t[r]);if(n&&n.otherDims[e]===0)return t[r]}}function eI(a,e,t){var r=a.getDimensionInfo(t),n=r&&r.ordinalMeta;if(r){var i=a.get(r.name,e);return n&&n.categories[i]||i+""}}function Nc(a,e,t,r){var n=r?"itemChildGroupId":"itemGroupId",i=tI(a,n);if(i){var o=eI(a,e,i);return o}var s=a.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return t||a.getId(e)}function zc(a){var e=[];return M(a,function(t){var r=t.data,n=t.dataGroupId;if(!(r.count()>Fp))for(var i=r.getIndices(),o=0;o<i.length;o++)e.push({data:r,groupId:Nc(r,o,n,!1),childGroupId:Nc(r,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Yi(a,e,t){a.traverse(function(r){r instanceof Vt&&Ft(r,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function $i(a){if(a.parent){var e=a.getComputedTransform();a.setLocalTransform(e),a.parent.remove(a)}}function cr(a){a.stopAnimation(),a.isGroup&&a.traverse(function(e){e.stopAnimation()})}function rI(a,e,t){var r=Sa("update",t,e);r&&a.traverse(function(n){if(n instanceof Qe){var i=ry(n);i&&n.animateFrom({style:i},r)}})}function aI(a,e){var t=a.length;if(t!==e.length)return!1;for(var r=0;r<t;r++){var n=a[r],i=e[r];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Hp(a,e,t){var r=zc(a),n=zc(e);function i(S,x,_,b,w){(_||S)&&x.animateFrom({style:_&&_!==S?W(W({},_.style),S.style):S.style},w)}var o=!1,s=JM,l=K(),u=K();r.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var v=0;v<n.length;v++){var c=n[v].groupId;if(u.get(c)){s=Vc;break}var h=n[v].childGroupId;if(h&&l.get(h)){s=kc;break}}function f(S,x){return function(_){var b=_.data,w=_.dataIndex;return x?b.getId(w):S?s===Vc?_.childGroupId:_.groupId:s===kc?_.childGroupId:_.groupId}}var p=aI(r,n),d={};if(!p)for(var v=0;v<n.length;v++){var g=n[v],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(S,x){var _=r[x],b=n[S],w=b.data.hostModel,T=_.data.getItemGraphicEl(_.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(T===A){A&&rI(A,b.dataIndex,w);return}T&&d[T.id]||A&&(cr(A),T?(cr(T),$i(T),o=!0,Ui(Ye(T),Ye(A),b.divide,w,S,i)):Yi(A,w,S))}new ke(r,n,f(!0,p),f(!1,p),null,"multiple").update(m).updateManyToOne(function(S,x){var _=n[S],b=_.data,w=b.hostModel,T=b.getItemGraphicEl(_.dataIndex),A=Lt(z(x,function(I){return r[I].data.getItemGraphicEl(r[I].dataIndex)}),function(I){return I&&I!==T&&!d[I.id]});T&&(cr(T),A.length?(M(A,function(I){cr(I),$i(I)}),o=!0,Ui(Ye(A),Ye(T),_.divide,w,S,i)):Yi(T,w,_.dataIndex))}).updateOneToMany(function(S,x){var _=r[x],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&d[b.id])){var w=Lt(z(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==b}),T=n[S[0]].data.hostModel;w.length&&(M(w,function(A){return cr(A)}),b?(cr(b),$i(b),o=!0,Ui(Ye(b),Ye(w),_.divide,T,S[0],i)):M(w,function(A){return Yi(A,T,S[0])}))}}).updateManyToMany(function(S,x){new ke(x,S,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,b){m(S[_],x[b])}).execute()}).execute(),o&&M(e,function(S){var x=S.data,_=x.hostModel,b=_&&t.getViewOfSeriesModel(_),w=Sa("update",_,0);b&&_.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Vt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function Oc(a){var e=a.getModel("universalTransition").get("seriesKey");return e||a.id}function Gc(a){return B(a)?a.sort().join(","):a}function Me(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function nI(a,e){var t=K(),r=K(),n=K();return M(a.oldSeries,function(i,o){var s=a.oldDataGroupIds[o],l=a.oldData[o],u=Oc(i),v=Gc(u);r.set(v,{dataGroupId:s,data:l}),B(u)&&M(u,function(c){n.set(c,{key:v,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Oc(i),u=Gc(l),v=r.get(u);if(v)t.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Me(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Me(s),data:s}]});else if(B(l)){var c=[];M(l,function(p){var d=r.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Me(d.data),data:d.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Me(s)}]})}else{var h=n.get(l);if(h){var f=t.get(h.key);f||(f={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Me(h.data)}],newSeries:[]},t.set(h.key,f)),f.newSeries.push({dataGroupId:o,data:s,divide:Me(s)})}}}}),t}function Bc(a,e){for(var t=0;t<a.length;t++){var r=e.seriesIndex!=null&&e.seriesIndex===a[t].seriesIndex||e.seriesId!=null&&e.seriesId===a[t].id;if(r)return t}}function iI(a,e,t,r){var n=[],i=[];M(Gt(a.from),function(o){var s=Bc(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Me(e.oldData[s]),groupIdDim:o.dimension})}),M(Gt(a.to),function(o){var s=Bc(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Me(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&Hp(n,i,r)}function oI(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(Gt(r.seriesTransition),function(n){M(Gt(n.to),function(i){for(var o=r.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][Yn]=!0)})})}),a.registerUpdateLifecycle("series:transition",function(e,t,r){var n=QM(t);if(n.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)M(Gt(i),function(f){iI(f,n,r,t)});else{var o=nI(n,r);M(o.keys(),function(f){var p=o.get(f);Hp(p.oldSeries,p.newSeries,t)})}M(r.updatedSeries,function(f){f[Yn]&&(f[Yn]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],v=n.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<Fp&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),v.push(h))}})}X([ay]);X([Wm]);X([ny,iy,oy,sy,t0,B0,pS,jS,S1,T1,V1,Cx,Qx,v_,M_,L_,B_,$_,nb,vb,xb,aw]);X(ly);X(Dw);X(tf);X(Hw);X(Bf);X(Yw);X(eA);X(FA);X(uy);X(qo);X(nT);X(vy);X(pT);X(_T);X(IT);X(RT);X(cy);X(jT);X(Cp);X(Dp);X(yM);X(Vp);X(kp);X(hy);X(LM);X(RM);X(oI);X(um);const sI=Object.freeze(Object.defineProperty({__proto__:null,Axis:ve,ChartView:Tt,ComponentModel:Pt,ComponentView:kt,List:Bt,Model:Ut,PRIORITY:fy,SeriesModel:It,color:py,connect:dy,dataTool:gy,dependencies:yy,disConnect:my,disconnect:Sy,dispose:xy,env:jo,extendChartView:_y,extendComponentModel:by,extendComponentView:wy,extendSeriesModel:Ay,format:Ty,getCoordinateSystemDimensions:My,getInstanceByDom:Iy,getInstanceById:Cy,getMap:Dy,graphic:Ly,helper:Py,init:Ey,innerDrawElementOnCanvas:Ry,matrix:Vy,number:ky,parseGeoJSON:qi,parseGeoJson:qi,registerAction:fa,registerCoordinateSystem:Ny,registerLayout:zy,registerLoading:Oy,registerLocale:Gy,registerMap:By,registerPostInit:Fy,registerPostUpdate:Hy,registerPreprocessor:Wy,registerProcessor:Zy,registerTheme:Uy,registerTransform:Yy,registerUpdateLifecycle:$y,registerVisual:Xy,setCanvasCreator:Ky,setPlatformAPI:qy,throttle:jy,time:Jy,use:X,util:Qy,vector:tm,version:em,zrUtil:rm,zrender:am},Symbol.toStringTag,{value:"Module"}));var Fc=nm();function Hc(a,e){var t={};return e.forEach(function(r){t[r]=a[r]}),t}function Xi(a){return typeof a=="function"}function lI(a){return typeof a=="string"}var uI=Wp();const hr=Zp(uI);var vI=(function(a){Wc(e,a);function e(t){var r=a.call(this,t)||this;return r.echarts=t.echarts,r.ele=null,r.isInitialResize=!0,r.eventHandlerRefs={},r}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var r=this.props.shouldSetOption;if(!(Xi(r)&&!r(t,this.props))){if(!hr(t.theme,this.props.theme)||!hr(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();hr(t.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];hr(Hc(this.props,i),Hc(t,i))||this.updateEChartsOption(),(!hr(t.style,this.props.style)||!hr(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return Js(this,void 0,void 0,function(){var t=this;return Qs(this,function(r){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=Fn({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{Fc.clear(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return Js(this,void 0,void 0,function(){var t,r,n,i,o,s,l=this;return Qs(this,function(u){switch(u.label){case 0:return t=this.props,r=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,r||{}),Xi(n)&&n(s),this.ele&&o&&Fc.bind(this.ele,function(){l.resize()}),[2]}})})},e.prototype.bindEvents=function(t,r){var n=this,i=function(s,l){if(lI(s)&&Xi(l)){var u=function(v){l(v,t)};t.on(s,u),n.eventHandlerRefs[s]=u}};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i(o,r[o])},e.prototype.unbindEvents=function(t){for(var r=0,n=Object.entries(this.eventHandlerRefs);r<n.length;r++){var i=n[r],o=i[0],s=i[1];t.off(o,s)}this.eventHandlerRefs={}},e.prototype.updateEChartsOption=function(){var t=this.props,r=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,v=t.showLoading,c=t.loadingOption,h=c===void 0?null:c,f=this.getEchartsInstance();return f.setOption(r,{notMerge:i,replaceMerge:s,lazyUpdate:u}),v?f.showLoading(h):f.hideLoading(),f},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(r){console.warn(r)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,r=this.props,n=r.style,i=r.className,o=i===void 0?"":i;r.echarts,r.option,r.theme,r.notMerge,r.replaceMerge,r.lazyUpdate,r.showLoading,r.loadingOption,r.opts,r.onChartReady,r.onEvents,r.shouldSetOption,r.autoResize;var s=Up(r,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=Fn({height:300},n);return Yp.createElement("div",Fn({ref:function(u){t.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},e})($p.PureComponent),fI=(function(a){Wc(e,a);function e(t){var r=a.call(this,t)||this;return r.echarts=sI,r}return e})(vI);export{fI as default};
|
|
19
|
+
`),meta:e.meta}}function hn(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vA(a){var e=a.slice(0,a.indexOf(`
|
|
20
|
+
`));if(e.indexOf(wr)>=0)return!0}var To=new RegExp("["+wr+"]+","g");function cA(a){for(var e=a.split(/\n+/g),t=hn(e.shift()).split(To),r=[],n=z(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=hn(e[i]).split(To);r.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:r}}function hA(a){for(var e=a.split(/\n+/g),t=hn(e.shift()),r=[],n=0;n<e.length;n++){var i=hn(e[n]);if(i){var o=i.split(To),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[n]={name:s,value:[]},l=r[n].value):l=r[n]=[];for(var v=0;v<o.length;v++)l.push(+o[v]);l.length===1&&(u?r[n].value=l[0]:r[n]=l[0])}}return{name:t,data:r}}function fA(a,e){var t=a.split(new RegExp(`
|
|
21
|
+
*`+Gn+`
|
|
22
|
+
*`,"g")),r={series:[]};return M(t,function(n,i){if(vA(n)){var o=cA(n),s=e[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=hA(n);r.series.push(o)}}),r}var pA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var n=r.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),v=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),f=uA(t);if(st(c)){var p=c(r.getOption());et(p)?u.innerHTML=p:wg(p)&&u.appendChild(p)}else{v.readOnly=i.get("readOnly");var d=v.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),v.value=f.value,u.appendChild(v)}var g=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(o),_._dom=null}pl(S,"click",b),pl(x,"click",function(){if(h==null&&c!=null||h!=null&&c==null){b();return}var w;try{st(h)?w=h(u,r.getOption()):w=fA(v.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),b()}),S.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e})(Qt);function dA(a,e){return z(a,function(t,r){var n=e&&e[r];if(Rt(n)&&!B(n)){var i=Rt(t)&&!B(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=Q(t,n),o&&delete t.name,t}else return t})}ha({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(a,e){var t=[];M(a.newOption.series,function(r){var n=e.getSeriesByName(r.name)[0];if(!n)t.push(W({type:"scatter"},r));else{var i=n.get("data");t.push({name:r.name,data:dA(r.data,i)})}}),e.mergeOption(Q({series:t},a.newOption))});var hp=M,fp=_t();function gA(a,e){var t=Gs(a);hp(e,function(r,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function yA(a){var e=Gs(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return hp(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){r[i]=n;break}}),r}function mA(a){fp(a).snapshots=null}function SA(a){return Gs(a).length}function Gs(a){var e=fp(a);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var xA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){mA(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e})(Qt);ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,e){e.resetOption("recreate")});var _A=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Bs=(function(){function a(e,t,r){var n=this;this._targetInfoList=[];var i=Ev(t,e);M(bA,function(o,s){(!r||!r.include||dt(r.include,s)>=0)&&o(i,n._targetInfoList)})}return a.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,n,i){if((r.coordRanges||(r.coordRanges=[])).push(n),!r.coordRange){r.coordRange=n;var o=Ri[r.brushType](0,i,n);r.__rangeOffset={offset:Nv[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},a.prototype.matchOutputRanges=function(e,t,r){M(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=Ri[n.brushType](1,o,n.range,!0);r(n,s.values,o,t)})},this)},a.prototype.setInputRanges=function(e,t){M(e,function(r){var n=this.findTargetInfo(r,t);if(r.range=r.range||[],n&&n!==!0){r.panelId=n.panelId;var i=Ri[r.brushType](0,n.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?Nv[r.brushType](i.values,o.offset,wA(i.xyMinMax,o.xyMinMax)):i.values}},this)},a.prototype.makePanelOpts=function(e,t){return z(this._targetInfoList,function(r){var n=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:If(n),isTargetByCursor:Pf(n,e,r.coordSysModel),getLinearBrushOtherExtent:Lf(n)}})},a.prototype.controlSeries=function(e,t,r){var n=this.findTargetInfo(e,r);return n===!0||n&&dt(n.coordSyses,t.coordinateSystem)>=0},a.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,n=Ev(t,e),i=0;i<r.length;i++){var o=r[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Rv.length;l++)if(Rv[l](n,o))return o}return!0},a})();function Mo(a){return a[0]>a[1]&&a.reverse(),a}function Ev(a,e){return Sh(a,e,{includeMainTypes:_A})}var bA={grid:function(a,e){var t=a.xAxisModels,r=a.yAxisModels,n=a.gridModels,i=K(),o={},s={};!t&&!r&&!n||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,v=[];M(u.getCartesians(),function(c,h){(dt(t,c.getAxis("x").model)>=0||dt(r,c.getAxis("y").model)>=0)&&v.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:Vv.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(a,e){M(a.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:Vv.geo})})}},Rv=[function(a,e){var t=a.xAxisModel,r=a.yAxisModel,n=a.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&r&&(n=r.axis.grid.model),n&&n===e.gridModel},function(a,e){var t=a.geoModel;return t&&t===e.geoModel}],Vv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,e=a.getBoundingRect().clone();return e.applyTransform(mr(a)),e}},Ri={lineX:tt(kv,0),lineY:tt(kv,1),rect:function(a,e,t,r){var n=a?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=a?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[Mo([n[0],i[0]]),Mo([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(a,e,t,r){var n=[[1/0,-1/0],[1/0,-1/0]],i=z(t,function(o){var s=a?e.pointToData(o,r):e.dataToPoint(o,r);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function kv(a,e,t,r){var n=t.getAxis(["x","y"][a]),i=Mo(z([0,1],function(s){return e?n.coordToData(n.toLocalCoord(r[s]),!0):n.toGlobalCoord(n.dataToCoord(r[s]))})),o=[];return o[a]=i,o[1-a]=[NaN,NaN],{values:i,xyMinMax:o}}var Nv={lineX:tt(zv,0),lineY:tt(zv,1),rect:function(a,e,t){return[[a[0][0]-t[0]*e[0][0],a[0][1]-t[0]*e[0][1]],[a[1][0]-t[1]*e[1][0],a[1][1]-t[1]*e[1][1]]]},polygon:function(a,e,t){return z(a,function(r,n){return[r[0]-t[0]*e[n][0],r[1]-t[1]*e[n][1]]})}};function zv(a,e,t,r){return[e[0]-r[a]*t[0],e[1]-r[a]*t[1]]}function wA(a,e){var t=Ov(a),r=Ov(e),n=[t[0]/r[0],t[1]/r[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Ov(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}var Co=M,AA=Tg("toolbox-dataZoom_"),TA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n,i){this._brushController||(this._brushController=new ys(n.getZr()),this._brushController.on("brush",F(this._onBrush,this)).mount()),DA(t,r,this,i,n),CA(t,r)},e.prototype.onclick=function(t,r,n){MA[n].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Bs(Fs(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,v,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,v[0]),s("y",c,v[1])):s({lineX:"x",lineY:"y"}[h],c,v)}}),gA(i,n),this._dispatchZoomAction(n);function s(u,v,c){var h=v.getAxis(u),f=h.model,p=l(u,f,i),d=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=ar(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,v,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,v.componentIndex);p&&(h=f)}),h}},e.prototype._dispatchZoomAction=function(t){var r=[];Co(t,function(n,i){r.push(ot(n))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e})(Qt),MA={zoom:function(){var a=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:a})},back:function(){this._dispatchZoomAction(yA(this.ecModel))}};function Fs(a){var e={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function CA(a,e){a.setIconStatus("back",SA(e)>1?"emphasis":"normal")}function DA(a,e,t,r,n){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,a.setIconStatus("zoom",i?"emphasis":"normal");var o=new Bs(Fs(a),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()}:!1)}Ag("dataZoom",function(a){var e=a.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),n=[],i=Fs(r),o=Sh(a,i);Co(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Co(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:AA+u+c};h[v]=c,n.push(h)}return n});function IA(a){a.registerComponentModel(tA),a.registerComponentView(eA),pr("saveAsImage",aA),pr("magicType",iA),pr("dataView",pA),pr("dataZoom",TA),pr("restore",xA),X(Qw)}var LA=["rect","polygon","keep","clear"];function PA(a,e){var t=Gt(a?a.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var n=a&&a.toolbox;B(n)&&(n=n[0]),n||(n={feature:{}},a.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),EA(s),e&&!s.length&&s.push.apply(s,LA)}}function EA(a){var e={};M(a,function(t){e[t]=1}),a.length=0,M(e,function(t,r){a.push(r)})}var Gv=M;function Bv(a){if(a){for(var e in a)if(a.hasOwnProperty(e))return!0}}function Do(a,e,t){var r={};return Gv(e,function(i){var o=r[i]=n();Gv(a[i],function(s,l){if(At.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new At(u),l==="opacity"&&(u=ot(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new At(u))}})}),r;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function pp(a,e,t){var r;M(t,function(n){e.hasOwnProperty(n)&&Bv(e[n])&&(r=!0)}),r&&M(t,function(n){e.hasOwnProperty(n)&&Bv(e[n])?a[n]=ot(e[n]):delete a[n]})}function RA(a,e,t,r,n,i){var o={};M(a,function(c){var h=At.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return xh(t,s,c)}function u(c,h){_h(t,s,c,h)}t.each(v);function v(c,h){s=c;var f=t.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=r.call(n,c),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];d[S]&&d[S].applyVisual(c,l,u)}}}function VA(a,e,t,r){var n={};return M(a,function(i){var o=At.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(_){return xh(s,c,_)}function v(_,b){_h(s,c,_,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var f=s.getRawDataItem(c);if(!(f&&f.visualMap===!1))for(var p=r!=null?h.get(l,c):c,d=t(p),g=e[d],y=n[d],m=0,S=y.length;m<S;m++){var x=y[m];g[x]&&g[x].applyVisual(p,u,v)}}}}}function kA(a){var e=a.brushType,t={point:function(r){return Fv[e].point(r,t,a)},rect:function(r){return Fv[e].rect(r,t,a)}};return t}var Fv={lineX:Hv(0),lineY:Hv(1),rect:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,e,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])&&Dr(t.range,a[0],a[1])},rect:function(a,e,t){var r=t.range;if(!a||r.length<=1)return!1;var n=a.x,i=a.y,o=a.width,s=a.height,l=r[0];if(Dr(r,n,i)||Dr(r,n+o,i)||Dr(r,n,i+s)||Dr(r,n+o,i+s)||wt.create(a).contain(l[0],l[1])||ba(n,i,n+o,i,r)||ba(n,i,n,i+s,r)||ba(n+o,i,n+o,i+s,r)||ba(n,i+s,n+o,i+s,r))return!0}}};function Hv(a){var e=["x","y"],t=["width","height"];return{point:function(r,n,i){if(r){var o=i.range,s=r[a];return Vr(s,o)}},rect:function(r,n,i){if(r){var o=i.range,s=[r[e[a]],r[e[a]]+r[t[a]]];return s[1]<s[0]&&s.reverse(),Vr(s[0],o)||Vr(s[1],o)||Vr(o[0],s)||Vr(o[1],s)}}}}function Vr(a,e){return e[0]<=a&&a<=e[1]}var Wv=["inBrush","outOfBrush"],Vi="__ecBrushSelect",Io="__ecInBrushSelectEvent";function dp(a){a.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Bs(e.option,a);t.setInputRanges(e.areas,a)})}function NA(a,e,t){var r=[],n,i;a.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),dp(a),a.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ot(o.areas),selected:[]};r.push(l);var u=o.option,v=u.brushLink,c=[],h=[],f=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=z(o.areas,function(_){var b=BA[_.brushType],w=Q({boundingRect:b?b(_):void 0},_);return w.selectors=kA(w),w}),g=Do(o.option,Wv,function(_){_.mappingMethod="fixed"});B(v)&&M(v,function(_){c[_]=1});function y(_){return v==="all"||!!c[_]}function m(_){return!!_.length}a.eachSeries(function(_,b){var w=f[b]=[];_.subType==="parallel"?S(_,b):x(_,b,w)});function S(_,b){var w=_.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(_.getData(),function(T,A){T==="active"&&(h[A]=1)})}function x(_,b,w){if(!(!_.brushSelector||GA(o,b))&&(M(d,function(A){o.brushTargetManager.controlSeries(A,_,a)&&w.push(A),p=p||m(w)}),y(b)&&m(w))){var T=_.getData();T.each(function(A){Zv(_,w,T,A)&&(h[A]=1)})}}a.eachSeries(function(_,b){var w={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(w);var T=f[b],A=_.getData(),C=y(b)?function(D){return h[D]?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return Zv(_,T,A,D)?(w.dataIndex.push(A.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?p:m(T))&&RA(Wv,g,A,C)})}),zA(e,n,i,r,t)}function zA(a,e,t,r,n){if(n){var i=a.getZr();if(!i[Io]){i[Vi]||(i[Vi]=OA);var o=Dn(i,Vi,t,e);o(a,r)}}}function OA(a,e){if(!a.isDisposed()){var t=a.getZr();t[Io]=!0,a.dispatchAction({type:"brushSelect",batch:e}),t[Io]=!1}}function Zv(a,e,t,r){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(a.brushSelector(r,t,o.selectors,o))return!0}}function GA(a,e){var t=a.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?dt(t,e)<0:e!==t)}var BA={rect:function(a){return Uv(a.range)},polygon:function(a){for(var e,t=a.range,r=0,n=t.length;r<n;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[r];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&&Uv(e)}};function Uv(a){return new wt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var FA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new ys(r.getZr())).on("brush",F(this._onBrush,this)).mount()},e.prototype.render=function(t,r,n,i){this.model=t,this._updateController(t,r,n,i)},e.prototype.updateTransform=function(t,r,n,i){dp(r),this._updateController(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.updateTransform(t,r,n,i)},e.prototype.updateView=function(t,r,n,i){this._updateController(t,r,n,i)},e.prototype._updateController=function(t,r,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 r=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:ot(n),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:ot(n),$from:r})},e.type="brush",e})(kt),HA="#ddd",WA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var n=this.option;!r&&pp(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:HA},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=z(t,function(r){return Yv(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Yv(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})(Pt);function Yv(a,e){return ft({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Ut(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},e,!0)}var ZA=["rect","polygon","lineX","lineY","keep","clear"],UA=(function(a){V(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,n){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(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,r,n){this.render(t,r,n)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),n={};return M(t.get("type",!0),function(i){r[i]&&(n[i]=r[i])}),n},e.prototype.onclick=function(t,r,n){var i=this._brushType,o=this._brushMode;n==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.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 r={show:!0,type:ZA.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 r},e})(Qt);function YA(a){a.registerComponentView(FA),a.registerComponentModel(WA),a.registerPreprocessor(PA),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,NA),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Re),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Re),pr("brush",UA)}var $v=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-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,r=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],M(r,function(u,v){var c=xe(Mg(u),""),h;Rt(u)?(h=ot(u),h.value=v):h=v,o.push(h),i.push(c)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Bt([{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})(Pt),gp=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Mr($v.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})($v);ue(gp,Ko.prototype);var $A=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(kt),XA=(function(a){V(e,a);function e(t,r,n,i){var o=a.call(this,t,r,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})(ve),ki=Math.PI,Xv=_t(),KA=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,n){if(this.model=t,this.api=n,this.ecModel=r,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 v=l.scale.getLabel({value:u});return Zt("nameValue",{noName:!0,value:v})},M(["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,r){var n=t.get(["label","position"]),i=t.get("orient"),o=jA(t,r),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":et(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"},v={horizontal:0,vertical:ki/2},c=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,d=f?h.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*ki/180;var m,S,x,_=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),w=f&&h.get("showPrevBtn",!0),T=f&&h.get("showNextBtn",!0),A=0,C=c;_==="left"||_==="bottom"?(b&&(m=[0,0],A+=g),w&&(S=[A,0],A+=g),T&&(x=[C-p,0],C-=g)):(b&&(m=[C-p,0],C-=g),w&&(S=[0,0],A+=g),T&&(x=[C-p,0],C-=g));var D=[A,C];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:v[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:S,nextBtnPosition:x,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,r){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Tr(),l=o.x,u=o.y+o.height;Je(s,s,[-l,-u]),An(s,s,-ki/2),Je(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=m(o),c=m(n.getBoundingRect()),h=m(i.getBoundingRect()),f=[n.x,n.y],p=[i.x,i.y];p[0]=f[0]=v[0][0];var d=t.labelPosOpt;if(d==null||et(d)){var g=d==="+"?0:1;S(f,c,v,1,g),S(p,h,v,1,1-g)}else{var g=d>=0?0:1;S(f,c,v,1,g),p[1]=f[1]+d}n.setPosition(f),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(x){x.originX=v[0][0]-x.x,x.originY=v[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,_,b,w,T){x[w]+=b[w][T]-_[w][T]}},e.prototype._createAxis=function(t,r){var n=r.getData(),i=r.get("axisType"),o=qA(r,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 XA("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new $;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new se({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:W({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new se({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],M(l,function(u){var v=n.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),f=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:v,y:0,onclick:F(o._changeTimeline,o,u.value)},g=Kv(c,h,r,d);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Fa(g);var y=ut(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],M(u,function(v){var c=v.tickValue,h=l.getItemModel(c),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=n.dataToCoord(v.tickValue),y=new vt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:F(o._changeTimeline,o,c),silent:!1,style:St(f,{text:v.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=St(p),y.ensureState("progress").style=St(d),r.add(y),Fa(y),Xv(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),v=i.getPlayState(),c=i.get("inverse",!0);h(t.nextBtnPosition,"next",F(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",F(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,v?"stop":"play",F(this._handlePlayClick,this,!v),!0);function h(f,p,d,g){if(f){var y=to(It(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=JA(i,p+"Icon",m,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});S.ensureState("emphasis").style=u,r.add(S),Fa(S)}}},e.prototype._renderCurrentPointer=function(t,r,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(c){c.draggable=!0,c.drift=F(u._handlePointerDrag,u),c.ondragend=F(u._handlePointerDragend,u),qv(c,u._progressLine,s,n,i,!0)},onUpdate:function(c){qv(c,u._progressLine,s,n,i)}};this._currentPointer=Kv(l,l,this._mainGroup,{},this._currentPointer,v)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,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,r){var n=this._toAxisCoord(t)[0],i=this._axis,o=te(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;(r||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 r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return Pe(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),n=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),v=Math.abs(u-t);v<n&&(n=v,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,n=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Xv(n[i]).dataIndex<=t)},e.type="timeline.slider",e})($A);function qA(a,e){if(e=e||a.get("type"),e)switch(e){case"category":return new Dg({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new Cg({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Yi}}function jA(a,e){return ne(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},a.get("padding"))}function JA(a,e,t,r){var n=r.style,i=mh(a.get(["controlStyle",e]),r||{},new wt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function Kv(a,e,t,r,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=a.get("symbol");n=Wt(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),r=ft({rectHover:!0,z2:100},r,!0);var u=ua(a.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var v=ga(a.get("symbolOffset"),u);v&&(r.x=(r.x||0)+v[0],r.y=(r.y||0)+v[1]);var c=a.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,n.attr(r),n.updateTransform(),n}function qv(a,e,t,r,n,i){if(!a.dragging){var o=n.getModel("checkpointStyle"),s=r.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))a.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};a.stopAnimation(null,!0),a.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function QA(a){a.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){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),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Q({currentIndex:n.option.currentIndex},e)}),a.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function tT(a){var e=a&&a.timeline;B(e)||(e=e?[e]:[]),M(e,function(t){t&&eT(t)})}function eT(a){var e=a.type,t={number:"value",time:"time"};if(t[e]&&(a.axisType=t[e],delete a.type),jv(a),Xe(a,"controlPosition")){var r=a.controlStyle||(a.controlStyle={});Xe(r,"position")||(r.position=a.controlPosition),r.position==="none"&&!Xe(r,"show")&&(r.show=!1,delete r.position),delete a.controlPosition}M(a.data||[],function(n){Rt(n)&&!B(n)&&(!Xe(n,"value")&&Xe(n,"name")&&(n.value=n.name),jv(n))})}function jv(a){var e=a.itemStyle||(a.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=a.label||a.label||{},n=r.normal||(r.normal={}),i={normal:1,emphasis:1};M(r,function(o,s){!i[s]&&!Xe(n,s)&&(n[s]=o)}),t.label&&!Xe(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function Xe(a,e){return a.hasOwnProperty(e)}function rT(a){a.registerComponentModel(gp),a.registerComponentView(KA),a.registerSubTypeDefaulter("timeline",function(){return"slider"}),QA(a),a.registerPreprocessor(tT)}function Hs(a,e){if(!a)return!1;for(var t=B(a)?a:[a],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function Na(a){Tn(a,"label",["show"])}var za=_t(),Te=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Xo.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,n,i){var o=this.mainType;n||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=za(s)[o];if(!l||!l.data){za(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&Na(l),M(l.data,function(v){v instanceof Array?(Na(v[0]),Na(v[1])):Na(v)}),u=this.createMarkerModelFromSeries(l,this,r),W(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),za(s)[o]=u},this)},e.prototype.formatTooltip=function(t,r,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Zt("section",{header:this.name,blocks:[Zt("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,r){var n=Ko.prototype.getDataParams.call(this,t,r),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,r){return za(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Pt);ue(Te,Ko.prototype);var aT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te);function Lo(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}function nT(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}function Oa(a,e,t,r,n,i){var o=[],s=dh(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=Ws(e,l,a),v=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,v),o[i]=e.get(l,v);var c=e.get(r,v),h=Ig(e.get(r,v));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var Ni={min:tt(Oa,"min"),max:tt(Oa,"max"),average:tt(Oa,"average"),median:tt(Oa,"median")};function sa(a,e){if(e){var t=a.getData(),r=a.coordinateSystem,n=r&&r.dimensions;if(!nT(e)&&!B(e.coord)&&B(n)){var i=yp(e,t,r,a);if(e=ot(e),e.type&&Ni[e.type]&&i.baseAxis&&i.valueAxis){var o=dt(n,i.baseAxis.dim),s=dt(n,i.valueAxis.dim),l=Ni[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||!B(n))e.coord=[];else for(var u=e.coord,v=0;v<2;v++)Ni[u[v]]&&(u[v]=Ws(t,t.mapDimension(n[v]),u[v]));return e}}function yp(a,e,t,r){var n={};return a.valueIndex!=null||a.valueDim!=null?(n.valueDataDim=a.valueIndex!=null?e.getDimension(a.valueIndex):a.valueDim,n.valueAxis=t.getAxis(iT(r,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=r.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function iT(a,e){var t=a.getData().getDimensionInfo(e);return t&&t.coordDim}function la(a,e){return a&&a.containData&&e.coord&&!Lo(e)?a.containData(e.coord):!0}function oT(a,e,t){return a&&a.containZone&&e.coord&&t.coord&&!Lo(e)&&!Lo(t)?a.containZone(e.coord,t.coord):!0}function mp(a,e){return a?function(t,r,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ja(o,e[i])}:function(t,r,n,i){return Ja(t.value,e[i])}}function Ws(a,e,t){if(t==="average"){var r=0,n=0;return a.each(e,function(i,o){isNaN(i)||(r+=i,n++)}),r/n}else return t==="median"?a.getMedian(e):a.getDataExtent(e)[t==="max"?1:0]}var zi=_t(),Zs=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(t,r,n){var i=this,o=this.markerGroupMap;o.each(function(s){zi(s).keep=!1}),r.eachSeries(function(s){var l=Te.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,n)}),o.each(function(s){!zi(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){zi(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var n=this;M(t,function(i){var o=Te.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?Lg(l):Pg(l))})}})},e.type="marker",e})(kt);function Jv(a,e,t){var r=e.coordinateSystem;a.each(function(n){var i=a.getItemModel(n),o,s=G(i.get("x"),t.getWidth()),l=G(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(a.getValues(a.dimensions,n));else if(r){var u=a.get(r.dimensions[0],n),v=a.get(r.dimensions[1],n);o=r.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),a.setItemLayout(n,o)})}var sT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markPoint");o&&(Jv(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new Ho),c=lT(o,t,r);r.setData(c),Jv(r.getData(),t,i),c.each(function(h){var f=c.getItemModel(h),p=f.getShallow("symbol"),d=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),m=f.getShallow("symbolKeepAspect");if(st(p)||st(d)||st(g)||st(y)){var S=r.getRawValue(h),x=r.getDataParams(h);st(p)&&(p=p(S,x)),st(d)&&(d=d(S,x)),st(g)&&(g=g(S,x)),st(y)&&(y=y(S,x))}var _=f.getModel("itemStyle").getItemStyle(),b=Pn(l,"color");_.fill||(_.fill=b),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:_})}),v.updateData(c),this.group.add(v.group),c.eachItemGraphicEl(function(h){h.traverse(function(f){ut(f).dataModel=r})}),this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e})(Zs);function lT(a,e,t){var r;a?r=z(a&&a.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return W(W({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new Bt(r,t),i=z(t.get("data"),tt(sa,e));a&&(i=Lt(i,tt(la,a)));var o=mp(!!a,r);return n.initData(i,null,o),n}function uT(a){a.registerComponentModel(aT),a.registerComponentView(sT),a.registerPreprocessor(function(e){Hs(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var vT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te),Ga=_t(),cT=function(a,e,t,r){var n=a.getData(),i;if(B(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Xt(r.yAxis,r.xAxis);else{var u=yp(r,n,e,a);s=u.valueAxis;var v=Eg(n,u.valueDataDim);l=Ws(n,v,o)}var c=s.dim==="x"?0:1,h=1-c,f=ot(r),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var d=t.get("precision");d>=0&&le(l)&&(l=+l.toFixed(Math.min(d,20))),f.coord[c]=p.coord[c]=l,i=[f,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[sa(a,i[0]),sa(a,i[1]),W({},i[2])];return g[2].type=g[2].type||null,ft(g[2],g[0]),ft(g[2],g[1]),g};function fn(a){return!isNaN(a)&&!isFinite(a)}function Qv(a,e,t,r){var n=1-a,i=r.dimensions[a];return fn(e[n])&&fn(t[n])&&e[a]===t[a]&&r.getAxis(i).containData(e[a])}function hT(a,e){if(a.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(Qv(1,t,r,a)||Qv(0,t,r,a)))return!0}return la(a,e[0])&&la(a,e[1])}function Oi(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get("x"),n.getWidth()),u=G(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(a.dimensions,e));else{var v=i.dimensions,c=a.get(v[0],e),h=a.get(v[1],e);s=i.dataToPoint([c,h])}if(Ln(i,"cartesian2d")){var f=i.getAxis("x"),p=i.getAxis("y"),v=i.dimensions;fn(a.get(v[0],e))?s[0]=f.toGlobalCoord(f.getExtent()[t?0:1]):fn(a.get(v[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}a.setItemLayout(e,s)}var fT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ga(o).from,u=Ga(o).to;l.each(function(v){Oi(l,v,!0,i,n),Oi(u,v,!1,i,n)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new gs);this.group.add(v.group);var c=pT(o,t,r),h=c.from,f=c.to,p=c.line;Ga(r).from=h,Ga(r).to=f,r.setData(p);var d=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),c.from.each(function(x){S(h,x,!0),S(f,x,!1)}),p.each(function(x){var _=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[h.getItemLayout(x),f.getItemLayout(x)]),_.stroke==null&&(_.stroke=h.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(x,"symbolOffset"),toSymbolRotate:f.getItemVisual(x,"symbolRotate"),toSymbolSize:f.getItemVisual(x,"symbolSize"),toSymbol:f.getItemVisual(x,"symbol"),style:_})}),v.updateData(p),c.line.eachItemGraphicEl(function(x){ut(x).dataModel=r,x.traverse(function(_){ut(_).dataModel=r})});function S(x,_,b){var w=x.getItemModel(_);Oi(x,_,b,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Pn(l,"color")),x.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:It(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:It(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:It(w.get("symbolSize"),g[b?0:1]),symbol:It(w.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(v),v.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e})(Zs);function pT(a,e,t){var r;a?r=z(a&&a.dimensions,function(u){var v=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return W(W({},v),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var n=new Bt(r,t),i=new Bt(r,t),o=new Bt([],t),s=z(t.get("data"),tt(cT,e,a,t));a&&(s=Lt(s,tt(hT,a)));var l=mp(!!a,r);return n.initData(z(s,function(u){return u[0]}),null,l),i.initData(z(s,function(u){return u[1]}),null,l),o.initData(z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function dT(a){a.registerComponentModel(vT),a.registerComponentView(fT),a.registerPreprocessor(function(e){Hs(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var gT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,n){return new e(t,r,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})(Te),Ba=_t(),yT=function(a,e,t,r){var n=r[0],i=r[1];if(!(!n||!i)){var o=sa(a,n),s=sa(a,i),l=o.coord,u=s.coord;l[0]=Xt(l[0],-1/0),l[1]=Xt(l[1],-1/0),u[0]=Xt(u[0],1/0),u[1]=Xt(u[1],1/0);var v=Oo([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function pn(a){return!isNaN(a)&&!isFinite(a)}function tc(a,e,t,r){var n=1-a;return pn(e[n])&&pn(t[n])}function mT(a,e){var t=e.coord[0],r=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return Ln(a,"cartesian2d")?t&&r&&(tc(1,t,r)||tc(0,t,r))?!0:oT(a,n,i):la(a,n)||la(a,i)}function ec(a,e,t,r,n){var i=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get(t[0]),n.getWidth()),u=G(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var v=a.getValues(["x0","y0"],e),c=a.getValues(["x1","y1"],e),h=i.clampData(v),f=i.clampData(c),p=[];t[0]==="x0"?p[0]=h[0]>f[0]?c[0]:v[0]:p[0]=h[0]>f[0]?v[0]:c[0],t[1]==="y0"?p[1]=h[1]>f[1]?c[1]:v[1]:p[1]=h[1]>f[1]?v[1]:c[1],s=r.getMarkerPosition(p,t,!0)}else{var d=a.get(t[0],e),g=a.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Ln(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),d=a.get(t[0],e),g=a.get(t[1],e);pn(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):pn(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var rc=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ST=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,n){r.eachSeries(function(i){var o=Te.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=z(rc,function(c){return ec(s,l,c,i,n)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new $});this.group.add(v.group),this.markKeep(v);var c=xT(o,t,r);r.setData(c),c.each(function(h){var f=z(rc,function(T){return ec(c,h,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],S=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];te(m),te(S);var x=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),_=!x;c.setItemLayout(h,{points:f,allClipped:_});var b=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Pn(l,"color");b.fill||(b.fill=w,et(b.fill)&&(b.fill=Ka(b.fill,.4))),b.stroke||(b.stroke=w),c.setItemVisual(h,"style",b)}),c.diff(Ba(v).data).add(function(h){var f=c.getItemLayout(h);if(!f.allClipped){var p=new re({shape:{points:f.points}});c.setItemGraphicEl(h,p),v.group.add(p)}}).update(function(h,f){var p=Ba(v).data.getItemGraphicEl(f),d=c.getItemLayout(h);d.allClipped?p&&v.group.remove(p):(p?ct(p,{shape:{points:d.points}},r,h):p=new re({shape:{points:d.points}}),c.setItemGraphicEl(h,p),v.group.add(p))}).remove(function(h){var f=Ba(v).data.getItemGraphicEl(h);v.group.remove(f)}).execute(),c.eachItemGraphicEl(function(h,f){var p=c.getItemModel(f),d=c.getItemVisual(f,"style");h.useStyle(c.getItemVisual(f,"style")),ae(h,Ht(p),{labelFetcher:r,labelDataIndex:f,defaultText:c.getName(f)||"",inheritColor:et(d.fill)?Ka(d.fill,1):"#000"}),Kt(h,p),xt(h,null,null,p.get(["emphasis","disabled"])),ut(h).dataModel=r}),Ba(v).data=c,v.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e})(Zs);function xT(a,e,t){var r,n,i=["x0","y0","x1","y1"];if(a){var o=z(a&&a.dimensions,function(u){var v=e.getData(),c=v.getDimensionInfo(v.mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})});n=z(i,function(u,v){return{name:u,type:o[v%2].type}}),r=new Bt(n,t)}else n=[{name:"value",type:"float"}],r=new Bt(n,t);var s=z(t.get("data"),tt(yT,e,a,t));a&&(s=Lt(s,tt(mT,a)));var l=a?function(u,v,c,h){var f=u.coord[Math.floor(h/2)][h%2];return Ja(f,n[h])}:function(u,v,c,h){return Ja(u.value,n[h])};return r.initData(s,null,l),r.hasItemOption=!0,r}function _T(a){a.registerComponentModel(gT),a.registerComponentView(ST),a.registerPreprocessor(function(e){Hs(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var bT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Mr(oa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(oa),Us=_t();function wT(a,e,t){Us(a).coordSysRecordMap.each(function(r){var n=r.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function AT(a,e){for(var t=Us(a).coordSysRecordMap,r=t.keys(),n=0;n<r.length;n++){var i=r[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||Sp(t,o))}}}function Sp(a,e){if(e){a.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function TT(a,e){var t={model:e,containsPoint:tt(CT,e),dispatchAction:tt(MT,a),dataZoomInfoMap:null,controller:null},r=t.controller=new xa(a.getZr());return M(["pan","zoom","scrollMove"],function(n){r.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 MT(a,e){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function CT(a,e,t,r){return a.coordinateSystem.containPoint([t,r])}function DT(a){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return a.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[t+s]>r[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function IT(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=Us(t),n=r.coordSysRecordMap||(r.coordSysRecordMap=K());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=up(i);M(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,TT(t,s.model)),v=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());v.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){Sp(n,i);return}var v=DT(l);o.enable(v.controlType,v.opt),o.setPointerChecker(i.containsPoint),Dn(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var LT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,n){if(a.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),wT(n,t,{pan:F(Gi.pan,this),zoom:F(Gi.zoom,this),scrollMove:F(Gi.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){AT(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(zs),Gi={zoom:function(a,e,t,r){var n=this.range,i=n.slice(),o=a.axisModels[0];if(o){var s=Bi[e](null,[r.originX,r.originY],o,t,a),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/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ar(0,i,[0,100],0,v.minSpan,v.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:ac(function(a,e,t,r,n,i){var o=Bi[r]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:ac(function(a,e,t,r,n,i){var o=Bi[r]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(a[1]-a[0])*i.scrollDelta})};function ac(a){return function(e,t,r,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=a(o,s,e,t,r,n);if(ar(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Bi={grid:function(a,e,t,r,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return a=a||[0,0],i.dim==="x"?(o.pixel=e[0]-a[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(a,e,t,r,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return a=a?s.pointToCoord(a):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-a[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(a,e,t,r,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return a=a||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-a[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-a[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function xp(a){Os(a),a.registerComponentModel(bT),a.registerComponentView(LT),IT(a)}var PT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Mr(oa.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})(oa),kr=pt,nc=7,ET=1,Fi=30,RT=7,Nr="horizontal",ic="vertical",VT=5,kT=["line","bar","candlestick","scatter"],NT={easing:"cubicOut",duration:100,delay:0},zT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=F(this._onBrush,this),this._onBrushEnd=F(this._onBrushEnd,this)},e.prototype.render=function(t,r,n,i){if(a.prototype.render.apply(this,arguments),Dn(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(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ih(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 r=this._displayables.sliderGroup=new $;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,n=t.get("brushSelect"),i=n?RT:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Nr?{right:s.width-o.x-o.width,top:s.height-Fi-nc-i,width:o.width,height:Fi}:{right:nc,top:o.y,width:Fi,height:o.height},u=gh(t.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var v=ne(u,s);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===ic&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=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===Nr&&!o?{scaleY:l?1:-1,scaleX:1}:n===Nr&&o?{scaleY:l?1:-1,scaleX:-1}:n===ic&&!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=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new kr({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new kr({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:F(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 r=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,v=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==n[0]||r[1]!==n[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var f=[0,r[1]],p=[0,r[0]],d=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),x;o.each([l],function(A,C){if(S>0&&C%S){m+=y;return}var D=A==null||isNaN(A)||A==="",L=D?0:it(A,c,f,!0);D&&!x&&C?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&x&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,x=D}),u=this._shadowPolygonPts=d,v=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var _=this.dataZoomModel;function b(A){var C=_.getModel(A?"selectedDataBackground":"dataBackground"),D=new $,L=new re({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new me({shape:{points:v},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(I),D}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,r=t.get("showDataShadow");if(r!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!n&&!(r!==!0&&dt(kT,u.get("type"))<0)){var v=i.getComponent(Ie(o),s).axis,c=OT(o),h,f=u.coordinateSystem;c!=null&&f.getOtherAxis&&(h=f.getOtherAxis(v).inverse),c=u.getData().mapDimension(c),n={thisAxis:v,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,n=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,v=l.get("borderRadius")||0,c=l.get("brushSelect"),h=r.filler=new kr({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new kr({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:v},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ET,fill:"rgba(0,0,0,0)"}})),M([0,1],function(S){var x=l.get("handleIcon");!Rg[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var _=Wt(x,-1,0,2,2,null,!0);_.attr({cursor:oc(this._orient),draggable:!0,drift:F(this._onDragMove,this,S),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=G(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Fa(_);var T=l.get("handleColor");T!=null&&(_.style.fill=T),o.add(n[S]=_);var A=l.getModel("textStyle"),C=l.get("handleLabel")||{},D=C.show||!1;t.add(i[S]=new vt({silent:!0,invisible:!D,style:St(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var f=h;if(c){var p=G(l.get("moveHandleSize"),s[1]),d=r.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=Wt(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));f=r.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),f.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:oc(this._orient),drift:F(this._onDragMove,this,"all"),ondragstart:F(this._showDataInfo,this,!0),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[it(t[0],[0,100],r,!0),it(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ar(r,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?it(s.minSpan,l,o,!0):null,s.maxSpan!=null?it(s.maxSpan,l,o,!0):null);var u=this._range,v=this._range=te([it(i[0],o,l,!0),it(i[1],o,l,!0)]);return!u||u[0]!==v[0]||u[1]!==v[1]},e.prototype._updateView=function(t){var r=this._displayables,n=this._handleEnds,i=te(n.slice()),o=this._size;M([0,1],function(f){var p=r.handles[f],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[f]+(f?-1:1),y:o[1]/2-d/2})},this),r.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]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],v=0;v<l.length;v++){var c=l[v],h=c.getClipPath();h||(h=new pt,c.setClipPath(h)),h.setShape({x:u[v],y:0,width:u[v+1]-u[v],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,v=this._range,c=t?l.calculateDataWindow({start:v[0],end:v[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=te(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var d=mr(n.handles[p].parent,this.group),g=Zo(p===0?"right":"left",d),y=this._handleWidth/2+VT,m=Pe([h[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Nr?"middle":g,align:o===Nr?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,r){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return st(i)?i(t,s):et(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var r=this.dataZoomModel.get("handleLabel")||{},n=r.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,r,n,i){this._dragging=!0,je(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Pe([r,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 r=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>r[0]||n[1]<0||n[1]>r[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 r=t.offsetX,n=t.offsetY;this._brushStart=new _e(r,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var n=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=te([it(n.x,o,s,!0),it(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&&(je(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new kr({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,r),v=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:v[0],y:0,width:u[0]-v[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?NT:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=up(this.dataZoomModel).infoList;if(!t&&r.length){var n=r[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})(zs);function OT(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function oc(a){return a==="vertical"?"ns-resize":"ew-resize"}function _p(a){a.registerComponentModel(PT),a.registerComponentView(zT),Os(a)}function GT(a){X(xp),X(_p)}var bp={get:function(a,e,t){var r=ot((BT[a]||{})[e]);return t&&B(r)?r[r.length-1]:r}},BT={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]}},sc=At.mapVisual,FT=At.eachVisual,HT=B,lc=M,WT=te,ZT=it,dn=(function(a){V(e,a);function e(){var t=a!==null&&a.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,r,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,r){var n=this.option;!r&&pp(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=F(t,this),this.controllerVisuals=Do(this.option.controller,r,t),this.targetVisuals=Do(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){r.push(i)}):r=Gt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(n){n===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],B(t)&&(t=t.slice(),u=!0);var v=r?t:u?[c(t[0]),c(t[1])]:c(t);if(et(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(st(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+v[1]:t[1]===s[1]?n[1]+" "+v[0]:v[0]+" - "+v[1];return v;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=WT([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);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,r=this.option,n={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});ft(i,n),ft(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),v.call(this,o);function l(c){HT(r.color)&&!c.inRange&&(c.inRange={color:r.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,f){var p=c[h],d=c[f];p&&!d&&(d=c[f]={},lc(p,function(g,y){if(At.isValidType(y)){var m=bp.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function v(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,f=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";lc(this.stateList,function(y){var m=this.itemSize,S=c[y];S||(S=c[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=h&&ot(h)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=f&&ot(f)||(s?m[0]:[m[0],m[0]])),S.symbol=sc(S.symbol,function(b){return b==="none"?g:b});var x=S.symbolSize;if(x!=null){var _=-1/0;FT(x,function(b){b>_&&(_=b)}),S.symbolSize=sc(x,function(b){return ZT(b,[0,_],[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})(Pt),uc=[20,140],UT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=uc[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=uc[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):B(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=te((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,n=this.getExtent();return(r[0]<=n[0]||r[0]<=t)&&(r[1]>=n[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];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),r.push({seriesId:n.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=vc(this,"outOfRange",this.getExtent()),n=vc(this,"inRange",this.option.range.slice()),i=[];function o(f,p){i.push({value:f,color:t(f,p)})}for(var s=0,l=0,u=n.length,v=r.length;l<v&&(!n.length||r[l]<=n[0]);l++)r[l]<n[s]&&o(r[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<v;l++)(!n.length||n[n.length-1]<r[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(r[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Mr(dn.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})(dn);function vc(a,e,t){if(t[0]===t[1])return t.slice();for(var r=200,n=(t[1]-t[0])/r,i=t[0],o=[],s=0;s<=r&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var wp=(function(a){V(e,a);function e(){var t=a!==null&&a.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,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,n,i)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,n=Vg(r.get("padding")||0),i=t.getBoundingRect();t.add(new pt({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:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function v(f,p){s[f]=p}var c=o.controllerVisuals[i||o.getValueState(t)],h=At.prepareVisualTypes(c);return M(h,function(f){var p=c[f];n.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=c.__alphaForOpacity),At.dependsOn(f,r)&&p&&p.applyVisual(t,u,v)}),s[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,n=this.api;Bo(t,r.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,r,n,i){},e.type="visualMap",e})(kt),cc=[["left","right","width"],["top","bottom","height"]];function Ap(a,e,t){var r=a.option,n=r.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=cc[o],l=[0,null,10],u={},v=0;v<3;v++)u[cc[1-o][v]]=l[v],u[s[v]]=v===2?t[0]:r[s[v]];var c=[["x","width",3],["y","height",0]][o],h=ne(u,i,r.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function Ya(a,e){return M(a||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),a}var pe=it,YT=M,hc=Math.min,Hi=Math.max,$T=12,XT=6,KT=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,r){a.prototype.init.call(this,t,r),this._hoverLinkFromSeriesMouseOver=F(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=F(this._hideIndicator,this)},e.prototype.doRender=function(t,r,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var n=t.get("text");this._renderEndsText(r,n,0),this._renderEndsText(r,n,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,n){if(r){var i=r[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,v=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new vt({style:St(f,{x:v[0],y:v[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,n=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=Ap(r,this.api,i),u=n.mainGroup=this._createBarGroup(l),v=new $;u.add(v),v.add(n.outOfRange=fc()),v.add(n.inRange=fc(null,s?dc(this._orient):null,F(this._dragHandle,this,"all",!1),F(this._dragHandle,this,"all",!0))),v.setClipPath(new pt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=r.textStyleModel.getTextRect("国"),h=Hi(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(r,u,0,i,h,o),this._createHandle(r,u,1,i,h,o)),this._createIndicator(r,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,r,n,i,o,s){var l=F(this._dragHandle,this,n,!1),u=F(this._dragHandle,this,n,!0),v=to(t.get("handleSize"),i[0]),c=Wt(t.get("handleIcon"),-v/2,-v/2,v,v,null,!0),h=dc(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){je(y.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Or(c,!0),r.add(c);var f=this.visualMapModel.textStyleModel,p=new vt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){je(y.event)},ondragend:u,style:St(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[v,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,r,n,i,o){var s=to(t.get("indicatorSize"),n[0]),l=Wt(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 ye){var v=l.style;l.useStyle(W({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},u))}else l.useStyle(u);r.add(l);var c=this.visualMapModel.textStyleModel,h=new vt({silent:!0,invisible:!0,style:St(c,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?i/2:XT)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,n,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():pc(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[pe(r[0],n,i,!0),pe(r[1],n,i,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ar(r,i,o,t,0);var s=n.getExtent();this._dataInterval=[pe(i[0],o,s,!0),pe(i[1],o,s,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,n=r.getExtent(),i=this._shapes,o=[0,r.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,r,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 ko(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",r),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",r),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var n=this.visualMapModel.itemSize;return[[n[0]-r[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,n=this.visualMapModel.get("inverse");return new $(r==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),v=this._applyTransform("left",n.mainGroup);YT([0,1],function(c){var h=o[c];h.setStyle("fill",r.handlesColor[c]),h.y=t[c];var f=pe(t[c],[0,l[1]],u,!0),p=this.getControllerVisual(f,"symbolSize");h.scaleX=h.scaleY=p/l[0],h.x=l[0]-p/2;var d=Pe(n.handleLabelPoints[c],mr(h,this.group));if(this._orient==="horizontal"){var g=v==="left"||v==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,c=v.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),d=pe(t,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=Pe(v.indicatorLabelPoint,mr(c,this.group)),S=v.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",v.mainGroup),_=this._orient,b=_==="horizontal";S.setStyle({text:(n||"")+o.formatValueText(r),verticalAlign:b?x:"middle",align:b?"center":x});var w={x:g,y:d,style:{fill:f}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,A),S.animateTo(T,A)}else c.attr(w),S.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var D=0;D<C.length;D++)this.api.enterBlur(C[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);i[1]=hc(Hi(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,r){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=hc(Hi(o[0],t),o[1]);var l=qT(n,s,o),u=[t-l,t+l],v=pe(t,o,s,!0),c=[pe(u[0],o,s,!0),pe(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),r&&(c[0]===-1/0?this._showIndicator(v,c[1],"< ",l):c[1]===1/0?this._showIndicator(v,c[0],"> ",l):this._showIndicator(v,v,"≈ ",l));var h=this._hoverLinkDataIndices,f=[];(r||pc(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=kg(h,f);this._dispatchHighDown("downplay",Ya(p[0],n)),this._dispatchHighDown("highlight",Ya(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(Jc(t.target,function(l){var u=ut(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var n=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.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 r=this._shapes.handleLabels;if(r)for(var n=0;n<r.length;n++)this.api.leaveBlur(r[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ya(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,r,n,i){var o=mr(r,i?null:this.group);return B(t)?Pe(t,o,n):Zo(t,o,n)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(wp);function fc(a,e,t,r){return new re({shape:{points:a},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){je(n.event)},ondragend:r})}function qT(a,e,t){var r=$T/2,n=a.get("hoverLinkDataSize");return n&&(r=pe(n,e,t,!0)/2),r}function pc(a){var e=a.get("hoverLinkOnHandle");return!!(e??a.get("realtime"))}function dc(a){return a==="vertical"?"ns-resize":"ew-resize"}var jT={type:"selectDataRange",event:"dataRangeSelected",update:"update"},JT=function(a,e){e.eachComponent({mainType:"visualMap",query:a},function(t){t.setSelected(a.selected)})},QT=[{createOnAllSeries:!0,reset:function(a,e){var t=[];return e.eachComponent("visualMap",function(r){var n=a.pipelineContext;!r.isTargetSeries(a)||n&&n.large||t.push(VA(r.stateList,r.targetVisuals,F(r.getValueState,r),r.getDataDimensionIndex(a.getData())))}),t}},{createOnAllSeries:!0,reset:function(a,e){var t=a.getData(),r=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(a)){var i=n.getVisualMeta(F(tM,null,a,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,r.push(i))}}),a.getData().setVisual("visualMeta",r)}}];function tM(a,e,t,r){for(var n=e.targetVisuals[r],i=At.prepareVisualTypes(n),o={color:Pn(a.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],v=n[u==="opacity"?"__alphaForOpacity":u];v&&v.applyVisual(t,c,h)}return o.color;function c(f){return o[f]}function h(f,p){o[f]=p}}var gc=M;function eM(a){var e=a&&a.visualMap;B(e)||(e=e?[e]:[]),gc(e,function(t){if(t){ur(t,"splitList")&&!ur(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&B(r)&&gc(r,function(n){Rt(n)&&(ur(n,"start")&&!ur(n,"min")&&(n.min=n.start),ur(n,"end")&&!ur(n,"max")&&(n.max=n.end))})}})}function ur(a,e){return a&&a.hasOwnProperty&&a.hasOwnProperty(e)}var yc=!1;function Tp(a){yc||(yc=!0,a.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),a.registerAction(jT,JT),M(QT,function(e){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,e)}),a.registerPreprocessor(eM))}function Mp(a){a.registerComponentModel(UT),a.registerComponentView(KT),Tp(a)}var rM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],aM[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ot(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=z(this._pieceList,function(l){return l=ot(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},n=At.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(n,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(v){u=u||o(t,v,l)||o(t.target,v,l)},this),!u&&M(this.stateList,function(v){(t[v]||(t[v]={}))[l]=bp.get(l,v==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}a.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var n=this.option,i=this._pieceList,o=(r?n:t).selected||{};if(n.selected=o,M(i,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),n.selectedMode==="single"){var s=!1;M(i,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!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=ot(t)},e.prototype.getValueState=function(t){var r=At.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=At.findPieceIndex(l,n);v===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var n=t.interval||[];r=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],n=["",""],i=this;function o(v,c){var h=i.getRepresentValue({interval:v});c||(c=i.getValueState(h));var f=t(h,c);v[0]===-1/0?n[0]=f:v[1]===1/0?n[1]=f:r.push({value:v[0],color:f},{value:v[1],color:f})}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 M(s,function(v){var c=v.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:r,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=Mr(dn.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})(dn),aM={splitNumber:function(a){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(r[1]-r[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&a.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<n;s+=i,o++){var l=o===n-1?r[1]:s+i;a.push({interval:[s,l],close:[1,1]})}e.maxOpen&&a.push({interval:[r[1],1/0],close:[0,0]}),dl(a),M(a,function(u,v){u.index=v,u.text=this.formatValueText(u.interval)},this)},categories:function(a){var e=this.option;M(e.categories,function(t){a.push({text:this.formatValueText(t,!0),value:t})},this),mc(e,a)},pieces:function(a){var e=this.option;M(e.pieces,function(t,r){Rt(t)||(t={value:t});var n={text:"",index:r};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],v=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&o[c]==null;f++)o[c]=t[h[f]],s[c]=l[f],v[c]=f===2;o[c]==null&&(o[c]=u[c])}v[0]&&o[1]===1/0&&(s[0]=0),v[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=At.retrieveVisuals(t),a.push(n)},this),mc(e,a),dl(a),M(a,function(t){var r=t.close,n=[["<","≤"][r[1]],[">","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function mc(a,e){var t=a.inverse;(a.orient==="vertical"?!t:t)&&e.reverse()}var nM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,n=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,v=this._getViewData(),c=v.endsText,h=Xt(r.get("showLabel",!0),!c),f=!r.get("selectedMode");c&&this._renderEndsText(t,c[0],u,h,l),M(v.viewPieceList,function(p){var d=p.piece,g=new $;g.onclick=F(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=r.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],f),h){var m=this.visualMapModel.getValueState(y);g.add(new vt({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:f}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,h,l),Ng(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){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:Ya(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Ap(t,this.api,t.itemSize);var n=r.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,r,n,i,o){if(r){var s=new $,l=this.visualMapModel.textStyleModel;s.add(new vt({style:St(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=z(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)?r.reverse():n&&(n=n.slice().reverse()),{viewPieceList:r,endsText:n}},e.prototype._createItemSymbol=function(t,r,n,i){var o=Wt(this.getControllerVisual(r,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(r,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var r=this.visualMapModel,n=r.option,i=n.selectedMode;if(i){var o=ot(n.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(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})(wp);function Cp(a){a.registerComponentModel(rM),a.registerComponentView(nM),Tp(a)}function iM(a){X(Mp),X(Cp)}var Sc={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oM=(function(){function a(e){var t=this._condVal=et(e)?new RegExp(e):Og(e)?e:null;if(t==null){var r="";yt(r)}}return a.prototype.evaluate=function(e){var t=typeof e;return et(t)?this._condVal.test(e):le(t)?this._condVal.test(e+""):!1},a})(),sM=(function(){function a(){}return a.prototype.evaluate=function(){return this.value},a})(),lM=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},a})(),uM=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},a})(),vM=(function(){function a(){}return a.prototype.evaluate=function(){return!this.child.evaluate()},a})(),cM=(function(){function a(){}return a.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,r=t(this.valueGetterParam),n=e?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:r))return!1;return!0},a})();function Ys(a,e){if(a===!0||a===!1){var t=new sM;return t.value=a,t}var r="";return Dp(a)||yt(r),a.and?xc("and",a,e):a.or?xc("or",a,e):a.not?hM(a,e):fM(a,e)}function xc(a,e,t){var r=e[a],n="";B(r)||yt(n),r.length||yt(n);var i=a==="and"?new lM:new uM;return i.children=z(r,function(o){return Ys(o,t)}),i.children.length||yt(n),i}function hM(a,e){var t=a.not,r="";Dp(t)||yt(r);var n=new vM;return n.child=Ys(t,e),n.child||yt(r),n}function fM(a,e){for(var t="",r=e.prepareGetValue(a),n=[],i=mt(a),o=a.parser,s=o?bh(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var v=O(Sc,u)?Sc[u]:u,c=a[u],h=s?s(c):c,f=zg(v,h)||v==="reg"&&new oM(h);f||yt(t),n.push(f)}}n.length||yt(t);var p=new cM;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}function Dp(a){return Rt(a)&&!lh(a)}var pM=(function(){function a(e,t){this._cond=Ys(e,t)}return a.prototype.evaluate=function(){return this._cond.evaluate()},a})();function dM(a,e){return new pM(a,e)}var gM={type:"echarts:filter",transform:function(a){for(var e=a.upstream,t,r=dM(a.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;O(s,"dimension")||yt(l);var v=e.getDimensionInfo(u);return v||yt(l),{dimIdx:v.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),r.evaluate()&&n.push(t);return{data:n}}},yM={type:"echarts:sort",transform:function(a){var e=a.upstream,t=a.config,r="",n=Gt(t);n.length||yt(r);var i=[];M(n,function(v){var c=v.dimension,h=v.order,f=v.parser,p=v.incomparable;if(c==null&&yt(r),h!=="asc"&&h!=="desc"&&yt(r),p&&p!=="min"&&p!=="max"){var d="";yt(d)}if(h!=="asc"&&h!=="desc"){var g="";yt(g)}var y=e.getDimensionInfo(c);y||yt(r);var m=f?bh(f):null;f&&!m&&yt(r),i.push({dimIdx:y.index,parser:m,comparator:new Gg(h,p)})});var o=e.sourceFormat;o!==oh&&o!==Bg&&yt(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(v,c){for(var h=0;h<i.length;h++){var f=i[h],p=e.retrieveValueFromItem(v,f.dimIdx),d=e.retrieveValueFromItem(c,f.dimIdx);f.parser&&(p=f.parser(p),d=f.parser(d));var g=f.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function mM(a){a.registerTransform(gM),a.registerTransform(yM)}var SM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,r,n){a.prototype.init.call(this,t,r,n),this._sourceManager=new Fg(this),gl(this)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.call(this,t,r),gl(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Hg},e})(Pt),xM=(function(a){V(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(kt);function _M(a){a.registerComponentModel(SM),a.registerComponentView(xM)}var he=Hc.CMD;function yr(a,e){return Math.abs(a-e)<1e-5}function Po(a){var e=a.data,t=a.len(),r=[],n,i=0,o=0,s=0,l=0;function u(I,P){n&&n.length>2&&r.push(n),n=[I,P]}function v(I,P,E,R){yr(I,E)&&yr(P,R)||n.push(I,P,E,R,E,R)}function c(I,P,E,R,k,N){var H=Math.abs(P-I),Z=Math.tan(H/4)*4/3,U=P<I?-1:1,q=Math.cos(I),rt=Math.sin(I),J=Math.cos(P),at=Math.sin(P),Dt=q*k+E,ce=rt*N+R,j=J*k+E,Y=at*N+R,lt=k*Z*U,nt=N*Z*U;n.push(Dt-lt*rt,ce+nt*q,j+lt*at,Y-nt*J,j,Y)}for(var h,f,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===he.L||y===he.C||y===he.Q)&&(n=[s,l])),y){case he.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case he.L:h=e[g++],f=e[g++],v(i,o,h,f),i=h,o=f;break;case he.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case he.Q:h=e[g++],f=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(h-i),o+2/3*(f-o),p+2/3*(h-p),d+2/3*(f-d),p,d),i=p,o=d;break;case he.A:var S=e[g++],x=e[g++],_=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var A=!e[g++];h=Math.cos(w)*_+S,f=Math.sin(w)*b+x,m?(s=h,l=f,u(s,l)):v(i,o,h,f),i=Math.cos(T)*_+S,o=Math.sin(T)*b+x;for(var C=(A?-1:1)*Math.PI/2,D=w;A?D>T:D<T;D+=C){var L=A?Math.max(D+C,T):Math.min(D+C,T);c(D,L,S,x,_,b)}break;case he.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],f=l+e[g++],u(h,l),v(h,l,h,f),v(h,f,s,f),v(s,f,s,l),v(s,l,h,l);break;case he.Z:n&&v(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&r.push(n),r}function Eo(a,e,t,r,n,i,o,s,l,u){if(yr(a,t)&&yr(e,r)&&yr(n,o)&&yr(i,s)){l.push(o,s);return}var v=2/u,c=v*v,h=o-a,f=s-e,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var d=t-a,g=r-e,y=n-o,m=i-s,S=d*d+g*g,x=y*y+m*m;if(S<c&&x<c){l.push(o,s);return}var _=h*d+f*g,b=-h*y-f*m,w=S-_*_,T=x-b*b;if(w<c&&_>=0&&T<c&&b>=0){l.push(o,s);return}var A=[],C=[];Qa(a,t,n,o,.5,A),Qa(e,r,i,s,.5,C),Eo(A[0],C[0],A[1],C[1],A[2],C[2],A[3],C[3],l,u),Eo(A[4],C[4],A[5],C[5],A[6],C[6],A[7],C[7],l,u)}function bM(a,e){var t=Po(a),r=[];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 v=i[u++],c=i[u++],h=i[u++],f=i[u++],p=i[u++],d=i[u++];Eo(s,l,v,c,h,f,p,d,o,e),s=p,l=d}r.push(o)}return r}function Ip(a,e,t){var r=a[e],n=a[1-e],i=Math.abs(r/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 v=o*s,c=t-v;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function _c(a,e,t){for(var r=a.r0,n=a.r,i=a.startAngle,o=a.endAngle,s=Math.abs(o-i),l=s*n,u=n-r,v=l>Math.abs(u),c=Ip([l,u],v?0:1,e),h=(v?s:u)/c.length,f=0;f<c.length;f++)for(var p=(v?u:s)/c[f],d=0;d<c[f];d++){var g={};v?(g.startAngle=i+h*f,g.endAngle=i+h*(f+1),g.r0=r+p*d,g.r=r+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=r+h*f,g.r=r+h*(f+1)),g.clockwise=a.clockwise,g.cx=a.cx,g.cy=a.cy,t.push(g)}}function wM(a,e,t){for(var r=a.width,n=a.height,i=r>n,o=Ip([r,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",v=i?"y":"x",c=a[s]/o.length,h=0;h<o.length;h++)for(var f=a[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[v]=p*f,d[s]=c,d[l]=f,d.x+=a.x,d.y+=a.y,t.push(d)}}function bc(a,e,t,r){return a*r-t*e}function AM(a,e,t,r,n,i,o,s){var l=t-a,u=r-e,v=o-n,c=s-i,h=bc(v,c,l,u);if(Math.abs(h)<1e-6)return null;var f=a-n,p=e-i,d=bc(f,p,v,c)/h;return d<0||d>1?null:new _e(d*l+a,d*u+e)}function TM(a,e,t){var r=new _e;_e.sub(r,t,e),r.normalize();var n=new _e;_e.sub(n,a,e);var i=n.dot(r);return i}function vr(a,e){var t=a[a.length-1];t&&t[0]===e[0]&&t[1]===e[1]||a.push(e)}function MM(a,e,t){for(var r=a.length,n=[],i=0;i<r;i++){var o=a[i],s=a[(i+1)%r],l=AM(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:TM(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:a},{points:a}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],v=n[n.length-1];if(v.idx<u.idx){var c=u;u=v,v=c}for(var h=[u.pt.x,u.pt.y],f=[v.pt.x,v.pt.y],p=[h],d=[f],i=u.idx+1;i<=v.idx;i++)vr(p,a[i].slice());vr(p,f),vr(p,h);for(var i=v.idx+1;i<=u.idx+r;i++)vr(d,a[i%r].slice());return vr(d,h),vr(d,f),[{points:p},{points:d}]}function wc(a){var e=a.points,t=[],r=[];Mn(e,t,r);var n=new wt(t[0],t[1],r[0]-t[0],r[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new _e,v=new _e;return i>o?(u.x=v.x=s+i/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+i),MM(e,u,v)}function gn(a,e,t,r){if(t===1)r.push(e);else{var n=Math.floor(t/2),i=a(e);gn(a,i[0],n,r),gn(a,i[1],t-n,r)}return r}function CM(a,e){for(var t=[],r=0;r<e;r++)t.push(qo(a));return t}function DM(a,e){e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel}function IM(a){for(var e=[],t=0;t<a.length;)e.push([a[t++],a[t++]]);return e}function LM(a,e){var t=[],r=a.shape,n;switch(a.type){case"rect":wM(r,e,t),n=pt;break;case"sector":_c(r,e,t),n=tr;break;case"circle":_c({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,t),n=tr;break;default:var i=a.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=z(bM(a.getUpdatedPathProxy(),o),function(y){return IM(y)}),l=s.length;if(l===0)gn(wc,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var v=0,c=z(s,function(y){var m=[],S=[];Mn(y,m,S);var x=(S[1]-m[1])*(S[0]-m[0]);return v+=x,{poly:y,area:x}});c.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var f=c[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(f.area/v*e);p<0||(gn(wc,{points:f.poly},p,t),h-=p)}}n=re;break}if(!n)return CM(a,e);for(var d=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),DM(a,g),d.push(g)}return d}function PM(a,e){var t=a.length,r=e.length;if(t===r)return[a,e];for(var n=[],i=[],o=t<r?a:e,s=Math.min(t,r),l=Math.abs(r-t)/6,u=(s-2)/6,v=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],d=o[f-1],g=o[f++],y=o[f++],m=o[f++],S=o[f++],x=o[f++],_=o[f++];if(h<=0){c.push(g,y,m,S,x,_);continue}for(var b=Math.min(h,v-1)+1,w=1;w<=b;w++){var T=w/b;Qa(p,g,m,x,T,n),Qa(d,y,S,_,T,i),p=n[3],d=i[3],c.push(n[1],i[1],n[2],i[2],p,d),g=n[5],y=i[5],m=n[6],S=i[6]}h-=b-1}return o===a?[c,e]:[a,c]}function Ac(a,e){for(var t=a.length,r=a[t-2],n=a[t-1],i=[],o=0;o<e.length;)i[o++]=r,i[o++]=n;return i}function EM(a,e){for(var t,r,n,i=[],o=[],s=0;s<Math.max(a.length,e.length);s++){var l=a[s],u=e[s],v=void 0,c=void 0;l?u?(t=PM(l,u),v=t[0],c=t[1],r=v,n=c):(c=Ac(n||l,l),v=l):(v=Ac(r||u,u),c=u),i.push(v),o.push(c)}return[i,o]}function Tc(a){for(var e=0,t=0,r=0,n=a.length,i=0,o=n-2;i<n;o=i,i+=2){var s=a[o],l=a[o+1],u=a[i],v=a[i+1],c=s*v-u*l;e+=c,t+=(s+u)*c,r+=(l+v)*c}return e===0?[a[0]||0,a[1]||0]:[t/e/3,r/e/3,e]}function RM(a,e,t,r){for(var n=(a.length-2)/6,i=1/0,o=0,s=a.length,l=s-2,u=0;u<n;u++){for(var v=u*6,c=0,h=0;h<s;h+=2){var f=h===0?v:(v+h-2)%l+2,p=a[f]-t[0],d=a[f+1]-t[1],g=e[h]-r[0],y=e[h+1]-r[1],m=g-p,S=y-d;c+=m*m+S*S}c<i&&(i=c,o=u)}return o}function VM(a){for(var e=[],t=a.length,r=0;r<t;r+=2)e[r]=a[t-r-2],e[r+1]=a[t-r-1];return e}function kM(a,e,t,r){for(var n=[],i,o=0;o<a.length;o++){var s=a[o],l=e[o],u=Tc(s),v=Tc(l);i==null&&(i=u[2]<0!=v[2]<0);var c=[],h=[],f=0,p=1/0,d=[],g=s.length;i&&(s=VM(s));for(var y=RM(s,l,u,v)*6,m=g-2,S=0;S<m;S+=2){var x=(y+S)%m+2;c[S+2]=s[x]-u[0],c[S+3]=s[x+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var _=r/t,b=-r/2;b<=r/2;b+=_){for(var w=Math.sin(b),T=Math.cos(b),A=0,S=0;S<s.length;S+=2){var C=c[S],D=c[S+1],L=l[S]-v[0],I=l[S+1]-v[1],P=L*T-I*w,E=L*w+I*T;d[S]=P,d[S+1]=E;var R=P-C,k=E-D;A+=R*R+k*k}if(A<p){p=A,f=b;for(var N=0;N<d.length;N++)h[N]=d[N]}}n.push({from:c,to:h,fromCp:u,toCp:v,rotation:-f})}return n}function yn(a){return a.__isCombineMorphing}var Lp="__mOriginal_";function mn(a,e,t){var r=Lp+e,n=a[r]||a[e];a[r]||(a[r]=a[e]);var i=t.replace,o=t.after,s=t.before;a[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 $r(a,e){var t=Lp+e;a[t]&&(a[e]=a[t],a[t]=null)}function Mc(a,e){for(var t=0;t<a.length;t++)for(var r=a[t],n=0;n<r.length;){var i=r[n],o=r[n+1];r[n++]=e[0]*i+e[2]*o+e[4],r[n++]=e[1]*i+e[3]*o+e[5]}}function Pp(a,e){var t=a.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),n=EM(Po(t),Po(r)),i=n[0],o=n[1],s=a.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Mc(i,s),l&&Mc(o,l),mn(e,"updateTransform",{replace:u}),e.transform=null;var v=kM(i,o,10,Math.PI),c=[];mn(e,"buildPath",{replace:function(h){for(var f=e.__morphT,p=1-f,d=[],g=0;g<v.length;g++){var y=v[g],m=y.from,S=y.to,x=y.rotation*f,_=y.fromCp,b=y.toCp,w=Math.sin(x),T=Math.cos(x);Wg(d,_,b,f);for(var A=0;A<m.length;A+=2){var C=m[A],D=m[A+1],L=S[A],I=S[A+1],P=C*p+L*f,E=D*p+I*f;c[A]=P*T-E*w+d[0],c[A+1]=P*w+E*T+d[1]}var R=c[0],k=c[1];h.moveTo(R,k);for(var A=2;A<m.length;){var L=c[A++],I=c[A++],N=c[A++],H=c[A++],Z=c[A++],U=c[A++];R===L&&k===I&&N===Z&&H===U?h.lineTo(Z,U):h.bezierCurveTo(L,I,N,H,Z,U),R=Z,k=U}}}})}function $s(a,e,t){if(!a||!e)return e;var r=t.done,n=t.during;Pp(a,e),e.__morphT=0;function i(){$r(e,"buildPath"),$r(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Q({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),r&&r()}},t)),e}function NM(a,e,t,r,n,i){var o=16;a=n===t?0:Math.round(32767*(a-t)/(n-t)),e=i===r?0:Math.round(32767*(e-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var v=0,c=0;(a&u)>0&&(v=1),(e&u)>0&&(c=1),s+=u*u*(3*v^c),c===0&&(v===1&&(a=u-1-a,e=u-1-e),l=a,a=e,e=l)}return s}function Sn(a){var e=1/0,t=1/0,r=-1/0,n=-1/0,i=z(a,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(v,e),t=Math.min(c,t),r=Math.max(v,r),n=Math.max(c,n),[v,c]}),o=z(i,function(s,l){return{cp:s,z:NM(s[0],s[1],e,t,r,n),path:a[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ep(a){return LM(a.path,a.count)}function Ro(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zM(a,e,t){var r=[];function n(_){for(var b=0;b<_.length;b++){var w=_[b];yn(w)?n(w.childrenRef()):w instanceof Vt&&r.push(w)}}n(a);var i=r.length;if(!i)return Ro();var o=t.dividePath||Ep,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ro();r=Sn(r),s=Sn(s);for(var l=t.done,u=t.during,v=t.individualDelay,c=new dr,h=0;h<i;h++){var f=r[h],p=s[h];p.parent=e,p.copyTransform(c),v||Pp(f,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}mn(e,"addSelfToZr",{after:function(_){d(_)}}),mn(e,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,$r(e,"addSelfToZr"),$r(e,"removeSelfFromZr")}var y=s.length;if(v)for(var m=y,S=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var x=v?Q({delay:(t.delay||0)+v(h,y,r[h],s[h]),done:S},t):t;$s(r[h],s[h],x)}else e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(_){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<a.length;_++)$r(a[_],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function OM(a,e,t){var r=e.length,n=[],i=t.dividePath||Ep;function o(f){for(var p=0;p<f.length;p++){var d=f[p];yn(d)?o(d.childrenRef()):d instanceof Vt&&n.push(d)}}if(yn(a)){o(a.childrenRef());var s=n.length;if(s<r)for(var l=0,u=s;u<r;u++)n.push(qo(n[l++%s]));n.length=r}else{n=i({path:a,count:r});for(var v=a.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(v);if(n.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Ro()}n=Sn(n),e=Sn(e);for(var c=t.individualDelay,u=0;u<r;u++){var h=c?Q({delay:(t.delay||0)+c(u,r,n[u],e[u])},t):t;$s(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function Cc(a){return B(a[0])}function Dc(a,e){for(var t=[],r=a.length,n=0;n<r;n++)t.push({one:a[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%r].many.push(e[n][o])}for(var s=0,n=r-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 GM={clone:function(a){for(var e=[],t=1-Math.pow(1-a.path.style.opacity,1/a.count),r=0;r<a.count;r++){var n=qo(a.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Wi(a,e,t,r,n,i){if(!a.length||!e.length)return;var o=ma("update",r,n);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;Cc(a)&&(u=a,v=e),Cc(e)&&(u=e,v=a);function c(y,m,S,x,_){var b=y.many,w=y.one;if(b.length===1&&!_){var T=m?b[0]:w,A=m?w:b[0];if(yn(T))c({many:[T],one:A},!0,S,x,!0);else{var C=s?Q({delay:s(S,x)},l):l;$s(T,A,C),i(T,A,T,A,C)}}else for(var D=Q({dividePath:GM[t],individualDelay:s&&function(k,N,H,Z){return s(k+S,x)}},l),L=m?zM(b,w,D):OM(w,b,D),I=L.fromIndividuals,P=L.toIndividuals,E=I.length,R=0;R<E;R++){var C=s?Q({delay:s(R,E)},l):l;i(I[R],P[R],m?b[R]:y.one,m?y.one:b[R],C)}}for(var h=u?u===a:a.length>e.length,f=u?Dc(v,u):Dc(h?e:a,[h?a:e]),p=0,d=0;d<f.length;d++)p+=f[d].many.length;for(var g=0,d=0;d<f.length;d++)c(f[d],h,g,p),g+=f[d].many.length}function Ye(a){if(!a)return[];if(B(a)){for(var e=[],t=0;t<a.length;t++)e.push(Ye(a[t]));return e}var r=[];return a.traverse(function(n){n instanceof Vt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&r.push(n)}),r}var Rp=1e4,BM=0,Ic=1,Lc=2,FM=_t();function HM(a,e){for(var t=a.dimensions,r=0;r<t.length;r++){var n=a.getDimensionInfo(t[r]);if(n&&n.otherDims[e]===0)return t[r]}}function WM(a,e,t){var r=a.getDimensionInfo(t),n=r&&r.ordinalMeta;if(r){var i=a.get(r.name,e);return n&&n.categories[i]||i+""}}function Pc(a,e,t,r){var n=r?"itemChildGroupId":"itemGroupId",i=HM(a,n);if(i){var o=WM(a,e,i);return o}var s=a.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return t||a.getId(e)}function Ec(a){var e=[];return M(a,function(t){var r=t.data,n=t.dataGroupId;if(!(r.count()>Rp))for(var i=r.getIndices(),o=0;o<i.length;o++)e.push({data:r,groupId:Pc(r,o,n,!1),childGroupId:Pc(r,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Zi(a,e,t){a.traverse(function(r){r instanceof Vt&&Ft(r,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Ui(a){if(a.parent){var e=a.getComputedTransform();a.setLocalTransform(e),a.parent.remove(a)}}function cr(a){a.stopAnimation(),a.isGroup&&a.traverse(function(e){e.stopAnimation()})}function ZM(a,e,t){var r=ma("update",t,e);r&&a.traverse(function(n){if(n instanceof Qe){var i=Zg(n);i&&n.animateFrom({style:i},r)}})}function UM(a,e){var t=a.length;if(t!==e.length)return!1;for(var r=0;r<t;r++){var n=a[r],i=e[r];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Vp(a,e,t){var r=Ec(a),n=Ec(e);function i(S,x,_,b,w){(_||S)&&x.animateFrom({style:_&&_!==S?W(W({},_.style),S.style):S.style},w)}var o=!1,s=BM,l=K(),u=K();r.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var v=0;v<n.length;v++){var c=n[v].groupId;if(u.get(c)){s=Ic;break}var h=n[v].childGroupId;if(h&&l.get(h)){s=Lc;break}}function f(S,x){return function(_){var b=_.data,w=_.dataIndex;return x?b.getId(w):S?s===Ic?_.childGroupId:_.groupId:s===Lc?_.childGroupId:_.groupId}}var p=UM(r,n),d={};if(!p)for(var v=0;v<n.length;v++){var g=n[v],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(S,x){var _=r[x],b=n[S],w=b.data.hostModel,T=_.data.getItemGraphicEl(_.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(T===A){A&&ZM(A,b.dataIndex,w);return}T&&d[T.id]||A&&(cr(A),T?(cr(T),Ui(T),o=!0,Wi(Ye(T),Ye(A),b.divide,w,S,i)):Zi(A,w,S))}new ke(r,n,f(!0,p),f(!1,p),null,"multiple").update(m).updateManyToOne(function(S,x){var _=n[S],b=_.data,w=b.hostModel,T=b.getItemGraphicEl(_.dataIndex),A=Lt(z(x,function(C){return r[C].data.getItemGraphicEl(r[C].dataIndex)}),function(C){return C&&C!==T&&!d[C.id]});T&&(cr(T),A.length?(M(A,function(C){cr(C),Ui(C)}),o=!0,Wi(Ye(A),Ye(T),_.divide,w,S,i)):Zi(T,w,_.dataIndex))}).updateOneToMany(function(S,x){var _=r[x],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&d[b.id])){var w=Lt(z(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==b}),T=n[S[0]].data.hostModel;w.length&&(M(w,function(A){return cr(A)}),b?(cr(b),Ui(b),o=!0,Wi(Ye(b),Ye(w),_.divide,T,S[0],i)):M(w,function(A){return Zi(A,T,S[0])}))}}).updateManyToMany(function(S,x){new ke(x,S,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,b){m(S[_],x[b])}).execute()}).execute(),o&&M(e,function(S){var x=S.data,_=x.hostModel,b=_&&t.getViewOfSeriesModel(_),w=ma("update",_,0);b&&_.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Vt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function Rc(a){var e=a.getModel("universalTransition").get("seriesKey");return e||a.id}function Vc(a){return B(a)?a.sort().join(","):a}function Me(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function YM(a,e){var t=K(),r=K(),n=K();return M(a.oldSeries,function(i,o){var s=a.oldDataGroupIds[o],l=a.oldData[o],u=Rc(i),v=Vc(u);r.set(v,{dataGroupId:s,data:l}),B(u)&&M(u,function(c){n.set(c,{key:v,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Rc(i),u=Vc(l),v=r.get(u);if(v)t.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Me(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Me(s),data:s}]});else if(B(l)){var c=[];M(l,function(p){var d=r.get(p);d.data&&c.push({dataGroupId:d.dataGroupId,divide:Me(d.data),data:d.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Me(s)}]})}else{var h=n.get(l);if(h){var f=t.get(h.key);f||(f={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Me(h.data)}],newSeries:[]},t.set(h.key,f)),f.newSeries.push({dataGroupId:o,data:s,divide:Me(s)})}}}}),t}function kc(a,e){for(var t=0;t<a.length;t++){var r=e.seriesIndex!=null&&e.seriesIndex===a[t].seriesIndex||e.seriesId!=null&&e.seriesId===a[t].id;if(r)return t}}function $M(a,e,t,r){var n=[],i=[];M(Gt(a.from),function(o){var s=kc(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Me(e.oldData[s]),groupIdDim:o.dimension})}),M(Gt(a.to),function(o){var s=kc(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Me(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&Vp(n,i,r)}function XM(a){a.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(Gt(r.seriesTransition),function(n){M(Gt(n.to),function(i){for(var o=r.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][Zn]=!0)})})}),a.registerUpdateLifecycle("series:transition",function(e,t,r){var n=FM(t);if(n.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)M(Gt(i),function(f){$M(f,n,r,t)});else{var o=YM(n,r);M(o.keys(),function(f){var p=o.get(f);Vp(p.oldSeries,p.newSeries,t)})}M(r.updatedSeries,function(f){f[Zn]&&(f[Zn]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],v=n.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<Rp&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),v.push(h))}})}X([Ug]);X([Pm]);X([Yg,$g,Xg,Kg,Hm,D0,rS,GS,s1,f1,b1,gx,Fx,Jx,p_,m_,D_,k_,Y_,J_,lb,Ub]);X(qg);X(yw);X(Yh);X(Lw);X(Ef);X(Vw);X(Ww);X(IA);X(jg);X($o);X(YA);X(Jg);X(rT);X(uT);X(dT);X(_T);X(Qg);X(GT);X(xp);X(_p);X(iM);X(Mp);X(Cp);X(ty);X(mM);X(_M);X(XM);X(jy);const KM=Object.freeze(Object.defineProperty({__proto__:null,Axis:ve,ChartView:Tt,ComponentModel:Pt,ComponentView:kt,List:Bt,Model:Ut,PRIORITY:ey,SeriesModel:Ct,color:ry,connect:ay,dataTool:ny,dependencies:iy,disConnect:oy,disconnect:sy,dispose:ly,env:Xo,extendChartView:uy,extendComponentModel:vy,extendComponentView:cy,extendSeriesModel:hy,format:fy,getCoordinateSystemDimensions:py,getInstanceByDom:dy,getInstanceById:gy,getMap:yy,graphic:my,helper:Sy,init:xy,innerDrawElementOnCanvas:_y,matrix:by,number:wy,parseGeoJSON:$i,parseGeoJson:$i,registerAction:ha,registerCoordinateSystem:Ay,registerLayout:Ty,registerLoading:My,registerLocale:Cy,registerMap:Dy,registerPostInit:Iy,registerPostUpdate:Ly,registerPreprocessor:Py,registerProcessor:Ey,registerTheme:Ry,registerTransform:Vy,registerUpdateLifecycle:ky,registerVisual:Ny,setCanvasCreator:zy,setPlatformAPI:Oy,throttle:Gy,time:By,use:X,util:Fy,vector:Hy,version:Wy,zrUtil:Zy,zrender:Uy},Symbol.toStringTag,{value:"Module"}));var JM=(function(a){kp(e,a);function e(t){var r=a.call(this,t)||this;return r.echarts=KM,r}return e})(Yy);export{JM as default};
|