@datalayer/agent-runtimes 1.5.21 → 1.5.22

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.
Files changed (289) hide show
  1. package/dist-embed/chunks/{AgentDetails-C7tCazwB.js → AgentDetails-B6vekLFY.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-Cwps4GeH.js → AgentDetailsDialog-C-o8qFsS.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-Gk7jbg8t.js → AgentInspector-EiBHJgc9.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-BSSDOFrT.js → AgentInspectorDialog-3fbLXnLP.js} +1 -1
  5. package/dist-embed/chunks/{CellSidebarExtension-p2BAkwis.js → CellSidebarExtension-BBXRIRgA.js} +8 -8
  6. package/dist-embed/chunks/ChatView-BjZ993Ch.js +32 -0
  7. package/dist-embed/chunks/{ContextPie-bd_YOjzP.js → ContextPie-Daf19Ivt.js} +1 -1
  8. package/dist-embed/chunks/{DeckComponent-4gxuEH4A.js → DeckComponent-C76a8LYD.js} +2 -2
  9. package/dist-embed/chunks/{DocumentView-BZSYqTh_.js → DocumentView-BZhbQkbP.js} +1 -1
  10. package/dist-embed/chunks/{EphemeralDocument-Cevnk5OF.js → EphemeralDocument-Bzv1mPpG.js} +1 -1
  11. package/dist-embed/chunks/{EphemeralNotebook-JvALIbK2.js → EphemeralNotebook-C4_wmSgk.js} +1 -1
  12. package/dist-embed/chunks/{ExcalidrawComponent-CbghNk-F.js → ExcalidrawComponent-DVOnRDkN.js} +1 -1
  13. package/dist-embed/chunks/{ExcalidrawModal-BOVvWzYQ.js → ExcalidrawModal-B0h_-M3l.js} +1 -1
  14. package/dist-embed/chunks/{JupyterLexicalExtension-CRccZ2h7.js → JupyterLexicalExtension-B2PQrLXS.js} +29 -29
  15. package/dist-embed/chunks/{KernelVariables-ompObBEM.js → KernelVariables-trZsXNAi.js} +1 -1
  16. package/dist-embed/chunks/{LexicalToolRegistry-BlBEZPP4.js → LexicalToolRegistry-8wJyLumb.js} +1 -1
  17. package/dist-embed/chunks/{NotebookToolSurfaces-DP8sWqVy.js → NotebookToolSurfaces-BuKcXArX.js} +1 -1
  18. package/dist-embed/chunks/{NotebookView-DC6BDVEp.js → NotebookView-Em4y6Een.js} +1 -1
  19. package/dist-embed/chunks/{Output-C4hBhZ5k.js → Output-DA8Udq91.js} +1 -1
  20. package/dist-embed/chunks/{SandboxDetailsDialog-CX8wvCLJ.js → SandboxDetailsDialog-o2z6YFyb.js} +1 -1
  21. package/dist-embed/chunks/{SchemaForm-BuhXDyz6.js → SchemaForm-DCt_mqR1.js} +1 -1
  22. package/dist-embed/chunks/{WidgetVariableView-C2X5Ehcg.js → WidgetVariableView-CDEFi0p0.js} +1 -1
  23. package/dist-embed/chunks/{YouTubePlugin-CjgOnMCz.js → YouTubePlugin-DxRPFzvS.js} +1 -1
  24. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-wvUaPpVC.js → abnfDiagram-VCTEODGH-Cit223SC.js} +1 -1
  25. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-kzVu7pzT.js → abnfDiagram-VCTEODGH-CsoEWluu.js} +1 -1
  26. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-ArgZTGSp.js → ar-SA-G6X2FPQ2-CjJtC55z.js} +1 -1
  27. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DVZUrWEx.js → architectureDiagram-5GKGNRK7-DfqpfKOB.js} +1 -1
  28. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CwbfxDHw.js → architectureDiagram-5GKGNRK7-DyQuZM-c.js} +1 -1
  29. package/dist-embed/chunks/{az-AZ-76LH7QW2-DQgz6n32.js → az-AZ-76LH7QW2-B7KkL6wt.js} +1 -1
  30. package/dist-embed/chunks/{bg-BG-XCXSNQG7-Cx0dPt6-.js → bg-BG-XCXSNQG7-D7UwtEhO.js} +1 -1
  31. package/dist-embed/chunks/{blockDiagram-868be97b-DEQh5CUO.js → blockDiagram-868be97b-jJKAH_Up.js} +1 -1
  32. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-C6gbEBfg.js → blockDiagram-I7D4REHJ-BcQwB7-r.js} +1 -1
  33. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUIcpkIN.js → blockDiagram-I7D4REHJ-z3xnLtdG.js} +1 -1
  34. package/dist-embed/chunks/{bn-BD-2XOGV67Q-BkekmuYO.js → bn-BD-2XOGV67Q-pDDWE9Mn.js} +1 -1
  35. package/dist-embed/chunks/{c4Diagram-3f4bdde3-CUcRctJE.js → c4Diagram-3f4bdde3-DU_-LipO.js} +1 -1
  36. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DSQiEaxC.js → c4Diagram-7LVT6UL2-BeMfCOG_.js} +1 -1
  37. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-f7UaZWVg.js → c4Diagram-7LVT6UL2-DjfnLrWZ.js} +1 -1
  38. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Yr14RtMP.js → ca-ES-6MX7JW3Y-By1uEeFx.js} +1 -1
  39. package/dist-embed/chunks/{celltoolbartracker-Bx9x9aeh.js → celltoolbartracker-DcYHi8Du.js} +1 -1
  40. package/dist-embed/chunks/{chunk-2Q5K7J3B-DbzMjK_L.js → chunk-2Q5K7J3B-BGvvv_gg.js} +1 -1
  41. package/dist-embed/chunks/{chunk-2Q5K7J3B-BBPiCQqO.js → chunk-2Q5K7J3B-YWpfqKnX.js} +1 -1
  42. package/dist-embed/chunks/{chunk-5VM5RSS4-CcNPo9qP.js → chunk-5VM5RSS4-4bCWL_eZ.js} +1 -1
  43. package/dist-embed/chunks/{chunk-5VM5RSS4-rEZEdbpi.js → chunk-5VM5RSS4-t-8mwHFb.js} +1 -1
  44. package/dist-embed/chunks/{chunk-F27PBJKO-DTgjd0wN.js → chunk-F27PBJKO-3yGsHIDd.js} +1 -1
  45. package/dist-embed/chunks/{chunk-F27PBJKO-BH7lDumP.js → chunk-F27PBJKO-De9ONU-g.js} +1 -1
  46. package/dist-embed/chunks/{chunk-IMKFNOWR-DuzpuE1w.js → chunk-IMKFNOWR-Bvbi7lre.js} +1 -1
  47. package/dist-embed/chunks/{chunk-IMKFNOWR-BA-vmq_V.js → chunk-IMKFNOWR-DA2KJGep.js} +1 -1
  48. package/dist-embed/chunks/{chunk-JWPE2WC7-BfRI4eJ2.js → chunk-JWPE2WC7-CVkDZh_H.js} +1 -1
  49. package/dist-embed/chunks/{chunk-JWPE2WC7-CAdvd3EQ.js → chunk-JWPE2WC7-w_AaYpEU.js} +1 -1
  50. package/dist-embed/chunks/{chunk-POPQ4Y6H-B7pT6rUf.js → chunk-POPQ4Y6H-C1mg0obI.js} +1 -1
  51. package/dist-embed/chunks/{chunk-POPQ4Y6H-Dw1h_9lT.js → chunk-POPQ4Y6H-DnstozKC.js} +1 -1
  52. package/dist-embed/chunks/{chunk-SVP7TREG-VsO48dck.js → chunk-SVP7TREG-CVLd6GtA.js} +1 -1
  53. package/dist-embed/chunks/{chunk-SVP7TREG-BxpYXJab.js → chunk-SVP7TREG-DmKkKduL.js} +1 -1
  54. package/dist-embed/chunks/{chunk-TICWLB2K-LCiyX33a.js → chunk-TICWLB2K-C-lEt3p0.js} +1 -1
  55. package/dist-embed/chunks/{chunk-TICWLB2K-CU2oQRJ9.js → chunk-TICWLB2K-xv7MPgmq.js} +1 -1
  56. package/dist-embed/chunks/{chunk-XXDRQBXY-CL1cUI4w.js → chunk-XXDRQBXY-Cq8wF2xQ.js} +1 -1
  57. package/dist-embed/chunks/{chunk-XXDRQBXY-islJGiCO.js → chunk-XXDRQBXY-j7xuWjIK.js} +1 -1
  58. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Ctw7VU-m.js → classDiagram-ZZMXUADV-DRPRMTvC.js} +1 -1
  59. package/dist-embed/chunks/{classDiagram-ZZMXUADV-C7-Ca_nP.js → classDiagram-ZZMXUADV-Dvh08RMu.js} +1 -1
  60. package/dist-embed/chunks/{classDiagram-f62afe4f-BaJUb6H9.js → classDiagram-f62afe4f-B8-b8b-t.js} +1 -1
  61. package/dist-embed/chunks/{classDiagram-v2-604399ef-s6LKeK41.js → classDiagram-v2-604399ef-CHogX84-.js} +1 -1
  62. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Ctw7VU-m.js → classDiagram-v2-VYDZK3BY-DRPRMTvC.js} +1 -1
  63. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-C7-Ca_nP.js → classDiagram-v2-VYDZK3BY-Dvh08RMu.js} +1 -1
  64. package/dist-embed/chunks/{code-block-IT6T5CEO-BieLU8ls.js → code-block-IT6T5CEO-Dbm1cj5T.js} +1 -1
  65. package/dist-embed/chunks/{component-p2xkjXeh.js → component-CsXw-w1P.js} +1 -1
  66. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BkezndW_.js → cose-bilkent-JH36ORCC-BrisaBwh.js} +1 -1
  67. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DrOmRWVI.js → cose-bilkent-JH36ORCC-DGpwW9PH.js} +1 -1
  68. package/dist-embed/chunks/{createText-aed3d8b3-Dw8k7JC8.js → createText-aed3d8b3-C8C5hNtS.js} +1 -1
  69. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-DYR-S6bD.js → cs-CZ-2BRQDIVT-TB9QxoL2.js} +1 -1
  70. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-qZ6StjuY.js → cynefinDiagram-5FMLGOSQ-B37BRKcq.js} +1 -1
  71. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DqoI6t3s.js → cynefinDiagram-5FMLGOSQ-NXny6Mot.js} +1 -1
  72. package/dist-embed/chunks/{da-DK-5WZEPLOC-DhaHIgKI.js → da-DK-5WZEPLOC-CLl8TZ2P.js} +1 -1
  73. package/dist-embed/chunks/{dagre-GXQ25YYZ-pcAHu_bK.js → dagre-GXQ25YYZ-b03jeXc5.js} +1 -1
  74. package/dist-embed/chunks/{dagre-GXQ25YYZ-Bb0_WA3x.js → dagre-GXQ25YYZ-mM6SsGs8.js} +1 -1
  75. package/dist-embed/chunks/{de-DE-XR44H4JA-CJpRH2Fy.js → de-DE-XR44H4JA-6gY_Hl4H.js} +1 -1
  76. package/dist-embed/chunks/{diagram-S7CK7UJ4-W17wgXHY.js → diagram-S7CK7UJ4-C8TF_Y_V.js} +1 -1
  77. package/dist-embed/chunks/{diagram-S7CK7UJ4-CwINt91M.js → diagram-S7CK7UJ4-fpaH_1xM.js} +1 -1
  78. package/dist-embed/chunks/{diagram-UQ7AKVKN-mH7QBO8y.js → diagram-UQ7AKVKN-CcqaQfbU.js} +1 -1
  79. package/dist-embed/chunks/{diagram-UQ7AKVKN-CXRpfLBt.js → diagram-UQ7AKVKN-G8fspx37.js} +1 -1
  80. package/dist-embed/chunks/{diagram-VSXAHHWV-CFHqpDaB.js → diagram-VSXAHHWV-B3Q41FOl.js} +1 -1
  81. package/dist-embed/chunks/{diagram-VSXAHHWV-Bg68Bv82.js → diagram-VSXAHHWV-DLhWEHn-.js} +1 -1
  82. package/dist-embed/chunks/{diagram-VX7I27RA-DQ6XlKLw.js → diagram-VX7I27RA-Dnbm3teD.js} +1 -1
  83. package/dist-embed/chunks/{diagram-VX7I27RA-BEO0D7jE.js → diagram-VX7I27RA-Dy-IHeZr.js} +1 -1
  84. package/dist-embed/chunks/{diagram-Z3DM3KII-BLJQK61P.js → diagram-Z3DM3KII-BkiB9_Ay.js} +1 -1
  85. package/dist-embed/chunks/{diagram-Z3DM3KII-Cenqf76m.js → diagram-Z3DM3KII-hE5FTtNp.js} +1 -1
  86. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-6H6OSebp.js → ebnfDiagram-PWID7BFC-DJhj6Mbd.js} +1 -1
  87. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Cqmnghct.js → ebnfDiagram-PWID7BFC-DZiCEGSK.js} +1 -1
  88. package/dist-embed/chunks/{edges-b2856ca0-ChO7JKaP.js → edges-b2856ca0-DuBY_rn3.js} +1 -1
  89. package/dist-embed/chunks/{el-GR-BZB4AONW-DPGB1p8K.js → el-GR-BZB4AONW-CFGi_gqP.js} +1 -1
  90. package/dist-embed/chunks/{erDiagram-5d81789a-jzhAXdZi.js → erDiagram-5d81789a-BYOejxuX.js} +1 -1
  91. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DEAWMrMT.js → erDiagram-RLTQ6QDP-Bg2UfSBM.js} +1 -1
  92. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-hAbP0vV0.js → erDiagram-RLTQ6QDP-v1tF2vX5.js} +1 -1
  93. package/dist-embed/chunks/{es-ES-U4NZUMDT-CLztgM3g.js → es-ES-U4NZUMDT-D_HQumEp.js} +1 -1
  94. package/dist-embed/chunks/{eu-ES-A7QVB2H4--ffZf65_.js → eu-ES-A7QVB2H4-CvUID20p.js} +1 -1
  95. package/dist-embed/chunks/{fa-IR-HGAKTJCU-Cwwej6FC.js → fa-IR-HGAKTJCU-C7_Vi5QP.js} +1 -1
  96. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-Tw-dUSxy.js → fi-FI-Z5N7JZ37-SBYxKS7Q.js} +1 -1
  97. package/dist-embed/chunks/{flowDb-185abca5-DDUaXZ_Q.js → flowDb-185abca5-C_IywhMB.js} +1 -1
  98. package/dist-embed/chunks/{flowDiagram-1629c991-DpvDtFPK.js → flowDiagram-1629c991-C8JQo90r.js} +1 -1
  99. package/dist-embed/chunks/{flowDiagram-HODETNUW-DENY4Bvt.js → flowDiagram-HODETNUW-BigtRRvu.js} +1 -1
  100. package/dist-embed/chunks/{flowDiagram-HODETNUW-Hr-elwWq.js → flowDiagram-HODETNUW-Cd1y1bVx.js} +1 -1
  101. package/dist-embed/chunks/{flowDiagram-v2-1d953310-TxFSXMN7.js → flowDiagram-v2-1d953310-DTH8N-sj.js} +1 -1
  102. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-BGFxwidp.js → flowchart-elk-definition-6df44142-W8s7oFgJ.js} +1 -1
  103. package/dist-embed/chunks/{fr-FR-RHASNOE6-CT1NyjSV.js → fr-FR-RHASNOE6-fAErz4Nf.js} +1 -1
  104. package/dist-embed/chunks/{ganttDiagram-3b0b3873-DJqKtGUz.js → ganttDiagram-3b0b3873-D_XwfPDh.js} +1 -1
  105. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-3bErrKpg.js → ganttDiagram-EL5Y4UJY-BIsU1Bcw.js} +1 -1
  106. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Ddh9hVkO.js → ganttDiagram-EL5Y4UJY-VT_s02F9.js} +1 -1
  107. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-B3BVHs36.js → gitGraphDiagram-WWUBYQGX-BDdr_2gq.js} +1 -1
  108. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BiEolUQH.js → gitGraphDiagram-WWUBYQGX-BvxzF9hn.js} +1 -1
  109. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-vOvP_sU8.js → gitGraphDiagram-f01e8bc2-UBa5a0HV.js} +1 -1
  110. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BKTaXj_2.js → gl-ES-HMX3MZ6V-DCciQOEM.js} +1 -1
  111. package/dist-embed/chunks/{he-IL-6SHJWFNN-BJ5SwTG5.js → he-IL-6SHJWFNN-CuQhQVb2.js} +1 -1
  112. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-D5ZQxogx.js → hi-IN-IWLTKZ5I-BlH8AK2z.js} +1 -1
  113. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-CoAAAzpy.js → hu-HU-A5ZG7DT2-BaBGhZVQ.js} +1 -1
  114. package/dist-embed/chunks/{id-ID-SAP4L64H-DFWbGjYj.js → id-ID-SAP4L64H-Dkm1zS1g.js} +1 -1
  115. package/dist-embed/chunks/{index-9bae90f3-YA-Pbv-C.js → index-9bae90f3-CvHGNDGk.js} +1 -1
  116. package/dist-embed/chunks/{index-BVzIb3Wy.js → index-B9aqZrHy.js} +1 -1
  117. package/dist-embed/chunks/{index-Db1qHC1a.js → index-BDs-ntTo.js} +1 -1
  118. package/dist-embed/chunks/{index-BfMo5nXi.js → index-BQp4l7hT.js} +2 -2
  119. package/dist-embed/chunks/{index-1MXuxaax.js → index-BcdbHyzT.js} +1 -1
  120. package/dist-embed/chunks/{index-B9vBhR-p.js → index-BqDJ3hYN.js} +1 -1
  121. package/dist-embed/chunks/{index-DMf0f7ny.js → index-CFP9psRB.js} +2 -2
  122. package/dist-embed/chunks/{index-CkOZcvYl.js → index-CUAnjzKL.js} +1 -1
  123. package/dist-embed/chunks/{index-FbZJIbu_.js → index-CWwj0zW9.js} +1 -1
  124. package/dist-embed/chunks/{index-CxIZHPCc.js → index-CecqH6mN.js} +1 -1
  125. package/dist-embed/chunks/{index-BuyZwxeT.js → index-CoxYszKx.js} +1 -1
  126. package/dist-embed/chunks/{index-BzQxauhZ.js → index-CozDzMOf.js} +1 -1
  127. package/dist-embed/chunks/{index-B0MhQWhs.js → index-CrL-deXT.js} +1 -1
  128. package/dist-embed/chunks/{index-fQxrRXLD.js → index-CtEseCtc.js} +1 -1
  129. package/dist-embed/chunks/{index-DPzPvDBn.js → index-D2vkNPmG.js} +1 -1
  130. package/dist-embed/chunks/{index-8Jy3Vws8.js → index-D5xVRNk8.js} +6 -6
  131. package/dist-embed/chunks/{index-DTCcg1ap.js → index-D8wHLHbt.js} +1 -1
  132. package/dist-embed/chunks/{index-DSgHh0-i.js → index-DAZUOPnd.js} +1 -1
  133. package/dist-embed/chunks/{index-CCA_V9Td.js → index-DE_JTiwB.js} +1 -1
  134. package/dist-embed/chunks/{index-B8y71UkT.js → index-DMll0Yzi.js} +1 -1
  135. package/dist-embed/chunks/{index-B0omKuYl.js → index-DN-cizG6.js} +1 -1
  136. package/dist-embed/chunks/{index-JhvHCMRQ.js → index-DPHM1WLM.js} +1 -1
  137. package/dist-embed/chunks/{index-C7os26P7.js → index-DSN70XMH.js} +2 -2
  138. package/dist-embed/chunks/{index-6feFd5AZ.js → index-Dc5AqaeZ.js} +1 -1
  139. package/dist-embed/chunks/{index-BL4KuFQP.js → index-DdmqZZnv.js} +1 -1
  140. package/dist-embed/chunks/{index-D62kZnWZ.js → index-DlYw1KQn.js} +5 -5
  141. package/dist-embed/chunks/{index-BgWf1G8H.js → index-Dobs-OKl.js} +1 -1
  142. package/dist-embed/chunks/{index-CIDdX0nc.js → index-Dp3JEvYy.js} +1 -1
  143. package/dist-embed/chunks/{index-DTbF6Y7O.js → index-DsMBsL3g.js} +1 -1
  144. package/dist-embed/chunks/{index-TDpnbl90.js → index-DvyxBamA.js} +4 -4
  145. package/dist-embed/chunks/{index-BNFZYAJT.js → index-SsFECYMb.js} +1 -1
  146. package/dist-embed/chunks/{index-Dw1P-H6s.js → index-YVrQYH-H.js} +1 -1
  147. package/dist-embed/chunks/{index-DpJpQnPn.js → index-a9o1fYab.js} +1 -1
  148. package/dist-embed/chunks/{index-BTeNnRc_.js → index-bC_5dTbf.js} +4 -4
  149. package/dist-embed/chunks/{index-DiBcWu6d.js → index-jJxXKHoT.js} +1 -1
  150. package/dist-embed/chunks/{index.esm-B6P80s3J.js → index.esm-p0OnSU9h.js} +1 -1
  151. package/dist-embed/chunks/{index.esm-z-R1Ypx2.js → index.esm-q_fIJH5v.js} +1 -1
  152. package/dist-embed/chunks/{infoDiagram-27XIBGKW-8DlnjSdf.js → infoDiagram-27XIBGKW-DIeaDzEK.js} +1 -1
  153. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CZPNcDbH.js → infoDiagram-27XIBGKW-DZ6Xhv3K.js} +1 -1
  154. package/dist-embed/chunks/{infoDiagram-a29d40f1-Di_kmyTC.js → infoDiagram-a29d40f1-B9PMyz4X.js} +1 -1
  155. package/dist-embed/chunks/{isEqual-D0eOPSLC.js → isEqual-Cwjr2skl.js} +1 -1
  156. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-ri4cvaWs.js → ishikawaDiagram-5VMMS53U-BP4Q8nEu.js} +1 -1
  157. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DD5TaPvH.js → ishikawaDiagram-5VMMS53U-CwrdITPn.js} +1 -1
  158. package/dist-embed/chunks/{it-IT-JPQ66NNP-C7p9bCWQ.js → it-IT-JPQ66NNP-BrcctIsI.js} +1 -1
  159. package/dist-embed/chunks/{ja-JP-DBVTYXUO-DupAM7Cv.js → ja-JP-DBVTYXUO-CKuJ3Sod.js} +1 -1
  160. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-1NqbTyL4.js → journeyDiagram-3NMN7TZE-iJrCUeL0.js} +1 -1
  161. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BpYgEBLO.js → journeyDiagram-3NMN7TZE-wI34jsXX.js} +1 -1
  162. package/dist-embed/chunks/{journeyDiagram-95396277-xr9Xk_mL.js → journeyDiagram-95396277-B6WhL2Fl.js} +1 -1
  163. package/dist-embed/chunks/{kaa-6HZHGXH3-DrthOcPY.js → kaa-6HZHGXH3-ChFYZBwI.js} +1 -1
  164. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C4hr0kbU.js → kab-KAB-ZGHBKWFO-C7C7EuVk.js} +1 -1
  165. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DlSwjr3b.js → kanban-definition-UXKFOSKX-B8AB0LN4.js} +1 -1
  166. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B5nUu45Q.js → kanban-definition-UXKFOSKX-gqU76cK9.js} +1 -1
  167. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CrjDkh9r.js → kk-KZ-P5N5QNE5-Bff18CC1.js} +1 -1
  168. package/dist-embed/chunks/{km-KH-HSX4SM5Z-JHWf7VZ6.js → km-KH-HSX4SM5Z-DU2YQt8I.js} +1 -1
  169. package/dist-embed/chunks/{ko-KR-MTYHY66A-CJ4JxKMG.js → ko-KR-MTYHY66A-CQruDlRn.js} +1 -1
  170. package/dist-embed/chunks/{ku-TR-6OUDTVRD-YSlLPag_.js → ku-TR-6OUDTVRD-DoySMeIi.js} +1 -1
  171. package/dist-embed/chunks/{layout-5FOjTADt.js → layout-CJFemkl6.js} +1 -1
  172. package/dist-embed/chunks/{layout-Bdtul_rg.js → layout-DbdaqszO.js} +1 -1
  173. package/dist-embed/chunks/{lexicalHooks-eqXJbnX9.js → lexicalHooks-Pqoe8h_O.js} +1 -1
  174. package/dist-embed/chunks/{lt-LT-XHIRWOB4-2v6r2YYq.js → lt-LT-XHIRWOB4-72Vmr8iW.js} +1 -1
  175. package/dist-embed/chunks/{lv-LV-5QDEKY6T-DVGd68q4.js → lv-LV-5QDEKY6T-CxtO97qO.js} +1 -1
  176. package/dist-embed/chunks/{mermaid.core-DY5DKOtx.js → mermaid.core-CAzPWd8O.js} +3 -3
  177. package/dist-embed/chunks/{mermaid.core-BU1Nkb56.js → mermaid.core-DaZxhAXO.js} +5 -5
  178. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-sSfUfKt8.js → mindmap-definition-YA3MSWOX-D8W0sJ7P.js} +1 -1
  179. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-CEuIjXO2.js → mindmap-definition-YA3MSWOX-DPl-uWpT.js} +1 -1
  180. package/dist-embed/chunks/{mindmap-definition-e4c1d938-btrk6STt.js → mindmap-definition-e4c1d938-CGXwlH4A.js} +1 -1
  181. package/dist-embed/chunks/{mr-IN-CRQNXWMA-D1q8zjMr.js → mr-IN-CRQNXWMA-BNGEl_QE.js} +1 -1
  182. package/dist-embed/chunks/{my-MM-5M5IBNSE-CCWuEpIN.js → my-MM-5M5IBNSE-4wIAMvGF.js} +1 -1
  183. package/dist-embed/chunks/{nb-NO-T6EIAALU-eJ92wx2h.js → nb-NO-T6EIAALU-z-1s9yX9.js} +1 -1
  184. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DmkMgsvp.js → nl-NL-IS3SIHDZ-CYKGEVB8.js} +1 -1
  185. package/dist-embed/chunks/{nn-NO-6E72VCQL-CWYEaXBn.js → nn-NO-6E72VCQL-DwQFIFpO.js} +1 -1
  186. package/dist-embed/chunks/{oc-FR-POXYY2M6-CayriaEZ.js → oc-FR-POXYY2M6-mH2n3eM_.js} +1 -1
  187. package/dist-embed/chunks/{pa-IN-N4M65BXN-CydiKcR8.js → pa-IN-N4M65BXN-DbixE6jQ.js} +1 -1
  188. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CqRRvKft.js → pegDiagram-XKGWAZYB-D3qs3UBw.js} +1 -1
  189. package/dist-embed/chunks/{pegDiagram-XKGWAZYB--dcG-x2B.js → pegDiagram-XKGWAZYB-DJmZupPa.js} +1 -1
  190. package/dist-embed/chunks/{percentages-BXMCSKIN-fzYCDL7m.js → percentages-BXMCSKIN-5Q9KX_WU.js} +5 -5
  191. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CkHpKSua.js → pieDiagram-E7YTZNPT-C58cd6s7.js} +1 -1
  192. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-D-uncTun.js → pieDiagram-E7YTZNPT-CrZQ-dOy.js} +1 -1
  193. package/dist-embed/chunks/{pieDiagram-c941bede-BoVaJIdw.js → pieDiagram-c941bede-Dn3GMx6q.js} +1 -1
  194. package/dist-embed/chunks/{pl-PL-T2D74RX3-DhiK4YSC.js → pl-PL-T2D74RX3-jOVonFYe.js} +1 -1
  195. package/dist-embed/chunks/{pt-BR-5N22H2LF-CwSVxIqs.js → pt-BR-5N22H2LF-Cx4MrqgK.js} +1 -1
  196. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BnxquNJT.js → pt-PT-UZXXM6DQ-B2PzNwuF.js} +1 -1
  197. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-nOA8Q9nG.js → quadrantDiagram-AXDQQJYC-CJn8hkR8.js} +1 -1
  198. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-ClE_bWPS.js → quadrantDiagram-AXDQQJYC-haT-kxqE.js} +1 -1
  199. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-V_e2KgDu.js → quadrantDiagram-cf8b8fe0-B3wudq14.js} +1 -1
  200. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CkhmY0tS.js → railroadDiagram-O6MQD6OU-T23yIHww.js} +1 -1
  201. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-D-SNyKIn.js → railroadDiagram-O6MQD6OU-Ty6XXjBy.js} +1 -1
  202. package/dist-embed/chunks/{renderer-BwlsmtXF.js → renderer-Au1S-H5k.js} +1 -1
  203. package/dist-embed/chunks/{requirementDiagram-53bda41b-BZw7Ipej.js → requirementDiagram-53bda41b-B-eAYQ6c.js} +1 -1
  204. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BXwXUXrr.js → requirementDiagram-BXWQKSXE-CgkHdmYF.js} +1 -1
  205. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-1A97ivzl.js → requirementDiagram-BXWQKSXE-fpBmgh7Q.js} +1 -1
  206. package/dist-embed/chunks/{ro-RO-JPDTUUEW-D3G2f_fQ.js → ro-RO-JPDTUUEW-BCQxuLcc.js} +1 -1
  207. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-SnVfNwaW.js → ru-RU-B4JR7IUQ-CqSiHvqj.js} +1 -1
  208. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-ktT6v9aY.js → sankeyDiagram-P5KCCOFB-DEGMK43Q.js} +1 -1
  209. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-0B_Kvjm2.js → sankeyDiagram-P5KCCOFB-hDbZE81L.js} +1 -1
  210. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-e1QLivkZ.js → sankeyDiagram-c3ef121a-O14jOeqO.js} +1 -1
  211. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-N-16oABv.js → sequenceDiagram-82a5b84f-BFFzLElQ.js} +1 -1
  212. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CtbkJYCv.js → sequenceDiagram-WJ2MYXX4-MrC4K4SC.js} +1 -1
  213. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DYY-dZgX.js → sequenceDiagram-WJ2MYXX4-wongMGVN.js} +1 -1
  214. package/dist-embed/chunks/{sessions-C9DBCyZI.js → sessions-BRALW9Yv.js} +1 -1
  215. package/dist-embed/chunks/{si-LK-N5RQ5JYF-Da7Bfexz.js → si-LK-N5RQ5JYF-Dbgk5YHt.js} +1 -1
  216. package/dist-embed/chunks/{sizeCapture-INFHLROL-B3xt8UaI.js → sizeCapture-INFHLROL-CiOiAAo5.js} +1 -1
  217. package/dist-embed/chunks/{sizeCapture-INFHLROL-DJOph387.js → sizeCapture-INFHLROL-j4-sCda0.js} +1 -1
  218. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BB-Ks1b-.js → sk-SK-C5VTKIMK-OBAaNvVw.js} +1 -1
  219. package/dist-embed/chunks/{sl-SI-NN7IZMDC-DF3fUKHX.js → sl-SI-NN7IZMDC-DqLxi4IM.js} +1 -1
  220. package/dist-embed/chunks/{stateDiagram-43e79a5f-BJcJNr41.js → stateDiagram-43e79a5f-BZm5gFdu.js} +1 -1
  221. package/dist-embed/chunks/{stateDiagram-D77RDMKH-LjWP-fRB.js → stateDiagram-D77RDMKH-D7_xyy8n.js} +1 -1
  222. package/dist-embed/chunks/{stateDiagram-D77RDMKH-DVd0MOrg.js → stateDiagram-D77RDMKH-DXrbH1aM.js} +1 -1
  223. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DTEruWg2.js → stateDiagram-v2-2041ed4f-DiXOgJsK.js} +1 -1
  224. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CJD5_Eji.js → stateDiagram-v2-MP3YSRHH-DLsY6ysL.js} +1 -1
  225. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-_xCQcvgo.js → stateDiagram-v2-MP3YSRHH-ngWpJn6k.js} +1 -1
  226. package/dist-embed/chunks/{styles-455b33cd-OIhmfs6N.js → styles-455b33cd-CrHizSU7.js} +1 -1
  227. package/dist-embed/chunks/{styles-f932cba9-CwLjreIv.js → styles-f932cba9-YuCN7fSa.js} +1 -1
  228. package/dist-embed/chunks/{styles-fcc2142b-DP74dQpR.js → styles-fcc2142b-tjrOPOh4.js} +1 -1
  229. package/dist-embed/chunks/{subset-shared.chunk-Cf9zgTA9.js → subset-shared.chunk-Du2agLgk.js} +1 -1
  230. package/dist-embed/chunks/{subset-worker.chunk-WYW3AHku.js → subset-worker.chunk-BXR8pgHc.js} +1 -1
  231. package/dist-embed/chunks/{sv-SE-XGPEYMSR-CeR-pJHy.js → sv-SE-XGPEYMSR-BbgHKxhC.js} +1 -1
  232. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-CgE5QJIv.js → svgDrawCommon-148a3cd9-DTqtvo5_.js} +1 -1
  233. package/dist-embed/chunks/{swimlanes-42K2YHIH-CZyflHYJ.js → swimlanes-42K2YHIH-B289Mbni.js} +1 -1
  234. package/dist-embed/chunks/{swimlanes-42K2YHIH-Cj4fdAYa.js → swimlanes-42K2YHIH-B3H_wpMu.js} +1 -1
  235. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-B2gk37ys.js → swimlanesDiagram-VR7AAH4N-D0ZHzw-_.js} +1 -1
  236. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Bmr6N4fj.js → swimlanesDiagram-VR7AAH4N-qWg-2xN_.js} +1 -1
  237. package/dist-embed/chunks/{ta-IN-2NMHFXQM-lmsodGuU.js → ta-IN-2NMHFXQM-0pH7gQyu.js} +1 -1
  238. package/dist-embed/chunks/{th-TH-HPSO5L25-DQCWr96I.js → th-TH-HPSO5L25-Dvbu09CU.js} +1 -1
  239. package/dist-embed/chunks/{timeline-definition-24CTP7MA-DqY5EM6p.js → timeline-definition-24CTP7MA-DUc18SdK.js} +1 -1
  240. package/dist-embed/chunks/{timeline-definition-24CTP7MA-D5dMAy5U.js → timeline-definition-24CTP7MA-DpMq7g2g.js} +1 -1
  241. package/dist-embed/chunks/{timeline-definition-7545f45a-B8wMEyZY.js → timeline-definition-7545f45a--4ypi4BE.js} +1 -1
  242. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CqnvlGZW.js → tr-TR-DEFEU3FU-B6YS3iEB.js} +1 -1
  243. package/dist-embed/chunks/{uk-UA-QMV73CPH-DdWFjbHe.js → uk-UA-QMV73CPH-DMG9vIVp.js} +1 -1
  244. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-63-O_xI8.js → vennDiagram-4TSXK5OY-CS12EGJw.js} +1 -1
  245. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BMg6wc5A.js → vennDiagram-4TSXK5OY-CvEXE1xX.js} +1 -1
  246. package/dist-embed/chunks/{vi-VN-M7AON7JQ-CydTT0Fi.js → vi-VN-M7AON7JQ-DB3ZrpeP.js} +1 -1
  247. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C5wMQ_qe.js → wardleyDiagram-VM6X3IG4-8LfGni9_.js} +1 -1
  248. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C9vLUvHf.js → wardleyDiagram-VM6X3IG4-Bj02LzjH.js} +1 -1
  249. package/dist-embed/chunks/{xychartDiagram-3f383b91-BfoQg8n9.js → xychartDiagram-3f383b91-CE_OY5QR.js} +1 -1
  250. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BZr3T3n_.js → xychartDiagram-S5SC5T6Z-BdZi5x4a.js} +1 -1
  251. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DthHDnAV.js → xychartDiagram-S5SC5T6Z-DXqC0l3r.js} +1 -1
  252. package/dist-embed/chunks/{zh-CN-LNUGB5OW-DEn1TFfK.js → zh-CN-LNUGB5OW-VV-lg83H.js} +1 -1
  253. package/dist-embed/chunks/{zh-HK-E62DVLB3-DJQRmOHH.js → zh-HK-E62DVLB3-DLoyC6Q9.js} +1 -1
  254. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-B7s9vmSf.js → zh-TW-RAJ6MFWO-DhFllgOW.js} +1 -1
  255. package/dist-embed/datalayer-app-main.js +21 -21
  256. package/lib/apps/apps/records.d.ts +0 -29
  257. package/lib/apps/apps/records.js +11 -34
  258. package/lib/apps/apps/threads.d.ts +2 -21
  259. package/lib/apps/apps/threads.js +0 -75
  260. package/lib/apps/embed/embedSession.d.ts +0 -8
  261. package/lib/apps/embed/embedSession.js +1 -38
  262. package/lib/apps/embed/visitorApp.d.ts +22 -3
  263. package/lib/apps/embed/visitorApp.js +42 -4
  264. package/lib/apps/plugins/chat/ChatView.js +2 -1
  265. package/lib/chat/base/ChatBase.js +1 -1
  266. package/lib/chat/base/fullContextMessages.js +1 -1
  267. package/lib/hooks/useAgUi.js +1 -1
  268. package/lib/hooks/useToolApprovals.d.ts +1 -1
  269. package/lib/hooks/useToolApprovals.js +1 -1
  270. package/lib/{protocols → portable}/agUiRefusal.d.ts +1 -1
  271. package/lib/{protocols → portable}/agUiRefusal.js +1 -1
  272. package/lib/portable/agui.d.ts +72 -0
  273. package/lib/portable/agui.js +174 -0
  274. package/lib/portable/conversation.d.ts +124 -0
  275. package/lib/portable/conversation.js +357 -0
  276. package/lib/portable/index.d.ts +11 -6
  277. package/lib/portable/index.js +14 -11
  278. package/lib/portable/records.d.ts +27 -0
  279. package/lib/portable/records.js +46 -0
  280. package/lib/portable/sessions.d.ts +92 -0
  281. package/lib/portable/sessions.js +134 -0
  282. package/lib/portable/thread.d.ts +41 -0
  283. package/lib/portable/thread.js +102 -0
  284. package/lib/protocols/AGUIAdapter.d.ts +0 -2
  285. package/lib/protocols/AGUIAdapter.js +39 -74
  286. package/package.json +1 -1
  287. package/dist-embed/chunks/ChatView-fHb_i4kH.js +0 -32
  288. /package/lib/{utils → portable}/approvals.d.ts +0 -0
  289. /package/lib/{utils → portable}/approvals.js +0 -0
@@ -1,4 +1,4 @@
1
- import{sg as XL,a8 as ZL,sZ as rT,s_ as $m,s$ as qL,sX as lv,v as KL,r as jL,t0 as Xm}from"../datalayer-app-main.js";var Ep=function(r,e){return Ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Ep(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ep(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var JL=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),QL=(function(){function r(){this.browser=new JL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),yt=new QL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window?(yt.node=!0,yt.svgSupported=!0):t2(navigator.userAgent,yt);function t2(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var wg=12,aT="sans-serif",tn=wg+"px "+aT,e2=20,r2=100,a2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function n2(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-e2)/r2;e[a]=n}return e}var i2=n2(a2),Ir={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=Ir.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||tn),r.measureText(t);t=t||"",a=a||tn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||wg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=i2[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}};function nT(r){for(var e in Ir)r[e]&&(Ir[e]=r[e])}var iT=fr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),oT=fr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Co=Object.prototype.toString,yh=Array.prototype,o2=yh.forEach,s2=yh.filter,Tg=yh.slice,l2=yh.map,Zm=function(){}.constructor,jl=Zm?Zm.prototype:null,Cg="__proto__",u2=2311;function Ag(){return u2++}function mh(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=Co.call(r);if(t==="[object Array]"){if(!no(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(oT[t]){if(!no(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!iT[t]&&!no(r)&&!li(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Cg&&(e[o]=rt(r[o]))}return e}function ut(r,e,t){if(!tt(e)||!tt(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Cg){var n=r[a],i=e[a];tt(i)&&tt(n)&&!V(i)&&!V(n)&&!li(i)&&!li(n)&&!kp(i)&&!kp(n)&&!no(i)&&!no(n)?ut(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function _h(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ut(t,r[a],e);return t}function z(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Cg&&(r[t]=e[t]);return r}function J(r,e,t){for(var a=_t(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var f2=Ir.createCanvas;function vt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function Dg(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Xt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else J(r,e,t)}function ve(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===o2)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function G(r,e,t){if(!r)return[];if(!e)return Sh(r);if(r.map&&r.map===l2)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function fr(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Ct(r,e,t){if(!r)return[];if(!e)return Sh(r);if(r.filter&&r.filter===s2)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function sT(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function _t(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function h2(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Tg.call(arguments)))}}var $=jl&&K(jl.bind)?jl.call.bind(jl.bind):h2;function lt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Tg.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):Co.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function _f(r){return Co.call(r)==="[object String]"}function wt(r){return typeof r=="number"}function tt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function kp(r){return!!iT[Co.call(r)]}function Ee(r){return!!oT[Co.call(r)]}function li(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ml(r){return r.colorStops!=null}function lT(r){return r.image!=null}function uT(r){return Co.call(r)==="[object RegExp]"}function vo(r){return r!==r}function ae(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function st(r,e){return r??e}function Cr(r,e,t){return r??e??t}function Sh(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Tg.apply(r,e)}function xh(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function be(r,e){if(!r)throw new Error(e)}function lr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fT="__ec_primitive__";function Js(r){r[fT]=!0}function no(r){return r[fT]}var v2=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return _t(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),hT=typeof Map=="function";function c2(){return hT?new Map:new v2}var vT=(function(){function r(e){var t=V(e);this.data=c2();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return hT?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Z(r){return new vT(r)}function co(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Il(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&z(t,e),t}function Mg(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function X(r,e){return r.hasOwnProperty(e)}function $t(){}var Os=180/Math.PI;const p2=Object.freeze(Object.defineProperty({__proto__:null,HashMap:vT,RADIAN_TO_DEGREE:Os,assert:be,bind:$,clone:rt,concatArray:co,createCanvas:f2,createHashMap:Z,createObject:Il,curry:lt,defaults:J,disableUserSelect:Mg,each:D,eqNaN:vo,extend:z,filter:Ct,find:sT,guid:Ag,hasOwn:X,indexOf:vt,inherits:Dg,isArray:V,isArrayLike:ve,isBuiltInObject:kp,isDom:li,isFunction:K,isGradientObject:Ml,isImagePatternObject:lT,isNumber:wt,isObject:tt,isPrimitive:no,isRegExp:uT,isString:Y,isStringSafe:_f,isTypedArray:Ee,keys:_t,logError:mh,map:G,merge:ut,mergeAll:_h,mixin:Xt,noop:$t,normalizeCssArray:xh,reduce:fr,retrieve:ae,retrieve2:st,retrieve3:Cr,setAsPrimitive:Js,slice:Sh,trim:lr},Symbol.toStringTag,{value:"Module"}));var Op=function(r,e){return Op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Op(r,e)};function Ft(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Op(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function sn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function me(r,e){return r[0]=e[0],r[1]=e[1],r}function Xr(r){return[r[0],r[1]]}function cT(r,e,t){return r[0]=e,r[1]=t,r}function Np(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Sf(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Ga(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Qs(r){return Math.sqrt(Ig(r))}var d2=Qs;function Ig(r){return r[0]*r[0]+r[1]*r[1]}var g2=Ig;function y2(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function m2(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function _2(r,e){return r[0]*e[0]+r[1]*e[1]}function Ns(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function yi(r,e){var t=Qs(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function xf(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ha=xf;function pT(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Xa=pT;function S2(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Bs(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function fe(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function va(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ca(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const x2=Object.freeze(Object.defineProperty({__proto__:null,add:Np,applyTransform:fe,clone:Xr,copy:me,create:sn,dist:ha,distSquare:Xa,distance:xf,distanceSquare:pT,div:m2,dot:_2,len:Qs,lenSquare:Ig,length:d2,lengthSquare:g2,lerp:Bs,max:ca,min:va,mul:y2,negate:S2,normalize:yi,scale:Ns,scaleAndAdd:Sf,set:cT,sub:Ga},Symbol.toStringTag,{value:"Module"}));var Ai=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),b2=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ai(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Ai(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ai(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ai(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ai(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ai(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),vr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),w2=Math.log(2);function Bp(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/w2);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var p=1<<v;p&n||(h+=(c%2?-1:1)*r[t][v]*Bp(r,e-1,f,u,n|p,i),c++)}return i[o]=h,h}function qm(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Bp(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Bp(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Km="___zrEVENTSAVED",uv=[];function T2(r,e,t,a,n){return zp(uv,e,a,n,!0)&&zp(r,t,uv[0],uv[1])}function zp(r,e,t,a,n){if(e.getBoundingClientRect&&yt.domSupported&&!dT(e)){var i=e[Km]||(e[Km]={}),o=C2(e,i),s=A2(o,i,n);if(s)return s(r,t,a),!0}return!1}function C2(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function A2(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?qm(s,o):qm(o,s))}function dT(r){return r.nodeName.toUpperCase()==="CANVAS"}var D2=/([&<>"'])/g,M2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Se(r){return r==null?"":(r+"").replace(D2,function(e,t){return M2[t]})}var I2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fv=[],L2=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function Vp(r,e,t,a){return t=t||{},a?jm(r,e,t):L2&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):jm(r,e,t),t}function jm(r,e,t){if(yt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dT(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(zp(fv,r,a,n)){t.zrX=fv[0],t.zrY=fv[1];return}}t.zrX=t.zrY=0}function Lg(r){return r||window.event}function er(r,e,t){if(e=Lg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Vp(r,o,e,t)}else{Vp(r,e,e,t);var i=P2(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&I2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function P2(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Gp(r,e,t,a){r.addEventListener(e,t,a)}function R2(r,e,t,a){r.removeEventListener(e,t,a)}var ma=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Jm(r){return r.which===2||r.which===3}var E2=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Vp(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hv)if(hv.hasOwnProperty(t)){var a=hv[t](this._track,e);if(a)return a}},r})();function Qm(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function k2(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hv={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=Qm(a)/Qm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=k2(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Fe(){return[1,0,0,1,0,0]}function Ll(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function bh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Zr(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Lr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function ln(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function wh(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function mi(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function gT(r){var e=Fe();return bh(e,r),e}const O2=Object.freeze(Object.defineProperty({__proto__:null,clone:gT,copy:bh,create:Fe,identity:Ll,invert:mi,mul:Zr,rotate:ln,scale:wh,translate:Lr},Symbol.toStringTag,{value:"Module"}));var ft=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Jl=Math.min,Ql=Math.max,cn=new ft,pn=new ft,dn=new ft,gn=new ft,Yo=new ft,$o=new ft,ht=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Jl(e.x,this.x),a=Jl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ql(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ql(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Fe();return Lr(i,i,[-t.x,-t.y]),wh(i,i,[a,n]),Lr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,p=0,d=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);i<l||u<n?_>p&&(p=_,d<g?ft.set($o,-d,0):ft.set($o,g,0)):_<c&&(c=_,d<g?ft.set(Yo,d,0):ft.set(Yo,-g,0)),s<f||h<o?S>p&&(p=S,y<m?ft.set($o,0,-y):ft.set($o,0,m)):_<c&&(c=_,y<m?ft.set(Yo,0,y):ft.set(Yo,0,-m))}return t&&ft.copy(t,v?Yo:$o),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}cn.x=dn.x=t.x,cn.y=gn.y=t.y,pn.x=gn.x=t.x+t.width,pn.y=dn.y=t.y+t.height,cn.transform(a),gn.transform(a),pn.transform(a),dn.transform(a),e.x=Jl(cn.x,pn.x,dn.x,gn.x),e.y=Jl(cn.y,pn.y,dn.y,gn.y);var l=Ql(cn.x,pn.x,dn.x,gn.x),u=Ql(cn.y,pn.y,dn.y,gn.y);e.width=l-e.x,e.height=u-e.y},r})(),yT="silent";function N2(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:B2}}function B2(){ma(this.event)}var z2=(function(r){Ft(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(vr),Xo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),V2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vv=new ht(0,0,0,0),mT=(function(r){Ft(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Xo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new z2,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new b2(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(V2,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=_T(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Xo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Xo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=N2(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Xo(t,a);if(t0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(vv.copy(v.getBoundingRect()),v.transform&&vv.applyTransform(v.transform),vv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<d;y+=p){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(t0(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new E2);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Xo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(vr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){mT.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=_T(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ha(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function G2(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?yT:!0}return!1}function t0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=G2(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==yT)){e.target=o;break}}}function _T(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var ST=32,Zo=7;function F2(r){for(var e=0;r>=ST;)e|=r&1,r>>=1;return r+e}function e0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;H2(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function H2(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function r0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function cv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function pv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function W2(r,e){var t=Zo,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var p=a[c],d=n[c],g=a[c+1],y=n[c+1];n[c]=d+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=pv(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=cv(r[p+d-1],r,g,y,y-1,e),y!==0&&(d<=y?h(p,d,g,y):v(p,d,g,y)))}function h(c,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[c+y];var m=0,_=d,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,T;;){x=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--p===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=pv(r[_],o,m,p,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=cv(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--p===1){T=!0;break}b--}while(x>=Zo||w>=Zo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function v(c,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=c+p-1,_=g-1,S=d+g-1,b=0,x=0;if(r[S--]=r[m--],--p===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=p-pv(o[_],r,c,p,p-1,e),T!==0){for(S-=T,m-=T,p-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-cv(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--p===0){A=!0;break}w--}while(T>=Zo||C>=Zo);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Qu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<ST){i=e0(r,t,a,e),r0(r,t,a,t+i,e);return}var o=W2(r,e),s=F2(n);do{if(i=e0(r,t,a,e),i<s){var l=n;l>s&&(l=s),r0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Ue=1,ws=2,qi=4,a0=!1;function dv(){a0||(a0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function n0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var U2=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=n0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Qu(a,n0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Ue),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(dv(),f.z=0),isNaN(f.z2)&&(dv(),f.z2=0),isNaN(f.zlevel)&&(dv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=vt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),bf;bf=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-zs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?zs.bounceIn(r*2)*.5:zs.bounceOut(r*2-1)*.5+.5}},tu=Math.pow,Za=Math.sqrt,wf=1e-8,xT=1e-4,i0=Za(3),eu=1/3,Hr=sn(),ir=sn(),io=sn();function Fa(r){return r>-wf&&r<wf}function bT(r){return r>wf||r<-wf}function re(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function o0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Tf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Fa(f)&&Fa(h))if(Fa(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Fa(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Za(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-tu(-_,eu):_=tu(_,eu),S<0?S=-tu(-S,eu):S=tu(S,eu);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Za(f*f*f)),x=Math.acos(b)/3,w=Za(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+i0*Math.sin(x)))/(3*o),C=(-s+w*(T-i0*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function wT(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Fa(o)){if(bT(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Fa(f))n[0]=-i/(2*o);else if(f>0){var h=Za(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function en(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function TT(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Hr[0]=l,Hr[1]=u;for(var m=0;m<1;m+=.05)ir[0]=re(r,t,n,o,m),ir[1]=re(e,a,i,s,m),g=Xa(Hr,ir),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<xT);_++)p=h-v,d=h+v,ir[0]=re(r,t,n,o,p),ir[1]=re(e,a,i,s,p),g=Xa(ir,Hr),p>=0&&g<c?(h=p,c=g):(io[0]=re(r,t,n,o,d),io[1]=re(e,a,i,s,d),y=Xa(io,Hr),d<=1&&y<c?(h=d,c=y):v*=.5);return f&&(f[0]=re(r,t,n,o,h),f[1]=re(e,a,i,s,h)),Za(c)}function Y2(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var p=c*v,d=re(r,t,n,o,p),g=re(e,a,i,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function ue(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Fp(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function $2(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Fa(i)){if(bT(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Fa(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Za(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function CT(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function tl(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function AT(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Hr[0]=o,Hr[1]=s;for(var v=0;v<1;v+=.05){ir[0]=ue(r,t,n,v),ir[1]=ue(e,a,i,v);var c=Xa(Hr,ir);c<h&&(u=v,h=c)}h=1/0;for(var p=0;p<32&&!(f<xT);p++){var d=u-f,g=u+f;ir[0]=ue(r,t,n,d),ir[1]=ue(e,a,i,d);var c=Xa(ir,Hr);if(d>=0&&c<h)u=d,h=c;else{io[0]=ue(r,t,n,g),io[1]=ue(e,a,i,g);var y=Xa(io,Hr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=ue(r,t,n,u),l[1]=ue(e,a,i,u)),Za(h)}function X2(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=ue(r,t,n,v),p=ue(e,a,i,v),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var Z2=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pg(r){var e=r&&Z2.exec(r);if(e){var t=e[1].split(","),a=+lr(t[0]),n=+lr(t[1]),i=+lr(t[2]),o=+lr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Tf(0,a,i,1,l,s)&&re(0,n,o,1,s[0])}}}var q2=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:zs[e]||Pg(e)},r})(),DT=(function(){function r(e){this.value=e}return r})(),K2=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new DT(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Pl=(function(){function r(e){this._list=new K2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new DT(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),s0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ar(r){return r=Math.round(r),r<0?0:r>255?255:r}function j2(r){return r=Math.round(r),r<0?0:r>360?360:r}function el(r){return r<0?0:r>1?1:r}function gv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ar(parseFloat(e)/100*255):Ar(parseInt(e,10))}function ei(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?el(parseFloat(e)/100):el(parseFloat(e))}function yv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ha(r,e,t){return r+(e-r)*t}function tr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Hp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MT=new Pl(20),ru=null;function Di(r,e){ru&&Hp(ru,e),ru=MT.put(r,ru||e.slice())}function Pe(r,e){if(r){e=e||[];var t=MT.get(r);if(t)return Hp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in s0)return Hp(e,s0[a]),Di(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){tr(e,0,0,0,1);return}return tr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Di(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){tr(e,0,0,0,1);return}return tr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Di(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?tr(e,+u[0],+u[1],+u[2],1):tr(e,0,0,0,1);f=ei(u.pop());case"rgb":if(u.length>=3)return tr(e,gv(u[0]),gv(u[1]),gv(u[2]),u.length===3?f:ei(u[3])),Di(r,e),e;tr(e,0,0,0,1);return;case"hsla":if(u.length!==4){tr(e,0,0,0,1);return}return u[3]=ei(u[3]),Wp(u,e),Di(r,e),e;case"hsl":if(u.length!==3){tr(e,0,0,0,1);return}return Wp(u,e),Di(r,e),e;default:return}}tr(e,0,0,0,1)}}function Wp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ei(r[1]),n=ei(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],tr(e,Ar(yv(o,i,t+1/3)*255),Ar(yv(o,i,t)*255),Ar(yv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function J2(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Cf(r,e){var t=Pe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Dr(t,t.length===4?"rgba":"rgb")}}function Q2(r){var e=Pe(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Vs(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Ar(Ha(o[0],s[0],l)),t[1]=Ar(Ha(o[1],s[1],l)),t[2]=Ar(Ha(o[2],s[2],l)),t[3]=el(Ha(o[3],s[3],l)),t}}var tP=Vs;function Rg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Pe(e[n]),s=Pe(e[i]),l=a-n,u=Dr([Ar(Ha(o[0],s[0],l)),Ar(Ha(o[1],s[1],l)),Ar(Ha(o[2],s[2],l)),el(Ha(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var eP=Rg;function oo(r,e,t,a){var n=Pe(r);if(r)return n=J2(n),e!=null&&(n[0]=j2(e)),t!=null&&(n[1]=ei(t)),a!=null&&(n[2]=ei(a)),Dr(Wp(n),"rgba")}function rl(r,e){var t=Pe(r);if(t&&e!=null)return t[3]=el(e),Dr(t,"rgba")}function Dr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function al(r,e){var t=Pe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function rP(){return Dr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var l0=new Pl(100);function Af(r){if(Y(r)){var e=l0.get(r);return e||(e=Cf(r,-.1),l0.put(r,e)),e}else if(Ml(r)){var t=z({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:Cf(a.color,-.1)}}),t}return r}const aP=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Vs,fastMapToColor:tP,lerp:Rg,lift:Cf,liftColor:Af,lum:al,mapToColor:eP,modifyAlpha:rl,modifyHSL:oo,parse:Pe,random:rP,stringify:Dr,toHex:Q2},Symbol.toStringTag,{value:"Module"}));var Df=Math.round;function nl(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Pe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var u0=1e-4;function Wa(r){return r<u0&&r>-u0}function au(r){return Df(r*1e3)/1e3}function Up(r){return Df(r*1e4)/1e4}function nP(r){return"matrix("+au(r[0])+","+au(r[1])+","+au(r[2])+","+au(r[3])+","+Up(r[4])+","+Up(r[5])+")"}var iP={left:"start",right:"end",center:"middle",middle:"middle"};function oP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function sP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function lP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function IT(r){return r&&!!r.image}function uP(r){return r&&!!r.svgElement}function Eg(r){return IT(r)||uP(r)}function LT(r){return r.type==="linear"}function PT(r){return r.type==="radial"}function RT(r){return r&&(r.type==="linear"||r.type==="radial")}function Th(r){return"url(#"+r+")"}function ET(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function kT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Os,n=st(r.scaleX,1),i=st(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Df(o*Os)+"deg, "+Df(s*Os)+"deg)"),l.join(" ")}var fP=(function(){return yt.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Yp=Array.prototype.slice;function ua(r,e,t){return(e-r)*t+r}function mv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ua(e[i],t[i],a);return r}function hP(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ua(e[o][s],t[o][s],a)}return r}function nu(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function f0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function vP(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function cP(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Yp.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Gs(r){if(ve(r)){var e=r.length;if(ve(r[0])){for(var t=[],a=0;a<e;a++)t.push(Yp.call(r[a]));return t}return Yp.call(r)}return r}function tf(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function pP(r){return ve(r&&r[0])?2:1}var iu=0,ef=1,OT=2,Ts=3,$p=4,Xp=5,h0=6;function v0(r){return r===$p||r===Xp}function ou(r){return r===ef||r===OT}var qo=[0,0,0,0],dP=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=h0,l=t;if(ve(t)){var u=pP(t);s=u,(u===1&&!wt(t[0])||u===2&&!wt(t[0][0]))&&(o=!0)}else if(wt(t)&&!vo(t))s=iu;else if(Y(t))if(!isNaN(+t))s=iu;else{var f=Pe(t);f&&(l=f,s=Ts)}else if(Ml(t)){var h=z({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Pe(c.color)}}),LT(t)?s=$p:PT(t)&&(s=Xp),l=h}i===0?this.valType=s:(s!==this.valType||s===h0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:zs[a]||Pg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ou(n),u=v0(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?cP(v,c,n):u&&vP(v.colorStops,c.colorStops))}if(!s&&n!==Xp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var p=a[0].value,f=0;f<i;f++)n===iu?a[f].additiveValue=a[f].value-p:n===Ts?a[f].additiveValue=nu([],a[f].value,p,-1):ou(n)&&(a[f].additiveValue=n===ef?nu([],a[f].value,p,-1):f0([],a[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ts,f,h=this._lastFr,v=Math.min,c,p;if(s===1)c=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=v(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?qo:e[l];if((ou(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(ou(i))i===ef?mv(m,c[n],p[n],y):hP(m,c[n],p[n],y);else if(v0(i)){var _=c[n],S=p[n],b=i===$p;e[l]={type:b?"linear":"radial",x:ua(_.x,S.x,y),y:ua(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:ua(w.offset,C.offset,y),color:tf(mv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=ua(_.x2,S.x2,y),e[l].y2=ua(_.y2,S.y2,y)):e[l].r=ua(_.r,S.r,y)}else if(u)mv(m,c[n],p[n],y),a||(e[l]=tf(m));else{var x=ua(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===iu?e[a]=e[a]+n:t===Ts?(Pe(e[a],qo),nu(qo,qo,n,1),e[a]=tf(qo)):t===ef?nu(e[a],e[a],n,1):t===OT&&f0(e[a],e[a],n,1)},r})(),kg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){mh("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,_t(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new dP(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Ts&&u&&(u=tf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Gs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Gs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new q2({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Gs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||_t(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function to(){return new Date().getTime()}var gP=(function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=to()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(bf(a),!t._paused&&t.update())}bf(a)},e.prototype.start=function(){this._running||(this._time=to(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=to(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=to()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new kg(t,a.loop);return this.addAnimator(n),n},e})(vr),yP=300,_v=yt.domSupported,Sv=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),c0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p0=!1;function Zp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function mP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xv(r){r&&(r.zrByTouch=!0)}function _P(r,e){return er(r.dom,new SP(r,e),!0)}function NT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var SP=(function(){function r(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Sr={mousedown:function(r){r=er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=er(this.dom,r);var e=r.toElement||r.relatedTarget;NT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){p0=!0,r=er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){p0||(r=er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=er(this.dom,r),xv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Sr.mousemove.call(this,r),Sr.mousedown.call(this,r)},touchmove:function(r){r=er(this.dom,r),xv(r),this.handler.processGesture(r,"change"),Sr.mousemove.call(this,r)},touchend:function(r){r=er(this.dom,r),xv(r),this.handler.processGesture(r,"end"),Sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<yP&&Sr.click.call(this,r)},pointerdown:function(r){Sr.mousedown.call(this,r)},pointermove:function(r){Zp(r)||Sr.mousemove.call(this,r)},pointerup:function(r){Sr.mouseup.call(this,r)},pointerout:function(r){Zp(r)||Sr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Sr[r]=function(e){e=er(this.dom,e),this.trigger(r,e)}});var qp={pointermove:function(r){Zp(r)||qp.mousemove.call(this,r)},pointerup:function(r){qp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function xP(r,e){var t=e.domHandlers;yt.pointerEventsSupported?D(Sv.pointer,function(a){rf(e,a,function(n){t[a].call(r,n)})}):(yt.touchEventsSupported&&D(Sv.touch,function(a){rf(e,a,function(n){t[a].call(r,n),mP(e)})}),D(Sv.mouse,function(a){rf(e,a,function(n){n=Lg(n),e.touching||t[a].call(r,n)})}))}function bP(r,e){yt.pointerEventsSupported?D(c0.pointer,t):yt.touchEventsSupported||D(c0.mouse,t);function t(a){function n(i){i=Lg(i),NT(r,i.target)||(i=_P(r,i),e.domHandlers[a].call(r,i))}rf(e,a,n,{capture:!0})}}function rf(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Gp(r.domTarget,e,t,a)}function bv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&R2(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var d0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),wP=(function(r){Ft(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new d0(t,Sr),_v&&(n._globalHandlerScope=new d0(document,qp)),xP(n,n._localHandlerScope),n}return e.prototype.dispose=function(){bv(this._localHandlerScope),_v&&bv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,_v&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?bP(this,a):bv(a)}},e})(vr),BT=1;yt.hasGlobalWindow&&(BT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mf=BT,Kp=.4,jp="#333",Jp="#ccc",TP="#eee",g0=Ll,y0=5e-5;function yn(r){return r>y0||r<-y0}var mn=[],Mi=[],wv=Fe(),Tv=Math.abs,pa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return yn(this.rotation)||yn(this.x)||yn(this.y)||yn(this.scaleX-1)||yn(this.scaleY-1)||yn(this.skewX)||yn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(g0(a),this.invTransform=null);return}a=a||Fe(),t?this.getLocalTransform(a):g0(a),e&&(t?Zr(a,e,a):bh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(mn);var a=mn[0]<0?-1:1,n=mn[1]<0?-1:1,i=((mn[0]-a)*t+a)/mn[0]||0,o=((mn[1]-n)*t+n)/mn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Fe(),mi(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Fe(),Zr(Mi,e.invTransform,t),t=Mi);var a=this.originX,n=this.originY;(a||n)&&(wv[4]=a,wv[5]=n,Zr(Mi,t,wv),Mi[4]-=a,Mi[5]-=n,t=Mi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&fe(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&fe(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Tv(e[0]-1)>1e-10&&Tv(e[3]-1)>1e-10?Math.sqrt(Tv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){zT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&ln(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Kr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function zT(r,e){for(var t=0;t<Kr.length;t++){var a=Kr[t];r[a]=e[a]}}var m0={};function Ze(r,e){e=e||tn;var t=m0[e];t||(t=m0[e]=new Pl(500));var a=t.get(r);return a==null&&(a=Ir.measureText(r,e).width,t.put(r,a)),a}function _0(r,e,t,a){var n=Ze(r,e),i=Ch(e),o=Cs(0,n,t),s=Ki(0,i,a),l=new ht(o,s,n,i);return l}function Rl(r,e,t,a){var n=((r||"")+"").split(`
1
+ import{sh as XL,a8 as ZL,s_ as rT,s$ as $m,t0 as qL,sY as lv,v as KL,r as jL,t1 as Xm}from"../datalayer-app-main.js";var Ep=function(r,e){return Ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Ep(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ep(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var JL=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),QL=(function(){function r(){this.browser=new JL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),yt=new QL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window?(yt.node=!0,yt.svgSupported=!0):t2(navigator.userAgent,yt);function t2(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var wg=12,aT="sans-serif",tn=wg+"px "+aT,e2=20,r2=100,a2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function n2(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-e2)/r2;e[a]=n}return e}var i2=n2(a2),Ir={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=Ir.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||tn),r.measureText(t);t=t||"",a=a||tn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||wg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=i2[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}};function nT(r){for(var e in Ir)r[e]&&(Ir[e]=r[e])}var iT=fr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),oT=fr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Co=Object.prototype.toString,yh=Array.prototype,o2=yh.forEach,s2=yh.filter,Tg=yh.slice,l2=yh.map,Zm=function(){}.constructor,jl=Zm?Zm.prototype:null,Cg="__proto__",u2=2311;function Ag(){return u2++}function mh(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=Co.call(r);if(t==="[object Array]"){if(!no(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(oT[t]){if(!no(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!iT[t]&&!no(r)&&!li(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Cg&&(e[o]=rt(r[o]))}return e}function ut(r,e,t){if(!tt(e)||!tt(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Cg){var n=r[a],i=e[a];tt(i)&&tt(n)&&!V(i)&&!V(n)&&!li(i)&&!li(n)&&!kp(i)&&!kp(n)&&!no(i)&&!no(n)?ut(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function _h(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ut(t,r[a],e);return t}function z(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Cg&&(r[t]=e[t]);return r}function J(r,e,t){for(var a=_t(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var f2=Ir.createCanvas;function vt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function Dg(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Xt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else J(r,e,t)}function ve(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===o2)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function G(r,e,t){if(!r)return[];if(!e)return Sh(r);if(r.map&&r.map===l2)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function fr(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Ct(r,e,t){if(!r)return[];if(!e)return Sh(r);if(r.filter&&r.filter===s2)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function sT(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function _t(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function h2(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Tg.call(arguments)))}}var $=jl&&K(jl.bind)?jl.call.bind(jl.bind):h2;function lt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Tg.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):Co.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function _f(r){return Co.call(r)==="[object String]"}function wt(r){return typeof r=="number"}function tt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function kp(r){return!!iT[Co.call(r)]}function Ee(r){return!!oT[Co.call(r)]}function li(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ml(r){return r.colorStops!=null}function lT(r){return r.image!=null}function uT(r){return Co.call(r)==="[object RegExp]"}function vo(r){return r!==r}function ae(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function st(r,e){return r??e}function Cr(r,e,t){return r??e??t}function Sh(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Tg.apply(r,e)}function xh(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function be(r,e){if(!r)throw new Error(e)}function lr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fT="__ec_primitive__";function Js(r){r[fT]=!0}function no(r){return r[fT]}var v2=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return _t(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),hT=typeof Map=="function";function c2(){return hT?new Map:new v2}var vT=(function(){function r(e){var t=V(e);this.data=c2();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return hT?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Z(r){return new vT(r)}function co(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Il(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&z(t,e),t}function Mg(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function X(r,e){return r.hasOwnProperty(e)}function $t(){}var Os=180/Math.PI;const p2=Object.freeze(Object.defineProperty({__proto__:null,HashMap:vT,RADIAN_TO_DEGREE:Os,assert:be,bind:$,clone:rt,concatArray:co,createCanvas:f2,createHashMap:Z,createObject:Il,curry:lt,defaults:J,disableUserSelect:Mg,each:D,eqNaN:vo,extend:z,filter:Ct,find:sT,guid:Ag,hasOwn:X,indexOf:vt,inherits:Dg,isArray:V,isArrayLike:ve,isBuiltInObject:kp,isDom:li,isFunction:K,isGradientObject:Ml,isImagePatternObject:lT,isNumber:wt,isObject:tt,isPrimitive:no,isRegExp:uT,isString:Y,isStringSafe:_f,isTypedArray:Ee,keys:_t,logError:mh,map:G,merge:ut,mergeAll:_h,mixin:Xt,noop:$t,normalizeCssArray:xh,reduce:fr,retrieve:ae,retrieve2:st,retrieve3:Cr,setAsPrimitive:Js,slice:Sh,trim:lr},Symbol.toStringTag,{value:"Module"}));var Op=function(r,e){return Op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},Op(r,e)};function Ft(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Op(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function sn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function me(r,e){return r[0]=e[0],r[1]=e[1],r}function Xr(r){return[r[0],r[1]]}function cT(r,e,t){return r[0]=e,r[1]=t,r}function Np(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Sf(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Ga(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Qs(r){return Math.sqrt(Ig(r))}var d2=Qs;function Ig(r){return r[0]*r[0]+r[1]*r[1]}var g2=Ig;function y2(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function m2(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function _2(r,e){return r[0]*e[0]+r[1]*e[1]}function Ns(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function yi(r,e){var t=Qs(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function xf(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ha=xf;function pT(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Xa=pT;function S2(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Bs(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function fe(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function va(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ca(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const x2=Object.freeze(Object.defineProperty({__proto__:null,add:Np,applyTransform:fe,clone:Xr,copy:me,create:sn,dist:ha,distSquare:Xa,distance:xf,distanceSquare:pT,div:m2,dot:_2,len:Qs,lenSquare:Ig,length:d2,lengthSquare:g2,lerp:Bs,max:ca,min:va,mul:y2,negate:S2,normalize:yi,scale:Ns,scaleAndAdd:Sf,set:cT,sub:Ga},Symbol.toStringTag,{value:"Module"}));var Ai=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),b2=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ai(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Ai(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ai(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ai(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ai(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ai(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),vr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),w2=Math.log(2);function Bp(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/w2);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var p=1<<v;p&n||(h+=(c%2?-1:1)*r[t][v]*Bp(r,e-1,f,u,n|p,i),c++)}return i[o]=h,h}function qm(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Bp(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Bp(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var Km="___zrEVENTSAVED",uv=[];function T2(r,e,t,a,n){return zp(uv,e,a,n,!0)&&zp(r,t,uv[0],uv[1])}function zp(r,e,t,a,n){if(e.getBoundingClientRect&&yt.domSupported&&!dT(e)){var i=e[Km]||(e[Km]={}),o=C2(e,i),s=A2(o,i,n);if(s)return s(r,t,a),!0}return!1}function C2(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function A2(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?qm(s,o):qm(o,s))}function dT(r){return r.nodeName.toUpperCase()==="CANVAS"}var D2=/([&<>"'])/g,M2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Se(r){return r==null?"":(r+"").replace(D2,function(e,t){return M2[t]})}var I2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fv=[],L2=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function Vp(r,e,t,a){return t=t||{},a?jm(r,e,t):L2&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):jm(r,e,t),t}function jm(r,e,t){if(yt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dT(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(zp(fv,r,a,n)){t.zrX=fv[0],t.zrY=fv[1];return}}t.zrX=t.zrY=0}function Lg(r){return r||window.event}function er(r,e,t){if(e=Lg(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Vp(r,o,e,t)}else{Vp(r,e,e,t);var i=P2(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&I2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function P2(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function Gp(r,e,t,a){r.addEventListener(e,t,a)}function R2(r,e,t,a){r.removeEventListener(e,t,a)}var ma=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Jm(r){return r.which===2||r.which===3}var E2=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Vp(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hv)if(hv.hasOwnProperty(t)){var a=hv[t](this._track,e);if(a)return a}},r})();function Qm(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function k2(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hv={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=Qm(a)/Qm(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=k2(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Fe(){return[1,0,0,1,0,0]}function Ll(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function bh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Zr(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Lr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function ln(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function wh(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function mi(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function gT(r){var e=Fe();return bh(e,r),e}const O2=Object.freeze(Object.defineProperty({__proto__:null,clone:gT,copy:bh,create:Fe,identity:Ll,invert:mi,mul:Zr,rotate:ln,scale:wh,translate:Lr},Symbol.toStringTag,{value:"Module"}));var ft=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Jl=Math.min,Ql=Math.max,cn=new ft,pn=new ft,dn=new ft,gn=new ft,Yo=new ft,$o=new ft,ht=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Jl(e.x,this.x),a=Jl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ql(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ql(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Fe();return Lr(i,i,[-t.x,-t.y]),wh(i,i,[a,n]),Lr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,p=0,d=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);i<l||u<n?_>p&&(p=_,d<g?ft.set($o,-d,0):ft.set($o,g,0)):_<c&&(c=_,d<g?ft.set(Yo,d,0):ft.set(Yo,-g,0)),s<f||h<o?S>p&&(p=S,y<m?ft.set($o,0,-y):ft.set($o,0,m)):_<c&&(c=_,y<m?ft.set(Yo,0,y):ft.set(Yo,0,-m))}return t&&ft.copy(t,v?Yo:$o),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}cn.x=dn.x=t.x,cn.y=gn.y=t.y,pn.x=gn.x=t.x+t.width,pn.y=dn.y=t.y+t.height,cn.transform(a),gn.transform(a),pn.transform(a),dn.transform(a),e.x=Jl(cn.x,pn.x,dn.x,gn.x),e.y=Jl(cn.y,pn.y,dn.y,gn.y);var l=Ql(cn.x,pn.x,dn.x,gn.x),u=Ql(cn.y,pn.y,dn.y,gn.y);e.width=l-e.x,e.height=u-e.y},r})(),yT="silent";function N2(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:B2}}function B2(){ma(this.event)}var z2=(function(r){Ft(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(vr),Xo=(function(){function r(e,t){this.x=e,this.y=t}return r})(),V2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vv=new ht(0,0,0,0),mT=(function(r){Ft(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Xo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new z2,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new b2(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(V2,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=_T(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Xo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Xo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=N2(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Xo(t,a);if(t0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(vv.copy(v.getBoundingRect()),v.transform&&vv.applyTransform(v.transform),vv.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<d;y+=p){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(t0(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new E2);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Xo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(vr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){mT.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=_T(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ha(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function G2(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?yT:!0}return!1}function t0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=G2(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==yT)){e.target=o;break}}}function _T(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var ST=32,Zo=7;function F2(r){for(var e=0;r>=ST;)e|=r&1,r>>=1;return r+e}function e0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;H2(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function H2(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function r0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function cv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function pv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function W2(r,e){var t=Zo,a,n,i=0,o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var p=a[c],d=n[c],g=a[c+1],y=n[c+1];n[c]=d+y,c===i-3&&(a[c+1]=a[c+2],n[c+1]=n[c+2]),i--;var m=pv(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=cv(r[p+d-1],r,g,y,y-1,e),y!==0&&(d<=y?h(p,d,g,y):v(p,d,g,y)))}function h(c,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[c+y];var m=0,_=d,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,T;;){x=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--p===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=pv(r[_],o,m,p,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=cv(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--p===1){T=!0;break}b--}while(x>=Zo||w>=Zo);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function v(c,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=c+p-1,_=g-1,S=d+g-1,b=0,x=0;if(r[S--]=r[m--],--p===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=p-pv(o[_],r,c,p,p-1,e),T!==0){for(S-=T,m-=T,p-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-cv(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--p===0){A=!0;break}w--}while(T>=Zo||C>=Zo);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Qu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<ST){i=e0(r,t,a,e),r0(r,t,a,t+i,e);return}var o=W2(r,e),s=F2(n);do{if(i=e0(r,t,a,e),i<s){var l=n;l>s&&(l=s),r0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Ue=1,ws=2,qi=4,a0=!1;function dv(){a0||(a0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function n0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var U2=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=n0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Qu(a,n0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Ue),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(dv(),f.z=0),isNaN(f.z2)&&(dv(),f.z2=0),isNaN(f.zlevel)&&(dv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=vt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),bf;bf=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-zs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?zs.bounceIn(r*2)*.5:zs.bounceOut(r*2-1)*.5+.5}},tu=Math.pow,Za=Math.sqrt,wf=1e-8,xT=1e-4,i0=Za(3),eu=1/3,Hr=sn(),ir=sn(),io=sn();function Fa(r){return r>-wf&&r<wf}function bT(r){return r>wf||r<-wf}function re(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function o0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Tf(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Fa(f)&&Fa(h))if(Fa(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(Fa(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Za(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-tu(-_,eu):_=tu(_,eu),S<0?S=-tu(-S,eu):S=tu(S,eu);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Za(f*f*f)),x=Math.acos(b)/3,w=Za(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+i0*Math.sin(x)))/(3*o),C=(-s+w*(T-i0*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function wT(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Fa(o)){if(bT(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Fa(f))n[0]=-i/(2*o);else if(f>0){var h=Za(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function en(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function TT(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Hr[0]=l,Hr[1]=u;for(var m=0;m<1;m+=.05)ir[0]=re(r,t,n,o,m),ir[1]=re(e,a,i,s,m),g=Xa(Hr,ir),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<xT);_++)p=h-v,d=h+v,ir[0]=re(r,t,n,o,p),ir[1]=re(e,a,i,s,p),g=Xa(ir,Hr),p>=0&&g<c?(h=p,c=g):(io[0]=re(r,t,n,o,d),io[1]=re(e,a,i,s,d),y=Xa(io,Hr),d<=1&&y<c?(h=d,c=y):v*=.5);return f&&(f[0]=re(r,t,n,o,h),f[1]=re(e,a,i,s,h)),Za(c)}function Y2(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var p=c*v,d=re(r,t,n,o,p),g=re(e,a,i,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function ue(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Fp(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function $2(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Fa(i)){if(bT(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Fa(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Za(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function CT(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function tl(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function AT(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Hr[0]=o,Hr[1]=s;for(var v=0;v<1;v+=.05){ir[0]=ue(r,t,n,v),ir[1]=ue(e,a,i,v);var c=Xa(Hr,ir);c<h&&(u=v,h=c)}h=1/0;for(var p=0;p<32&&!(f<xT);p++){var d=u-f,g=u+f;ir[0]=ue(r,t,n,d),ir[1]=ue(e,a,i,d);var c=Xa(ir,Hr);if(d>=0&&c<h)u=d,h=c;else{io[0]=ue(r,t,n,g),io[1]=ue(e,a,i,g);var y=Xa(io,Hr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=ue(r,t,n,u),l[1]=ue(e,a,i,u)),Za(h)}function X2(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=ue(r,t,n,v),p=ue(e,a,i,v),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var Z2=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pg(r){var e=r&&Z2.exec(r);if(e){var t=e[1].split(","),a=+lr(t[0]),n=+lr(t[1]),i=+lr(t[2]),o=+lr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Tf(0,a,i,1,l,s)&&re(0,n,o,1,s[0])}}}var q2=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||$t,this.ondestroy=e.ondestroy||$t,this.onrestart=e.onrestart||$t,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:zs[e]||Pg(e)},r})(),DT=(function(){function r(e){this.value=e}return r})(),K2=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new DT(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Pl=(function(){function r(e){this._list=new K2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new DT(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),s0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Ar(r){return r=Math.round(r),r<0?0:r>255?255:r}function j2(r){return r=Math.round(r),r<0?0:r>360?360:r}function el(r){return r<0?0:r>1?1:r}function gv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ar(parseFloat(e)/100*255):Ar(parseInt(e,10))}function ei(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?el(parseFloat(e)/100):el(parseFloat(e))}function yv(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ha(r,e,t){return r+(e-r)*t}function tr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Hp(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MT=new Pl(20),ru=null;function Di(r,e){ru&&Hp(ru,e),ru=MT.put(r,ru||e.slice())}function Pe(r,e){if(r){e=e||[];var t=MT.get(r);if(t)return Hp(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in s0)return Hp(e,s0[a]),Di(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){tr(e,0,0,0,1);return}return tr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Di(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){tr(e,0,0,0,1);return}return tr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Di(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?tr(e,+u[0],+u[1],+u[2],1):tr(e,0,0,0,1);f=ei(u.pop());case"rgb":if(u.length>=3)return tr(e,gv(u[0]),gv(u[1]),gv(u[2]),u.length===3?f:ei(u[3])),Di(r,e),e;tr(e,0,0,0,1);return;case"hsla":if(u.length!==4){tr(e,0,0,0,1);return}return u[3]=ei(u[3]),Wp(u,e),Di(r,e),e;case"hsl":if(u.length!==3){tr(e,0,0,0,1);return}return Wp(u,e),Di(r,e),e;default:return}}tr(e,0,0,0,1)}}function Wp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ei(r[1]),n=ei(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],tr(e,Ar(yv(o,i,t+1/3)*255),Ar(yv(o,i,t)*255),Ar(yv(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function J2(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Cf(r,e){var t=Pe(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Dr(t,t.length===4?"rgba":"rgb")}}function Q2(r){var e=Pe(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Vs(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Ar(Ha(o[0],s[0],l)),t[1]=Ar(Ha(o[1],s[1],l)),t[2]=Ar(Ha(o[2],s[2],l)),t[3]=el(Ha(o[3],s[3],l)),t}}var tP=Vs;function Rg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Pe(e[n]),s=Pe(e[i]),l=a-n,u=Dr([Ar(Ha(o[0],s[0],l)),Ar(Ha(o[1],s[1],l)),Ar(Ha(o[2],s[2],l)),el(Ha(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var eP=Rg;function oo(r,e,t,a){var n=Pe(r);if(r)return n=J2(n),e!=null&&(n[0]=j2(e)),t!=null&&(n[1]=ei(t)),a!=null&&(n[2]=ei(a)),Dr(Wp(n),"rgba")}function rl(r,e){var t=Pe(r);if(t&&e!=null)return t[3]=el(e),Dr(t,"rgba")}function Dr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function al(r,e){var t=Pe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function rP(){return Dr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var l0=new Pl(100);function Af(r){if(Y(r)){var e=l0.get(r);return e||(e=Cf(r,-.1),l0.put(r,e)),e}else if(Ml(r)){var t=z({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:Cf(a.color,-.1)}}),t}return r}const aP=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Vs,fastMapToColor:tP,lerp:Rg,lift:Cf,liftColor:Af,lum:al,mapToColor:eP,modifyAlpha:rl,modifyHSL:oo,parse:Pe,random:rP,stringify:Dr,toHex:Q2},Symbol.toStringTag,{value:"Module"}));var Df=Math.round;function nl(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Pe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var u0=1e-4;function Wa(r){return r<u0&&r>-u0}function au(r){return Df(r*1e3)/1e3}function Up(r){return Df(r*1e4)/1e4}function nP(r){return"matrix("+au(r[0])+","+au(r[1])+","+au(r[2])+","+au(r[3])+","+Up(r[4])+","+Up(r[5])+")"}var iP={left:"start",right:"end",center:"middle",middle:"middle"};function oP(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function sP(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function lP(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function IT(r){return r&&!!r.image}function uP(r){return r&&!!r.svgElement}function Eg(r){return IT(r)||uP(r)}function LT(r){return r.type==="linear"}function PT(r){return r.type==="radial"}function RT(r){return r&&(r.type==="linear"||r.type==="radial")}function Th(r){return"url(#"+r+")"}function ET(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function kT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Os,n=st(r.scaleX,1),i=st(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Df(o*Os)+"deg, "+Df(s*Os)+"deg)"),l.join(" ")}var fP=(function(){return yt.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),Yp=Array.prototype.slice;function ua(r,e,t){return(e-r)*t+r}function mv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ua(e[i],t[i],a);return r}function hP(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ua(e[o][s],t[o][s],a)}return r}function nu(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function f0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function vP(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function cP(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:Yp.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Gs(r){if(ve(r)){var e=r.length;if(ve(r[0])){for(var t=[],a=0;a<e;a++)t.push(Yp.call(r[a]));return t}return Yp.call(r)}return r}function tf(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function pP(r){return ve(r&&r[0])?2:1}var iu=0,ef=1,OT=2,Ts=3,$p=4,Xp=5,h0=6;function v0(r){return r===$p||r===Xp}function ou(r){return r===ef||r===OT}var qo=[0,0,0,0],dP=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=h0,l=t;if(ve(t)){var u=pP(t);s=u,(u===1&&!wt(t[0])||u===2&&!wt(t[0][0]))&&(o=!0)}else if(wt(t)&&!vo(t))s=iu;else if(Y(t))if(!isNaN(+t))s=iu;else{var f=Pe(t);f&&(l=f,s=Ts)}else if(Ml(t)){var h=z({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Pe(c.color)}}),LT(t)?s=$p:PT(t)&&(s=Xp),l=h}i===0?this.valType=s:(s!==this.valType||s===h0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:zs[a]||Pg(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=ou(n),u=v0(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?cP(v,c,n):u&&vP(v.colorStops,c.colorStops))}if(!s&&n!==Xp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var p=a[0].value,f=0;f<i;f++)n===iu?a[f].additiveValue=a[f].value-p:n===Ts?a[f].additiveValue=nu([],a[f].value,p,-1):ou(n)&&(a[f].additiveValue=n===ef?nu([],a[f].value,p,-1):f0([],a[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ts,f,h=this._lastFr,v=Math.min,c,p;if(s===1)c=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=v(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?qo:e[l];if((ou(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(ou(i))i===ef?mv(m,c[n],p[n],y):hP(m,c[n],p[n],y);else if(v0(i)){var _=c[n],S=p[n],b=i===$p;e[l]={type:b?"linear":"radial",x:ua(_.x,S.x,y),y:ua(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:ua(w.offset,C.offset,y),color:tf(mv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=ua(_.x2,S.x2,y),e[l].y2=ua(_.y2,S.y2,y)):e[l].r=ua(_.r,S.r,y)}else if(u)mv(m,c[n],p[n],y),a||(e[l]=tf(m));else{var x=ua(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===iu?e[a]=e[a]+n:t===Ts?(Pe(e[a],qo),nu(qo,qo,n,1),e[a]=tf(qo)):t===ef?nu(e[a],e[a],n,1):t===OT&&f0(e[a],e[a],n,1)},r})(),kg=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){mh("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,_t(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new dP(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Ts&&u&&(u=tf(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Gs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Gs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new q2({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Gs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||_t(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function to(){return new Date().getTime()}var gP=(function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=to()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(bf(a),!t._paused&&t.update())}bf(a)},e.prototype.start=function(){this._running||(this._time=to(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=to(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=to()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new kg(t,a.loop);return this.addAnimator(n),n},e})(vr),yP=300,_v=yt.domSupported,Sv=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),c0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p0=!1;function Zp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function mP(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xv(r){r&&(r.zrByTouch=!0)}function _P(r,e){return er(r.dom,new SP(r,e),!0)}function NT(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var SP=(function(){function r(e,t){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Sr={mousedown:function(r){r=er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=er(this.dom,r);var e=r.toElement||r.relatedTarget;NT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){p0=!0,r=er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){p0||(r=er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=er(this.dom,r),xv(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Sr.mousemove.call(this,r),Sr.mousedown.call(this,r)},touchmove:function(r){r=er(this.dom,r),xv(r),this.handler.processGesture(r,"change"),Sr.mousemove.call(this,r)},touchend:function(r){r=er(this.dom,r),xv(r),this.handler.processGesture(r,"end"),Sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<yP&&Sr.click.call(this,r)},pointerdown:function(r){Sr.mousedown.call(this,r)},pointermove:function(r){Zp(r)||Sr.mousemove.call(this,r)},pointerup:function(r){Sr.mouseup.call(this,r)},pointerout:function(r){Zp(r)||Sr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Sr[r]=function(e){e=er(this.dom,e),this.trigger(r,e)}});var qp={pointermove:function(r){Zp(r)||qp.mousemove.call(this,r)},pointerup:function(r){qp.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function xP(r,e){var t=e.domHandlers;yt.pointerEventsSupported?D(Sv.pointer,function(a){rf(e,a,function(n){t[a].call(r,n)})}):(yt.touchEventsSupported&&D(Sv.touch,function(a){rf(e,a,function(n){t[a].call(r,n),mP(e)})}),D(Sv.mouse,function(a){rf(e,a,function(n){n=Lg(n),e.touching||t[a].call(r,n)})}))}function bP(r,e){yt.pointerEventsSupported?D(c0.pointer,t):yt.touchEventsSupported||D(c0.mouse,t);function t(a){function n(i){i=Lg(i),NT(r,i.target)||(i=_P(r,i),e.domHandlers[a].call(r,i))}rf(e,a,n,{capture:!0})}}function rf(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Gp(r.domTarget,e,t,a)}function bv(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&R2(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var d0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),wP=(function(r){Ft(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new d0(t,Sr),_v&&(n._globalHandlerScope=new d0(document,qp)),xP(n,n._localHandlerScope),n}return e.prototype.dispose=function(){bv(this._localHandlerScope),_v&&bv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,_v&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?bP(this,a):bv(a)}},e})(vr),BT=1;yt.hasGlobalWindow&&(BT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mf=BT,Kp=.4,jp="#333",Jp="#ccc",TP="#eee",g0=Ll,y0=5e-5;function yn(r){return r>y0||r<-y0}var mn=[],Mi=[],wv=Fe(),Tv=Math.abs,pa=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return yn(this.rotation)||yn(this.x)||yn(this.y)||yn(this.scaleX-1)||yn(this.scaleY-1)||yn(this.skewX)||yn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(g0(a),this.invTransform=null);return}a=a||Fe(),t?this.getLocalTransform(a):g0(a),e&&(t?Zr(a,e,a):bh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(mn);var a=mn[0]<0?-1:1,n=mn[1]<0?-1:1,i=((mn[0]-a)*t+a)/mn[0]||0,o=((mn[1]-n)*t+n)/mn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Fe(),mi(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Fe(),Zr(Mi,e.invTransform,t),t=Mi);var a=this.originX,n=this.originY;(a||n)&&(wv[4]=a,wv[5]=n,Zr(Mi,t,wv),Mi[4]-=a,Mi[5]-=n,t=Mi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&fe(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&fe(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Tv(e[0]-1)>1e-10&&Tv(e[3]-1)>1e-10?Math.sqrt(Tv(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){zT(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&ln(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Kr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function zT(r,e){for(var t=0;t<Kr.length;t++){var a=Kr[t];r[a]=e[a]}}var m0={};function Ze(r,e){e=e||tn;var t=m0[e];t||(t=m0[e]=new Pl(500));var a=t.get(r);return a==null&&(a=Ir.measureText(r,e).width,t.put(r,a)),a}function _0(r,e,t,a){var n=Ze(r,e),i=Ch(e),o=Cs(0,n,t),s=Ki(0,i,a),l=new ht(o,s,n,i);return l}function Rl(r,e,t,a){var n=((r||"")+"").split(`
2
2
  `),i=n.length;if(i===1)return _0(n[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s<n.length;s++){var l=_0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Cs(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Ki(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Ch(r){return Ze("国",r)}function Pr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function If(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Pr(a[0],t.width),u+=Pr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Cv="__zr_normal__",Av=Kr.concat(["ignore"]),CP=fr(Kr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ii={},AP=new ht(0,0,0,0),Ah=(function(){function r(e){this.id=Ag(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=AP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ii,a,f):If(Ii,a,f),i.x=Ii.x,i.y=Ii.y,o=Ii.align,s=Ii.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Pr(h[0],f.width),c=Pr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Ue,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jp:jp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Pe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Dr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},z(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var a=e,n=_t(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Cv)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Av)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Cv,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Cv,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(vt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){mh("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=vt(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=vt(n,e),o=vt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];z(t,i),i.textConfig&&(a=a||{},z(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=z({},n?this.textConfig:a.textConfig),z(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Av.length;f++){var h=Av[f],v=i&&CP[h];t&&t[h]!=null?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&a[h]!=null&&(v?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(t||a)[p]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new pa,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Ue;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new kg(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=vt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Dv(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Dv(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Dv(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ue;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();Xt(Ah,vr);Xt(Ah,pa);function Dv(r,e,t,a,n){t=t||{};var i=[];VT(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),t.force&&c.duration(t.duration),c.start(t.easing)}return i}function Mv(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function DP(r){return ve(r[0])}function MP(r,e,t){if(ve(e[t]))if(ve(r[t])||(r[t]=[]),Ee(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Mv(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(DP(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Mv(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Mv(i,n,o);i.length=n.length}else r[t]=e[t]}function IP(r,e){return r===e||ve(r)&&ve(e)&&LP(r,e)}function LP(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function VT(r,e,t,a,n,i,o,s){for(var l=_t(a),u=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!tt(i),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(c||i[y]))if(tt(m)&&!ve(m)&&!Ml(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}VT(r,y,t[y],m,n,i&&i[y],o,s)}else d.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var b=p[S];if(b.targetName===e){var x=b.stopTracks(d);if(x){var w=vt(p,b);p.splice(w,1)}}}if(n.force||(d=Ct(d,function(M){return!IP(a[M],t[M])}),_=d.length),_>0||n.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=d[S];A[y]=Gs(t[y]),MP(t,a,y)}}var b=new kg(t,!1,!1,h?Ct(p,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),A&&b.whenWithKeys(0,A,d),b.whenWithKeys(u??500,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var at=(function(r){Ft(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=vt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=vt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new ht(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ht.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Ah);at.prototype.type="group";var af={},Xn={};function PP(r){delete Xn[r]}function RP(r){if(!r)return!1;if(typeof r=="string")return al(r,1)<Kp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=al(e[n].color,1);return t/=a,t<Kp}return!1}var EP=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new U2,o=a.renderer||"canvas";af[o]||(o=_t(af)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new af[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new wP(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?yt.touchEventsSupported:!!f,v=44,c;h&&(c=st(a.pointerSize,v)),this.handler=new mT(i,s,u,s.root,c),this.animation=new gP({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=RP(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=to();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=to();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,PP(this.id))},r})();function Qp(r,e){var t=new EP(Ag(),r,e);return Xn[t.id]=t,t}function kP(r){r.dispose()}function OP(){for(var r in Xn)Xn.hasOwnProperty(r)&&Xn[r].dispose();Xn={}}function NP(r){return Xn[r]}function GT(r,e){af[r]=e}var td;function FT(r){if(typeof td=="function")return td(r)}function HT(r){td=r}var BP="5.6.1";const zP=Object.freeze(Object.defineProperty({__proto__:null,dispose:kP,disposeAll:OP,getElementSSRData:FT,getInstance:NP,init:Qp,registerPainter:GT,registerSSRDataGetter:HT,version:BP},Symbol.toStringTag,{value:"Module"}));var S0=1e-4,WT=20;function VP(r){return r.replace(/^\s+|\s+$/g,"")}function Dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?VP(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ut(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),WT),r=(+r).toFixed(e),t?r:+r}function $e(r){return r.sort(function(e,t){return e-t}),r}function wr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return UT(r)}function UT(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Og(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function GP(r,e,t){if(!r[e])return 0;var a=YT(r,t);return a[e]||0}function YT(r,e){var t=fr(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=a*100,o=G(n,function(c){return Math.floor(c)}),s=fr(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function FP(r,e){var t=Math.max(wr(r),wr(e)),a=r+e;return t>WT?a:Ut(a,t)}var ed=9007199254740991;function Ng(r){var e=Math.PI*2;return(r%e+e)%e}function po(r){return r>-S0&&r<S0}var HP=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function qe(r){if(r instanceof Date)return r;if(Y(r)){var e=HP.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function $T(r){return Math.pow(10,Dh(r))}function Dh(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function Bg(r,e){var t=Dh(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function nf(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function rd(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function jr(r){var e=parseFloat(r);return e==r&&(e!==0||!Y(r)||r.indexOf("x")<=0)?e:NaN}function zg(r){return!isNaN(jr(r))}function XT(){return Math.round(Math.random()*9)}function ZT(r,e){return e===0?r:ZT(e,r%e)}function x0(r,e){return r==null?e:e==null?r:r*e/ZT(r,e)}function Mt(r){throw new Error(r)}function b0(r,e,t){return(e-r)*t+r}var qT="series\0",KT="\0_ec_\0";function Rt(r){return r instanceof Array?r:r==null?[]:[r]}function ui(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var w0=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ao(r){return tt(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function WP(r){return tt(r)&&!(r instanceof Array)}function jT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Z();D(e,function(l,u){if(!tt(l)){e[u]=null;return}});var s=UP(r,o,t);return(a||n)&&YP(s,r,o,e),a&&$P(s,e),a||n?XP(s,e,n):i&&ZP(s,e),qP(s),s}function UP(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||il(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function YP(r,e,t,a){D(a,function(n,i){if(!(!n||n.id==null)){var o=Fs(n.id),s=t.get(o);if(s!=null){var l=r[s];be(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function $P(r,e){D(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!il(t)&&!il(i)&&JT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function XP(r,e,t){D(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||il(n.existing)||n.existing&&a.id!=null&&!JT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function ZP(r,e){D(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function qP(r){var e=Z();D(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),D(r,function(t){var a=t.newOption;be(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),D(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(tt(i)){if(o.name=i.name!=null?Fs(i.name):n?n.name:qT+a,n)o.id=Fs(n.id);else if(i.id!=null)o.id=Fs(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function JT(r,e,t){var a=Qt(e[r],null),n=Qt(t[r],null);return a!=null&&n!=null&&a===n}function Fs(r){return Qt(r,"")}function Qt(r,e){return r==null?e:Y(r)?r:wt(r)||_f(r)?r+"":e}function Vg(r){var e=r.name;return!!(e&&e.indexOf(qT))}function il(r){return r&&r.id!=null&&Fs(r.id).indexOf(KT)===0}function KP(r){return KT+r}function jP(r,e,t){D(r,function(a){var n=a.newOption;tt(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=JP(e,n,a.existing,t))})}function JP(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function QP(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=Qt(o[u].seriesId,null);if(h==null)return;for(var v=Rt(o[u].dataIndex),c=l&&l[h],p=0,d=v.length;p<d;p++){var g=v[p];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function fi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return V(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return V(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function bt(){var r="__ec_inner_"+tR++;return function(e){return e[r]||(e[r]={})}}var tR=XT();function Hs(r,e,t){var a=Gg(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var h=El(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Gg(r,e){var t;if(Y(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=Z(),i={},o=!1;return D(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&vt(e.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var jt={useDefault:!0,enableAll:!1,enableNone:!1},eR={useDefault:!1,enableAll:!0,enableNone:!0};function El(r,e,t,a){a=a||jt;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return n==="none"||n===!1?(be(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(be(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function QT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function rR(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function aR(r){return r==="auto"?yt.domSupported?"html":"richText":r||"html"}function ad(r,e){var t=Z(),a=[];return D(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function tC(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(wt(a)){var o=b0(t||0,a,n);return Ut(o,i?Math.max(wr(t||0),wr(a)):e)}else{if(Y(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,p=u[h],o=b0(c,p,n);s[h]=Ut(o,i?Math.max(wr(c),wr(p)):e)}}return s}}var nR=".",_n="___EC__COMPONENT__CONTAINER___",eC="___EC__EXTENDED_CLASS___";function Ur(r){var e={main:"",sub:""};if(r){var t=r.split(nR);e.main=t[0]||"",e.sub=t[1]||""}return e}function iR(r){be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function oR(r){return!!(r&&r[eC])}function Fg(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return sR(a)?n=(function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},Dg(n,this)),z(n.prototype,t),n[eC]=!0,n.extend=this.extend,n.superCall=fR,n.superApply=hR,n.superClass=a,n}}function sR(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function rC(r,e){r.extend=e.extend}var lR=Math.round(Math.random()*10);function uR(r){var e=["__\0is_clz",lR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function fR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function hR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Mh(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){iR(n),a.prototype.type=n;var i=Ur(n);if(!i.sub)e[i.main]=a;else if(i.sub!==_n){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[_n]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Ur(a),i=[],o=e[n.main];return o&&o[_n]?D(o,function(s,l){l!==_n&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Ur(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return D(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Ur(a),i=e[n.main];return i&&i[_n]};function t(a){var n=e[a.main];return(!n||!n[_n])&&(n=e[a.main]={},n[_n]=!0),n}}function hi(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&vt(n,l)>=0||i&&vt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var vR=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cR=hi(vR),pR=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return cR(this,e,t)},r})(),nd=new Pl(50);function dR(r){if(typeof r=="string"){var e=nd.get(r);return e&&e.image}else return r}function Hg(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=nd.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Ih(e)&&i.pending.push(o)):(e=Ir.loadImage(r,T0,T0),e.__zrImageSrc=r,nd.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function T0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Ih(r){return r&&r.width&&r.height}var Iv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gR(r,e,t,a,n){var i={};return aC(i,r,e,t,a,n),i.text}function aC(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
3
  `);i=nC(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)iC(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
4
  `),r.isTruncated=s}function nC(r,e,t,a){a=a||{};var n=z({},a);n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=Ze("国",e);var o=n.ascCharWidth=Ze("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ze(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function iC(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ze(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?yR(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Ze(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function yR(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function mR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Ch(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?oC(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
@@ -1,4 +1,4 @@
1
- import{ag as Y,J as D,ci as q,ch as L,ak as F,ac as le,b_ as w,ae as K,aW as G,ai as P,am as ue,cE as pe,aj as me,cx as ge,r as M,c6 as O,ao as be,c1 as k,cS as he,d7 as fe,d8 as ve,cb as V,cG as ye,d9 as R}from"../datalayer-app-main.js";import{I as _e,S as xe}from"./index-Dv_XGY6Q.js";import{I as we,b as X,e as Te,M as H}from"./index-DMf0f7ny.js";import{I as Ee}from"./tokens-BHMD_ju9.js";import{I as $}from"./tokens-BHLmeqjP.js";import{I as Ce}from"./treepathupdater-BPaxwIOs.js";import{i as je,e as W,J as N,c as S,f as Z,j as Q,d as A,k as Be,L as Pe,l as Le}from"./index-BfMo5nXi.js";import{R as Me}from"./menu-T4su8As2.js";import"./hoverbox-CStlKQWE.js";import"./Output-C4hBhZ5k.js";import"./index-C7os26P7.js";import"./index-DpJpQnPn.js";import"./color-CG7_7V2-.js";import"./isEqual-D0eOPSLC.js";import"./defaultLocale-5voVPcsN.js";import"./index-DbMBnR4l.js";import"./KebabHorizontalIcon-CXDXtkuL.js";import"./PaintbrushIcon-CLU8RilX.js";import"./index-BJhxZF_K.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-p2BAkwis.js";import"./NotebookSkeleton-CI7ovjNW.js";import"./Avatar-9MpXENSs.js";import"./renderer-BwlsmtXF.js";import"./SquareIcon-e3ygcjpv.js";import"./SortAscIcon-CVKVWIWQ.js";import"./url-DuKx0yk0.js";/* empty css */import"./index-Dro44tIm.js";/* empty css *//* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-Y3PTljcl.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-CoHussa9.js";import"./index-BgWf1G8H.js";import"./KernelVariables-ompObBEM.js";import"./index-BvgsWH_d.js";import"./SortDescIcon-CS4EzHeS.js";import"./NotebookToolbar-rtMQZWHQ.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-CGQDY041.js";import"./sessions-C9DBCyZI.js";import"./tokens-DTIgYcNS.js";import"./drivecontents-CxwZz_5W.js";import"./kernel-BI-BLP-K.js";class Ie extends Y{constructor(){super(),this._button=document.createElement("button"),this._label=document.createElement("label"),this._valueChanged=new D(this),this._button.className="jp-switch",this._button.setAttribute("role","switch"),this._button.setAttribute("aria-checked",this._value?this._value.toString():"false"),this._label.className="jp-switch-label";const n=document.createElement("div");n.className="jp-switch-track",n.setAttribute("aria-hidden","true"),this._button.appendChild(this._label),this._button.appendChild(n),this.node.appendChild(this._button)}get value(){return this._value}set value(n){const e=this._value;e!==n&&(this._button.setAttribute("aria-checked",n.toString()),this._value=n,this._valueChanged.emit({name:"value",oldValue:e,newValue:n}))}get valueChanged(){return this._valueChanged}get label(){var n;return(n=this._label.textContent)!==null&&n!==void 0?n:""}set label(n){this._label.textContent=n}get caption(){return this._button.title}set caption(n){this._button.title=n,this._label.title=n}handleEvent(n){n.type==="click"&&(this.value=!this.value)}onAfterAttach(){this._button.addEventListener("click",this)}onBeforeDetach(){this._button.removeEventListener("click",this)}}const Re=async function(i,n,e){e=e||F;const c=e.load("jupyterlab"),a=c.__("Server Connection Error"),o=c.__(`A connection to the Jupyter server could not be established.
1
+ import{ag as Y,J as D,ci as q,ch as L,ak as F,ac as le,b_ as w,ae as K,aW as G,ai as P,am as ue,cE as pe,aj as me,cx as ge,r as M,c6 as O,ao as be,c1 as k,cS as he,d7 as fe,d8 as ve,cb as V,cG as ye,d9 as R}from"../datalayer-app-main.js";import{I as _e,S as xe}from"./index-Dv_XGY6Q.js";import{I as we,b as X,e as Te,M as H}from"./index-CFP9psRB.js";import{I as Ee}from"./tokens-BHMD_ju9.js";import{I as $}from"./tokens-BHLmeqjP.js";import{I as Ce}from"./treepathupdater-BPaxwIOs.js";import{i as je,e as W,J as N,c as S,f as Z,j as Q,d as A,k as Be,L as Pe,l as Le}from"./index-BQp4l7hT.js";import{R as Me}from"./menu-T4su8As2.js";import"./hoverbox-CStlKQWE.js";import"./Output-DA8Udq91.js";import"./index-DSN70XMH.js";import"./index-a9o1fYab.js";import"./color-CG7_7V2-.js";import"./isEqual-Cwjr2skl.js";import"./defaultLocale-5voVPcsN.js";import"./index-DbMBnR4l.js";import"./KebabHorizontalIcon-CXDXtkuL.js";import"./PaintbrushIcon-CLU8RilX.js";import"./index-BJhxZF_K.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-BBXRIRgA.js";import"./NotebookSkeleton-CI7ovjNW.js";import"./Avatar-9MpXENSs.js";import"./renderer-Au1S-H5k.js";import"./SquareIcon-e3ygcjpv.js";import"./SortAscIcon-CVKVWIWQ.js";import"./url-DuKx0yk0.js";/* empty css */import"./index-Dro44tIm.js";/* empty css *//* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-Y3PTljcl.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-CoHussa9.js";import"./index-Dobs-OKl.js";import"./KernelVariables-trZsXNAi.js";import"./index-BvgsWH_d.js";import"./SortDescIcon-CS4EzHeS.js";import"./NotebookToolbar-rtMQZWHQ.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-CGQDY041.js";import"./sessions-BRALW9Yv.js";import"./tokens-DTIgYcNS.js";import"./drivecontents-CxwZz_5W.js";import"./kernel-BI-BLP-K.js";class Ie extends Y{constructor(){super(),this._button=document.createElement("button"),this._label=document.createElement("label"),this._valueChanged=new D(this),this._button.className="jp-switch",this._button.setAttribute("role","switch"),this._button.setAttribute("aria-checked",this._value?this._value.toString():"false"),this._label.className="jp-switch-label";const n=document.createElement("div");n.className="jp-switch-track",n.setAttribute("aria-hidden","true"),this._button.appendChild(this._label),this._button.appendChild(n),this.node.appendChild(this._button)}get value(){return this._value}set value(n){const e=this._value;e!==n&&(this._button.setAttribute("aria-checked",n.toString()),this._value=n,this._valueChanged.emit({name:"value",oldValue:e,newValue:n}))}get valueChanged(){return this._valueChanged}get label(){var n;return(n=this._label.textContent)!==null&&n!==void 0?n:""}set label(n){this._label.textContent=n}get caption(){return this._button.title}set caption(n){this._button.title=n,this._label.title=n}handleEvent(n){n.type==="click"&&(this.value=!this.value)}onAfterAttach(){this._button.addEventListener("click",this)}onBeforeDetach(){this._button.removeEventListener("click",this)}}const Re=async function(i,n,e){e=e||F;const c=e.load("jupyterlab"),a=c.__("Server Connection Error"),o=c.__(`A connection to the Jupyter server could not be established.
2
2
  JupyterLab will continue trying to reconnect.
3
3
  Check your network connection or Jupyter server configuration.
4
4
  `);if(!I.displayConnectionLost)return;if(I.serverConnectionLost){await I.serverConnectionLost;return}const r=q({title:a,body:o,checkbox:{label:c.__("Do not show this message again in this session."),caption:c.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[L.cancelButton({label:c.__("Close")})]}).then(s=>{s.isChecked&&(I.displayConnectionLost=!1)}).catch(s=>{console.error("An error occurred while showing the dialog: ",s)}).finally(()=>{I.serverConnectionLost=void 0});I.serverConnectionLost=r};var I;(function(i){i.displayConnectionLost=!0})(I||(I={}));class ke{constructor(n){this.stop=new le("@jupyterlab/application:Router#stop"),this._routed=new D(this),this._rules=new Map,this.base=n.base,this.commands=n.commands}get current(){var n,e;const{base:c}=this,a=w.URLExt.parse(window.location.href),{search:o,hash:r}=a,s=(e=(n=a.pathname)===null||n===void 0?void 0:n.replace(c,"/"))!==null&&e!==void 0?e:"",f=s+o+r;return{hash:r,path:s,request:f,search:o}}get routed(){return this._routed}navigate(n,e={}){const{base:c}=this,{history:a}=window,{hard:o}=e,r=document.location.href,s=n&&n.indexOf(c)===0?n:w.URLExt.join(c,n);if(s===r)return o?this.reload():void 0;if(a.pushState({},"",s),o)return this.reload();e.skipRouting||requestAnimationFrame(()=>{this.route()})}register(n){var e;const{command:c,pattern:a}=n,o=(e=n.rank)!==null&&e!==void 0?e:100,r=this._rules;return r.set(a,{command:c,rank:o}),new K(()=>{r.delete(a)})}reload(){window.location.reload()}route(){const{commands:n,current:e,stop:c}=this,{request:a}=e,o=this._routed,r=this._rules,s=[];r.forEach((g,h)=>{a?.match(h)&&s.push(g)});const f=s.sort((g,h)=>h.rank-g.rank),m=new G,v=async()=>{if(!f.length){o.emit(e),m.resolve(void 0);return}const{command:g}=f.pop();try{const h=this.current.request;await n.execute(g,e)===c&&(f.length=0,console.debug(`Routing ${h} was short-circuited by ${g}`))}catch(h){console.warn(`Routing ${a} to ${g} failed`,h)}v()};return v(),m.promise}}const Ae="TopBar",ee={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:!0,requires:[$,we],optional:[P],activate:(i,n,e,c)=>{const a=(c??F).load("jupyterlab"),o=new ue;o.id="jp-top-bar",o.node.setAttribute("aria-label",a.__("Topbar toolbar")),pe(o,me(e,n,Ae,ee.id,c??F),o),i.shell.add(o,"top",{rank:900})}},z=100;var l;(function(i){i.activateNextTab="application:activate-next-tab",i.activatePreviousTab="application:activate-previous-tab",i.activateNextTabBar="application:activate-next-tab-bar",i.activatePreviousTabBar="application:activate-previous-tab-bar",i.close="application:close",i.closeOtherTabs="application:close-other-tabs",i.closeRightTabs="application:close-right-tabs",i.closeAll="application:close-all",i.setMode="application:set-mode",i.showPropertyPanel="property-inspector:show-panel",i.resetLayout="application:reset-layout",i.toggleContextMenu="application:toggle-context-menu",i.toggleHeader="application:toggle-header",i.toggleMode="application:toggle-mode",i.toggleLeftArea="application:toggle-left-area",i.toggleRightArea="application:toggle-right-area",i.toggleSideTabBar="application:toggle-side-tabbar",i.toggleSidebarWidget="application:toggle-sidebar-widget",i.togglePresentationMode="application:toggle-presentation-mode",i.toggleFullscreenMode="application:toggle-fullscreen-mode",i.tree="router:tree",i.switchSidebar="sidebar:switch"})(l||(l={}));const Se={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:!0,requires:[P],optional:[S,X],activate:(i,n,e,c)=>{var a;const{commands:o,shell:r}=i,s=n.load("jupyterlab"),f=s.__("Main Area");o.addCommand(Be.contextMenu,{label:s.__("Shift+Right Click for Browser Menu"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!1,execute:()=>{}});const m=()=>{const t=d=>!!d.dataset.id,p=i.contextMenuHitTest(t);return p&&V(r.widgets("main"),d=>d.id===p.dataset.id)||r.currentWidget},v=t=>{t.forEach(p=>p.close())},g=(t,p)=>{if(t.type==="tab-area")return t.widgets.includes(p)?t:null;if(t.type==="split-area")for(const d of t.children){const b=g(d,p);if(b)return b}return null},h=t=>{var p;const d=e?.saveLayout(),b=d?.mainArea;if(!b||w.PageConfig.getOption("mode")!=="multiple-document")return null;const _=(p=b.dock)===null||p===void 0?void 0:p.main;return _?g(_,t):null},u=t=>{const{id:p}=t,d=h(t),b=d?d.widgets||[]:[],_=b.findIndex(T=>T.id===p);return _<0?[]:b.slice(_+1)},y=t=>{let p;if(t!="left"&&t!="right")throw Error(`Unsupported sidebar: ${t}`);if(t==="left")p=document.querySelector(".lm-TabBar-tab.lm-mod-current");else{const b=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");p=b[b.length-1]}const d=p?.getAttribute("data-id");return d?d?.toString():""};function x(t){t&&t.focus()}o.addCommand(l.close,{label:()=>s.__("Close Tab"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const t=m();return!!t&&t.title.closable},execute:()=>{const t=m();t&&t.close()}}),o.addCommand(l.closeOtherTabs,{label:()=>s.__("Close All Other Tabs"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>be(r.widgets("main"),(t,p)=>p===1),execute:()=>{const t=m();if(!t)return;const{id:p}=t;for(const d of r.widgets("main"))d.id!==p&&d.close()}}),o.addCommand(l.closeRightTabs,{label:()=>s.__("Close Tabs to Right"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!!m()&&u(m()).length>0,execute:()=>{const t=m();t&&v(u(t))}}),(a=r.currentChanged)===null||a===void 0||a.connect(()=>{[l.close,l.closeOtherTabs,l.closeRightTabs].forEach(t=>o.notifyCommandChanged(t))}),e&&(o.addCommand(l.activateNextTab,{label:s.__("Activate Next Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTab()}}),o.addCommand(l.activatePreviousTab,{label:s.__("Activate Previous Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTab()}}),o.addCommand(l.activateNextTabBar,{label:s.__("Activate Next Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTabBar()}}),o.addCommand(l.activatePreviousTabBar,{label:s.__("Activate Previous Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTabBar()}}),o.addCommand(l.closeAll,{label:s.__("Close All Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.closeAll()}}),o.addCommand(l.toggleHeader,{label:s.__("Show Header"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.mode==="single-document"&&e.toggleTopInSimpleModeVisibility()},isToggled:()=>e.isTopInSimpleModeVisible(),isVisible:()=>e.mode==="single-document"}),o.addCommand(l.toggleLeftArea,{label:s.__("Show Left Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.leftCollapsed?e.expandLeft():(e.collapseLeft(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.leftCollapsed,isEnabled:()=>!e.isEmpty("left")}),o.addCommand(l.toggleRightArea,{label:s.__("Show Right Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.rightCollapsed?e.expandRight():(e.collapseRight(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.rightCollapsed,isEnabled:()=>!e.isEmpty("right")}),o.addCommand(l.toggleSidebarWidget,{label:t=>t===void 0||t.side===void 0||t.index===void 0?s.__("Toggle Sidebar Element"):t.side==="right"?s.__("Toggle Element %1 in Right Sidebar",parseInt(t.index,10)+1):s.__("Toggle Element %1 in Left Sidebar",parseInt(t.index,10)+1),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")},index:{type:["string","number"],description:s.__("The index of the sidebar widget")}},required:["side","index"]}},execute:t=>{const p=parseInt(t.index,10);if(t.side!="left"&&t.side!="right")throw Error(`Unsupported sidebar: ${t.side}`);const d=Array.from(e.widgets(t.side));if(p>=d.length)return;const b=d[p].id,_=document.querySelector("[data-id='"+b+"']");y(t.side)===b?(t.side=="left"&&(e.collapseLeft(),x(_)),t.side=="right"&&(e.collapseRight(),x(_))):(e.activateById(b),x(_))}}),o.addCommand(l.toggleSideTabBar,{label:t=>t.side==="right"?s.__("Show Right Activity Bar"):s.__("Show Left Activity Bar"),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")}},required:["side"]}},execute:t=>{t.side==="right"?e.toggleSideTabBarVisibility("right"):e.toggleSideTabBarVisibility("left")},isToggled:t=>t.side==="right"?e.isSideTabBarVisible("right"):e.isSideTabBarVisible("left"),isEnabled:t=>t.side==="right"?!e.isEmpty("right"):!e.isEmpty("left")}),o.addCommand(l.togglePresentationMode,{label:()=>s.__("Presentation Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode=!e.presentationMode},isToggled:()=>e.presentationMode,isVisible:()=>!0}),o.addCommand(l.toggleFullscreenMode,{label:s.__("Fullscreen Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{document.fullscreenElement===null||document.fullscreenElement===void 0?document.documentElement.requestFullscreen().catch(t=>{console.error("Failed to enter fullscreen mode.",t)}):document.fullscreenElement!==null&&document.exitFullscreen().catch(t=>{console.error("Failed to exit fullscreen mode.",t)})},isToggled:()=>document.fullscreenElement!==null}),o.addCommand(l.setMode,{label:t=>t.mode?s.__("Set %1 mode.",t.mode):s.__("Set the layout `mode`."),caption:s.__('The layout `mode` can be "single-document" or "multiple-document".'),describedBy:{args:{type:"object",properties:{mode:{type:"string",enum:["single-document","multiple-document"],description:s.__("The layout mode")}},required:["mode"]}},isVisible:t=>{const p=t.mode;return p==="single-document"||p==="multiple-document"},execute:t=>{const p=t.mode;if(p==="single-document"||p==="multiple-document"){e.mode=p;return}throw new Error(`Unsupported application shell mode: ${p}`)}}),o.addCommand(l.toggleMode,{label:s.__("Simple Interface"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>e.mode==="single-document",execute:()=>{const t=e.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return o.execute(l.setMode,t)}}),o.addCommand(l.resetLayout,{label:s.__("Reset Default Layout"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode&&o.execute(l.togglePresentationMode).catch(t=>{console.error("Failed to undo presentation mode.",t)}),(document.fullscreenElement!==null||document.fullscreenElement!==void 0)&&o.execute(l.toggleFullscreenMode).catch(t=>{console.error("Failed to exit fullscreen mode.",t)}),e.mode==="single-document"&&!e.isTopInSimpleModeVisible()&&o.execute(l.toggleHeader).catch(t=>{console.error("Failed to display title header.",t)}),["left","right"].forEach(t=>{!e.isSideTabBarVisible(t)&&!e.isEmpty(t)&&o.execute(l.toggleSideTabBar,{side:t}).catch(p=>{console.error(`Failed to show ${t} activity bar.`,p)})})}})),c&&([l.activateNextTab,l.activatePreviousTab,l.activateNextTabBar,l.activatePreviousTabBar,l.close,l.closeAll,l.closeOtherTabs,l.closeRightTabs,l.toggleHeader,l.toggleLeftArea,l.toggleRightArea,l.togglePresentationMode,l.toggleFullscreenMode,l.toggleMode,l.resetLayout].forEach(t=>c.addItem({command:t,category:f})),["right","left"].forEach(t=>{c.addItem({command:l.toggleSideTabBar,category:f,args:{side:t}})}))}},te={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[W,Te,P,N.ITreeResolver],optional:[je],provides:Ce,activate:(i,n,e,c,a,o)=>{const r=c.load("jupyterlab");if(!(i instanceof A))throw new Error(`${te.id} must be activated in JupyterLab.`);let s="",f="";function m(u){a.paths.then(()=>{if(f=u,!s){const y=w.PageConfig.getUrl({treePath:u}),x=w.URLExt.parse(y).pathname;n.navigate(x,{skipRouting:!0}),w.PageConfig.setOption("treePath",u)}})}const v=e.name;if(console.debug(`Starting application in workspace: "${v}"`),i.registerPluginErrors.length!==0){const u=M.createElement("pre",null,i.registerPluginErrors.map(y=>y.message).join(`