decocms 4.170.7 → 4.170.8

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 (223) hide show
  1. package/dist/client/assets/{AlertCircle-CulgZ8QJ.js → AlertCircle-Wuz0lgyq.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CjNWeGy-.js → AreaChart-C34u9zrD.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-BNlXyeba.js → ArrowUp-DQm2H6V8.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-LKpl92jJ.js → ArrowUpRight-Bt1XEkGz.js} +1 -1
  5. package/dist/client/assets/{Check-BARPKH4i.js → Check-D1aB0_Ts.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-D1nzBDyQ.js → CheckCircle-BSd1Al8s.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-DWFAk7Sj.js → ChevronDown-DbUuOoxd.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-D2we6V0w.js → ChevronRight-E2XWARuI.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BUAALiuR.js → ChevronUp-CcSyio5w.js} +1 -1
  10. package/dist/client/assets/{Copy01-BfeEcGku.js → Copy01-pnYvhYv4.js} +1 -1
  11. package/dist/client/assets/{CpuChip01-T6rvb3sG.js → CpuChip01-uTB5I4wk.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-B-CRgbLm.js → DotsVertical-DUAT40_6.js} +1 -1
  13. package/dist/client/assets/{Eye-BCIudvRR.js → Eye-Duj16hOk.js} +1 -1
  14. package/dist/client/assets/{FilterLines-P6wvStsn.js → FilterLines-BHey9P9a.js} +1 -1
  15. package/dist/client/assets/{HardDrive-BTCEoaQS.js → HardDrive-BUnNOgoo.js} +1 -1
  16. package/dist/client/assets/{Key01-BgjJ_7Tp.js → Key01-Bpg_jdZK.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-BXm6OADq.js → LayoutLeft-ueMEi0Nf.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-BSoFyTEM.js → LinkExternal01-B9sOY9Po.js} +1 -1
  19. package/dist/client/assets/{LogOut01-BFFFOC3O.js → LogOut01-18lyJiCV.js} +1 -1
  20. package/dist/client/assets/{Monitor01-vTIk29qo.js → Monitor01-Pomb9CYY.js} +1 -1
  21. package/dist/client/assets/{Palette-Bj8tHSPy.js → Palette-CWTAb7Cl.js} +1 -1
  22. package/dist/client/assets/{Play-C7jD9LUn.js → Play-CBU2Ikjc.js} +1 -1
  23. package/dist/client/assets/{Plus-C0UcTMnT.js → Plus-BVtPoIPQ.js} +1 -1
  24. package/dist/client/assets/{SearchLg-CmIsAQ3X.js → SearchLg-BfWvdlcy.js} +1 -1
  25. package/dist/client/assets/{SearchMd-D9uAX6WE.js → SearchMd-B_IHk4-S.js} +1 -1
  26. package/dist/client/assets/{Settings02-DlOlugQT.js → Settings02-BYWnPz1q.js} +1 -1
  27. package/dist/client/assets/{Shield01-CL48sD_B.js → Shield01-BNqSCUu-.js} +1 -1
  28. package/dist/client/assets/{Star01-3tCE1-gw.js → Star01-CcJC17Zn.js} +1 -1
  29. package/dist/client/assets/{Stars01-9A2GWUug.js → Stars01-C17eySFO.js} +1 -1
  30. package/dist/client/assets/{Stars02-DDwOVsF7.js → Stars02-BeYccJa7.js} +1 -1
  31. package/dist/client/assets/{Sun-JQjP1oZn.js → Sun-BN7LW3Ce.js} +1 -1
  32. package/dist/client/assets/{SwitchHorizontal01-Dhz2JYYr.js → SwitchHorizontal01-BCCEKMXq.js} +1 -1
  33. package/dist/client/assets/{Tool01-CdS8kLw-.js → Tool01-DqyYm7H5.js} +1 -1
  34. package/dist/client/assets/{Tool02-BBoyH47I.js → Tool02-CCSPm9UC.js} +1 -1
  35. package/dist/client/assets/{Trash01-CbhzcTt3.js → Trash01-BCTYyfm9.js} +1 -1
  36. package/dist/client/assets/{TrendUp01-CbREjIPK.js → TrendUp01-VYS6c4qx.js} +1 -1
  37. package/dist/client/assets/{Upload01-BdeHM4jD.js → Upload01-C2df65uN.js} +1 -1
  38. package/dist/client/assets/{User01-onkDisHt.js → User01-Ciht1K4H.js} +1 -1
  39. package/dist/client/assets/{Users01-LJDrZYeK.js → Users01-BmGjirO9.js} +1 -1
  40. package/dist/client/assets/{Users03-DlmIRsEe.js → Users03-BLgIigHM.js} +1 -1
  41. package/dist/client/assets/{X-Bnb6DHrx.js → X-DUah4gzS.js} +1 -1
  42. package/dist/client/assets/{XCircle-BN8DdobH.js → XCircle-CLyOE927.js} +1 -1
  43. package/dist/client/assets/{XClose-BvANZj6r.js → XClose-CJDya3Wl.js} +1 -1
  44. package/dist/client/assets/{Zap-BAm5KmZ-.js → Zap-CpuSBzWi.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-ISMHG_Ar.js → ZapSquare-CG2a0ia6.js} +1 -1
  46. package/dist/client/assets/{access-gate-B3wLJ69M.js → access-gate-DjrqWHFd.js} +1 -1
  47. package/dist/client/assets/{add-section-modal-BnhGEfv-.js → add-section-modal-BIvb2o2A.js} +1 -1
  48. package/dist/client/assets/{agent-icon-DtkqR39Z.js → agent-icon-CxeyVMkF.js} +1 -1
  49. package/dist/client/assets/{agents-list-PJ_bNLJj.js → agents-list-CrsNHC_R.js} +1 -1
  50. package/dist/client/assets/{ai-providers-C4NY0EwA.js → ai-providers-Cpn4KKCx.js} +1 -1
  51. package/dist/client/assets/{alert-CHK1X07R.js → alert-B6YQmuIW.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-CK85XiHH.js → alert-dialog-BwA_mXFH.js} +1 -1
  53. package/dist/client/assets/{app-editor-Cj7ZjZIH.js → app-editor-Crd4gJBn.js} +1 -1
  54. package/dist/client/assets/{auth-CUkNJsYC.js → auth-BepFFKXR.js} +1 -1
  55. package/dist/client/assets/{auth-catchall-DdjpG5hQ.js → auth-catchall-CMzpWfOo.js} +1 -1
  56. package/dist/client/assets/{auth-entry-DjFBaL_w.js → auth-entry-CuVCuUGR.js} +1 -1
  57. package/dist/client/assets/{auth-split-layout-Bz3Ntgbd.js → auth-split-layout-B7eWno4Y.js} +1 -1
  58. package/dist/client/assets/{authenticate-and-persist-oauth--qKVSpxv.js → authenticate-and-persist-oauth-CwfykGZX.js} +1 -1
  59. package/dist/client/assets/{automation-list-row-CX3W9QjV.js → automation-list-row-5OtUZ5Xu.js} +1 -1
  60. package/dist/client/assets/{automation-runs-B8ZpZPVI.js → automation-runs-BQYsNDOu.js} +1 -1
  61. package/dist/client/assets/{automations-Bzc-usOW.js → automations-DDhJ8eWl.js} +1 -1
  62. package/dist/client/assets/{avatar-aQxHuIYg.js → avatar-C8omw4ui.js} +1 -1
  63. package/dist/client/assets/{badge-CoVICL7-.js → badge-DATiLeq8.js} +1 -1
  64. package/dist/client/assets/{block-document-Ddgx5l89.js → block-document-wUI8IdmX.js} +1 -1
  65. package/dist/client/assets/{brand-context-DV2evLJc.js → brand-context-BmFszoWb.js} +1 -1
  66. package/dist/client/assets/{buckets-CO8ytaDl.js → buckets-BLCvIUZ3.js} +1 -1
  67. package/dist/client/assets/{bulk-category-panel-Z-ncC8dg.js → bulk-category-panel-km-vEE6h.js} +1 -1
  68. package/dist/client/assets/{calendar-CPOzEjNP.js → calendar-BOENnb9A.js} +1 -1
  69. package/dist/client/assets/{capability-load-error-DEcgvDg0.js → capability-load-error-CH2YZe17.js} +1 -1
  70. package/dist/client/assets/{card-DkOcnaGU.js → card-BDlClsKj.js} +1 -1
  71. package/dist/client/assets/{category-editor-D7hycPUc.js → category-editor-zgVVZ-P-.js} +1 -1
  72. package/dist/client/assets/{chat-context-ClBVfA1X.js → chat-context-DFOBPs90.js} +1 -1
  73. package/dist/client/assets/{checkbox-DQk7Hn7H.js → checkbox-jy6UbRlh.js} +1 -1
  74. package/dist/client/assets/{cli-auth-success-DfFnrNz5.js → cli-auth-success-Be0gBanN.js} +1 -1
  75. package/dist/client/assets/{collection-detail-C9mrOEh9.js → collection-detail-BJkTbXX4.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-CsVUXmTq.js → collection-display-button-CZrwcOaF.js} +1 -1
  77. package/dist/client/assets/{collection-search-BBHvvNML.js → collection-search-C7DynN5N.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-BitF3J_w.js → collection-table-wrapper-CZne7ClA.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-33-bqtiz.js → collection-tabs-M_t-wNDn.js} +1 -1
  80. package/dist/client/assets/{command-mKOrJzrZ.js → command-DczuwJO_.js} +1 -1
  81. package/dist/client/assets/{commerce-onboarding-BdFh7WdD.js → commerce-onboarding-BsTcOFcU.js} +1 -1
  82. package/dist/client/assets/{companions-core-B3zttn60.js → companions-core-Dj4yUAsZ.js} +1 -1
  83. package/dist/client/assets/{connect-DJcsNXGq.js → connect-DVS3yMLs.js} +1 -1
  84. package/dist/client/assets/{connection-Dvuv7or_.js → connection-CuKbEDBb.js} +1 -1
  85. package/dist/client/assets/{connection-card-Cb2sDtSe.js → connection-card-DzlKjMJI.js} +1 -1
  86. package/dist/client/assets/{connection-detail-DWiKqpES.js → connection-detail-B6WcZET5.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-BNRb0RFO.js → connection-form-helpers-CYLkglSj.js} +1 -1
  88. package/dist/client/assets/{connections-CZxmMVwl.js → connections-COfAow_l.js} +1 -1
  89. package/dist/client/assets/{decopilot-sse-pool-qN274emC.js → decopilot-sse-pool-Cu-hR6BQ.js} +1 -1
  90. package/dist/client/assets/{dialog-OnmvFj6U.js → dialog-CwBSuvYt.js} +1 -1
  91. package/dist/client/assets/{domain-settings-CzTLtd6K.js → domain-settings-DbaCJa51.js} +1 -1
  92. package/dist/client/assets/{drawer-Bbx4sGLc.js → drawer-i8oMRMoJ.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-BLoiIT66.js → dropdown-menu-C_eQhJ2M.js} +1 -1
  94. package/dist/client/assets/{empty-state-B7EoOp90.js → empty-state-BAG4U3LW.js} +1 -1
  95. package/dist/client/assets/{extract-connection-data-DPxnrIHs.js → extract-connection-data-CsgSdoYg.js} +1 -1
  96. package/dist/client/assets/{file-explorer-DV-Ii_1B.js → file-explorer-jl8EpIWO.js} +1 -1
  97. package/dist/client/assets/{form-B1FGpjqQ.js → form-BztXTBoS.js} +1 -1
  98. package/dist/client/assets/{general-CevDlV2t.js → general-DCwmMv6b.js} +1 -1
  99. package/dist/client/assets/{github-repo-picker-8IfA3bqL.js → github-repo-picker-BpUpeyK9.js} +1 -1
  100. package/dist/client/assets/{hooks-DkiICRiM.js → hooks-CA5oliug.js} +1 -1
  101. package/dist/client/assets/index-BD6FLXxu.css +1 -0
  102. package/dist/client/assets/{index-WRi6IFVD.js → index-BF0gyXLV.js} +1 -1
  103. package/dist/client/assets/{index-DYJY_3X1.js → index-BkBHGAN0.js} +3 -3
  104. package/dist/client/assets/{index-Btt82SFt.js → index-C34Wm8RJ.js} +1 -1
  105. package/dist/client/assets/{index-C5Cl4k32.js → index-CRBiKlR5.js} +1 -1
  106. package/dist/client/assets/{index-CYXzKIGv.js → index-Ccpvdfv6.js} +1 -1
  107. package/dist/client/assets/{index-0NQAslei.js → index-CkXHmPgG.js} +1 -1
  108. package/dist/client/assets/{index-CzLUG8CI.js → index-D8QeE65C.js} +5 -5
  109. package/dist/client/assets/{index-Dp2RJDLw.js → index-DDM3Uagy.js} +1 -1
  110. package/dist/client/assets/{index-Cb4Y0Iqz.js → index-SN_ssYZA.js} +1 -1
  111. package/dist/client/assets/{index-55ijbTTK.js → index-UWqZxe1M.js} +1 -1
  112. package/dist/client/assets/{index-redirect-DHYukAPh.js → index-redirect-BItYiQ46.js} +1 -1
  113. package/dist/client/assets/{index-DD19Xgi9.js → index-rkki1YN7.js} +3 -3
  114. package/dist/client/assets/{input-B-xxZOKU.js → input-C4Lavh2N.js} +1 -1
  115. package/dist/client/assets/{integration-icon-B63LIXOn.js → integration-icon-D8eBTLCw.js} +1 -1
  116. package/dist/client/assets/{invite-member-dialog-CzB9sdOr.js → invite-member-dialog-DCLEHlaw.js} +1 -1
  117. package/dist/client/assets/{label-DVBVPZn_.js → label-DkA7dZte.js} +1 -1
  118. package/dist/client/assets/{layout-D-p7eb8T.js → layout-BBkAuuhF.js} +1 -1
  119. package/dist/client/assets/{login-Cb_sr0ld.js → login-DYGdCs0g.js} +1 -1
  120. package/dist/client/assets/{mcp-oauth-DSZxQ3KG.js → mcp-oauth-DvUYRTYk.js} +1 -1
  121. package/dist/client/assets/{members-CpL2kgGq.js → members-CW3KjUfl.js} +1 -1
  122. package/dist/client/assets/{monaco-editor-DOx5PZhj.js → monaco-editor-FnHHX91H.js} +1 -1
  123. package/dist/client/assets/{monitoring-stats-row-WdbL1buD.js → monitoring-stats-row-MHFBj5b5.js} +1 -1
  124. package/dist/client/assets/{multi-select-CmB0E9HL.js → multi-select-NrIQMFGg.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-DC7VgOoE.js → oauth-callback-DNDVLGa2.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-DkHQn1xC.js → oauth-callback-ai-provider-o6SyN_qY.js} +1 -1
  127. package/dist/client/assets/{onboarding-CP4Xl5BT.js → onboarding-BWOA9S7-.js} +1 -1
  128. package/dist/client/assets/{org-layout-Bp_cOzYu.js → org-layout-CpjdhNRF.js} +1 -1
  129. package/dist/client/assets/{organization-choice-DEYQjW76.js → organization-choice-C6nOJ-4p.js} +1 -1
  130. package/dist/client/assets/{orgs-Cg-7TNHk.js → orgs-CYau5sVk.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-D8Jl7JDX.js → page-seo-form-D8sMjU4H.js} +1 -1
  132. package/dist/client/assets/{popover-CN7lQbJb.js → popover-CWm1FA9s.js} +1 -1
  133. package/dist/client/assets/{post-editor-DnAqMACi.js → post-editor-DG3U9k5E.js} +1 -1
  134. package/dist/client/assets/{primitives-DM0CO-PV.js → primitives-BqqAggIX.js} +1 -1
  135. package/dist/client/assets/{profile-TxFzmEwf.js → profile-D0_1kEZl.js} +1 -1
  136. package/dist/client/assets/project-app-view-BF9WQbBB.js +1 -0
  137. package/dist/client/assets/record-editor-BoraV9Ll.js +1 -0
  138. package/dist/client/assets/{redirect-editor-DI1TVrRf.js → redirect-editor-DRPmgUxT.js} +1 -1
  139. package/dist/client/assets/registry-SXvTOpJ2.js +2 -0
  140. package/dist/client/assets/{registry-layout-Dd9v-lxw.js → registry-layout-DB18lBJT.js} +1 -1
  141. package/dist/client/assets/reports-BKQVejh8.js +43 -0
  142. package/dist/client/assets/{require-capability-DEPjYfTb.js → require-capability-DHOcmign.js} +1 -1
  143. package/dist/client/assets/{required-auth-layout-CvEEOnW2.js → required-auth-layout-FxfcCfjh.js} +1 -1
  144. package/dist/client/assets/{reset-password-Zr4erJ5H.js → reset-password-Cg59E0m7.js} +1 -1
  145. package/dist/client/assets/{roles-D4AXY1O0.js → roles-sjADXhFY.js} +1 -1
  146. package/dist/client/assets/{search-input-B7HrisdG.js → search-input-2wBvtox5.js} +1 -1
  147. package/dist/client/assets/{secrets-BiVb_h2W.js → secrets-C1pyUx1Y.js} +1 -1
  148. package/dist/client/assets/{sections-editor-B4XrZ9ZW.js → sections-editor-Dmdfpm-K.js} +1 -1
  149. package/dist/client/assets/{select-Bo0WA9yd.js → select-CoKSUM8-.js} +1 -1
  150. package/dist/client/assets/{select-model-UN_W2kWz.js → select-model-TlGQK8K2.js} +1 -1
  151. package/dist/client/assets/{self-tool-result-ofSJsTC6.js → self-tool-result-CZAXDIaD.js} +1 -1
  152. package/dist/client/assets/{seo-editor-EBMN1tFp.js → seo-editor-Br9gZLYu.js} +1 -1
  153. package/dist/client/assets/{settings-layout-CTCpMgqD.js → settings-layout-ktDBpwc3.js} +1 -1
  154. package/dist/client/assets/{settings-section-SjYGvsuZ.js → settings-section-BDB4m-EX.js} +1 -1
  155. package/dist/client/assets/{shell-controls-BAqugCQv.js → shell-controls-0_gJoDmy.js} +1 -1
  156. package/dist/client/assets/{shell-layout-ygdVGNeq.js → shell-layout-B7O6Ssnd.js} +1 -1
  157. package/dist/client/assets/{sidebar-Cw1n8cPE.js → sidebar-MitTf4om.js} +1 -1
  158. package/dist/client/assets/{skeleton-C3mqHUgK.js → skeleton-DzVklkOZ.js} +1 -1
  159. package/dist/client/assets/{spinner-JIyCKCZR.js → spinner-DvLdFVwt.js} +1 -1
  160. package/dist/client/assets/{sso-DxGDFKtg.js → sso-C_2_kKdo.js} +1 -1
  161. package/dist/client/assets/{store-UE0DxGe6.js → store-7datkGAc.js} +1 -1
  162. package/dist/client/assets/store-registry-ChwEAXz7.js +2 -0
  163. package/dist/client/assets/{studio-tools-BuHDDhrj.js → studio-tools-DMSpwWD_.js} +1 -1
  164. package/dist/client/assets/{switch-D0rt9_tw.js → switch-BsvcpUeB.js} +1 -1
  165. package/dist/client/assets/{tab-id-DojsBlVG.js → tab-id-B-gp1QBS.js} +1 -1
  166. package/dist/client/assets/{table-B9vqd95o.js → table-BiQjV0-k.js} +1 -1
  167. package/dist/client/assets/{tabs-D_KaPDCJ.js → tabs-ZrKbbm11.js} +1 -1
  168. package/dist/client/assets/{textarea-DyydMtzS.js → textarea-EtKN_YTA.js} +1 -1
  169. package/dist/client/assets/{toggle-group-_sacxwJk.js → toggle-group-CNG0g-Kg.js} +1 -1
  170. package/dist/client/assets/{toolbar-Bnk-Y6Bk.js → toolbar-D9r5O1SD.js} +1 -1
  171. package/dist/client/assets/{tooltip-Bg4lifNX.js → tooltip-DIrKHehX.js} +1 -1
  172. package/dist/client/assets/{use-ai-providers-BdqwOZhV.js → use-ai-providers-C3odEkRZ.js} +1 -1
  173. package/dist/client/assets/{use-automations-DPh61wGk.js → use-automations-GY_Wm5Zu.js} +1 -1
  174. package/dist/client/assets/{use-autosave-CNMKkcAa.js → use-autosave-BvzFCQsC.js} +1 -1
  175. package/dist/client/assets/{use-capability-C6EbtzXu.js → use-capability-BdKJ6lkP.js} +1 -1
  176. package/dist/client/assets/{use-clock-tick-DIxeJR8K.js → use-clock-tick-CiN2ou5F.js} +1 -1
  177. package/dist/client/assets/{use-connection-DEaoKOVa.js → use-connection-CDXyHqap.js} +1 -1
  178. package/dist/client/assets/{use-copy-BId4eX5b.js → use-copy-BZf7gCg-.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-D9UPJWo2.js → use-create-virtual-mcp-DyyVnoSX.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-B3VRqTYF.js → use-debounced-autosave-BTqMKrhn.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-i9ZCSUX-.js → use-debounced-value-DfK2B1_V.js} +1 -1
  182. package/dist/client/assets/{use-deco-credits-B_NEq58J.js → use-deco-credits-DGNLEhrm.js} +1 -1
  183. package/dist/client/assets/{use-decopilot-events-CYCBMba3.js → use-decopilot-events-C-gqSYj3.js} +1 -1
  184. package/dist/client/assets/{use-delete-connection-DGEuPXeT.js → use-delete-connection-B0SrUps3.js} +1 -1
  185. package/dist/client/assets/{use-deployment-admin-CUuCBSxD.js → use-deployment-admin-Ba7j2zCl.js} +1 -1
  186. package/dist/client/assets/{use-file-configs-OhwXVJ_Q.js → use-file-configs-Cvsg9Woh.js} +1 -1
  187. package/dist/client/assets/{use-infinite-scroll-BwgDaFz3.js → use-infinite-scroll-i-r0gzLl.js} +1 -1
  188. package/dist/client/assets/{use-join-requests-BtZRjEAs.js → use-join-requests-CCkeTHl-.js} +1 -1
  189. package/dist/client/assets/{use-mcp-auth-status-DIV1qXsR.js → use-mcp-auth-status-CKonCJ_d.js} +1 -1
  190. package/dist/client/assets/{use-mcp-client-C6u6uWMn.js → use-mcp-client-CjpKVqM3.js} +1 -1
  191. package/dist/client/assets/{use-mcp-tools-BKnN90LQ.js → use-mcp-tools-Did_5T_K.js} +1 -1
  192. package/dist/client/assets/{use-members-BhDGuSrv.js → use-members-GfnfnTZK.js} +1 -1
  193. package/dist/client/assets/{use-mobile-CuBbFzjG.js → use-mobile-BGk0gyMv.js} +1 -1
  194. package/dist/client/assets/{use-navigate-to-agent-CfiKyTiO.js → use-navigate-to-agent-CdCdJy-I.js} +1 -1
  195. package/dist/client/assets/{use-org-auth-client-BdUdgOJA.js → use-org-auth-client-DAIJQzFF.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-BeUUySr2.js → use-org-sso-Db-uH0W4.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-DWzU2COa.js → use-organization-roles-BgI4MTBX.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-DCilCh9D.js → use-organization-settings-kO-P9v7Z.js} +1 -1
  199. package/dist/client/assets/{use-registry-connections-DY5HXeca.js → use-registry-connections-Dpjgw6K8.js} +1 -1
  200. package/dist/client/assets/{use-secrets-DyfpPIKJ.js → use-secrets-CKYlyUoe.js} +1 -1
  201. package/dist/client/assets/{use-status-sounds-CtR-iJrK.js → use-status-sounds-CYszIgDE.js} +1 -1
  202. package/dist/client/assets/{use-tags-DB7y1K_X.js → use-tags-KotY6XzR.js} +1 -1
  203. package/dist/client/assets/{use-view-mode-D8FPxdi1.js → use-view-mode-PL3XVKJu.js} +1 -1
  204. package/dist/client/assets/{use-virtual-mcp-CtAFuCva.js → use-virtual-mcp-DT5KSIKw.js} +1 -1
  205. package/dist/client/assets/useInfiniteQuery-CZs-hell.js +1 -0
  206. package/dist/client/assets/{useQueries--YSCqaIN.js → useQueries-BnzFzkGk.js} +1 -1
  207. package/dist/client/assets/{useRouterState-DTAdOPb-.js → useRouterState-DfGSUaWt.js} +1 -1
  208. package/dist/client/assets/useSuspenseInfiniteQuery-BjNKw_XN.js +1 -0
  209. package/dist/client/assets/{users-DWvE_C1K.js → users-B0Pe_Ic3.js} +1 -1
  210. package/dist/client/assets/{variant-calendar-CGU8zbxv.js → variant-calendar-yr4cihmY.js} +1 -1
  211. package/dist/client/assets/{view-mode-toggle-DlDm54jJ.js → view-mode-toggle-DJyKHOLI.js} +1 -1
  212. package/dist/client/index.html +2 -2
  213. package/dist/server/cli.js +440 -440
  214. package/dist/server/server.js +305 -305
  215. package/package.json +1 -1
  216. package/dist/client/assets/index-Cw0lZSdB.css +0 -1
  217. package/dist/client/assets/project-app-view-wfKsnkAj.js +0 -1
  218. package/dist/client/assets/record-editor-BhH6MPJd.js +0 -1
  219. package/dist/client/assets/registry-xKh7pW67.js +0 -2
  220. package/dist/client/assets/reports-DT7pxKAL.js +0 -43
  221. package/dist/client/assets/store-registry-CsVvMWKp.js +0 -2
  222. package/dist/client/assets/useInfiniteQuery-CXglgl_n.js +0 -1
  223. package/dist/client/assets/useSuspenseInfiniteQuery-B6E2NwfD.js +0 -1
@@ -1,43 +0,0 @@
1
- import{c as Te,b as xt,m as et,j as T,r as ze,q as hn,T as bo,y as xI,z as _I,v as _2,V as bI,a as b2,n as SI,K as wI,C as TI}from"./index-DD19Xgi9.js";import{A as CI}from"./auth-entry-DjFBaL_w.js";import{d as Zy}from"./delay-CnY5UFtP.js";import{i as AI}from"./AlertCircle-CulgZ8QJ.js";import{n as DI,i as MI}from"./ArrowUp-BNlXyeba.js";import{a as LI,b as II,i as PI}from"./XCircle-BN8DdobH.js";import{a as kI,i as RI,b as NI,c as EI,t as OI,n as BI,d as zI,e as VI,f as GI,g as FI,s as HI,h as jI,j as WI}from"./TrendUp01-CbREjIPK.js";import{i as $I}from"./CheckCircle-D1nzBDyQ.js";import{s as UI}from"./Eye-BCIudvRR.js";import{i as YI}from"./LogOut01-BFFFOC3O.js";import{i as XI}from"./SearchLg-CmIsAQ3X.js";import{i as ZI}from"./Shield01-CL48sD_B.js";import{t as KI}from"./Stars01-9A2GWUug.js";import{i as qI}from"./Zap-BAm5KmZ-.js";import"./input-B-xxZOKU.js";import"./use-is-desktop-app-BNujXJc_.js";import"./spinner-JIyCKCZR.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";function Bg(r){let e=(r??"").trim().toLowerCase();return e=e.replace(/^https?:\/\//,""),e=e.replace(/^www\./,""),e=e.split(/[/?#]/)[0]??"",e.replace(/\/+$/,"")}function JI(r){return(Bg(r).split(".")[0]||r).replace(/[-_]/g," ").split(" ").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function Af(r,e=64){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(Bg(r))}&sz=${e}`}function Ky(r,e){const t=r.trim();if(t.length<=e)return t;const a=t.slice(0,e-1),n=a.lastIndexOf(" ");return`${(n>e*.6?a.slice(0,n):a).trimEnd()}…`}function QI(r){const{brand:e,domain:t,score:a,verdict:n}=r,i=typeof a=="number"?`${e} commerce report — ${Math.round(a)}/100 · decocms`:`${e} commerce report · decocms`,o=`See the full ${e} scorecard — SEO, performance, conversion & AEO signals scored by decocms.`,s=n?.trim()?Ky(`${n.trim().replace(/\s+/g," ")} — ${o}`,200):Ky(`How does ${t} really perform? ${o}`,200);return{title:i,description:s}}class S2 extends Error{constructor(e){super(`reports API HTTP ${e}`),this.status=e,this.name="ReportsApiError"}status}function zg(r){return r instanceof S2&&r.status===401}async function Df(r){if(!r.ok)throw new S2(r.status);return await r.json()}function Wd(r,e,t){const a=new URLSearchParams;e&&a.set("key",e),t&&a.set("lang",t);const n=a.toString()?`?${a.toString()}`:"";return fetch(`/api/_reports/site/${encodeURIComponent(r)}${n}`).then(i=>Df(i))}function eP(r){return fetch("/api/_reports/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>Df(e))}function tP(r){return fetch(`/api/_reports/status?id=${encodeURIComponent(r)}`).then(e=>Df(e))}function rP(r){return fetch(`/api/_reports/link-token/${encodeURIComponent(r)}`).then(e=>Df(e))}const N={bg:"#ffffff",ink:"#282524",muted:"#78726e",faint:"#a6a09d",border:"rgba(40,37,36,0.09)",cardBorder:"rgba(40,37,36,0.06)",inputBorder:"rgba(40,37,36,0.18)",surface:"#ffffff",primary:"#282524",primaryFg:"#ffffff",soft:"#8caa25",lime:"#d0ec1a",limeTint:"#eff6cc",forest:"#07401a",warn:"#f0b613",notice:"#6e9fdb"},ut={good:N.soft,bad:"#d43d3d",neutral:N.ink},aP=[{src:"/logos/summit/fila.svg",alt:"Fila",w:100,h:34},{src:"/logos/summit/osklen.svg",alt:"Osklen",w:152,h:21},{src:"/logos/summit/farm-rio.svg",alt:"Farm Rio",w:159,h:23},{src:"/logos/summit/electrolux.svg",alt:"Electrolux",w:154,h:35},{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",w:116,h:61},{src:"/logos/summit/technos.svg",alt:"Technos",w:141,h:29},{src:"/logos/summit/bagaggio.svg",alt:"Bagaggio",w:149,h:22},{src:"/logos/summit/le-biscuit.svg",alt:"Le Biscuit",w:141,h:24},{src:"/logos/summit/miess.svg",alt:"Miess",w:113,h:43},{src:"/logos/summit/casa-e-video.svg",alt:"Casa & Video",w:145,h:18},{src:"/logos/summit/hering-fill.svg",alt:"Hering",w:140,h:30}],nP=4,iP=2400;function oP(r){const e=Array.from({length:r},()=>[]);return aP.forEach((t,a)=>e[a%r]?.push(t)),e}function w2(r){const e=Te.c(22),{logos:t,delayMs:a,last:n,bottomRow:i}=r,[o,s]=ze.useState(0);let l;e[0]!==a||e[1]!==t.length?(l=S=>{if(!S)return;let b;const w=setTimeout(()=>{b=setInterval(()=>s(C=>(C+1)%t.length),iP)},a);return()=>{clearTimeout(w),b&&clearInterval(b)}},e[0]=a,e[1]=t.length,e[2]=l):l=e[2];const u=l,c=t[o%t.length]??t[0];if(!c)return null;const f=Math.min(78/c.w,22/c.h);let h;e[3]!==c.w||e[4]!==f?(h=Math.round(c.w*f),e[3]=c.w,e[4]=f,e[5]=h):h=e[5];const v=h;let d;e[6]!==c.h||e[7]!==f?(d=Math.round(c.h*f),e[6]=c.h,e[7]=f,e[8]=d):d=e[8];const p=d,g=n?void 0:`1px solid ${N.border}`,m=i?`1px solid ${N.border}`:void 0;let y;e[9]!==g||e[10]!==m?(y={borderRight:g,borderTop:m},e[9]=g,e[10]=m,e[11]=y):y=e[11];let x;e[12]!==o||e[13]!==c.alt||e[14]!==c.src||e[15]!==p||e[16]!==v?(x=T.jsx("img",{src:c.src,alt:c.alt,width:v,height:p,className:"logo-carousel-enter block"},o),e[12]=o,e[13]=c.alt,e[14]=c.src,e[15]=p,e[16]=v,e[17]=x):x=e[17];let _;return e[18]!==u||e[19]!==y||e[20]!==x?(_=T.jsx("div",{ref:u,className:"flex flex-1 items-center justify-center overflow-hidden py-3",style:y,children:x}),e[18]=u,e[19]=y,e[20]=x,e[21]=_):_=e[21],_}function sP(){const r=Te.c(1);let e;if(r[0]===Symbol.for("react.memo_cache_sentinel")){const t=oP(nP);e=T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"grid grid-cols-2 overflow-hidden rounded-xl sm:hidden",style:{border:`1px solid ${N.border}`},children:t.map(lP)}),T.jsx("div",{className:"hidden overflow-hidden rounded-xl sm:flex",style:{border:`1px solid ${N.border}`},children:t.map((a,n)=>T.jsx(w2,{logos:a,delayMs:n*380,last:n===t.length-1},a[0]?.src))})]}),r[0]=e}else e=r[0];return e}function lP(r,e){return T.jsx(w2,{logos:r,delayMs:e*380,last:e%2===1,bottomRow:e>=2},r[0]?.src)}function T2(r){const e=Te.c(12),{compact:t}=r,a=t===void 0?!1:t,n=xt(),i=a?"mt-5 pt-5":"mt-8 pt-6";let o;e[0]!==i?(o=et(i),e[0]=i,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:`1px solid ${N.border}`},e[2]=s):s=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l={color:N.faint},e[3]=l):l=e[3];let u;e[4]!==n?(u=n("reports.socialProof.alreadyReceived"),e[4]=n,e[5]=u):u=e[5];let c;e[6]!==u?(c=T.jsx("p",{className:"mb-4 text-center text-[11px] uppercase tracking-[0.04em]",style:l,children:u}),e[6]=u,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=T.jsx(sP,{}),e[8]=f):f=e[8];let h;return e[9]!==o||e[10]!==c?(h=T.jsxs("div",{className:o,style:s,children:[c,f]}),e[9]=o,e[10]=c,e[11]=h):h=e[11],h}let C2=!1;const uP="report:auth-attempt:",cP=3600*1e3;function fP(r){const e=new URLSearchParams(r),t=e.get("share_id")||void 0,a=e.get("email_run_id")||void 0,n=e.get("utm_source")||void 0,i=e.get("utm_medium")||void 0,o=e.get("utm_campaign")||void 0;return{entrypoint:t||n==="share"?"share":a||e.has("d")||n==="email"?"email":n?"campaign":"direct",...t?{share_id:t}:{},...a?{email_run_id:a}:{},...n?{utm_source:n}:{},...i?{utm_medium:i}:{},...o?{utm_campaign:o}:{}}}function A2(){return fP(typeof window>"u"?"":window.location.search)}function Mc(r){return`${uP}${r}`}function hP(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function D2(r){try{const e=window.sessionStorage.getItem(Mc(r));if(!e)return null;const t=JSON.parse(e);return t.domain!==r||typeof t.attempt_id!="string"||typeof t.gate_shown_at!="number"||Date.now()-t.gate_shown_at>cP?(window.sessionStorage.removeItem(Mc(r)),null):t}catch{return null}}function M2(r){try{window.sessionStorage.setItem(Mc(r.domain),JSON.stringify(r))}catch{}}function L2(r){const e=D2(r);if(e)return e;const t={attempt_id:hP(),domain:r,gate_shown_at:Date.now(),...A2()};return M2(t),t}function vP(r,e){const t={...L2(r),...e};return M2(t),t}function $d(r){return{auth_attempt_id:r.attempt_id,entrypoint:r.entrypoint,...r.share_id?{share_id:r.share_id}:{},...r.email_run_id?{email_run_id:r.email_run_id}:{},...r.utm_source?{utm_source:r.utm_source}:{},...r.utm_medium?{utm_medium:r.utm_medium}:{},...r.utm_campaign?{utm_campaign:r.utm_campaign}:{}}}function dP(r){const e=D2(r);if(!e)return null;try{window.sessionStorage.removeItem(Mc(r))}catch{}return e}function pP(r){const e=r.toLowerCase();return e==="invalid_email"?"invalid_email":e.includes("429")||e.includes("rate limit")?"rate_limited":e.includes("otp")||e.includes("verification code")||e.includes("invalid code")||e.includes("expired code")||e.includes("código")||e.includes("codigo")?"invalid_or_expired_code":e.includes("401")||e.includes("unauthorized")?"invalid_credentials":e.includes("409")||e.includes("already exists")?"account_exists":e.includes("network")||e.includes("fetch")?"network":e.includes("cancel")||e.includes("closed")?"cancelled":"unknown"}function Ud(r){C2=r}function rt(r,e,t){if(hn())try{bo.capture(r,{...A2(),...e,...C2?{report_preview:"reviewer"}:{}},t)}catch{}}function gP(r){return{otpSendFailed:r("reports.authGate.otpSendFailed"),invalidCode:r("reports.authGate.invalidCode"),invalidEmail:r("reports.authGate.invalidEmail"),networkError:r("reports.authGate.networkError"),tooManyAttempts:r("reports.authGate.tooManyAttempts"),invalidOrExpiredCode:r("reports.authGate.invalidOrExpiredCode"),genericError:r("reports.authGate.genericError"),verificationCodeTitle:r("reports.authGate.verificationCodeTitle"),codeSentTo:e=>r("reports.authGate.codeSentTo",{email:e}),continueWith:e=>r("reports.authGate.continueWith",{provider:e}),divider:r("reports.authGate.divider"),emailLabel:r("reports.authGate.emailLabel"),emailPlaceholder:r("reports.authGate.emailPlaceholder"),sending:r("reports.authGate.sending"),sendCode:r("reports.authGate.sendCode"),verificationCodeLabel:r("reports.authGate.verificationCodeLabel"),enterCodePlaceholder:r("reports.authGate.enterCodePlaceholder"),verifying:r("reports.authGate.verifying"),verify:r("reports.authGate.verify"),useDifferentEmail:r("reports.authGate.useDifferentEmail")}}function mP(r){const e=`/report/${encodeURIComponent(r)}`;return typeof window>"u"?e:`${e}${window.location.search}${window.location.hash}`}const qy=r=>[r("reports.authGate.finding1"),r("reports.authGate.finding2"),r("reports.authGate.finding3"),r("reports.authGate.finding4"),r("reports.authGate.finding5")],Jy=72;function Mf(r){const e=Te.c(82),{domain:t}=r,a=xt(),n=2*Math.PI*47;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={background:N.bg,color:N.ink,filter:"blur(9px)",fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",transform:"scale(1.025)"},e[0]=i):i=e[0];let o,s;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},s=T.jsx("img",{src:"/logos/deco-logo.svg",alt:"",width:54,height:22,className:"h-[22px] w-auto"}),e[1]=o,e[2]=s):(o=e[1],s=e[2]);let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l={background:N.primary,color:N.primaryFg},e[3]=l):l=e[3];let u;e[4]!==a?(u=a("reports.authGate.share"),e[4]=a,e[5]=u):u=e[5];let c;e[6]!==u?(c=T.jsx("div",{className:"shrink-0 px-6 pt-6 sm:px-10",children:T.jsxs("div",{className:"mx-auto flex h-[60px] max-w-[1440px] items-center gap-3 rounded-full border pl-6 pr-4",style:o,children:[s,T.jsx("span",{className:"ml-auto flex h-9 w-24 items-center justify-center rounded-full text-sm font-medium",style:l,children:u})]})}),e[6]=u,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},e[8]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h={borderBottom:`1px solid ${N.border}`},e[9]=h):h=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v={border:`1px solid ${N.border}`},e[10]=v):v=e[10];let d;e[11]!==t?(d=Af(t),e[11]=t,e[12]=d):d=e[12];let p;e[13]!==d?(p=T.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:v,children:T.jsx("img",{src:d,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[13]=d,e[14]=p):p=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[15]=g):g=e[15];let m;e[16]!==t?(m=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-base",children:[g,t]}),e[16]=t,e[17]=m):m=e[17];let y;e[18]===Symbol.for("react.memo_cache_sentinel")?(y={color:N.soft},e[18]=y):y=e[18];let x;e[19]!==a?(x=a("reports.authGate.report"),e[19]=a,e[20]=x):x=e[20];let _;e[21]!==x?(_=T.jsx("span",{className:"shrink-0 text-[11px] font-medium uppercase tracking-[0.04em]",style:y,children:x}),e[21]=x,e[22]=_):_=e[22];let S;e[23]!==p||e[24]!==m||e[25]!==_?(S=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-4",style:h,children:[p,m,_]}),e[23]=p,e[24]=m,e[25]=_,e[26]=S):S=e[26];let b;e[27]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsxs("svg",{width:104,height:104,className:"-rotate-90 shrink-0",children:[T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.border,strokeWidth:10}),T.jsx("circle",{cx:52,cy:52,r:47,fill:"none",stroke:N.soft,strokeWidth:10,strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n*(1-Jy/100)})]}),e[27]=b):b=e[27];let w;e[28]===Symbol.for("react.memo_cache_sentinel")?(w=T.jsx("span",{className:"text-[4rem] font-light leading-[0.9] tracking-[-0.02em] tabular-nums",style:{color:N.soft},children:Jy}),e[28]=w):w=e[28];let C;e[29]===Symbol.for("react.memo_cache_sentinel")?(C=T.jsxs("div",{className:"flex items-baseline gap-2",children:[w,T.jsx("span",{className:"text-xl",style:{color:N.faint},children:"/ 100"})]}),e[29]=C):C=e[29];let A;e[30]===Symbol.for("react.memo_cache_sentinel")?(A={color:N.soft},e[30]=A):A=e[30];let D;e[31]!==a?(D=a("reports.authGate.decoScore"),e[31]=a,e[32]=D):D=e[32];let M;e[33]!==D?(M=T.jsxs("div",{className:"mt-4 flex shrink-0 items-center gap-5",children:[b,T.jsxs("div",{className:"flex flex-col gap-0.5",children:[C,T.jsx("span",{className:"text-[12px] font-medium uppercase tracking-[0.04em]",style:A,children:D})]})]}),e[33]=D,e[34]=M):M=e[34];let I;e[35]===Symbol.for("react.memo_cache_sentinel")?(I={color:N.ink},e[35]=I):I=e[35];let P;e[36]!==a?(P=a("reports.authGate.headline"),e[36]=a,e[37]=P):P=e[37];let k;e[38]!==P?(k=T.jsx("h1",{className:"mt-4 max-w-[24ch] text-[1.7rem] font-normal leading-[1.16] tracking-[-0.02em]",style:I,children:P}),e[38]=P,e[39]=k):k=e[39];let R;e[40]!==a?(R=qy(a).map((oe,Ge)=>T.jsx("li",{style:Ge<qy(a).length-1?{borderBottom:`1px solid ${N.border}`}:void 0,children:T.jsxs("div",{className:"flex w-full items-center gap-3.5 py-2.5",children:[T.jsx("span",{className:"shrink-0 text-[12px] tabular-nums",style:{color:N.soft},children:String(Ge+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[15px] opacity-55",style:{color:N.ink,lineHeight:1.3},children:oe})]})},Ge)),e[40]=a,e[41]=R):R=e[41];let E;e[42]!==R?(E=T.jsx("ul",{className:"mt-auto flex flex-col pt-4",children:R}),e[42]=R,e[43]=E):E=e[43];let B;e[44]!==S||e[45]!==M||e[46]!==k||e[47]!==E?(B=T.jsxs("div",{className:"flex min-h-0 flex-col px-5 py-5",children:[S,M,k,E]}),e[44]=S,e[45]=M,e[46]=k,e[47]=E,e[48]=B):B=e[48];let O;e[49]===Symbol.for("react.memo_cache_sentinel")?(O={background:"radial-gradient(circle at 18% 18%, rgba(208,236,26,.45), transparent 35%), radial-gradient(circle at 82% 30%, rgba(152,221,255,.7), transparent 34%), radial-gradient(circle at 60% 86%, rgba(255,183,214,.65), transparent 42%), #f7f5ef"},e[49]=O):O=e[49];let V;e[50]===Symbol.for("react.memo_cache_sentinel")?(V={borderColor:N.border},e[50]=V):V=e[50];let F,G,j,Y;e[51]===Symbol.for("react.memo_cache_sentinel")?(F={borderColor:N.border},G=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff6b67]"}),j=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#f5c451]"}),Y=T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#65c466]"}),e[51]=F,e[52]=G,e[53]=j,e[54]=Y):(F=e[51],G=e[52],j=e[53],Y=e[54]);let X;e[55]===Symbol.for("react.memo_cache_sentinel")?(X=T.jsxs("div",{className:"mb-3 flex items-center gap-2 border-b pb-3",style:F,children:[G,j,Y,T.jsx("span",{className:"ml-3 h-6 flex-1 rounded-full",style:{background:N.bg}})]}),e[55]=X):X=e[55];let Q;e[56]===Symbol.for("react.memo_cache_sentinel")?(Q=T.jsxs("div",{className:"space-y-3 rounded-xl p-4",style:{background:N.forest},children:[T.jsx("div",{className:"h-3 w-16 rounded-full bg-white/30"}),T.jsx("div",{className:"h-8 w-full rounded-lg bg-white/80"}),T.jsx("div",{className:"h-3 w-4/5 rounded-full bg-white/30"}),T.jsx("div",{className:"mt-8 h-24 rounded-xl bg-white/10"})]}),e[56]=Q):Q=e[56];let fe;e[57]===Symbol.for("react.memo_cache_sentinel")?(fe=T.jsx("div",{className:"hidden lg:block",children:T.jsx("div",{className:"relative h-full w-full overflow-hidden rounded-2xl",style:O,children:T.jsxs("div",{className:"absolute inset-x-8 top-8 rounded-2xl border bg-white p-3 shadow-xl",style:V,children:[X,T.jsxs("div",{className:"grid h-[330px] grid-cols-[0.72fr_1.28fr] gap-3",children:[Q,T.jsx("div",{className:"grid grid-cols-2 gap-3",children:[0,1,2,3].map(xP)})]})]})})}),e[57]=fe):fe=e[57];let he;e[58]!==B?(he=T.jsx("div",{className:"mx-auto flex h-full w-full max-w-[1280px] flex-col overflow-hidden rounded-[26px]",style:f,children:T.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[B,fe]})}),e[58]=B,e[59]=he):he=e[59];let ne;e[60]===Symbol.for("react.memo_cache_sentinel")?(ne=T.jsx("div",{className:"absolute right-8 top-1/2 flex -translate-y-1/2 flex-col gap-1.5",children:[0,1,2,3,4,5].map(yP)}),e[60]=ne):ne=e[60];let q;e[61]!==he?(q=T.jsxs("div",{className:"relative min-h-0 flex-1 px-6 py-8 sm:px-10",children:[he,ne]}),e[61]=he,e[62]=q):q=e[62];let ie;e[63]===Symbol.for("react.memo_cache_sentinel")?(ie={borderTop:`1px solid ${N.border}`},e[63]=ie):ie=e[63];let Z;e[64]===Symbol.for("react.memo_cache_sentinel")?(Z=T.jsx("span",{className:"text-sm tabular-nums opacity-50",style:{color:N.ink},children:"01/06"}),e[64]=Z):Z=e[64];let re;e[65]===Symbol.for("react.memo_cache_sentinel")?(re={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[65]=re):re=e[65];let ye;e[66]!==a?(ye=a("reports.authGate.shareButton"),e[66]=a,e[67]=ye):ye=e[67];let ge;e[68]!==ye?(ge=T.jsx("span",{className:"flex h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium",style:re,children:ye}),e[68]=ye,e[69]=ge):ge=e[69];let pe;e[70]===Symbol.for("react.memo_cache_sentinel")?(pe={background:N.primary,color:N.primaryFg},e[70]=pe):pe=e[70];let _e;e[71]!==a?(_e=a("reports.authGate.nextButton"),e[71]=a,e[72]=_e):_e=e[72];let Ee;e[73]!==_e?(Ee=T.jsx("span",{className:"flex h-12 items-center rounded-full px-6 text-sm font-medium",style:pe,children:_e}),e[73]=_e,e[74]=Ee):Ee=e[74];let Ue;e[75]!==ge||e[76]!==Ee?(Ue=T.jsxs("footer",{className:"flex shrink-0 items-center gap-2 px-6 py-4 sm:px-10",style:ie,children:[Z,T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[ge,Ee]})]}),e[75]=ge,e[76]=Ee,e[77]=Ue):Ue=e[77];let U;return e[78]!==q||e[79]!==Ue||e[80]!==c?(U=T.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-[-18px] flex select-none flex-col overflow-hidden",style:i,children:[c,q,Ue]}),e[78]=q,e[79]=Ue,e[80]=c,e[81]=U):U=e[81],U}function yP(r){return T.jsx("span",{className:"rounded-full",style:{height:r===0?3:2,width:r===0?28:12,background:r===0?N.ink:"rgba(40,37,36,0.22)"}},r)}function xP(r){return T.jsxs("div",{className:"rounded-xl border bg-white p-3",style:{borderColor:N.border},children:[T.jsx("div",{className:"h-24 rounded-lg",style:{background:N.bg}}),T.jsx("div",{className:"mt-3 h-3 w-4/5 rounded-full",style:{background:N.border}}),T.jsx("div",{className:"mt-2 h-3 w-1/2 rounded-full",style:{background:N.border}})]},r)}function Lc(r){const e=Te.c(18),{domain:t,loading:a}=r,n=a===void 0?!1:a,i=xt();let o;e[0]!==t?(o=p=>{const g="provider"in p?p.provider:void 0,m="mode"in p?p.mode:void 0,x={method:p.method==="social"?g??"social":p.method,provider:g,auth_mode:m},_=vP(t,x),S={domain:t,surface:"deck_v2",...$d(_),...x};p.type==="started"?rt("report_auth_started",S):p.type==="otp_sent"?rt("report_auth_otp_sent",S):p.type==="otp_submitted"?rt("report_auth_otp_submitted",S):p.type==="failed"&&rt("report_auth_failed",{...S,failure_stage:p.stage,error_type:pP(p.error)})},e[0]=t,e[1]=o):o=e[1];const s=o;let l;e[2]!==t||e[3]!==n?(l=p=>{if(!p||n)return;const g=L2(t);p.dataset.tracked==="true"||!hn()||(p.dataset.tracked="true",rt("report_auth_gate_shown",{domain:t,surface:"deck_v2",...$d(g)}))},e[2]=t,e[3]=n,e[4]=l):l=e[4];const u=l;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[5]=c):c=e[5];let f;e[6]!==t?(f=T.jsx(Mf,{domain:t}),e[6]=t,e[7]=f):f=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/55"}),e[8]=h):h=e[8];let v;e[9]!==t||e[10]!==s||e[11]!==n||e[12]!==i?(v=T.jsx("div",{className:"relative z-10 flex h-full items-center justify-center px-3 py-5 sm:px-6 sm:py-10",children:n?T.jsx("div",{className:"h-[330px] w-full max-w-[440px] animate-pulse rounded-3xl bg-white card-shadow","aria-label":i("reports.authGate.loadingSession")}):T.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":i("reports.authGate.accessYourReport"),className:"w-full max-w-[440px] rounded-2xl bg-white px-6 py-6 card-shadow sm:rounded-3xl sm:px-8 sm:py-8",children:[T.jsx(CI,{callbackUrl:mP(t),title:i("reports.authGate.accessYourReport"),subtitle:i("reports.authGate.authSubtitle"),variant:"compact",allowedSocialProviders:["google"],allowPassword:!1,onAuthEvent:s,brand:T.jsxs("div",{className:"flex items-center justify-between gap-4",children:[T.jsxs("div",{className:"inline-flex min-w-0 items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:N.bg},children:[T.jsx("img",{src:Af(t),alt:"",className:"h-4 w-4 shrink-0 rounded object-contain"}),T.jsx("span",{className:"truncate text-[13px]",style:{color:N.muted},children:t})]}),T.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-7 w-7 shrink-0"})]}),copy:gP(i)}),T.jsx("p",{className:"mt-4 text-xs leading-5",style:{color:N.faint},children:i("reports.authGate.freeAccess")}),T.jsx(T2,{compact:!0})]})}),e[9]=t,e[10]=s,e[11]=n,e[12]=i,e[13]=v):v=e[13];let d;return e[14]!==f||e[15]!==v||e[16]!==u?(d=T.jsxs("div",{ref:u,className:"fixed inset-0 overflow-hidden",style:c,children:[f,h,v]}),e[14]=f,e[15]=v,e[16]=u,e[17]=d):d=e[17],d}const Qy=4e3,_P=180;function oc(r,e){for(const t of e??[])rt("report_slide_dropped",{domain:r,section_type:t.section_type,position:t.position,reason:t.reason,surface:"deck_v2"})}const Vg=r=>`report:pending:${r}`,bP=r=>{try{return JSON.parse(localStorage.getItem(Vg(r))??"null")}catch{return null}},SP=r=>{try{localStorage.setItem(Vg(r),JSON.stringify({startedAt:Date.now()}))}catch{}},Fi=r=>{try{localStorage.removeItem(Vg(r))}catch{}};async function wP(r,e,t,a,n){try{rt("report_scan_triggered",{domain:r,surface:"deck_v2"});const i=await eP({domain:r,distinctId:e});if(t.aborted)return;if(i.state==="blocked")return Fi(r),rt("report_scan_failed",{domain:r,phase:"blocked",reason:"blocked",surface:"deck_v2"}),a.onPhase("blocked");const o=i.state==="running"?i.id:null;i.state==="running"&&(a.onPhase("pending"),rt("report_pending_screen_shown",{domain:r,surface:"deck_v2"}),SP(r));for(let s=0;s<_P&&!t.aborted;s++){const l=await Wd(r,void 0,n);if(t.aborted)return;if(l.status==="ready"&&l.deck)return Fi(r),oc(r,l.drops),rt("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(l.deck);if(o){const u=await tP(o);if(t.aborted)return;if(u.done){await Zy(Qy,{signal:t});const c=await Wd(r,void 0,n);return t.aborted?void 0:c.status==="ready"&&c.deck?(Fi(r),oc(r,c.drops),rt("report_scan_completed",{domain:r,surface:"deck_v2"}),a.onDeck(c.deck)):(oc(r,c.drops),Fi(r),rt("report_scan_failed",{domain:r,phase:"empty",reason:"run_finished_empty",surface:"deck_v2"}),a.onPhase("empty"))}}await Zy(Qy,{signal:t})}t.aborted||(Fi(r),rt("report_scan_failed",{domain:r,phase:"empty",reason:"poll_timeout",surface:"deck_v2"}),a.onPhase("empty"))}catch(i){if(!t.aborted){Fi(r);const o=zg(i);rt("report_scan_failed",{domain:r,phase:o?"unauthorized":"error",reason:o?"unauthorized":"exception",surface:"deck_v2"}),a.onPhase(o?"unauthorized":"error")}}}const TP={share:WI,arrow_forward:PI,arrow_upward:MI,arrow_downward:DI,info:jI,warning:_I,flag:HI,lock:xI,link:II,logout:YI,leaderboard:FI,checklist:GI,notifications_active:VI,package_2:zI,check_circle:$I,cancel:LI,error:AI,trending_up:BI,trending_down:OI,bolt:qI,search:XI,shopping_cart:EI,monitoring:NI,accessibility_new:UI,shield:ZI,article:RI,smart_toy:KI,bar_chart:kI},CP={xs:12,small:14,medium:16,large:18,xl:20,xxl:32,40:40,immense:80};function ft(r){const e=Te.c(4),{name:t,size:a,class:n}=r,i=a===void 0?"medium":a,o=n===void 0?"":n,s=TP[t];if(!s)return null;const l=CP[i];let u;return e[0]!==s||e[1]!==o||e[2]!==l?(u=T.jsx(s,{size:l,className:o}),e[0]=s,e[1]=o,e[2]=l,e[3]=u):u=e[3],u}function I2(r){return`/commerce-onboarding?siteUrl=${encodeURIComponent(r)}`}function Lf(r,e){rt("report_cta_clicked",{domain:e.domain,placement:e.placement,destination:"studio_onboarding",...e.slideKey!==void 0?{slide_key:e.slideKey}:{},...e.slideIndex!==void 0?{slide_index:e.slideIndex}:{},surface:"deck_v2"},{transport:"sendBeacon"})}const Fe=r=>`https://www.google.com/s2/favicons?domain=${r}&sz=64`,AP={"google analytics 4":Fe("analytics.google.com"),ga4:Fe("analytics.google.com"),"google analytics":Fe("analytics.google.com"),"google search console":Fe("search.google.com"),"search console":Fe("search.google.com"),gsc:Fe("search.google.com"),"gsc url inspection":Fe("search.google.com"),"google tag manager":Fe("tagmanager.google.com"),gtm:Fe("tagmanager.google.com"),"google ads":Fe("ads.google.com"),"keyword planner":Fe("ads.google.com"),"merchant center":Fe("merchants.google.com"),"google merchant center":Fe("merchants.google.com"),"pagespeed insights":Fe("pagespeed.web.dev"),psi:Fe("pagespeed.web.dev"),lighthouse:Fe("developer.chrome.com"),"chrome ux report":Fe("developer.chrome.com"),crux:Fe("developer.chrome.com"),"chrome devtools":Fe("developer.chrome.com"),webpagetest:Fe("webpagetest.org"),semrush:Fe("semrush.com"),similarweb:Fe("similarweb.com"),ahrefs:Fe("ahrefs.com"),moz:Fe("moz.com"),"screaming frog":Fe("screamingfrog.co.uk"),builtwith:Fe("builtwith.com"),microlink:Fe("microlink.io"),apify:Fe("apify.com"),firecrawl:Fe("firecrawl.dev"),"reclame aqui":Fe("reclameaqui.com.br"),instagram:Fe("instagram.com"),meta:Fe("meta.com"),"meta business manager":Fe("business.facebook.com"),vtex:Fe("vtex.com"),"vtex oms":Fe("vtex.com"),shopify:Fe("shopify.com"),linx:Fe("linx.com.br"),wake:Fe("wake.com")};function e0(r,e){return e||(AP[r.toLowerCase().trim()]??"")}function or(r){const e=Te.c(20),{eyebrow:t,headline:a,annotation:n,active:i}=r;let o;if(e[0]!==a){let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=/\s*\n\s*/g,e[2]=p):p=e[2],o=a.replace(p," "),e[0]=a,e[1]=o}else o=e[1];const s=o,l=i?"true":"false";let u;e[3]!==t||e[4]!==l?(u=t&&T.jsx("p",{className:"reveal deck-eyebrow","data-show":l,children:t}),e[3]=t,e[4]=l,e[5]=u):u=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c={color:N.ink},e[6]=c):c=e[6];let f;e[7]!==l||e[8]!==s?(f=T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.14] tracking-[-0.02em] text-[min(clamp(1.3125rem,4.8vw,2.5rem),2.9svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.25rem] lg:max-w-[20ch]","data-show":l,style:c,children:s}),e[7]=l,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==i||e[11]!==n||e[12]!==l?(h=n&&T.jsx("p",{className:"reveal max-w-[44ch] shrink-0 text-[min(13px,1.9svh)] leading-snug sm:pt-1 sm:text-[14px] sm:leading-relaxed","data-show":l,style:{color:N.muted,transitionDelay:i?"90ms":"0ms"},children:n}),e[10]=i,e[11]=n,e[12]=l,e[13]=h):h=e[13];let v;e[14]!==f||e[15]!==h?(v=T.jsxs("div",{className:"flex flex-col gap-[min(0.625rem,1svh)] sm:flex-row sm:items-start sm:justify-between sm:gap-12",children:[f,h]}),e[14]=f,e[15]=h,e[16]=v):v=e[16];let d;return e[17]!==u||e[18]!==v?(d=T.jsxs("header",{className:"flex shrink-0 flex-col gap-[min(0.625rem,1svh)] px-5 pt-2 sm:gap-3 sm:px-10 lg:px-16",children:[u,v]}),e[17]=u,e[18]=v,e[19]=d):d=e[19],d}const mh=18;function DP(r){const e=Te.c(20),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(1rem,1.9svh)] sm:gap-4":"gap-[min(1.625rem,2.8svh)] sm:gap-9";let c;e[5]!==u?(c=et("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=ut[p.tone??"neutral"],y=Math.max(1,Math.min(mh,Math.round(p.ratio*mh)));return T.jsxs("div",{className:et("reveal flex flex-col",s?"gap-1.5":"gap-2 sm:gap-2.5"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[T.jsx("span",{className:et("min-w-0 flex-1 tracking-[-0.01em]",s?"line-clamp-2 break-words text-sm leading-snug sm:text-base":"truncate text-sm sm:text-base"),style:{color:N.muted},children:p.label}),T.jsx("span",{className:et("shrink-0 font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.375rem,3.5vw,1.75rem),3svh)]":"text-[min(clamp(1.5rem,4.5vw,2.5rem),3.4svh)] sm:text-[clamp(1.5rem,3vw,2.5rem)]"),style:{color:m},children:p.value})]}),T.jsx("div",{className:"flex gap-[3px]",children:Array.from({length:mh},(x,_)=>T.jsx("span",{className:et("flex-1 rounded-[2px]",s?"h-2.5 sm:h-3":"h-3 sm:h-3.5"),style:{background:o&&_<y?m:"rgba(40,37,36,0.08)",transition:"background-color 240ms ease",transitionDelay:o&&_<y?`${180+g*90+_*24}ms`:"0ms"}},_))})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}const MP={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},warn:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},Yd=33,yh=2*Math.PI*Yd;function LP(r){const e=r?.match(/^(.*?)\s*\((.+)\)$/);return e?{band:e[1]??"",count:e[2]}:{band:r??""}}function IP(r){const e=Te.c(15),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o?(f=(h,v)=>{const d=MP[h.status],p=Math.min(1,Math.max(0,h.ratio??0)),{band:g,count:m}=LP(h.caption);return T.jsxs("div",{className:"reveal flex flex-col items-center rounded-2xl px-2 py-[min(0.875rem,1.6svh)] text-center sm:px-4 sm:py-5","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?`${100+v*80}ms`:"0ms"},children:[T.jsxs("div",{className:"relative h-[min(4.25rem,9svh)] w-[min(4.25rem,9svh)] sm:h-20 sm:w-20",children:[T.jsxs("svg",{viewBox:"0 0 80 80",className:"h-full w-full -rotate-90",children:[T.jsx("circle",{cx:"40",cy:"40",r:Yd,fill:"none",stroke:d.tint,strokeWidth:"7"}),T.jsx("circle",{cx:"40",cy:"40",r:Yd,fill:"none",stroke:d.color,strokeWidth:"7",strokeLinecap:"round",strokeDasharray:yh,strokeDashoffset:o?yh*(1-p):yh,className:"transition-[stroke-dashoffset] duration-1000 ease-out",style:{transitionDelay:o?`${200+v*80}ms`:"0ms"}})]}),T.jsx("span",{className:"absolute inset-0 flex items-center justify-center font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.375rem,3svh)] sm:text-2xl",style:{color:d.color},children:h.value})]}),T.jsx("span",{className:"mt-[min(0.5rem,1svh)] line-clamp-2 text-[13px] font-medium leading-tight sm:mt-2.5 sm:text-sm",style:{color:N.ink},children:h.label}),T.jsx("span",{className:"mt-1.5 inline-block rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:{color:d.color,background:d.tint},children:g}),m&&T.jsx("span",{className:"mt-1 hidden text-[11px] sm:block",style:{color:N.muted,opacity:.8},children:m})]},v)},e[8]=o,e[9]=f):f=e[9],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[10]!==l?(u=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.8svh)] sm:px-10 sm:py-4 lg:px-16",children:T.jsx("div",{className:"my-auto grid w-full grid-cols-2 gap-2.5 sm:grid-cols-3 sm:gap-4",children:l})}),e[10]=l,e[11]=u):u=e[11];let c;return e[12]!==s||e[13]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[12]=s,e[13]=u,e[14]=c):c=e[14],c}const t0={pass:{color:ut.good,icon:"check_circle"},fail:{color:ut.bad,icon:"cancel"},warn:{color:N.warn,icon:"error"}};function PP(r){const e=Te.c(16),{eyebrow:t,headline:a,annotation:n,checks:i,active:o}=r;let s;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(s=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=s):s=e[4];let l;if(e[5]!==o||e[6]!==i){let f;e[8]!==o||e[9]!==i.length?(f=(h,v)=>{const d=t0[h.status]??t0.fail;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(0.875rem,1.5svh)] sm:py-4","data-show":o?"true":"false",style:{...v<i.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:o?`${60+v*55}ms`:"0ms"},children:[T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:d.color},children:T.jsx(ft,{name:d.icon,size:"large"})}),T.jsx("span",{className:"min-w-0 flex-[2] text-[15px] leading-snug sm:text-lg",style:{color:N.ink},children:h.label}),h.value&&T.jsx("span",{className:"min-w-0 flex-1 truncate text-right text-[13px] font-medium tabular-nums sm:text-base",style:{color:d.color},title:h.value,children:h.value})]},v)},e[8]=o,e[9]=i.length,e[10]=f):f=e[10],l=i.map(f),e[5]=o,e[6]=i,e[7]=l}else l=e[7];let u;e[11]!==l?(u=T.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 sm:px-10 lg:px-16",children:T.jsx("div",{className:"flex min-h-full flex-col justify-center py-3",children:T.jsx("ul",{className:"w-full",children:l})})}),e[11]=l,e[12]=u):u=e[12];let c;return e[13]!==s||e[14]!==u?(c=T.jsxs("div",{className:"flex h-full flex-col",children:[s,u]}),e[13]=s,e[14]=u,e[15]=c):c=e[15],c}function Gg(r){return I2(`https://${r}/`)}function kP(r){const e=r.trim().replace(/^https?:\/\//,"").split("/")[0]??"";return/\./.test(e)?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`:null}function RP(r){const e=Te.c(5),{initial:t,faviconUrl:a}=r,[n,i]=ze.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:`1px solid ${N.border}`,boxShadow:"0 1px 1px rgba(40,37,36,0.04),0 3px 9px rgba(40,37,36,0.04),0 6px 18px rgba(40,37,36,0.02)"},e[0]=o):o=e[0];let s;return e[1]!==n||e[2]!==a||e[3]!==t?(s=T.jsx("span",{className:"grid size-9 shrink-0 place-items-center overflow-hidden rounded-[10px] bg-white sm:size-10",style:o,children:a&&!n?T.jsx("img",{src:a,alt:"",className:"h-full w-full object-contain p-2",onError:()=>i(!0)}):T.jsx("span",{className:"text-lg font-medium",style:{color:N.muted},children:t})}),e[1]=n,e[2]=a,e[3]=t,e[4]=s):s=e[4],s}function NP(r){const e=Te.c(41),{eyebrow:t,headline:a,annotation:n,metricLabel:i,competitors:o,faviconUrl:s,domain:l,active:u}=r,c=xt(),f=Gg(l);let h;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(h=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=h):h=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v={color:N.muted},e[5]=v):v=e[5];let d;e[6]!==c?(d=c("reports.competitorTemplate.competitor"),e[6]=c,e[7]=d):d=e[7];let p;e[8]!==d?(p=T.jsx("span",{className:"flex-1",children:d}),e[8]=d,e[9]=p):p=e[9];let g;e[10]!==i?(g=i&&T.jsx("span",{children:i}),e[10]=i,e[11]=g):g=e[11];let m;e[12]!==p||e[13]!==g?(m=T.jsxs("div",{className:"flex items-center gap-3 px-4 pb-2 text-[11px] font-medium uppercase tracking-[0.04em]",style:v,children:[p,g]}),e[12]=p,e[13]=g,e[14]=m):m=e[14];let y;if(e[15]!==u||e[16]!==o||e[17]!==s){let M;e[19]!==u||e[20]!==s?(M=(I,P)=>{const k=I.isYou?N.muted:ut[I.tone??"neutral"];return T.jsxs("li",{className:"reveal flex items-center gap-3 rounded-xl px-3 py-[min(0.5rem,1svh)]","data-show":u?"true":"false",style:{...I.isYou?{background:N.surface,border:`1px solid ${N.border}`}:{},transitionDelay:u?`${60+P*60}ms`:"0ms"},children:[T.jsx(RP,{initial:(I.name[0]??"?").toUpperCase(),faviconUrl:I.isYou?s:kP(I.name)}),T.jsx("span",{className:"flex-1 truncate text-[15px] sm:text-lg",style:{color:N.ink},children:I.name}),T.jsx("span",{className:"shrink-0 text-lg font-light tabular-nums tracking-[-0.02em] sm:text-2xl",style:{color:k},children:I.value})]},P)},e[19]=u,e[20]=s,e[21]=M):M=e[21],y=o.map(M),e[15]=u,e[16]=o,e[17]=s,e[18]=y}else y=e[18];let x;e[22]!==y?(x=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:T.jsx("ul",{className:"my-auto flex flex-col gap-[min(0.375rem,0.8svh)] py-1",children:y})}),e[22]=y,e[23]=x):x=e[23];const _=f.startsWith("http")?"_blank":"_self";let S;e[24]!==l?(S=M=>Lf(M,{domain:l,placement:"competitor_slide_edit"}),e[24]=l,e[25]=S):S=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[26]=b):b=e[26];let w;e[27]!==c?(w=c("reports.competitorTemplate.editMyCompetitors"),e[27]=c,e[28]=w):w=e[28];let C;e[29]!==f||e[30]!==S||e[31]!==w||e[32]!==_?(C=T.jsx("div",{className:"flex shrink-0 justify-center py-[min(1rem,2.4svh)] sm:py-5",children:T.jsx("a",{href:f,target:_,rel:"noopener noreferrer",onClick:S,className:"inline-flex h-11 items-center rounded-full border px-7 text-[15px] font-medium transition-colors hover:bg-black/[0.03] sm:h-12 sm:px-8 sm:text-base",style:b,children:w})}),e[29]=f,e[30]=S,e[31]=w,e[32]=_,e[33]=C):C=e[33];let A;e[34]!==C||e[35]!==m||e[36]!==x?(A=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-4 sm:px-10 lg:px-16",children:[m,x,C]}),e[34]=C,e[35]=m,e[36]=x,e[37]=A):A=e[37];let D;return e[38]!==h||e[39]!==A?(D=T.jsxs("div",{className:"flex h-full flex-col",children:[h,A]}),e[38]=h,e[39]=A,e[40]=D):D=e[40],D}function r0(r){const e=Te.c(10),{url:t,initial:a,size:n}=r,[i,o]=ze.useState(!1);let s;e[0]!==n?(s={width:n,height:n,borderColor:N.border},e[0]=n,e[1]=s):s=e[1];let l;e[2]!==i||e[3]!==a||e[4]!==n||e[5]!==t?(l=i?T.jsx("span",{className:"font-medium",style:{fontSize:n*.42,color:N.muted},children:a}):T.jsx("img",{src:t,alt:"",width:n,height:n,className:"h-full w-full object-contain p-1.5",onError:()=>o(!0)}),e[2]=i,e[3]=a,e[4]=n,e[5]=t,e[6]=l):l=e[6];let u;return e[7]!==s||e[8]!==l?(u=T.jsx("span",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl border bg-white",style:s,children:l}),e[7]=s,e[8]=l,e[9]=u):u=e[9],u}function a0(r){const e=Te.c(36),{domain:t,faviconUrl:a,initial:n,desktopShot:i,mobileShot:o,hidePhone:s}=r,l=s===void 0?!1:s,[u,c]=ze.useState(i?"loading":"fail"),[f,h]=ze.useState(o?"loading":"fail"),v=!l&&"pb-10 pl-8";let d;e[0]!==v?(d=et("relative w-full max-w-[560px]",v),e[0]=v,e[1]=d):d=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p={boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.05), 0 28px 56px -22px rgba(40,37,36,0.30)"},e[2]=p):p=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g={background:"#f4f2ec",borderBottom:`1px solid ${N.border}`},e[3]=g):g=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsxs("span",{className:"flex gap-1.5",children:[T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"}),T.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-black/15"})]}),e[4]=m):m=e[4];let y,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={background:"#fff"},x=T.jsx(ft,{name:"lock",size:"xs",class:"opacity-50"}),e[5]=y,e[6]=x):(y=e[5],x=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:N.muted},e[7]=_):_=e[7];let S;e[8]!==t?(S=T.jsxs("div",{className:"flex h-9 items-center gap-2 px-4",style:g,children:[m,T.jsxs("span",{className:"mx-2 flex h-5 flex-1 items-center gap-2 rounded-md px-2.5",style:y,children:[x,T.jsx("span",{className:"truncate text-xs",style:_,children:t})]})]}),e[8]=t,e[9]=S):S=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b={background:"#f4f2ec"},e[10]=b):b=e[10];let w;e[11]!==u||e[12]!==a||e[13]!==n?(w=u!=="ok"&&T.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 animate-pulse",children:[T.jsx(r0,{url:a,initial:n,size:44}),T.jsx("span",{className:"text-xs",style:{color:N.muted},children:u==="loading"?"capturing preview…":"preview unavailable"})]}),e[11]=u,e[12]=a,e[13]=n,e[14]=w):w=e[14];let C;e[15]!==i||e[16]!==t||e[17]!==u?(C=i&&T.jsx("img",{src:i,alt:`${t} homepage`,className:et("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",u==="ok"?"opacity-100":"opacity-0"),onLoad:()=>c("ok"),onError:()=>c("fail"),loading:"eager"}),e[15]=i,e[16]=t,e[17]=u,e[18]=C):C=e[18];let A;e[19]!==w||e[20]!==C?(A=T.jsxs("div",{className:"relative aspect-[4/3]",style:b,children:[w,C]}),e[19]=w,e[20]=C,e[21]=A):A=e[21];let D;e[22]!==S||e[23]!==A?(D=T.jsxs("div",{className:"overflow-hidden rounded-2xl bg-white",style:p,children:[S,A]}),e[22]=S,e[23]=A,e[24]=D):D=e[24];let M;e[25]!==t||e[26]!==a||e[27]!==l||e[28]!==n||e[29]!==o||e[30]!==f?(M=!l&&f!=="fail"&&T.jsx("div",{className:"absolute bottom-0 left-0 w-[26%] max-w-[136px]",children:T.jsxs("div",{className:"rounded-[1.5rem] p-1.5",style:{background:"#fff",boxShadow:"0 0 0 1px rgba(40,37,36,0.14), 0 2px 4px rgba(40,37,36,0.06), 0 18px 36px -16px rgba(40,37,36,0.36)"},children:[T.jsx("div",{className:"flex h-5 items-center justify-center",children:T.jsx("span",{className:"h-1.5 w-9 rounded-full bg-black/15"})}),T.jsxs("div",{className:"relative aspect-[9/19] overflow-hidden rounded-[1.05rem]",style:{background:"#f4f2ec"},children:[f!=="ok"&&T.jsx("div",{className:"absolute inset-0 flex items-center justify-center animate-pulse",children:T.jsx(r0,{url:a,initial:n,size:26})}),o&&T.jsx("img",{src:o,alt:`${t} mobile`,className:et("absolute inset-0 block h-full w-full object-cover object-top transition-opacity duration-500",f==="ok"?"opacity-100":"opacity-0"),style:{transform:"scale(1.14) translateY(-6%)",transformOrigin:"50% 0%"},onLoad:()=>h("ok"),onError:()=>h("fail"),loading:"eager"})]})]})}),e[25]=t,e[26]=a,e[27]=l,e[28]=n,e[29]=o,e[30]=f,e[31]=M):M=e[31];let I;return e[32]!==D||e[33]!==M||e[34]!==d?(I=T.jsxs("div",{className:d,children:[D,M]}),e[32]=D,e[33]=M,e[34]=d,e[35]=I):I=e[35],I}function P2(r){return r>=61?ut.good:r>=41?N.warn:ut.bad}const EP="reports.coverTemplate.decoScoreExplanation";function n0(r){const e=Te.c(63),{score:t,active:a,compact:n}=r,i=xt(),[o,s]=ze.useState(0);let l;e[0]!==t.value?(l=P2(t.value),e[0]=t.value,e[1]=l):l=e[1];const u=l,c=n?66:104,f=n?7:10,[h,v]=ze.useState(!1),d=ze.useRef(null);let p;e[2]!==a||e[3]!==t.value?(p=ge=>{if(!ge||!a)return;const pe=t.value;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){s(pe);return}let _e=0,Ee=0;const Ue=U=>{Ee||(Ee=U);const oe=Math.min(1,(U-Ee)/1100);s(pe*(1-(1-oe)**3)),oe<1&&(_e=requestAnimationFrame(Ue))};return _e=requestAnimationFrame(Ue),()=>cancelAnimationFrame(_e)},e[2]=a,e[3]=t.value,e[4]=p):p=e[4];const g=p;let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=ge=>{if(!ge)return;const pe=_e=>{d.current&&!d.current.contains(_e.target)&&v(!1)};return document.addEventListener("mousedown",pe),document.addEventListener("touchstart",pe),()=>{document.removeEventListener("mousedown",pe),document.removeEventListener("touchstart",pe)}},e[5]=m):m=e[5];const y=m,x=Math.min(100,Math.max(0,o)),_=(c-f)/2,S=2*Math.PI*_,b=c/2,w=c/2;let C;e[6]!==_||e[7]!==f||e[8]!==b||e[9]!==w?(C=T.jsx("circle",{cx:b,cy:w,r:_,fill:"none",stroke:N.border,strokeWidth:f}),e[6]=_,e[7]=f,e[8]=b,e[9]=w,e[10]=C):C=e[10];const A=c/2,D=c/2,M=S*(1-x/100);let I;e[11]!==S||e[12]!==_||e[13]!==f||e[14]!==A||e[15]!==D||e[16]!==M||e[17]!==u?(I=T.jsx("circle",{cx:A,cy:D,r:_,fill:"none",stroke:u,strokeWidth:f,strokeLinecap:"round",strokeDasharray:S,strokeDashoffset:M}),e[11]=S,e[12]=_,e[13]=f,e[14]=A,e[15]=D,e[16]=M,e[17]=u,e[18]=I):I=e[18];let P;e[19]!==c||e[20]!==I||e[21]!==C?(P=T.jsxs("svg",{width:c,height:c,className:"-rotate-90 shrink-0",children:[C,I]}),e[19]=c,e[20]=I,e[21]=C,e[22]=P):P=e[22];let k;e[23]!==u?(k={color:u},e[23]=u,e[24]=k):k=e[24];let R;e[25]!==o?(R=Math.round(o),e[25]=o,e[26]=R):R=e[26];let E;e[27]!==k||e[28]!==R?(E=T.jsx("span",{className:"font-light leading-[0.9] tracking-[-0.02em] tabular-nums text-[2.4rem] lg:text-[4rem]",style:k,children:R}),e[27]=k,e[28]=R,e[29]=E):E=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx("span",{className:"text-sm lg:text-xl",style:{color:N.faint},children:"/ 100"}),e[30]=B):B=e[30];let O;e[31]!==E?(O=T.jsxs("div",{className:"flex items-baseline gap-2",children:[E,B]}),e[31]=E,e[32]=O):O=e[32];let V;e[33]===Symbol.for("react.memo_cache_sentinel")?(V={color:N.soft},e[33]=V):V=e[33];let F;e[34]!==i?(F=i("reports.coverTemplate.decoScore"),e[34]=i,e[35]=F):F=e[35];let G;e[36]!==F?(G=T.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.04em] lg:text-[12px]",style:V,children:F}),e[36]=F,e[37]=G):G=e[37];let j;e[38]!==i?(j=i("reports.coverTemplate.whatIsDecoScore"),e[38]=i,e[39]=j):j=e[39];const Y=h?.8:.45;let X;e[40]!==Y?(X={opacity:Y},e[40]=Y,e[41]=X):X=e[41];let Q,fe,he,ne;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>v(!0),fe=()=>v(!1),he=()=>v(OP),ne=T.jsx(ft,{name:"info",size:"medium",class:""}),e[42]=Q,e[43]=fe,e[44]=he,e[45]=ne):(Q=e[42],fe=e[43],he=e[44],ne=e[45]);let q;e[46]!==j||e[47]!==X?(q=T.jsx("button",{type:"button","aria-label":j,className:"flex items-center justify-center rounded-full transition-opacity",style:X,onMouseEnter:Q,onMouseLeave:fe,onClick:he,children:ne}),e[46]=j,e[47]=X,e[48]=q):q=e[48];let ie;e[49]!==i||e[50]!==h?(ie=h&&T.jsx("div",{ref:y,className:"absolute left-0 top-full z-50 mt-2 w-72 rounded-xl px-4 py-3.5 text-sm leading-[1.6] shadow-xl",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.ink,boxShadow:"0 4px 6px rgba(40,37,36,0.06), 0 12px 32px rgba(40,37,36,0.12)"},children:i(EP)}),e[49]=i,e[50]=h,e[51]=ie):ie=e[51];let Z;e[52]!==G||e[53]!==q||e[54]!==ie?(Z=T.jsxs("div",{ref:d,className:"relative flex items-center gap-1",children:[G,q,ie]}),e[52]=G,e[53]=q,e[54]=ie,e[55]=Z):Z=e[55];let re;e[56]!==O||e[57]!==Z?(re=T.jsxs("div",{className:"flex flex-col gap-0.5",children:[O,Z]}),e[56]=O,e[57]=Z,e[58]=re):re=e[58];let ye;return e[59]!==g||e[60]!==P||e[61]!==re?(ye=T.jsxs("div",{ref:g,className:"flex shrink-0 items-center gap-3.5 lg:gap-5",children:[P,re]}),e[59]=g,e[60]=P,e[61]=re,e[62]=ye):ye=e[62],ye}function OP(r){return!r}function i0(r){const e=Te.c(20),{deviceCluster:t,className:a,innerClassName:n,padClassName:i,alignClassName:o}=r,s=a===void 0?"":a,l=n===void 0?"max-w-[520px]":n,u=i===void 0?"p-4 sm:p-6":i,c=o===void 0?"items-center":o;let f;e[0]!==s?(f=et("deco-art relative overflow-hidden",s),e[0]=s,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=T.jsx("div",{className:"holo-art-base absolute inset-0 z-0","aria-hidden":!0}),e[2]=h):h=e[2];let v;e[3]!==c||e[4]!==u?(v=et("relative z-10 flex h-full w-full justify-center",c,u),e[3]=c,e[4]=u,e[5]=v):v=e[5];let d;e[6]!==l?(d=et("w-full",l),e[6]=l,e[7]=d):d=e[7];let p;e[8]!==t||e[9]!==d?(p=T.jsx("div",{className:d,children:t}),e[8]=t,e[9]=d,e[10]=p):p=e[10];let g;e[11]!==v||e[12]!==p?(g=T.jsx("div",{className:v,children:p}),e[11]=v,e[12]=p,e[13]=g):g=e[13];let m,y,x;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx("div",{className:"holo-artfoil pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),y=T.jsx("div",{className:"holo-sparkle pointer-events-none absolute inset-0 z-20","aria-hidden":!0}),x=T.jsx("div",{className:"holo-artglare pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),e[14]=m,e[15]=y,e[16]=x):(m=e[14],y=e[15],x=e[16]);let _;return e[17]!==g||e[18]!==f?(_=T.jsxs("div",{className:f,children:[h,g,m,y,x]}),e[17]=g,e[18]=f,e[19]=_):_=e[19],_}function BP(r){const e=Te.c(78),{headline:t,score:a,screenshot:n,mobileScreenshot:i,faviconUrl:o,domain:s,initial:l,active:u,findings:c,onFindingClick:f}=r,h=u===void 0?!1:u,v=xt(),[d,p]=ze.useState(h),[g,m]=ze.useState(h?1:0);h!==d&&(p(h),h&&m(zP));const y=ze.useRef(null),x=ze.useRef(0);let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={rx:0,ry:0,trx:0,tryy:0,hovering:!1},e[0]=_):_=e[0];const S=ze.useRef(_);let b;if(e[1]===Symbol.for("react.memo_cache_sentinel")){const gt=()=>{const Le=y.current,ke=S.current;if(!Le){x.current=0;return}ke.rx=ke.rx+(ke.trx-ke.rx)*.12,ke.ry=ke.ry+(ke.tryy-ke.ry)*.12,Le.style.setProperty("--rx",`${ke.rx.toFixed(3)}deg`),Le.style.setProperty("--ry",`${ke.ry.toFixed(3)}deg`);const Ye=Math.abs(ke.trx-ke.rx)<.02&&Math.abs(ke.tryy-ke.ry)<.02;ke.hovering||!Ye?x.current=requestAnimationFrame(gt):x.current=0};b=()=>{x.current||(x.current=requestAnimationFrame(gt))},e[1]=b}else b=e[1];const w=b;let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C=gt=>{const Le=y.current;if(!Le)return;const ke=Le.getBoundingClientRect(),Ye=(gt.clientX-ke.left)/ke.width,xa=(gt.clientY-ke.top)/ke.height,ts=S.current;ts.hovering=!0,ts.trx=(.5-xa)*28,ts.tryy=(Ye-.5)*28,Le.style.setProperty("--mx",`${(Ye*100).toFixed(1)}%`),Le.style.setProperty("--my",`${(xa*100).toFixed(1)}%`),Le.style.setProperty("--posx",`${(20+Ye*60).toFixed(1)}%`),Le.style.setProperty("--posy",`${(20+xa*60).toFixed(1)}%`),Le.style.setProperty("--active","1"),w()},e[2]=C):C=e[2];const A=C;let D;e[3]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{const gt=y.current;if(!gt)return;const Le=S.current;Le.hovering=!1,Le.trx=0,Le.tryy=0,gt.style.setProperty("--mx","50%"),gt.style.setProperty("--my","50%"),gt.style.setProperty("--posx","50%"),gt.style.setProperty("--posy","50%"),gt.style.setProperty("--active","0"),w()},e[3]=D):D=e[3];const M=D;let I;e[4]===Symbol.for("react.memo_cache_sentinel")?(I=gt=>(y.current=gt,()=>cancelAnimationFrame(x.current)),e[4]=I):I=e[4];const P=I;let k;e[5]!==a?(k=a?P2(a.value):N.ink,e[5]=a,e[6]=k):k=e[6];const R=k;let E;e[7]===Symbol.for("react.memo_cache_sentinel")?(E={borderBottom:`1px solid ${N.border}`},e[7]=E):E=e[7];let B;e[8]===Symbol.for("react.memo_cache_sentinel")?(B={width:40,height:40,border:`1px solid ${N.border}`,boxShadow:"0 0.714px 0.714px rgba(0,0,0,0.04),0 4.286px 17.143px rgba(0,0,0,0.01),0 6.429px 34.286px rgba(0,0,0,0.09)"},e[8]=B):B=e[8];let O;e[9]!==o?(O=T.jsx("div",{className:"flex shrink-0 items-center justify-center overflow-hidden rounded-xl bg-white",style:B,children:T.jsx("img",{src:o,alt:"",className:"h-full w-full object-contain p-1.5"})}),e[9]=o,e[10]=O):O=e[10];let V,F;e[11]===Symbol.for("react.memo_cache_sentinel")?(V={color:N.ink},F=T.jsx("span",{style:{color:N.faint},children:"https://"}),e[11]=V,e[12]=F):(V=e[11],F=e[12]);let G;e[13]!==s?(G=T.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm lg:text-base",style:V,children:[F,s]}),e[13]=s,e[14]=G):G=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j={color:N.soft},e[15]=j):j=e[15];let Y;e[16]!==v?(Y=v("reports.coverTemplate.report"),e[16]=v,e[17]=Y):Y=e[17];let X;e[18]!==Y?(X=T.jsx("span",{className:"shrink-0 text-[10px] font-medium uppercase tracking-[0.04em] lg:text-[11px]",style:j,children:Y}),e[18]=Y,e[19]=X):X=e[19];let Q;e[20]!==O||e[21]!==G||e[22]!==X?(Q=T.jsxs("div",{className:"flex shrink-0 items-center gap-3 pb-3.5 lg:gap-4 lg:pb-4",style:E,children:[O,G,X]}),e[20]=O,e[21]=G,e[22]=X,e[23]=Q):Q=e[23];const fe=Q,he=h&&g>0?"true":"false";let ne;e[24]!==R?(ne={"--tone":R},e[24]=R,e[25]=ne):ne=e[25];const q=ne;let ie,Z,re,ye;e[26]===Symbol.for("react.memo_cache_sentinel")?(ie={background:"radial-gradient(120% 80% at 30% 0%, #ffffff 0%, #fafaf9 45%, #f6f4f1 100%)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(40,37,36,0.05), 0 1px 2px rgba(40,37,36,0.04)"},Z=T.jsx("div",{className:"holo-foil pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),re=T.jsx("div",{className:"holo-lines pointer-events-none absolute inset-0 z-30","aria-hidden":!0}),ye=T.jsx("div",{className:"holo-glare pointer-events-none absolute inset-0 z-40","aria-hidden":!0}),e[26]=ie,e[27]=Z,e[28]=re,e[29]=ye):(ie=e[26],Z=e[27],re=e[28],ye=e[29]);let ge;e[30]===Symbol.for("react.memo_cache_sentinel")?(ge=T.jsx("div",{className:"deco-sweep pointer-events-none absolute inset-0 z-50 overflow-hidden","aria-hidden":!0,children:T.jsx("span",{className:"holo-sweep-bar"})}),e[30]=ge):ge=e[30];let pe;e[31]!==h||e[32]!==a?(pe=a&&T.jsxs("div",{className:"mt-4 shrink-0 lg:mt-4",children:[T.jsx("div",{className:"lg:hidden",children:T.jsx(n0,{score:a,active:h,compact:!0})}),T.jsx("div",{className:"hidden lg:block",children:T.jsx(n0,{score:a,active:h})})]}),e[31]=h,e[32]=a,e[33]=pe):pe=e[33];const _e=h?"true":"false",Ee=h?"140ms":"0ms";let Ue;e[34]!==Ee?(Ue={color:N.ink,transitionDelay:Ee},e[34]=Ee,e[35]=Ue):Ue=e[35];let U;e[36]!==t||e[37]!==_e||e[38]!==Ue?(U=T.jsx("h1",{className:"reveal mt-3.5 text-balance text-[min(1.375rem,3svh)] font-normal leading-[1.16] tracking-[-0.02em] sm:text-2xl lg:mt-4 lg:text-[1.7rem]","data-show":_e,style:Ue,children:t}),e[36]=t,e[37]=_e,e[38]=Ue,e[39]=U):U=e[39];let oe;e[40]!==h||e[41]!==c||e[42]!==f?(oe=c&&c.length>0&&T.jsx("ul",{className:"holo-findings mt-4 flex min-h-0 shrink-0 flex-col overflow-y-auto pb-2 lg:mt-auto lg:shrink lg:pb-5 lg:pt-4",children:c.map((gt,Le)=>T.jsx("li",{className:et("reveal",Le>=4&&"hidden lg:block"),"data-show":h?"true":"false",style:{...Le<c.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:h?`${240+Le*55}ms`:"0ms"},children:T.jsxs("button",{type:"button",onClick:()=>f?.(gt.slideKey),className:"group flex w-full items-center gap-3 py-2 transition-colors hover:bg-black/[0.03] active:bg-black/[0.06] lg:gap-3.5 lg:py-2.5",style:{cursor:f?"pointer":"default"},children:[T.jsx("span",{className:"shrink-0 text-[11px] tabular-nums lg:text-[12px]",style:{color:N.soft},children:String(Le+1).padStart(2,"0")}),T.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[13px] opacity-55 transition-opacity group-hover:opacity-85 lg:text-[15px]",style:{color:N.ink,lineHeight:1.3},children:gt.title}),T.jsx(ft,{name:"arrow_forward",size:"xs",class:"shrink-0 opacity-0 transition-opacity group-hover:opacity-40"})]})},gt.slideKey))}),e[40]=h,e[41]=c,e[42]=f,e[43]=oe):oe=e[43];const Ge=h?"true":"false",_t=h?"260ms":"0ms";let st;e[44]!==_t?(st={transitionDelay:_t},e[44]=_t,e[45]=st):st=e[45];let Gt;e[46]!==s||e[47]!==o||e[48]!==l||e[49]!==i||e[50]!==n?(Gt=T.jsx(i0,{deviceCluster:T.jsx(a0,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i,hidePhone:!0}),className:"deco-art-mobile h-full w-full rounded-2xl",innerClassName:"max-w-[440px]",padClassName:"px-5 pt-6",alignClassName:"items-start"}),e[46]=s,e[47]=o,e[48]=l,e[49]=i,e[50]=n,e[51]=Gt):Gt=e[51];let tt;e[52]!==Ge||e[53]!==st||e[54]!==Gt?(tt=T.jsx("div",{className:"reveal mt-4 min-h-[150px] flex-1 lg:hidden","data-show":Ge,style:st,children:Gt}),e[52]=Ge,e[53]=st,e[54]=Gt,e[55]=tt):tt=e[55];let Ft;e[56]!==fe||e[57]!==pe||e[58]!==U||e[59]!==oe||e[60]!==tt?(Ft=T.jsxs("div",{className:"flex min-h-0 flex-col px-4 pb-3 pt-4 lg:px-5 lg:py-5",children:[fe,pe,U,oe,tt]}),e[56]=fe,e[57]=pe,e[58]=U,e[59]=oe,e[60]=tt,e[61]=Ft):Ft=e[61];let ma;e[62]!==s||e[63]!==o||e[64]!==l||e[65]!==i||e[66]!==n?(ma=T.jsx("div",{className:"hidden lg:block",children:T.jsx(i0,{deviceCluster:T.jsx(a0,{domain:s,faviconUrl:o,initial:l,desktopShot:n,mobileShot:i}),className:"h-full w-full rounded-2xl"})}),e[62]=s,e[63]=o,e[64]=l,e[65]=i,e[66]=n,e[67]=ma):ma=e[67];let ya;e[68]!==Ft||e[69]!==ma?(ya=T.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-[24px]",style:ie,children:[Z,re,ye,ge,T.jsxs("div",{className:"relative z-10 grid min-h-0 flex-1 grid-cols-1 gap-2 p-2 lg:grid-cols-2",children:[Ft,ma]})]}),e[68]=Ft,e[69]=ma,e[70]=ya):ya=e[70];let Ur;e[71]!==q||e[72]!==ya?(Ur=T.jsx("div",{ref:P,className:"holo-tilt relative flex h-full w-full flex-col rounded-[26px] p-[2px]",style:q,children:ya}),e[71]=q,e[72]=ya,e[73]=Ur):Ur=e[73];let Gi;return e[74]!==g||e[75]!==he||e[76]!==Ur?(Gi=T.jsx("div",{className:"holo-stage flex h-full w-full items-center justify-center px-3 py-2 sm:px-6",onMouseMove:A,onMouseLeave:M,children:T.jsx("div",{"data-enter":he,className:"holo-card h-full w-full max-w-[1080px]",children:Ur},g)}),e[74]=g,e[75]=he,e[76]=Ur,e[77]=Gi):Gi=e[77],Gi}function zP(r){return r+1}const VP=N.forest,GP=N.lime,o0=[{labelKey:"reports.ctaTemplate.pill.seo",icon:"search",color:"#ffc116"},{labelKey:"reports.ctaTemplate.pill.aiSearch",icon:"smart_toy",color:"#14b8a6"},{labelKey:"reports.ctaTemplate.pill.performance",icon:"bolt",color:"#a595ff"},{labelKey:"reports.ctaTemplate.pill.conversion",icon:"shopping_cart",color:"#ffc116"},{labelKey:"reports.ctaTemplate.pill.tracking",icon:"monitoring",color:"#6e9fdb"},{labelKey:"reports.ctaTemplate.pill.accessibility",icon:"accessibility_new",color:"#b7a8ff"},{labelKey:"reports.ctaTemplate.pill.security",icon:"shield",color:"#f0846b"},{labelKey:"reports.ctaTemplate.pill.content",icon:"article",color:"#ffc116"},{labelKey:"reports.ctaTemplate.pill.analytics",icon:"bar_chart",color:"#a3c73a"}],FP=[{labelKey:"reports.ctaTemplate.area.funnel",score:42,color:"#f0b613"},{labelKey:"reports.ctaTemplate.area.technical",score:46,color:"#5fb0a0"},{labelKey:"reports.ctaTemplate.area.dataTagging",score:60,color:"#a595ff"},{labelKey:"reports.ctaTemplate.area.acquisition",score:67,color:"#6e9fdb"},{labelKey:"reports.ctaTemplate.area.retention",score:75,color:"#e07a5f"}],s0=14,l0=[{titleKey:"reports.ctaTemplate.fixTask.lcpHome",levelKey:"reports.ctaTemplate.level.high",color:"#d43d3d"},{titleKey:"reports.ctaTemplate.fixTask.canonical",levelKey:"reports.ctaTemplate.level.high",color:"#d43d3d"},{titleKey:"reports.ctaTemplate.fixTask.gptBot",levelKey:"reports.ctaTemplate.level.medium",color:"#f0b613"},{titleKey:"reports.ctaTemplate.fixTask.ga4",levelKey:"reports.ctaTemplate.level.high",color:"#d43d3d"},{titleKey:"reports.ctaTemplate.fixTask.altImages",levelKey:"reports.ctaTemplate.level.medium",color:"#f0b613"},{titleKey:"reports.ctaTemplate.fixTask.checkout",levelKey:"reports.ctaTemplate.level.high",color:"#d43d3d"},{titleKey:"reports.ctaTemplate.fixTask.hstsCsp",levelKey:"reports.ctaTemplate.level.medium",color:"#f0b613"}],HP=7,Ic=16,jP=["#8caa2510","#cfe8b8","#9fd07f","#5fa843","#0c5122"];function WP(r,e){return(r*3+e*5+r*e%4)%5}const $P=[{labelKey:"reports.ctaTemplate.cadence.avgFixTime",valueKey:"reports.ctaTemplate.cadence.avgFixTimeValue"},{labelKey:"reports.ctaTemplate.cadence.fixesThisWeek",valueKey:"reports.ctaTemplate.cadence.fixesThisWeekValue"},{labelKey:"reports.ctaTemplate.cadence.inReview",valueKey:"reports.ctaTemplate.cadence.inReviewValue"}];function UP(r){const e=Te.c(17),{labelKey:t,icon:a,color:n}=r,i=xt();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:"1px solid rgba(255,255,255,0.25)"},e[0]=o):o=e[0];let s;e[1]!==n?(s={color:n},e[1]=n,e[2]=s):s=e[2];let l;e[3]!==a?(l=T.jsx(ft,{name:a,size:"xl"}),e[3]=a,e[4]=l):l=e[4];let u;e[5]!==s||e[6]!==l?(u=T.jsx("span",{style:s,children:l}),e[5]=s,e[6]=l,e[7]=u):u=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#ffffff"},e[8]=c):c=e[8];let f;e[9]!==t||e[10]!==i?(f=i(t),e[9]=t,e[10]=i,e[11]=f):f=e[11];let h;e[12]!==f?(h=T.jsx("span",{className:"whitespace-nowrap text-[15px]",style:c,children:f}),e[12]=f,e[13]=h):h=e[13];let v;return e[14]!==u||e[15]!==h?(v=T.jsxs("span",{className:"flex shrink-0 items-center gap-2.5 rounded-full py-2 pl-3 pr-5",style:o,children:[u,h]}),e[14]=u,e[15]=h,e[16]=v):v=e[16],v}function YP(r){const e=Te.c(3),{score:t,color:a}=r,n=Math.round(t/100*s0);let i;return e[0]!==a||e[1]!==n?(i=T.jsx("span",{className:"flex flex-1 items-center gap-[3px]",children:Array.from({length:s0},(o,s)=>T.jsx("span",{className:"h-2.5 flex-1 rounded-[3px]",style:{background:s<n?a:"rgba(40,37,36,0.08)"}},s))}),e[0]=a,e[1]=n,e[2]=i):i=e[2],i}function XP(r){const e=Te.c(25),{domain:t,faviconUrl:a,initial:n}=r,i=xt(),[o,s]=ze.useState(!1);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={boxShadow:"0 -20px 60px rgba(3,32,14,0.35)"},e[0]=l):l=e[0];let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={border:`1px solid ${N.border}`},e[1]=u):u=e[1];let c;e[2]!==o||e[3]!==a||e[4]!==n?(c=T.jsx("span",{className:"grid size-7 shrink-0 place-items-center overflow-hidden rounded-md",style:u,children:o?T.jsx("span",{className:"text-[11px] font-semibold",style:{color:N.forest},children:n}):T.jsx("img",{src:a,alt:"",className:"size-4 object-contain",onError:()=>s(!0)})}),e[2]=o,e[3]=a,e[4]=n,e[5]=c):c=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={color:N.ink},e[6]=f):f=e[6];let h;e[7]!==t?(h=T.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",style:f,children:t}),e[7]=t,e[8]=h):h=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v={color:N.soft},e[9]=v):v=e[9];let d;e[10]!==i?(d=i("reports.ctaTemplate.reportCard.diagnostic"),e[10]=i,e[11]=d):d=e[11];let p;e[12]!==d?(p=T.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-wide",style:v,children:d}),e[12]=d,e[13]=p):p=e[13];let g;e[14]!==c||e[15]!==h||e[16]!==p?(g=T.jsxs("div",{className:"flex items-center gap-2.5",children:[c,h,p]}),e[14]=c,e[15]=h,e[16]=p,e[17]=g):g=e[17];let m;e[18]!==i?(m=FP.map(_=>T.jsxs("li",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"flex items-baseline justify-between",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:N.ink},children:i(_.labelKey)}),T.jsxs("span",{className:"text-[15px] font-semibold tabular-nums",style:{color:N.ink},children:[_.score,T.jsx("span",{className:"text-[11px] font-normal",style:{color:N.faint},children:"/100"})]})]}),T.jsx(YP,{score:_.score,color:_.color})]},_.labelKey)),e[18]=i,e[19]=m):m=e[19];let y;e[20]!==m?(y=T.jsx("ul",{className:"mt-5 flex flex-col gap-4",children:m}),e[20]=m,e[21]=y):y=e[21];let x;return e[22]!==y||e[23]!==g?(x=T.jsxs("div",{className:"w-[min(92vw,600px)] rounded-t-2xl bg-white p-6 sm:p-7",style:l,children:[g,y]}),e[22]=y,e[23]=g,e[24]=x):x=e[24],x}function ZP(r){const e=Te.c(20),{titleKey:t,levelKey:a,color:n}=r,i=xt();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={border:`1px solid ${N.border}`,boxShadow:"0 6px 20px rgba(3,32,14,0.12)"},e[0]=o):o=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=T.jsx("span",{className:"mt-0.5 size-3.5 shrink-0 rounded-full",style:{border:`1.5px solid ${N.faint}`}}),e[1]=s):s=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={color:N.ink},e[2]=l):l=e[2];let u;e[3]!==i||e[4]!==t?(u=i(t),e[3]=i,e[4]=t,e[5]=u):u=e[5];let c;e[6]!==u?(c=T.jsxs("div",{className:"flex items-start gap-2",children:[s,T.jsx("span",{className:"text-[12.5px] font-medium leading-snug",style:l,children:u})]}),e[6]=u,e[7]=c):c=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={background:"rgba(40,37,36,0.04)",color:N.muted},e[8]=f):f=e[8];let h;e[9]!==n?(h=T.jsx("span",{className:"size-1.5 rounded-full",style:{background:n}}),e[9]=n,e[10]=h):h=e[10];let v;e[11]!==a||e[12]!==i?(v=i(a),e[11]=a,e[12]=i,e[13]=v):v=e[13];let d;e[14]!==h||e[15]!==v?(d=T.jsxs("span",{className:"mt-2 ml-5 inline-flex items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px]",style:f,children:[h,v]}),e[14]=h,e[15]=v,e[16]=d):d=e[16];let p;return e[17]!==c||e[18]!==d?(p=T.jsxs("div",{className:"rounded-xl bg-white p-3",style:o,children:[c,d]}),e[17]=c,e[18]=d,e[19]=p):p=e[19],p}function KP(){const r=Te.c(2);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)",WebkitMaskImage:"linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent)"},r[0]=e):e=r[0];let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsx("div",{className:"h-[400px] w-[248px] overflow-hidden",style:e,children:T.jsx("div",{className:"report-task-track gap-3",children:[...l0,...l0].map(qP)})}),r[1]=t):t=r[1],t}function qP(r,e){return T.jsx(ZP,{...r},`${r.titleKey}-${e}`)}function JP(){const r=Te.c(14),e=xt();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={boxShadow:"0 20px 50px rgba(3,32,14,0.22)"},r[0]=t):t=r[0];let a;r[1]===Symbol.for("react.memo_cache_sentinel")?(a={color:N.soft},r[1]=a):a=r[1];let n;r[2]!==e?(n=e("reports.ctaTemplate.cadence.title"),r[2]=e,r[3]=n):n=r[3];let i;r[4]!==n?(i=T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:a,children:n}),r[4]=n,r[5]=i):i=r[5];let o;r[6]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("div",{className:"mt-4 grid gap-[3px]",style:{gridTemplateColumns:`repeat(${Ic}, 1fr)`},children:Array.from({length:HP*Ic},QP)}),r[6]=o):o=r[6];let s;r[7]!==e?(s=$P.map(c=>T.jsxs("li",{className:"flex items-center justify-between py-2.5 text-[13px]",style:{borderTop:`1px solid ${N.border}`},children:[T.jsx("span",{style:{color:N.muted},children:e(c.labelKey)}),T.jsx("span",{className:"font-semibold",style:{color:N.ink},children:e(c.valueKey)})]},c.labelKey)),r[7]=e,r[8]=s):s=r[8];let l;r[9]!==s?(l=T.jsx("ul",{className:"mt-4 flex flex-col",children:s}),r[9]=s,r[10]=l):l=r[10];let u;return r[11]!==i||r[12]!==l?(u=T.jsxs("div",{className:"w-[320px] rounded-2xl bg-white p-5",style:t,children:[i,o,l]}),r[11]=i,r[12]=l,r[13]=u):u=r[13],u}function QP(r,e){const t=Math.floor(e/Ic),a=e%Ic;return T.jsx("span",{className:"aspect-square rounded-[3px]",style:{background:jP[WP(t,a)]}},e)}function ek(r){const e=Te.c(87),{domain:t,faviconUrl:a,initial:n,checksProbed:i,checksTotal:o,active:s}=r,l=s===void 0?!1:s,u=xt(),c=l?"true":"false",f=Gg(t),h=typeof i=="number"&&typeof o=="number";let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={background:VP},e[0]=v):v=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=T.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 top-[52%] size-[900px] -translate-x-1/2 rounded-full",style:{background:"radial-gradient(circle, rgba(208,236,26,0.08), transparent 62%)"}}),e[1]=d):d=e[1];let p;e[2]!==i||e[3]!==o||e[4]!==h||e[5]!==c?(p=h?T.jsxs("span",{className:"reveal rounded-full px-4 py-1.5 text-[15px]","data-show":c,style:{border:"1px solid rgba(255,255,255,0.25)"},children:[T.jsxs("span",{style:{color:"rgba(255,255,255,0.5)"},children:[i,"/"]}),T.jsx("span",{style:{color:"#ffffff"},children:o})]}):null,e[2]=i,e[3]=o,e[4]=h,e[5]=c,e[6]=p):p=e[6];const g=l?"60ms":"0ms";let m;e[7]!==g?(m={color:"#ffffff",transitionDelay:g},e[7]=g,e[8]=m):m=e[8];let y;e[9]!==u?(y=u("reports.ctaTemplate.headline.part1"),e[9]=u,e[10]=y):y=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsx("br",{className:"hidden sm:block"}),e[11]=x):x=e[11];let _;e[12]!==u?(_=u("reports.ctaTemplate.headline.part2"),e[12]=u,e[13]=_):_=e[13];let S;e[14]!==c||e[15]!==m||e[16]!==y||e[17]!==_?(S=T.jsxs("h2",{className:"reveal text-balance font-normal leading-[1.15] tracking-[-0.015em] text-[clamp(1.5rem,6vw,2.75rem)]","data-show":c,style:m,children:[y,x," ",_]}),e[14]=c,e[15]=m,e[16]=y,e[17]=_,e[18]=S):S=e[18];const b=l?"130ms":"0ms";let w;e[19]!==b?(w={color:"rgba(255,255,255,0.75)",transitionDelay:b},e[19]=b,e[20]=w):w=e[20];let C;e[21]!==u?(C=u("reports.ctaTemplate.subheading.part1"),e[21]=u,e[22]=C):C=e[22];let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=T.jsx("br",{className:"hidden sm:block"}),e[23]=A):A=e[23];let D;e[24]!==u?(D=u("reports.ctaTemplate.subheading.part2"),e[24]=u,e[25]=D):D=e[25];let M;e[26]!==c||e[27]!==w||e[28]!==C||e[29]!==D?(M=T.jsxs("p",{className:"reveal max-w-[520px] text-[15px] leading-relaxed sm:text-base","data-show":c,style:w,children:[C,A," ",D]}),e[26]=c,e[27]=w,e[28]=C,e[29]=D,e[30]=M):M=e[30];let I;e[31]!==t?(I=Ue=>Lf(Ue,{domain:t,placement:"cta_slide",slideKey:"cta"}),e[31]=t,e[32]=I):I=e[32];const P=l?"220ms":"0ms";let k;e[33]!==P?(k={background:GP,color:N.forest,transitionDelay:P},e[33]=P,e[34]=k):k=e[34];let R;e[35]!==u?(R=u("reports.ctaTemplate.cta.label"),e[35]=u,e[36]=R):R=e[36];let E;e[37]!==R?(E=T.jsx("span",{children:R}),e[37]=R,e[38]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=T.jsx(ft,{name:"arrow_forward",size:"medium"}),e[39]=B):B=e[39];let O;e[40]!==f||e[41]!==c||e[42]!==I||e[43]!==k||e[44]!==E?(O=T.jsxs("a",{href:f,onClick:I,className:"reveal mt-1 inline-flex h-12 items-center gap-2 whitespace-nowrap rounded-full px-8 text-base font-medium transition-transform duration-300 ease-out hover:scale-105","data-show":c,style:k,children:[E,B]}),e[40]=f,e[41]=c,e[42]=I,e[43]=k,e[44]=E,e[45]=O):O=e[45];let V;e[46]!==S||e[47]!==M||e[48]!==O||e[49]!==p?(V=T.jsxs("div",{className:"relative z-10 flex max-w-[820px] flex-col items-center gap-5 text-center",children:[p,S,M,O]}),e[46]=S,e[47]=M,e[48]=O,e[49]=p,e[50]=V):V=e[50];const F=l?"300ms":"0ms";let G;e[51]!==F?(G={transitionDelay:F,maskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)",WebkitMaskImage:"linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)"},e[51]=F,e[52]=G):G=e[52];let j;e[53]===Symbol.for("react.memo_cache_sentinel")?(j=T.jsx("div",{className:"report-marquee-track gap-2",children:[...o0,...o0].map(tk)}),e[53]=j):j=e[53];let Y;e[54]!==c||e[55]!==G?(Y=T.jsx("div",{className:"reveal relative z-10 w-[calc(100%+4rem)] shrink-0 overflow-hidden sm:w-[calc(100%+8rem)]","data-show":c,style:G,children:j}),e[54]=c,e[55]=G,e[56]=Y):Y=e[56];const X=l?"460ms":"0ms";let Q;e[57]!==X?(Q={transitionDelay:X},e[57]=X,e[58]=Q):Q=e[58];let fe;e[59]===Symbol.for("react.memo_cache_sentinel")?(fe=T.jsx(KP,{}),e[59]=fe):fe=e[59];let he;e[60]!==c||e[61]!==Q?(he=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -mr-24 mt-3 hidden shrink-0 -rotate-[5deg] xl:block","data-show":c,style:Q,children:fe}),e[60]=c,e[61]=Q,e[62]=he):he=e[62];const ne=l?"380ms":"0ms";let q;e[63]!==ne?(q={transitionDelay:ne},e[63]=ne,e[64]=q):q=e[64];let ie;e[65]!==t||e[66]!==a||e[67]!==n?(ie=T.jsx(XP,{domain:t,faviconUrl:a,initial:n}),e[65]=t,e[66]=a,e[67]=n,e[68]=ie):ie=e[68];let Z;e[69]!==c||e[70]!==q||e[71]!==ie?(Z=T.jsx("div",{className:"reveal relative z-20 shrink-0","data-show":c,style:q,children:ie}),e[69]=c,e[70]=q,e[71]=ie,e[72]=Z):Z=e[72];const re=l?"440ms":"0ms";let ye;e[73]!==re?(ye={transitionDelay:re},e[73]=re,e[74]=ye):ye=e[74];let ge;e[75]===Symbol.for("react.memo_cache_sentinel")?(ge=T.jsx(JP,{}),e[75]=ge):ge=e[75];let pe;e[76]!==c||e[77]!==ye?(pe=T.jsx("div",{className:"reveal pointer-events-none relative z-0 -ml-24 mt-3 hidden shrink-0 rotate-[6deg] xl:block","data-show":c,style:ye,children:ge}),e[76]=c,e[77]=ye,e[78]=pe):pe=e[78];let _e;e[79]!==he||e[80]!==Z||e[81]!==pe?(_e=T.jsxs("div",{className:"relative z-10 flex w-full flex-1 items-start justify-center overflow-hidden",children:[he,Z,pe]}),e[79]=he,e[80]=Z,e[81]=pe,e[82]=_e):_e=e[82];let Ee;return e[83]!==V||e[84]!==Y||e[85]!==_e?(Ee=T.jsx("div",{className:"h-full w-full sm:px-6 lg:px-10 sm:pb-2",children:T.jsxs("div",{className:"relative flex h-full w-full flex-col items-center gap-8 overflow-hidden rounded-none px-6 pb-0 pt-8 sm:rounded-3xl sm:px-8 sm:pt-10 lg:gap-10 lg:pt-14 [@media(max-height:780px)]:lg:gap-6 [@media(max-height:780px)]:lg:pt-10",style:v,children:[d,V,Y,_e]})}),e[83]=V,e[84]=Y,e[85]=_e,e[86]=Ee):Ee=e[86],Ee}function tk(r,e){return T.jsx(UP,{...r},`${r.labelKey}-${e}`)}const rk={good:{ratio:.16},warn:{ratio:.5},bad:{ratio:.84}},ak=[N.soft,N.warn,"#d43d3d"],nk=["rgba(140,170,37,0.16)","rgba(240,182,19,0.16)","rgba(212,61,61,0.14)"],ik=r=>r<1/3?0:r<2/3?1:2;function ok(r){const e=Te.c(20),{eyebrow:t,headline:a,annotation:n,gauges:i,active:o}=r,s=i.length>=5;let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];const u=s?"gap-[min(0.875rem,1.8svh)] sm:gap-5":"gap-[min(1.25rem,2.6svh)] sm:gap-10";let c;e[5]!==u?(c=et("my-auto flex w-full flex-col",u),e[5]=u,e[6]=c):c=e[6];let f;if(e[7]!==o||e[8]!==s||e[9]!==i){let d;e[11]!==o||e[12]!==s?(d=(p,g)=>{const m=Math.min(1,Math.max(0,p.ratio??rk[p.status].ratio)),y=ak[ik(m)];return T.jsxs("div",{className:et("reveal grid grid-cols-1 items-center gap-x-8 sm:grid-cols-[minmax(0,10rem)_1fr]",s?"gap-y-[min(0.5rem,1svh)] sm:gap-y-1.5":"gap-y-[min(0.75rem,1.4svh)] sm:gap-y-3"),"data-show":o?"true":"false",style:{transitionDelay:o?`${80+g*90}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2 sm:flex-col sm:gap-0.5",children:[T.jsx("span",{className:et("font-light leading-none tracking-[-0.02em] tabular-nums",s?"text-[min(clamp(1.5rem,4vw,2rem),3svh)] sm:text-[clamp(1.5rem,2.5vw,2rem)]":"text-[min(clamp(2rem,5vw,3rem),4svh)] sm:text-[clamp(2rem,5vw,3rem)]"),style:{color:y},children:p.value}),T.jsx("span",{className:et("tracking-[-0.01em]",s?"text-sm sm:text-base":"text-base sm:text-lg"),style:{color:N.muted},children:p.label})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsxs("div",{className:"relative flex h-3 w-full gap-1",children:[nk.map(sk),T.jsx("span",{className:"absolute top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${m*100}%`,background:y,border:`3px solid ${N.bg}`,boxShadow:"0 1px 3px rgba(40,37,36,0.25)"}})]}),p.caption&&T.jsx("span",{className:"text-right text-xs sm:text-left sm:text-sm",style:{color:N.muted,opacity:.8},children:p.caption})]})]},g)},e[11]=o,e[12]=s,e[13]=d):d=e[13],f=i.map(d),e[7]=o,e[8]=s,e[9]=i,e[10]=f}else f=e[10];let h;e[14]!==c||e[15]!==f?(h=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1.5rem,2.2svh)] sm:px-10 sm:py-6 lg:px-16",children:T.jsx("div",{className:c,children:f})}),e[14]=c,e[15]=f,e[16]=h):h=e[16];let v;return e[17]!==l||e[18]!==h?(v=T.jsxs("div",{className:"flex h-full flex-col",children:[l,h]}),e[17]=l,e[18]=h,e[19]=v):v=e[19],v}function sk(r,e){return T.jsx("span",{className:"h-full flex-1 rounded-full",style:{background:r}},e)}const lk={good:{color:"#009a41",tint:"rgba(0,154,65,0.14)"},neutral:{color:"#d98324",tint:"rgba(217,131,36,0.14)"},bad:{color:"#ef4444",tint:"rgba(239,68,68,0.14)"}},uk=2;function ck(r){const e=r.match(/^(.*?)\s*\((\d+)\/(\d+)\)$/);return e?{name:e[1]??"",measured:e[2],total:e[3]}:{name:r}}function fk(r){const e=Te.c(29),{eyebrow:t,headline:a,annotation:n,items:i,active:o}=r,s=xt();let l,u,c,f,h;if(e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i||e[5]!==s){const g=[...i].sort(hk);f="flex h-full flex-col",e[11]!==o||e[12]!==n||e[13]!==t||e[14]!==a?(h=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[11]=o,e[12]=n,e[13]=t,e[14]=a,e[15]=h):h=e[15],c="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4 sm:px-10 lg:px-16",l="my-auto flex w-full flex-col gap-[min(0.875rem,1.7svh)] sm:gap-4";let m;e[16]!==o||e[17]!==s?(m=(y,x)=>{const _=lk[y.tone??"neutral"],S=Math.max(uk,Math.min(100,y.ratio*100)),{name:b,measured:w,total:C}=ck(y.label),A=w&&C?s("reports.geoDimensionsVariant.chip",{measured:w,total:C}):void 0;return T.jsxs("div",{className:"reveal flex flex-col gap-1.5","data-show":o?"true":"false",style:{transitionDelay:o?`${80+x*70}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-baseline gap-2.5",children:[T.jsx("span",{className:"min-w-0 line-clamp-2 break-words text-sm font-medium leading-snug tracking-[-0.01em] sm:text-[15px]",style:{color:N.ink},children:b}),A&&T.jsx("span",{className:"shrink-0 translate-y-[-1px] rounded-full px-1.5 py-px text-[10px] leading-[1.5]",style:{color:N.muted,border:`1px solid ${N.border}`},children:A}),T.jsx("span",{className:"ml-auto shrink-0 font-semibold leading-none tracking-[-0.02em] tabular-nums text-[min(1.5rem,3svh)] sm:text-[1.625rem]",style:{color:_.color},children:y.value})]}),T.jsx("div",{className:"h-[min(0.75rem,1.4svh)] w-full overflow-hidden rounded-full sm:h-3",style:{background:_.tint},children:T.jsx("div",{className:"h-full rounded-full transition-[width] duration-700 ease-out",style:{width:o?`${S}%`:"0%",background:_.color,transitionDelay:o?`${150+x*70}ms`:"0ms"}})})]},x)},e[16]=o,e[17]=s,e[18]=m):m=e[18],u=g.map(m),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=s,e[6]=l,e[7]=u,e[8]=c,e[9]=f,e[10]=h}else l=e[6],u=e[7],c=e[8],f=e[9],h=e[10];let v;e[19]!==l||e[20]!==u?(v=T.jsx("div",{className:l,children:u}),e[19]=l,e[20]=u,e[21]=v):v=e[21];let d;e[22]!==c||e[23]!==v?(d=T.jsx("div",{className:c,children:v}),e[22]=c,e[23]=v,e[24]=d):d=e[24];let p;return e[25]!==f||e[26]!==h||e[27]!==d?(p=T.jsxs("div",{className:f,children:[h,d]}),e[25]=f,e[26]=h,e[27]=d,e[28]=p):p=e[28],p}function hk(r,e){return(Number(r.value)||0)-(Number(e.value)||0)}function vk(r){return!r||r<=0?ut.bad:r<=3?ut.good:r<=10?N.warn:ut.bad}function dk(r){return r&&r>0?`${r}ª`:"—"}function pk(r){const e=Te.c(51),{eyebrow:t,headline:a,annotation:n,keywords:i,volumeLabel:o,active:s}=r,l=xt();let u,c,f,h,v,d,p;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i||e[5]!==l||e[6]!==o){const _=i.slice(0,8);d="flex h-full flex-col",e[14]!==s||e[15]!==n||e[16]!==t||e[17]!==a?(p=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:s}),e[14]=s,e[15]=n,e[16]=t,e[17]=a,e[18]=p):p=e[18],v="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.4svh)] sm:px-10 sm:py-4 lg:px-16",f="my-auto w-full";let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S={color:N.muted},e[19]=S):S=e[19];let b;e[20]!==l?(b=l("reports.keywordsTemplate.keyword"),e[20]=l,e[21]=b):b=e[21];let w;e[22]!==b?(w=T.jsx("span",{className:"min-w-0 flex-1 truncate",children:b}),e[22]=b,e[23]=w):w=e[23];let C;e[24]!==l||e[25]!==o?(C=o??l("reports.keywordsTemplate.searchesPerMonth"),e[24]=l,e[25]=o,e[26]=C):C=e[26];let A;e[27]!==C?(A=T.jsx("span",{className:"w-20 shrink-0 text-right sm:w-24",children:C}),e[27]=C,e[28]=A):A=e[28];let D;e[29]!==l?(D=l("reports.keywordsTemplate.position"),e[29]=l,e[30]=D):D=e[30];let M;e[31]!==D?(M=T.jsx("span",{className:"w-12 shrink-0 text-right sm:w-16",children:D}),e[31]=D,e[32]=M):M=e[32],e[33]!==w||e[34]!==A||e[35]!==M?(h=T.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1 text-[10px] font-medium uppercase tracking-[0.04em] sm:gap-3 sm:px-3 sm:text-[11px]",style:S,children:[w,A,M]}),e[33]=w,e[34]=A,e[35]=M,e[36]=h):h=e[36],u="flex flex-col",c=_.map((I,P)=>T.jsxs("li",{className:"reveal flex items-center gap-2 px-1 py-[min(10px,1.1svh)] sm:gap-3 sm:px-3 sm:py-[10px]","data-show":s?"true":"false",style:{...P<_.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${70+P*55}ms`:"0ms"},children:[T.jsx("span",{className:"min-w-0 flex-1 truncate text-base sm:text-lg",style:{color:N.ink},children:I.term}),T.jsx("span",{className:"w-20 shrink-0 text-right text-sm tabular-nums sm:w-24 sm:text-base",style:{color:N.muted},children:I.volume}),T.jsx("span",{className:"w-12 shrink-0 text-right text-lg font-normal tabular-nums tracking-[-0.01em] sm:w-16 sm:text-xl",style:{color:vk(I.position)},children:dk(I.position)})]},P)),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=l,e[6]=o,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v,e[12]=d,e[13]=p}else u=e[7],c=e[8],f=e[9],h=e[10],v=e[11],d=e[12],p=e[13];let g;e[37]!==u||e[38]!==c?(g=T.jsx("ul",{className:u,children:c}),e[37]=u,e[38]=c,e[39]=g):g=e[39];let m;e[40]!==f||e[41]!==h||e[42]!==g?(m=T.jsxs("div",{className:f,children:[h,g]}),e[40]=f,e[41]=h,e[42]=g,e[43]=m):m=e[43];let y;e[44]!==v||e[45]!==m?(y=T.jsx("div",{className:v,children:m}),e[44]=v,e[45]=m,e[46]=y):y=e[46];let x;return e[47]!==y||e[48]!==d||e[49]!==p?(x=T.jsxs("div",{className:d,children:[p,y]}),e[47]=y,e[48]=d,e[49]=p,e[50]=x):x=e[50],x}const xh={error:{color:"#d43d3d",icon:"error"},warning:{color:N.warn,icon:"warning"},notice:{color:N.notice,icon:"info"}};function gk(r){const e=Te.c(34),{headline:t,entries:a,domain:n,onNext:i,moreCount:o,active:s}=r,l=xt(),u=Gg(n);let c;e[0]!==l?(c=l("reports.listTemplate.unlockRevenue"),e[0]=l,e[1]=c):c=e[1];const f=c;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={borderColor:N.inputBorder,color:N.ink,background:N.surface},e[2]=h):h=e[2];const v=h,d=s?"true":"false";let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p={color:N.ink},e[3]=p):p=e[3];let g;e[4]!==t||e[5]!==o||e[6]!==l?(g=o&&o>0?T.jsxs(T.Fragment,{children:[T.jsxs("span",{style:{color:xh.error.color},children:["+",o]})," ",l("reports.listTemplate.moreSignals")]}):t.replace(/\s*\n\s*/g," "),e[4]=t,e[5]=o,e[6]=l,e[7]=g):g=e[7];let m;e[8]!==d||e[9]!==g?(m=T.jsx("header",{className:"flex shrink-0 flex-col gap-3 px-5 pt-2 sm:gap-4 sm:px-10 lg:px-16",children:T.jsx("h2",{className:"reveal text-balance font-normal leading-[1.1] tracking-[-0.02em] text-[min(clamp(1.375rem,4.8vw,2.5rem),3svh)] sm:text-[clamp(1.5rem,3.2vw,2.5rem)] lg:text-[2.75rem] lg:max-w-[20ch]","data-show":d,style:p,children:g})}),e[8]=d,e[9]=g,e[10]=m):m=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y={maskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)",WebkitMaskImage:"linear-gradient(to bottom, #000 55%, transparent 92%)"},e[11]=y):y=e[11];let x;if(e[12]!==s||e[13]!==a||e[14]!==d){let A;e[16]!==s||e[17]!==a.length||e[18]!==d?(A=(D,M)=>{const I=xh[D.severity]??xh.notice;return T.jsxs("li",{className:"reveal flex items-center gap-4 py-[min(9px,1.3svh)]","data-show":d,style:{...M<a.length-1?{borderBottom:`1px solid ${N.border}`}:{},transitionDelay:s?`${60+M*45}ms`:"0ms"},children:[T.jsx("span",{className:"line-clamp-2 flex-1 text-[13px] leading-snug sm:text-[15px]",style:{color:N.muted},children:D.label}),T.jsx("span",{className:"grid shrink-0 place-items-center",style:{color:I.color},"aria-label":D.severity,children:T.jsx(ft,{name:I.icon,size:"large"})})]},M)},e[16]=s,e[17]=a.length,e[18]=d,e[19]=A):A=e[19],x=a.map(A),e[12]=s,e[13]=a,e[14]=d,e[15]=x}else x=e[15];let _;e[20]!==x?(_=T.jsx("ul",{className:"h-full overflow-hidden",style:y,children:x}),e[20]=x,e[21]=_):_=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S={background:`linear-gradient(to bottom, transparent, ${N.bg} 34%)`},e[22]=S):S=e[22];let b;e[23]!==f||e[24]!==u||e[25]!==n||e[26]!==i?(b=T.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 flex justify-center px-5 pb-7 pt-24 sm:px-10 lg:px-16",style:S,children:i?T.jsx("button",{type:"button",onClick:i,className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:v,children:f}):T.jsx("a",{href:u,target:u.startsWith("http")?"_blank":"_self",rel:"noopener noreferrer",onClick:A=>Lf(A,{domain:n,placement:"list_slide_fallback"}),className:"pointer-events-auto inline-flex h-12 items-center rounded-full border px-8 text-base font-medium transition-colors hover:bg-black/[0.03]",style:v,children:f})}),e[23]=f,e[24]=u,e[25]=n,e[26]=i,e[27]=b):b=e[27];let w;e[28]!==b||e[29]!==_?(w=T.jsxs("div",{className:"relative min-h-0 flex-1 px-5 pt-3 sm:px-10 lg:px-16",children:[_,b]}),e[28]=b,e[29]=_,e[30]=w):w=e[30];let C;return e[31]!==w||e[32]!==m?(C=T.jsxs("div",{className:"flex h-full flex-col",children:[m,w]}),e[31]=w,e[32]=m,e[33]=C):C=e[33],C}const mk={up:ut.good,down:ut.bad,neutral:N.muted},yk={up:"↑",down:"↓",neutral:"→"};function k2(r,e){return r?ut[r]:e?N.muted:N.ink}function xk(r){const e=Te.c(8),{cell:t}=r;let a;e[0]!==t.muted||e[1]!==t.tone?(a=k2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=a):a=e[2];let n;e[3]!==a?(n={color:a},e[3]=a,e[4]=n):n=e[4];let i;return e[5]!==t.value||e[6]!==n?(i=T.jsx("span",{className:"line-clamp-2 leading-snug",style:n,children:t.value}),e[5]=t.value,e[6]=n,e[7]=i):i=e[7],i}function _k(r){const e=Te.c(14),{cell:t}=r,a=t.deltaDir??"neutral";let n;e[0]!==t.muted||e[1]!==t.tone?(n=k2(t.tone,t.muted),e[0]=t.muted,e[1]=t.tone,e[2]=n):n=e[2];let i;e[3]!==n?(i={color:n},e[3]=n,e[4]=i):i=e[4];let o;e[5]!==t.value||e[6]!==i?(o=T.jsx("span",{style:i,children:t.value}),e[5]=t.value,e[6]=i,e[7]=o):o=e[7];let s;e[8]!==t.delta||e[9]!==a?(s=t.delta&&T.jsxs("span",{className:"text-sm tabular-nums",style:{color:mk[a]},children:[yk[a]," ",t.delta]}),e[8]=t.delta,e[9]=a,e[10]=s):s=e[10];let l;return e[11]!==o||e[12]!==s?(l=T.jsxs("span",{className:"inline-flex items-baseline gap-2 whitespace-nowrap",children:[o,s]}),e[11]=o,e[12]=s,e[13]=l):l=e[13],l}function bk(r){const e=Te.c(8),{cell:t}=r,a=t.tone?ut[t.tone]:N.muted,n=t.points.length;if(n<2)return null;const i=48/(n-1);let o;if(e[0]!==t.points||e[1]!==i){let u;e[3]!==i?(u=(c,f)=>`${f*i},${20-c*20}`,e[3]=i,e[4]=u):u=e[4],o=t.points.map(u).join(" "),e[0]=t.points,e[1]=i,e[2]=o}else o=e[2];const s=o;let l;return e[5]!==a||e[6]!==s?(l=T.jsx("svg",{width:48,height:20,viewBox:"0 0 48 20",className:"inline-block align-middle",children:T.jsx("polyline",{points:s,fill:"none",stroke:a,strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"})}),e[5]=a,e[6]=s,e[7]=l):l=e[7],l}function Sk(r){const e=Te.c(6),{cell:t}=r,a=t.tone?ut[t.tone]:N.muted,n=`1px solid ${a}`;let i;e[0]!==a||e[1]!==n?(i={color:a,border:n,lineHeight:"1.4"},e[0]=a,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==t.label||e[4]!==i?(o=T.jsx("span",{className:"inline-block rounded-full px-2 py-0.5 text-xs font-medium",style:i,children:t.label}),e[3]=t.label,e[4]=i,e[5]=o):o=e[5],o}function wk(r){const e=Te.c(12),{cell:t}=r,a=t.tone?ut[t.tone]:N.ink,n=Math.min(100,Math.max(0,t.value));let i;e[0]!==a?(i={color:a},e[0]=a,e[1]=i):i=e[1];let o;e[2]!==n||e[3]!==i?(o=T.jsx("span",{className:"text-sm tabular-nums",style:i,children:n}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s={background:N.border},e[5]=s):s=e[5];const l=`${n}%`;let u;e[6]!==a||e[7]!==l?(u=T.jsx("span",{className:"inline-block h-1.5 w-12 overflow-hidden rounded-full",style:s,children:T.jsx("span",{className:"block h-full rounded-full",style:{width:l,background:a}})}),e[6]=a,e[7]=l,e[8]=u):u=e[8];let c;return e[9]!==o||e[10]!==u?(c=T.jsxs("span",{className:"inline-flex items-center gap-2",children:[o,u]}),e[9]=o,e[10]=u,e[11]=c):c=e[11],c}function _h(r){const e=Te.c(10),{cell:t}=r;switch(t.kind){case"text":{let a;return e[0]!==t?(a=T.jsx(xk,{cell:t}),e[0]=t,e[1]=a):a=e[1],a}case"number":{let a;return e[2]!==t?(a=T.jsx(_k,{cell:t}),e[2]=t,e[3]=a):a=e[3],a}case"sparkline":{let a;return e[4]!==t?(a=T.jsx(bk,{cell:t}),e[4]=t,e[5]=a):a=e[5],a}case"badge":{let a;return e[6]!==t?(a=T.jsx(Sk,{cell:t}),e[6]=t,e[7]=a):a=e[7],a}case"score":{let a;return e[8]!==t?(a=T.jsx(wk,{cell:t}),e[8]=t,e[9]=a):a=e[9],a}default:return t}}function R2(r){const e=Te.c(51),{eyebrow:t,headline:a,annotation:n,columns:i,rows:o,highlightRow:s,active:l}=r,u=o.length>=6;let c;e[0]!==l||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:l}),e[0]=l,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={WebkitMaskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)",maskImage:"linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%)"},e[5]=f):f=e[5];let h;if(e[6]!==l||e[7]!==i||e[8]!==s||e[9]!==o){let A;e[11]!==l||e[12]!==i||e[13]!==s?(A=(D,M)=>T.jsxs("li",{className:"reveal shrink-0 rounded-xl border p-3.5","data-show":l?"true":"false",style:{borderColor:N.cardBorder,background:M===s?"rgba(40,37,36,0.03)":N.surface,transitionDelay:l?`${80+M*45}ms`:"0ms"},children:[T.jsx("div",{className:"text-[15px] font-medium leading-snug",style:{color:N.ink},children:D[0]&&T.jsx(_h,{cell:D[0]})}),T.jsx("div",{className:"mt-2.5 flex flex-wrap gap-x-6 gap-y-2",children:D.slice(1).map((I,P)=>T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.04em]",style:{color:N.muted},children:i[P+1]?.label}),T.jsx("span",{className:"text-sm tabular-nums",style:{color:N.ink},children:T.jsx(_h,{cell:I})})]},P))})]},M),e[11]=l,e[12]=i,e[13]=s,e[14]=A):A=e[14],h=o.map(A),e[6]=l,e[7]=i,e[8]=s,e[9]=o,e[10]=h}else h=e[10];let v;e[15]!==h?(v=T.jsx("ul",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto py-1 sm:hidden",style:f,children:h}),e[15]=h,e[16]=v):v=e[16];const d=l?"true":"false",p=l?"100ms":"0ms";let g;e[17]!==p?(g={background:N.surface,border:`1px solid ${N.cardBorder}`,transitionDelay:p},e[17]=p,e[18]=g):g=e[18];let m;if(e[19]!==i||e[20]!==u){let A;e[22]!==u?(A=(D,M)=>T.jsx("th",{className:et("text-[11px] font-medium uppercase tracking-wide sm:text-sm",u?"px-3 py-2.5 sm:px-5 sm:py-3":"px-3 py-3 sm:px-6 sm:py-4",D.align==="right"?"text-right":"text-left"),style:{color:N.muted,borderBottom:`1px solid ${N.border}`},children:D.label},M),e[22]=u,e[23]=A):A=e[23],m=i.map(A),e[19]=i,e[20]=u,e[21]=m}else m=e[21];let y;e[24]!==m?(y=T.jsx("thead",{children:T.jsx("tr",{children:m})}),e[24]=m,e[25]=y):y=e[25];let x;if(e[26]!==i||e[27]!==u||e[28]!==s||e[29]!==o){let A;e[31]!==i||e[32]!==u||e[33]!==s||e[34]!==o.length?(A=(D,M)=>T.jsx("tr",{style:{borderBottom:M<o.length-1?`1px solid ${N.border}`:void 0,background:M===s?"rgba(40,37,36,0.04)":void 0},children:D.map((I,P)=>{const k=i[P]?.align==="right";return T.jsx("td",{className:et("align-top tracking-[-0.01em] tabular-nums",u?"px-3 py-1.5 text-sm sm:px-5 sm:py-2.5 sm:text-base":"px-3 py-3 text-sm sm:px-6 sm:py-4 sm:text-lg",k?"text-right":"text-left font-medium"),children:T.jsx(_h,{cell:I})},P)})},M),e[31]=i,e[32]=u,e[33]=s,e[34]=o.length,e[35]=A):A=e[35],x=o.map(A),e[26]=i,e[27]=u,e[28]=s,e[29]=o,e[30]=x}else x=e[30];let _;e[36]!==x?(_=T.jsx("tbody",{children:x}),e[36]=x,e[37]=_):_=e[37];let S;e[38]!==_||e[39]!==y?(S=T.jsxs("table",{className:"w-full border-collapse",children:[y,_]}),e[38]=_,e[39]=y,e[40]=S):S=e[40];let b;e[41]!==S||e[42]!==d||e[43]!==g?(b=T.jsx("div",{className:"reveal hidden w-full overflow-hidden rounded-xl sm:block","data-show":d,style:g,children:S}),e[41]=S,e[42]=d,e[43]=g,e[44]=b):b=e[44];let w;e[45]!==b||e[46]!==v?(w=T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col px-5 pt-3 sm:items-center sm:justify-center sm:px-10 sm:pt-4 lg:px-16",children:[v,b]}),e[45]=b,e[46]=v,e[47]=w):w=e[47];let C;return e[48]!==c||e[49]!==w?(C=T.jsxs("div",{className:"flex h-full flex-col",children:[c,w]}),e[48]=c,e[49]=w,e[50]=C):C=e[50],C}const N2={Crítico:{color:"#ef4444",tint:"rgba(239,68,68,0.12)"},Atenção:{color:"#d98324",tint:"rgba(217,131,36,0.12)"}},E2={color:N.muted,tint:"rgba(13,9,6,0.06)"};function Tk(r){const e=[];for(const t of r){const[a,n,i]=t;if(t.length!==3||a?.kind!=="text"||n?.kind!=="text"||i?.kind!=="badge")return null;const o={title:n.value.replace(/^✗\s*/,""),severity:i.label},s=e[e.length-1];s&&s.page===a.value?s.issues.push(o):e.push({page:a.value,issues:[o]})}return e.length>0?e:null}function u0(r){const e=Te.c(6),{severity:t}=r,a=N2[t]??E2;let n;e[0]!==a.color||e[1]!==a.tint?(n={color:a.color,background:a.tint},e[0]=a.color,e[1]=a.tint,e[2]=n):n=e[2];let i;return e[3]!==t||e[4]!==n?(i=T.jsx("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium leading-[1.4] sm:text-[11px]",style:n,children:t}),e[3]=t,e[4]=n,e[5]=i):i=e[5],i}function c0(r){const e=Te.c(2),{severity:t}=r,a=N2[t]??E2;let n;return e[0]!==a.color?(n=T.jsx("span",{className:"shrink-0 text-sm font-semibold leading-snug sm:text-base",style:{color:a.color},children:"✗"}),e[0]=a.color,e[1]=n):n=e[1],n}function Ck(r){const e=xt(),{eyebrow:t,headline:a,annotation:n,rows:i,active:o}=r,s=Tk(i);if(!s)return T.jsx(R2,{...r});const l=s.length>1,u=s.flatMap(f=>f.issues.map(h=>({...h,page:f.page})));let c=0;return T.jsxs("div",{className:"flex h-full flex-col",children:[T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),T.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-2 sm:px-10 sm:py-4 lg:px-16",children:[T.jsx("div",{className:"reveal my-auto w-full rounded-2xl px-3.5 py-1 sm:hidden","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?"80ms":"0ms"},children:s.map((f,h)=>T.jsxs("div",{className:"py-[min(0.625rem,1.2svh)]",style:{borderTop:h>0?`1px solid ${N.border}`:void 0},children:[T.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:f.page}),f.issues.length>1&&T.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:N.muted,opacity:.7},children:[f.issues.length," ",e("reports.paginasVariant.found")]})]}),f.issues.map((v,d)=>{const p=140+c++*60;return T.jsxs("div",{className:"reveal mt-[min(0.375rem,0.8svh)] flex items-baseline gap-2","data-show":o?"true":"false",style:{transitionDelay:o?`${p}ms`:"0ms"},children:[T.jsx(c0,{severity:v.severity}),T.jsx("span",{className:"min-w-0 flex-1 line-clamp-2 text-[13px] font-medium leading-snug tracking-[-0.01em]",style:{color:N.ink},children:v.title}),T.jsx(u0,{severity:v.severity})]},d)})]},h))}),T.jsx("div",{className:"my-auto hidden w-full gap-4 sm:grid sm:grid-cols-2 lg:grid-cols-3",children:u.map((f,h)=>T.jsxs("div",{className:"reveal flex flex-col gap-3 rounded-2xl px-5 py-4","data-show":o?"true":"false",style:{background:N.surface,border:`1px solid ${N.border}`,transitionDelay:o?`${100+h*60}ms`:"0ms"},children:[l&&T.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-[0.08em]",style:{color:N.muted},children:f.page}),T.jsxs("div",{className:"flex items-start gap-2.5",children:[T.jsx(c0,{severity:f.severity}),T.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug tracking-[-0.01em] lg:text-[15px]",style:{color:N.ink},children:f.title})]}),T.jsx("div",{className:"mt-auto",children:T.jsx(u0,{severity:f.severity})})]},h))})]})]})}const Ak={1:"#c8a24b",2:"#9aa0a6",3:"#b07a48"};function Dk(r){const e=Te.c(28),{product:t,rank:a,active:n,delay:i}=r,[o,s]=ze.useState(!!t.image),l=Ak[a],u=n?"true":"false",c=n?`${i}ms`:"0ms";let f;e[0]!==c?(f={borderColor:N.cardBorder,transitionDelay:c},e[0]=c,e[1]=f):f=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#f6f4f1"},e[2]=h):h=e[2];let v;e[3]!==o||e[4]!==t.image||e[5]!==t.name?(v=o&&t.image?T.jsx("img",{src:t.image,alt:t.name,className:"h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-[1.04]",loading:"lazy",onError:()=>s(!1)}):T.jsx("span",{className:"grid h-full w-full place-items-center",children:T.jsx(ft,{name:"package_2",size:"xxl",class:"opacity-15"})}),e[3]=o,e[4]=t.image,e[5]=t.name,e[6]=v):v=e[6];let d;e[7]!==l?(d=l?{background:l,color:"#fff"}:{background:"rgba(255,255,255,0.92)",color:N.muted,border:`1px solid ${N.cardBorder}`},e[7]=l,e[8]=d):d=e[8];let p;e[9]!==a||e[10]!==d?(p=T.jsxs("span",{className:"absolute left-2 top-2 inline-flex h-6 items-center gap-1 rounded-full px-2 text-[11px] font-medium tabular-nums",style:d,children:["#",a]}),e[9]=a,e[10]=d,e[11]=p):p=e[11];let g;e[12]!==v||e[13]!==p?(g=T.jsxs("div",{className:"relative aspect-[3/4] w-full overflow-hidden rounded-md",style:h,children:[v,p]}),e[12]=v,e[13]=p,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m={color:N.ink},e[15]=m):m=e[15];let y;e[16]!==t.name?(y=T.jsx("span",{className:"line-clamp-2 min-w-0 text-[13px] leading-snug sm:text-[13.5px]",style:m,children:t.name}),e[16]=t.name,e[17]=y):y=e[17];let x;e[18]!==t.price?(x=t.price&&T.jsx("span",{className:"mt-auto pt-1 text-[15px] font-medium tabular-nums tracking-[-0.01em] sm:text-[17px]",style:{color:N.ink},children:t.price}),e[18]=t.price,e[19]=x):x=e[19];let _;e[20]!==y||e[21]!==x?(_=T.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 px-1.5 pb-1 pt-2.5",children:[y,x]}),e[20]=y,e[21]=x,e[22]=_):_=e[22];let S;return e[23]!==u||e[24]!==_||e[25]!==f||e[26]!==g?(S=T.jsxs("div",{className:"reveal group flex w-[52vw] max-w-[210px] shrink-0 snap-center flex-col rounded-xl border bg-white p-1.5 transition-shadow duration-500 hover:shadow-[0_20px_44px_-24px_rgba(40,37,36,0.32)] sm:w-auto sm:max-w-none sm:shrink sm:snap-align-none","data-show":u,style:f,children:[g,_]}),e[23]=u,e[24]=_,e[25]=f,e[26]=g,e[27]=S):S=e[27],S}function Mk(r){return r<=2?"sm:grid-cols-2":r===3?"sm:grid-cols-3":r===4?"sm:grid-cols-4":r===5?"sm:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-6"}function Lk(r){const e=Te.c(27),{eyebrow:t,headline:a,annotation:n,products:i,active:o}=r,s=o===void 0?!1:o;let l,u,c,f,h;if(e[0]!==s||e[1]!==n||e[2]!==t||e[3]!==a||e[4]!==i){const g=i.slice(0,6);f="flex h-full flex-col",e[10]!==s||e[11]!==n||e[12]!==t||e[13]!==a?(h=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:s}),e[10]=s,e[11]=n,e[12]=t,e[13]=a,e[14]=h):h=e[14],c="flex min-h-0 flex-1 flex-col justify-center pt-4 sm:px-10 sm:pt-12 lg:px-16",l=et("flex w-full snap-x snap-mandatory gap-3 overflow-x-auto overscroll-x-contain px-5 scroll-px-5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:grid sm:snap-none sm:gap-4 sm:overflow-x-visible sm:px-0",Mk(g.length));let m;e[15]!==s?(m=(y,x)=>T.jsx(Dk,{product:y,rank:x+1,active:s,delay:60+x*55},x),e[15]=s,e[16]=m):m=e[16],u=g.map(m),e[0]=s,e[1]=n,e[2]=t,e[3]=a,e[4]=i,e[5]=l,e[6]=u,e[7]=c,e[8]=f,e[9]=h}else l=e[5],u=e[6],c=e[7],f=e[8],h=e[9];let v;e[17]!==l||e[18]!==u?(v=T.jsx("div",{className:l,children:u}),e[17]=l,e[18]=u,e[19]=v):v=e[19];let d;e[20]!==c||e[21]!==v?(d=T.jsx("div",{className:c,children:v}),e[20]=c,e[21]=v,e[22]=d):d=e[22];let p;return e[23]!==f||e[24]!==h||e[25]!==d?(p=T.jsxs("div",{className:f,children:[h,d]}),e[23]=f,e[24]=h,e[25]=d,e[26]=p):p=e[26],p}function f0(r){if(!r)return null;const e=r.replace(/\s/g,"").match(/^[^\d]*([\d.,]+)\s*([kKmMbB])?/);if(!e)return null;const t=Number.parseFloat((e[1]??"").replace(/\./g,"").replace(",","."));if(Number.isNaN(t))return null;const a=(e[2]||"").toLowerCase();return t*(a==="b"?1e9:a==="m"?1e6:a==="k"?1e3:1)}function Ik(r){return!!r&&!/\s/.test(r)&&/\.[a-z]{2,}$/i.test(r.replace(/\/+$/,""))}function Pk(r){const e=Te.c(17),{name:t,className:a}=r,[n,i]=ze.useState(!1);let o;e[0]!==t?(o=t?.replace(/^https?:\/\//,"").replace(/\/.*$/,""),e[0]=t,e[1]=o):o=e[1];const s=o;let l;e[2]!==t?(l=(t??"?").replace(/^https?:\/\//,"").replace(/^www\./,"")[0]?.toUpperCase()??"?",e[2]=t,e[3]=l):l=e[3];const u=l;let c;e[4]!==n||e[5]!==t?(c=Ik(t)&&!n,e[4]=n,e[5]=t,e[6]=c):c=e[6];const f=c;let h;e[7]!==a?(h=et("grid shrink-0 place-items-center overflow-hidden rounded-[10px]",a),e[7]=a,e[8]=h):h=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v={background:N.surface,border:`1px solid ${N.border}`},e[9]=v):v=e[9];let d;e[10]!==s||e[11]!==u||e[12]!==f?(d=f?T.jsx("img",{src:`https://www.google.com/s2/favicons?sz=64&domain=${encodeURIComponent(s??"")}`,alt:"",className:"h-full w-full object-contain p-1",onError:()=>i(!0)}):T.jsx("span",{className:"text-xs font-medium",style:{color:N.muted},children:u}),e[10]=s,e[11]=u,e[12]=f,e[13]=d):d=e[13];let p;return e[14]!==h||e[15]!==d?(p=T.jsx("span",{className:h,style:v,children:d}),e[14]=h,e[15]=d,e[16]=p):p=e[16],p}function kk(r){return r?r.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\/+$/,""):""}const h0="h-[min(2.5rem,4svh)] w-[min(2.5rem,4svh)] sm:h-10 sm:w-10",v0=r=>r==="good"?0:r==="bad"?2:1;function Rk(r){const e=Te.c(33),{eyebrow:t,headline:a,annotation:n,rivalLabel:i,dimensions:o,faviconUrl:s,active:l}=r,u=xt();let c,f,h,v,d;if(e[0]!==l||e[1]!==n||e[2]!==o||e[3]!==t||e[4]!==s||e[5]!==a||e[6]!==i||e[7]!==u){const y=o.map(Ek).sort(Nk);v="flex h-full flex-col",e[13]!==l||e[14]!==n||e[15]!==t||e[16]!==a?(d=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:l}),e[13]=l,e[14]=n,e[15]=t,e[16]=a,e[17]=d):d=e[17],h="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-[min(1rem,1.2svh)] sm:px-10 sm:py-4 lg:px-16",c="my-auto flex w-full flex-col";let x;e[18]!==l||e[19]!==s||e[20]!==i||e[21]!==u?(x=(_,S)=>{const{d:b,i:w}=_,C=b.tone==="good"?ut.good:b.tone==="bad"?ut.bad:N.muted,A=!!(b.rival||b.rivalName),D=f0(b.you),M=f0(b.rival),P=D!=null&&M!=null&&D+M>0?Math.min(.9,Math.max(.1,D/(D+M))):b.tone==="good"?.72:b.tone==="bad"?.28:.5,k=b.tone==="good",R=b.tone==="bad",E=k?ut.good:R?ut.bad:N.muted;return T.jsxs("div",{className:"reveal flex flex-col gap-[min(0.5rem,0.9svh)] py-[min(0.75rem,1.1svh)] sm:gap-2 sm:py-3","data-show":l?"true":"false",style:{borderTop:S===0?"none":`1px solid ${N.cardBorder}`,transitionDelay:l?`${80+S*55}ms`:"0ms"},children:[T.jsxs("div",{className:"flex items-center justify-between gap-3",children:[T.jsx("span",{className:"min-w-0 truncate text-sm font-medium sm:text-[15px]",style:{color:N.ink},children:b.label}),T.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium sm:text-xs",style:{color:E},children:[(k||R)&&T.jsx(ft,{name:k?"trending_up":"trending_down",size:"xs"}),k?u("reports.scorecardTemplate.youLead"):R?u("reports.scorecardTemplate.rivalLeads",{rival:kk(b.rivalName)||i||u("reports.competitorTemplate.competitor")}):u(A?"reports.scorecardTemplate.tie":"reports.scorecardTemplate.noComparison")]})]}),T.jsxs("div",{className:"flex items-center gap-2.5 sm:gap-3",children:[T.jsx("img",{src:s,alt:"",width:32,height:32,className:et("shrink-0 rounded-[10px] border bg-white p-1",h0),style:{borderColor:N.border}}),T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] font-normal tabular-nums tracking-[-0.01em] sm:text-xl",style:{color:C},children:b.you}),T.jsx("span",{className:"relative h-3.5 flex-1 overflow-hidden rounded-full",style:{background:"rgba(40,37,36,0.07)"},children:T.jsx("span",{className:"absolute inset-y-0 left-0 rounded-full transition-[width] duration-700 ease-out",style:{width:l?`${P*100}%`:"0%",background:C}})}),A&&T.jsxs(T.Fragment,{children:[T.jsx("span",{className:"shrink-0 text-[min(1.125rem,2.5svh)] tabular-nums sm:text-xl",style:{color:N.muted},children:b.rival??"—"}),T.jsx(Pk,{name:b.rivalName,className:h0})]})]})]},w)},e[18]=l,e[19]=s,e[20]=i,e[21]=u,e[22]=x):x=e[22],f=y.map(x),e[0]=l,e[1]=n,e[2]=o,e[3]=t,e[4]=s,e[5]=a,e[6]=i,e[7]=u,e[8]=c,e[9]=f,e[10]=h,e[11]=v,e[12]=d}else c=e[8],f=e[9],h=e[10],v=e[11],d=e[12];let p;e[23]!==c||e[24]!==f?(p=T.jsx("div",{className:c,children:f}),e[23]=c,e[24]=f,e[25]=p):p=e[25];let g;e[26]!==h||e[27]!==p?(g=T.jsx("div",{className:h,children:p}),e[26]=h,e[27]=p,e[28]=g):g=e[28];let m;return e[29]!==v||e[30]!==d||e[31]!==g?(m=T.jsxs("div",{className:v,children:[d,g]}),e[29]=v,e[30]=d,e[31]=g,e[32]=m):m=e[32],m}function Nk(r,e){return v0(r.d.tone)-v0(e.d.tone)||r.i-e.i}function Ek(r,e){return{d:r,i:e}}var Xd=function(r,e){return Xd=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])},Xd(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xd(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ok=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Bk=(function(){function r(){this.browser=new Ok,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})(),Me=new Bk;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Me.wxa=!0,Me.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Me.worker=!0:!Me.hasGlobalWindow||"Deno"in window?(Me.node=!0,Me.svgSupported=!0):zk(navigator.userAgent,Me);function zk(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 Fg=12,O2="sans-serif",mn=Fg+"px "+O2,Vk=20,Gk=100,Fk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Hk(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)-Vk)/Gk;e[a]=n}return e}var jk=Hk(Fk),yn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=yn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||mn),r.measureText(t);t=t||"",a=a||mn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Fg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jk[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}},B2=ua(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),z2=ua(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Vo=Object.prototype.toString,If=Array.prototype,Wk=If.forEach,$k=If.filter,Hg=If.slice,Uk=If.map,d0=(function(){}).constructor,ru=d0?d0.prototype:null,jg="__proto__",Yk=2311;function V2(){return Yk++}function Wg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ce(r){if(r==null||typeof r!="object")return r;var e=r,t=Vo.call(r);if(t==="[object Array]"){if(!js(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ce(r[a])}}else if(z2[t]){if(!js(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(!B2[t]&&!js(r)&&!Mo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==jg&&(e[o]=ce(r[o]))}return e}function be(r,e,t){if(!ue(e)||!ue(r))return t?ce(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==jg){var n=r[a],i=e[a];ue(i)&&ue(n)&&!W(i)&&!W(n)&&!Mo(i)&&!Mo(n)&&!p0(i)&&!p0(n)&&!js(i)&&!js(n)?be(n,i,t):(t||!(a in r))&&(r[a]=ce(e[a]))}return r}function $g(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=be(t,r[a],e);return t}function H(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==jg&&(r[t]=e[t]);return r}function le(r,e,t){for(var a=Pe(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function Ce(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 Xk(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 pt(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 le(r,e,t)}function zt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function L(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Wk)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 $(r,e,t){if(!r)return[];if(!e)return Ug(r);if(r.map&&r.map===Uk)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 ua(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 je(r,e,t){if(!r)return[];if(!e)return Ug(r);if(r.filter&&r.filter===$k)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 Zk(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 Pe(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 Kk(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Hg.call(arguments)))}}var ee=ru&&se(ru.bind)?ru.call.bind(ru.bind):Kk;function xe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Hg.call(arguments)))}}function W(r){return Array.isArray?Array.isArray(r):Vo.call(r)==="[object Array]"}function se(r){return typeof r=="function"}function J(r){return typeof r=="string"}function Zd(r){return Vo.call(r)==="[object String]"}function Be(r){return typeof r=="number"}function ue(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function p0(r){return!!B2[Vo.call(r)]}function ir(r){return!!z2[Vo.call(r)]}function Mo(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Pf(r){return r.colorStops!=null}function qk(r){return r.image!=null}function Jk(r){return Vo.call(r)==="[object RegExp]"}function il(r){return r!==r}function Mt(){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 me(r,e){return r??e}function sa(r,e,t){return r??e??t}function Ug(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Hg.apply(r,e)}function Yg(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 Zt(r,e){if(!r)throw new Error(e)}function zr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var G2="__ec_primitive__";function Pc(r){r[G2]=!0}function js(r){return r[G2]}var Qk=(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 Pe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),F2=typeof Map=="function";function e5(){return F2?new Map:new Qk}var t5=(function(){function r(e){var t=W(e);this.data=e5();var a=this;e instanceof r?e.each(n):e&&L(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 F2?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function ae(r){return new t5(r)}function ol(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 kf(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&H(t,e),t}function H2(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function te(r,e){return r.hasOwnProperty(e)}function ct(){}var sc=180/Math.PI;function Pi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function jt(r,e){return r[0]=e[0],r[1]=e[1],r}function Da(r){return[r[0],r[1]]}function r5(r,e,t){return r[0]=e,r[1]=t,r}function g0(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Kd(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function si(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function qd(r){return Math.sqrt(a5(r))}function a5(r){return r[0]*r[0]+r[1]*r[1]}function lc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Go(r,e){var t=qd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Jd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var rn=Jd;function n5(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var pi=n5;function uc(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 Pt(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 an(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function nn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Hi=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),i5=(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 Hi(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 Hi(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 Hi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Hi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Hi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Hi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Lr=(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,c=i[e][u];return c&&c.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 c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),o5=Math.log(2);function Qd(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)/o5);return r[t][l]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var f=0,h=0,v=0;h<s;h++){var d=1<<h;d&n||(f+=(v%2?-1:1)*r[t][h]*Qd(r,e-1,c,u,n|d,i),v++)}return i[o]=f,f}function m0(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=Qd(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)*Qd(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var y0="___zrEVENTSAVED",bh=[];function s5(r,e,t,a,n){return ep(bh,e,a,n,!0)&&ep(r,t,bh[0],bh[1])}function ep(r,e,t,a,n){if(e.getBoundingClientRect&&Me.domSupported&&!j2(e)){var i=e[y0]||(e[y0]={}),o=l5(e,i),s=u5(o,i,n);if(s)return s(r,t,a),!0}return!1}function l5(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 u5(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 c=r[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&i&&h===i[f]&&v===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?m0(s,o):m0(o,s))}function j2(r){return r.nodeName.toUpperCase()==="CANVAS"}var c5=/([&<>"'])/g,f5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ut(r){return r==null?"":(r+"").replace(c5,function(e,t){return f5[t]})}var h5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Sh=[],v5=Me.browser.firefox&&+Me.browser.version.split(".")[0]<39;function tp(r,e,t,a){return t=t||{},a?x0(r,e,t):v5&&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):x0(r,e,t),t}function x0(r,e,t){if(Me.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(j2(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(ep(Sh,r,a,n)){t.zrX=Sh[0],t.zrY=Sh[1];return}}t.zrX=t.zrY=0}function Xg(r){return r||window.event}function yr(r,e,t){if(e=Xg(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&&tp(r,o,e,t)}else{tp(r,e,e,t);var i=d5(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&h5.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function d5(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 rp(r,e,t,a){r.addEventListener(e,t,a)}function p5(r,e,t,a){r.removeEventListener(e,t,a)}var ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function _0(r){return r.which===2||r.which===3}var g5=(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=tp(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 wh)if(wh.hasOwnProperty(t)){var a=wh[t](this._track,e);if(a)return a}},r})();function b0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function m5(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var wh={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=b0(a)/b0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=m5(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function cr(){return[1,0,0,1,0,0]}function Rf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Zg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ma(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function ca(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 ki(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],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function Kg(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 Fo(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 y5(r){var e=cr();return Zg(e,r),e}var Se=(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})(),au=Math.min,nu=Math.max,Dn=new Se,Mn=new Se,Ln=new Se,In=new Se,rs=new Se,as=new Se,we=(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=au(e.x,this.x),a=au(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nu(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=nu(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=cr();return ca(i,i,[-t.x,-t.y]),Kg(i,i,[a,n]),ca(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,c=e.y,f=e.y+e.height,h=!(i<l||u<n||s<c||f<o);if(t){var v=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-n),m=Math.abs(s-c),y=Math.abs(f-o),x=Math.min(p,g),_=Math.min(m,y);i<l||u<n?x>d&&(d=x,p<g?Se.set(as,-p,0):Se.set(as,g,0)):x<v&&(v=x,p<g?Se.set(rs,p,0):Se.set(rs,-g,0)),s<c||f<o?_>d&&(d=_,m<y?Se.set(as,0,-m):Se.set(as,0,y)):x<v&&(v=x,m<y?Se.set(rs,0,m):Se.set(rs,0,-y))}return t&&Se.copy(t,h?rs:as),h},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}Dn.x=Ln.x=t.x,Dn.y=In.y=t.y,Mn.x=In.x=t.x+t.width,Mn.y=Ln.y=t.y+t.height,Dn.transform(a),In.transform(a),Mn.transform(a),Ln.transform(a),e.x=au(Dn.x,Mn.x,Ln.x,In.x),e.y=au(Dn.y,Mn.y,Ln.y,In.y);var l=nu(Dn.x,Mn.x,Ln.x,In.x),u=nu(Dn.y,Mn.y,Ln.y,In.y);e.width=l-e.x,e.height=u-e.y},r})(),W2="silent";function x5(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:_5}}function _5(){ka(this.event)}var b5=(function(r){z(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})(Lr),ns=(function(){function r(e,t){this.x=e,this.y=t}return r})(),S5=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Th=new we(0,0,0,0),$2=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new ns(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new b5,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new i5(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(L(S5,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=U2(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 ns(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.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 ns(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=x5(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 ns(t,a);if(S0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new we(t-u,a-u,l,l),f=i.length-1;f>=0;f--){var h=i[f];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Th.copy(h.getBoundingRect()),h.transform&&Th.applyTransform(h.transform),Th.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),x=a+g*Math.sin(m);if(S0(s,o,y,x,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new g5);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 ns;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Lr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){$2.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=U2(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||rn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function w5(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?W2:!0}return!1}function S0(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=w5(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==W2)){e.target=o;break}}}function U2(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var Y2=32,is=7;function T5(r){for(var e=0;r>=Y2;)e|=r&1,r>>=1;return r+e}function w0(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++;C5(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function C5(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function T0(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 Ch(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 c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function Ah(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 c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function A5(r,e){var t=is,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,c(v)}}function c(v){var d=a[v],p=n[v],g=a[v+1],m=n[v+1];n[v]=p+m,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var y=Ah(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ch(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):h(d,p,g,m)))}function f(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,x=p,_=v;if(r[_++]=r[x++],--g===0){for(m=0;m<d;m++)r[_+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y];return}for(var S=t,b,w,C;;){b=0,w=0,C=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,b=0,--g===0){C=!0;break}}else if(r[_++]=o[y++],b++,w=0,--d===1){C=!0;break}while((b|w)<S);if(C)break;do{if(b=Ah(r[x],o,y,d,0,e),b!==0){for(m=0;m<b;m++)r[_+m]=o[y+m];if(_+=b,y+=b,d-=b,d<=1){C=!0;break}}if(r[_++]=r[x++],--g===0){C=!0;break}if(w=Ch(o[y],r,x,g,0,e),w!==0){for(m=0;m<w;m++)r[_+m]=r[x+m];if(_+=w,x+=w,g-=w,g===0){C=!0;break}}if(r[_++]=o[y++],--d===1){C=!0;break}S--}while(b>=is||w>=is);if(C)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[_+m]=r[x+m];r[_+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[_+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=v+d-1,x=g-1,_=p+g-1,S=0,b=0;if(r[_--]=r[y--],--d===0){for(S=_-(g-1),m=0;m<g;m++)r[S+m]=o[m];return}if(g===1){for(_-=d,y-=d,b=_+1,S=y+1,m=d-1;m>=0;m--)r[b+m]=r[S+m];r[_]=o[x];return}for(var w=t;;){var C=0,A=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,A=0,--d===0){D=!0;break}}else if(r[_--]=o[x--],A++,C=0,--g===1){D=!0;break}while((C|A)<w);if(D)break;do{if(C=d-Ah(o[x],r,v,d,d-1,e),C!==0){for(_-=C,y-=C,d-=C,b=_+1,S=y+1,m=C-1;m>=0;m--)r[b+m]=r[S+m];if(d===0){D=!0;break}}if(r[_--]=o[x--],--g===1){D=!0;break}if(A=g-Ch(r[y],o,0,g,g-1,e),A!==0){for(_-=A,x-=A,g-=A,b=_+1,S=x+1,m=0;m<A;m++)r[b+m]=o[S+m];if(g<=1){D=!0;break}}if(r[_--]=r[y--],--d===0){D=!0;break}w--}while(C>=is||A>=is);if(D)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(_-=d,y-=d,b=_+1,S=y+1,m=d-1;m>=0;m--)r[b+m]=r[S+m];r[_]=o[x]}else{if(g===0)throw new Error;for(S=_-(g-1),m=0;m<g;m++)r[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function cc(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<Y2){i=w0(r,t,a,e),T0(r,t,a,t+i,e);return}var o=A5(r,e),s=T5(n);do{if(i=w0(r,t,a,e),i<s){var l=n;l>s&&(l=s),T0(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 lr=1,Ps=2,fo=4,C0=!1;function Dh(){C0||(C0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var D5=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A0}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,cc(a,A0)},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|=lr),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Dh(),c.z=0),isNaN(c.z2)&&(Dh(),c.z2=0),isNaN(c.zlevel)&&(Dh(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,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=Ce(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})(),kc;kc=Me.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ws={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-Ws.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?Ws.bounceIn(r*2)*.5:Ws.bounceOut(r*2-1)*.5+.5}},iu=Math.pow,vn=Math.sqrt,Rc=1e-8,X2=1e-4,D0=vn(3),ou=1/3,ta=Pi(),Sr=Pi(),So=Pi();function on(r){return r>-Rc&&r<Rc}function Z2(r){return r>Rc||r<-Rc}function bt(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 M0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Nc(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,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(on(c)&&on(f))if(on(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=f*f-4*c*h;if(on(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var y=vn(p),x=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);x<0?x=-iu(-x,ou):x=iu(x,ou),_<0?_=-iu(-_,ou):_=iu(_,ou);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var S=(2*c*s-3*o*f)/(2*vn(c*c*c)),b=Math.acos(S)/3,w=vn(c),C=Math.cos(b),d=(-s-2*w*C)/(3*o),m=(-s+w*(C+D0*Math.sin(b)))/(3*o),A=(-s+w*(C-D0*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),A>=0&&A<=1&&(i[v++]=A)}}return v}function K2(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(on(o)){if(Z2(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(on(c))n[0]=-i/(2*o);else if(c>0){var f=vn(c),u=(-i+f)/(2*o),h=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function xn(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,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function q2(r,e,t,a,n,i,o,s,l,u,c){var f,h=.005,v=1/0,d,p,g,m;ta[0]=l,ta[1]=u;for(var y=0;y<1;y+=.05)Sr[0]=bt(r,t,n,o,y),Sr[1]=bt(e,a,i,s,y),g=pi(ta,Sr),g<v&&(f=y,v=g);v=1/0;for(var x=0;x<32&&!(h<X2);x++)d=f-h,p=f+h,Sr[0]=bt(r,t,n,o,d),Sr[1]=bt(e,a,i,s,d),g=pi(Sr,ta),d>=0&&g<v?(f=d,v=g):(So[0]=bt(r,t,n,o,p),So[1]=bt(e,a,i,s,p),m=pi(So,ta),p<=1&&m<v?(f=p,v=m):h*=.5);return c&&(c[0]=bt(r,t,n,o,f),c[1]=bt(e,a,i,s,f)),vn(v)}function M5(r,e,t,a,n,i,o,s,l){for(var u=r,c=e,f=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=bt(r,t,n,o,d),g=bt(e,a,i,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Dt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ap(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function L5(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(on(i)){if(Z2(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(on(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=vn(c),u=(-o+f)/(2*i),h=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),h>=0&&h<=1&&(n[l++]=h)}}return l}function J2(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function sl(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 Q2(r,e,t,a,n,i,o,s,l){var u,c=.005,f=1/0;ta[0]=o,ta[1]=s;for(var h=0;h<1;h+=.05){Sr[0]=Dt(r,t,n,h),Sr[1]=Dt(e,a,i,h);var v=pi(ta,Sr);v<f&&(u=h,f=v)}f=1/0;for(var d=0;d<32&&!(c<X2);d++){var p=u-c,g=u+c;Sr[0]=Dt(r,t,n,p),Sr[1]=Dt(e,a,i,p);var v=pi(Sr,ta);if(p>=0&&v<f)u=p,f=v;else{So[0]=Dt(r,t,n,g),So[1]=Dt(e,a,i,g);var m=pi(So,ta);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Dt(r,t,n,u),l[1]=Dt(e,a,i,u)),vn(f)}function I5(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,v=Dt(r,t,n,h),d=Dt(e,a,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var P5=/cubic-bezier\(([0-9,\.e ]+)\)/;function qg(r){var e=r&&P5.exec(r);if(e){var t=e[1].split(","),a=+zr(t[0]),n=+zr(t[1]),i=+zr(t[2]),o=+zr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Nc(0,a,i,1,l,s)&&bt(0,n,o,1,s[0])}}}var k5=(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||ct,this.ondestroy=e.ondestroy||ct,this.onrestart=e.onrestart||ct,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=se(e)?e:Ws[e]||qg(e)},r})(),eT=(function(){function r(e){this.value=e}return r})(),R5=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new eT(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})(),Nl=(function(){function r(e){this._list=new R5,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 eT(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})(),L0={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 Gr(r){return r=Math.round(r),r<0?0:r>255?255:r}function N5(r){return r=Math.round(r),r<0?0:r>360?360:r}function ll(r){return r<0?0:r>1?1:r}function Mh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Gr(parseFloat(e)/100*255):Gr(parseInt(e,10))}function gi(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ll(parseFloat(e)/100):ll(parseFloat(e))}function Lh(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 sn(r,e,t){return r+(e-r)*t}function mr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function np(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var tT=new Nl(20),su=null;function ji(r,e){su&&np(su,e),su=tT.put(r,su||e.slice())}function fr(r,e){if(r){e=e||[];var t=tT.get(r);if(t)return np(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in L0)return np(e,L0[a]),ji(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)){mr(e,0,0,0,1);return}return mr(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),ji(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){mr(e,0,0,0,1);return}return mr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),ji(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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?mr(e,+u[0],+u[1],+u[2],1):mr(e,0,0,0,1);c=gi(u.pop());case"rgb":if(u.length>=3)return mr(e,Mh(u[0]),Mh(u[1]),Mh(u[2]),u.length===3?c:gi(u[3])),ji(r,e),e;mr(e,0,0,0,1);return;case"hsla":if(u.length!==4){mr(e,0,0,0,1);return}return u[3]=gi(u[3]),ip(u,e),ji(r,e),e;case"hsl":if(u.length!==3){mr(e,0,0,0,1);return}return ip(u,e),ji(r,e),e;default:return}}mr(e,0,0,0,1)}}function ip(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=gi(r[1]),n=gi(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],mr(e,Gr(Lh(o,i,t+1/3)*255),Gr(Lh(o,i,t)*255),Gr(Lh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function E5(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 c=((i-e)/6+o/2)/o,f=((i-t)/6+o/2)/o,h=((i-a)/6+o/2)/o;e===i?l=h-f:t===i?l=1/3+c-h:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function op(r,e){var t=fr(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 La(t,t.length===4?"rgba":"rgb")}}function Ih(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]=Gr(sn(o[0],s[0],l)),t[1]=Gr(sn(o[1],s[1],l)),t[2]=Gr(sn(o[2],s[2],l)),t[3]=ll(sn(o[3],s[3],l)),t}}function O5(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=fr(e[n]),s=fr(e[i]),l=a-n,u=La([Gr(sn(o[0],s[0],l)),Gr(sn(o[1],s[1],l)),Gr(sn(o[2],s[2],l)),ll(sn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function $s(r,e,t,a){var n=fr(r);if(r)return n=E5(n),e!=null&&(n[0]=N5(e)),t!=null&&(n[1]=gi(t)),a!=null&&(n[2]=gi(a)),La(ip(n),"rgba")}function Ec(r,e){var t=fr(r);if(t&&e!=null)return t[3]=ll(e),La(t,"rgba")}function La(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 Oc(r,e){var t=fr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var I0=new Nl(100);function sp(r){if(J(r)){var e=I0.get(r);return e||(e=op(r,-.1),I0.put(r,e)),e}else if(Pf(r)){var t=H({},r);return t.colorStops=$(r.colorStops,function(a){return{offset:a.offset,color:op(a.color,-.1)}}),t}return r}var Bc=Math.round;function ul(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=fr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var P0=1e-4;function ln(r){return r<P0&&r>-P0}function lu(r){return Bc(r*1e3)/1e3}function lp(r){return Bc(r*1e4)/1e4}function B5(r){return"matrix("+lu(r[0])+","+lu(r[1])+","+lu(r[2])+","+lu(r[3])+","+lp(r[4])+","+lp(r[5])+")"}var z5={left:"start",right:"end",center:"middle",middle:"middle"};function V5(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function G5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function F5(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 rT(r){return r&&!!r.image}function H5(r){return r&&!!r.svgElement}function Jg(r){return rT(r)||H5(r)}function aT(r){return r.type==="linear"}function nT(r){return r.type==="radial"}function iT(r){return r&&(r.type==="linear"||r.type==="radial")}function Nf(r){return"url(#"+r+")"}function oT(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 sT(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*sc,n=me(r.scaleX,1),i=me(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("+Bc(o*sc)+"deg, "+Bc(s*sc)+"deg)"),l.join(" ")}var j5=(function(){return Me.hasGlobalWindow&&se(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}})(),up=Array.prototype.slice;function wa(r,e,t){return(e-r)*t+r}function Ph(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=wa(e[i],t[i],a);return r}function W5(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]=wa(e[o][s],t[o][s],a)}return r}function uu(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function k0(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 $5(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 U5(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]:up.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 c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Us(r){if(zt(r)){var e=r.length;if(zt(r[0])){for(var t=[],a=0;a<e;a++)t.push(up.call(r[a]));return t}return up.call(r)}return r}function fc(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 Y5(r){return zt(r&&r[0])?2:1}var cu=0,hc=1,lT=2,ks=3,cp=4,fp=5,R0=6;function N0(r){return r===cp||r===fp}function fu(r){return r===hc||r===lT}var os=[0,0,0,0],X5=(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=R0,l=t;if(zt(t)){var u=Y5(t);s=u,(u===1&&!Be(t[0])||u===2&&!Be(t[0][0]))&&(o=!0)}else if(Be(t)&&!il(t))s=cu;else if(J(t))if(!isNaN(+t))s=cu;else{var c=fr(t);c&&(l=c,s=ks)}else if(Pf(t)){var f=H({},l);f.colorStops=$(t.colorStops,function(v){return{offset:v.offset,color:fr(v.color)}}),aT(t)?s=cp:nT(t)&&(s=fp),l=f}i===0?this.valType=s:(s!==this.valType||s===R0)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return a&&(h.easing=a,h.easingFunc=se(a)?a:Ws[a]||qg(a)),n.push(h),h},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=fu(n),u=N0(n),c=0;c<i;c++){var f=a[c],h=f.value,v=o.value;f.percent=f.time/e,s||(l&&c!==i-1?U5(h,v,n):u&&$5(h.colorStops,v.colorStops))}if(!s&&n!==fp&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,c=0;c<i;c++)n===cu?a[c].additiveValue=a[c].value-d:n===ks?a[c].additiveValue=uu([],a[c].value,d,-1):fu(n)&&(a[c].additiveValue=n===hc?uu([],a[c].value,d,-1):k0([],a[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===ks,c,f=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=t;var g=d.percent-v.percent,m=g===0?1:h((t-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?os:e[l];if((fu(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(fu(i))i===hc?Ph(y,v[n],d[n],m):W5(y,v[n],d[n],m);else if(N0(i)){var x=v[n],_=d[n],S=i===cp;e[l]={type:S?"linear":"radial",x:wa(x.x,_.x,m),y:wa(x.y,_.y,m),colorStops:$(x.colorStops,function(w,C){var A=_.colorStops[C];return{offset:wa(w.offset,A.offset,m),color:fc(Ph([],w.color,A.color,m))}}),global:_.global},S?(e[l].x2=wa(x.x2,_.x2,m),e[l].y2=wa(x.y2,_.y2,m)):e[l].r=wa(x.r,_.r,m)}else if(u)Ph(y,v[n],d[n],m),a||(e[l]=fc(y));else{var b=wa(v[n],d[n],m);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===cu?e[a]=e[a]+n:t===ks?(fr(e[a],os),uu(os,os,n,1),e[a]=fc(os)):t===hc?uu(e[a],e[a],n,1):t===lT&&k0(e[a],e[a],n,1)},r})(),Qg=(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){Wg("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,Pe(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 X5(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===ks&&u&&(u=fc(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Us(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Us(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,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var h=new k5({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,v);var m=t._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.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 $(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]=Us(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Pe(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 mo(){return new Date().getTime()}var Z5=(function(r){z(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=mo()-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&&(kc(a),!t._paused&&t.update())}kc(a)},e.prototype.start=function(){this._running||(this._time=mo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=mo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=mo()-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 Qg(t,a.loop);return this.addAnimator(n),n},e})(Lr),K5=300,kh=Me.domSupported,Rh=(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=$(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),E0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},O0=!1;function hp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function q5(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 Nh(r){r&&(r.zrByTouch=!0)}function J5(r,e){return yr(r.dom,new Q5(r,e),!0)}function uT(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 Q5=(function(){function r(e,t){this.stopPropagation=ct,this.stopImmediatePropagation=ct,this.preventDefault=ct,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Er={mousedown:function(r){r=yr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=yr(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=yr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=yr(this.dom,r);var e=r.toElement||r.relatedTarget;uT(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){O0=!0,r=yr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){O0||(r=yr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=yr(this.dom,r),Nh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Er.mousemove.call(this,r),Er.mousedown.call(this,r)},touchmove:function(r){r=yr(this.dom,r),Nh(r),this.handler.processGesture(r,"change"),Er.mousemove.call(this,r)},touchend:function(r){r=yr(this.dom,r),Nh(r),this.handler.processGesture(r,"end"),Er.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<K5&&Er.click.call(this,r)},pointerdown:function(r){Er.mousedown.call(this,r)},pointermove:function(r){hp(r)||Er.mousemove.call(this,r)},pointerup:function(r){Er.mouseup.call(this,r)},pointerout:function(r){hp(r)||Er.mouseout.call(this,r)}};L(["click","dblclick","contextmenu"],function(r){Er[r]=function(e){e=yr(this.dom,e),this.trigger(r,e)}});var vp={pointermove:function(r){hp(r)||vp.mousemove.call(this,r)},pointerup:function(r){vp.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 eR(r,e){var t=e.domHandlers;Me.pointerEventsSupported?L(Rh.pointer,function(a){vc(e,a,function(n){t[a].call(r,n)})}):(Me.touchEventsSupported&&L(Rh.touch,function(a){vc(e,a,function(n){t[a].call(r,n),q5(e)})}),L(Rh.mouse,function(a){vc(e,a,function(n){n=Xg(n),e.touching||t[a].call(r,n)})}))}function tR(r,e){Me.pointerEventsSupported?L(E0.pointer,t):Me.touchEventsSupported||L(E0.mouse,t);function t(a){function n(i){i=Xg(i),uT(r,i.target)||(i=J5(r,i),e.domHandlers[a].call(r,i))}vc(e,a,n,{capture:!0})}}function vc(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,rp(r.domTarget,e,t,a)}function Eh(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&p5(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var B0=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),rR=(function(r){z(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 B0(t,Er),kh&&(n._globalHandlerScope=new B0(document,vp)),eR(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Eh(this._localHandlerScope),kh&&Eh(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,kh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?tR(this,a):Eh(a)}},e})(Lr),cT=1;Me.hasGlobalWindow&&(cT=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zc=cT,dp=.4,pp="#333",gp="#ccc",aR="#eee",z0=Rf,V0=5e-5;function Pn(r){return r>V0||r<-V0}var kn=[],Wi=[],Oh=cr(),Bh=Math.abs,Ca=(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 Pn(this.rotation)||Pn(this.x)||Pn(this.y)||Pn(this.scaleX-1)||Pn(this.scaleY-1)||Pn(this.skewX)||Pn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(z0(a),this.invTransform=null);return}a=a||cr(),t?this.getLocalTransform(a):z0(a),e&&(t?Ma(a,e,a):Zg(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(kn);var a=kn[0]<0?-1:1,n=kn[1]<0?-1:1,i=((kn[0]-a)*t+a)/kn[0]||0,o=((kn[1]-n)*t+n)/kn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||cr(),Fo(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||cr(),Ma(Wi,e.invTransform,t),t=Wi);var a=this.originX,n=this.originY;(a||n)&&(Oh[4]=a,Oh[5]=n,Ma(Wi,t,Oh),Wi[4]-=a,Wi[5]-=n,t=Wi),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&&Pt(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&Pt(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Bh(e[0]-1)>1e-10&&Bh(e[3]-1)>1e-10?Math.sqrt(Bh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){fT(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,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-h*p*o,t[5]=-p*o-v*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=v*i,t[2]=h*o,u&&ki(t,t,u),t[4]+=a+c,t[5]+=n+f,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})(),fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function fT(r,e){for(var t=0;t<fa.length;t++){var a=fa[t];r[a]=e[a]}}var G0={};function hr(r,e){e=e||mn;var t=G0[e];t||(t=G0[e]=new Nl(500));var a=t.get(r);return a==null&&(a=yn.measureText(r,e).width,t.put(r,a)),a}function F0(r,e,t,a){var n=hr(r,e),i=Ef(e),o=Rs(0,n,t),s=ho(0,i,a),l=new we(o,s,n,i);return l}function El(r,e,t,a){var n=((r||"")+"").split(`
2
- `),i=n.length;if(i===1)return F0(n[0],e,t,a);for(var o=new we(0,0,0,0),s=0;s<n.length;s++){var l=F0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Rs(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function ho(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Ef(r){return hr("国",r)}function Hr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Vc(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,c="left",f="top";if(a instanceof Array)l+=Hr(a[0],t.width),u+=Hr(a[1],t.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var zh="__zr_normal__",Vh=fa.concat(["ignore"]),nR=ua(fa,function(r,e){return r[e]=!0,r},{ignore:!1}),$i={},iR=new we(0,0,0,0),Of=(function(){function r(e){this.id=V2(),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 c=iR;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($i,a,c):Vc($i,a,c),i.x=$i.x,i.y=$i.y,o=$i.align,s=$i.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Hr(f[0],c.width),v=Hr(f[1],c.height)),u=!0,i.originX=-i.x+h+(n?0:c.x),i.originY=-i.y+v+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;p&&this.canBeInsideText()?(m=a.insideFill,y=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=a.outsideFill,y=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=lr,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()?gp:pp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&fr(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,La(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||{},H(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(ue(e))for(var a=e,n=Pe(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!==zh)){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,Vh)},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(zh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===zh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ce(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){Wg("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,t,a,c),h&&h.useState(e,t,a,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lr),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],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],h=!!(f&&f.hoverLayer||a);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,h),g&&g.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lr)}},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=Ce(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=Ce(n,e),o=Ce(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];H(t,i),i.textConfig&&(a=a||{},H(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=H({},n?this.textConfig:a.textConfig),H(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<Vh.length;c++){var f=Vh[c],h=i&&nR[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&a[f]!=null&&(h?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ca,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),H(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|=lr;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 Qg(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=Ce(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){Gh(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Gh(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Gh(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=lr;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(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();pt(Of,Lr);pt(Of,Ca);function Gh(r,e,t,a,n){t=t||{};var i=[];hT(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var h=0;h<i.length;h++){var v=i[h];c&&v.done(c),f&&v.aborted(f),t.force&&v.duration(t.duration),v.start(t.easing)}return i}function Fh(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function oR(r){return zt(r[0])}function sR(r,e,t){if(zt(e[t]))if(zt(r[t])||(r[t]=[]),ir(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Fh(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(oR(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Fh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Fh(i,n,o);i.length=n.length}else r[t]=e[t]}function lR(r,e){return r===e||zt(r)&&zt(e)&&uR(r,e)}function uR(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 hT(r,e,t,a,n,i,o,s){for(var l=Pe(a),u=n.duration,c=n.delay,f=n.additive,h=n.setToFinal,v=!ue(i),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=a[m];if(y!=null&&t[m]!=null&&(v||i[m]))if(ue(y)&&!zt(y)&&!Pf(y)){if(e){s||(t[m]=y,r.updateDuringAnimation(e));continue}hT(r,m,t[m],y,n,i&&i[m],o,s)}else p.push(m);else s||(t[m]=y,r.updateDuringAnimation(e),p.push(m))}var x=p.length;if(!f&&x)for(var _=0;_<d.length;_++){var S=d[_];if(S.targetName===e){var b=S.stopTracks(p);if(b){var w=Ce(d,S);d.splice(w,1)}}}if(n.force||(p=je(p,function(M){return!lR(a[M],t[M])}),x=p.length),x>0||n.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},h&&(C={});for(var _=0;_<x;_++){var m=p[_];A[m]=t[m],h?C[m]=a[m]:t[m]=a[m]}}else if(h){D={};for(var _=0;_<x;_++){var m=p[_];D[m]=Us(t[m]),sR(t,a,m)}}var S=new Qg(t,!1,!1,f?je(d,function(I){return I.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),h&&C&&S.whenWithKeys(0,C,p),D&&S.whenWithKeys(0,D,p),S.whenWithKeys(u??500,s?A:a,p).delay(c||0),r.addAnimator(S,e),o.push(S)}}var ve=(function(r){z(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=Ce(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=Ce(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 we(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(),c=l.getLocalTransform(i);c?(we.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Of);ve.prototype.type="group";var dc={},vT={};function cR(r){delete vT[r]}function fR(r){if(!r)return!1;if(typeof r=="string")return Oc(r,1)<dp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Oc(e[n].color,1);return t/=a,t<dp}return!1}var hR=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new D5,o=a.renderer||"canvas";dc[o]||(o=Pe(dc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new dc[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Me.node&&!Me.worker&&!l?new rR(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Me.touchEventsSupported:!!c,h=44,v;f&&(v=me(a.pointerSize,h)),this.handler=new $2(i,s,u,s.root,v),this.animation=new Z5({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=fR(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=mo();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=mo();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 ve&&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,cR(this.id))},r})();function H0(r,e){var t=new hR(V2(),r,e);return vT[t.id]=t,t}function vR(r,e){dc[r]=e}var mp;function dR(r){if(typeof mp=="function")return mp(r)}function pR(r){mp=r}var j0=1e-4,dT=20;function gR(r){return r.replace(/^\s+|\s+$/g,"")}function We(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 K(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 J(r)?gR(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function ot(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),dT),r=(+r).toFixed(e),t?r:+r}function Ar(r){return r.sort(function(e,t){return e-t}),r}function aa(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 mR(r)}function mR(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 pT(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yR(r,e){var t=ua(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=$(r,function(v){return(isNaN(v)?0:v)/t*a*100}),i=a*100,o=$(n,function(v){return Math.floor(v)}),s=ua(o,function(v,d){return v+d},0),l=$(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return $(o,function(v){return v/a})}function xR(r,e){var t=Math.max(aa(r),aa(e)),a=r+e;return t>dT?a:ot(a,t)}var W0=9007199254740991;function gT(r){var e=Math.PI*2;return(r%e+e)%e}function cl(r){return r>-j0&&r<j0}var _R=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ha(r){if(r instanceof Date)return r;if(J(r)){var e=_R.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function bR(r){return Math.pow(10,em(r))}function em(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 mT(r,e){var t=em(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Hh(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 $0(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,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ra(r){var e=parseFloat(r);return e==r&&(e!==0||!J(r)||r.indexOf("x")<=0)?e:NaN}function yT(r){return!isNaN(Ra(r))}function xT(){return Math.round(Math.random()*9)}function _T(r,e){return e===0?r:_T(e,r%e)}function U0(r,e){return r==null?e:e==null?r:r*e/_T(r,e)}function He(r){throw new Error(r)}function Y0(r,e,t){return(e-r)*t+r}var bT="series\0",ST="\0_ec_\0";function Xe(r){return r instanceof Array?r:r==null?[]:[r]}function Ti(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 X0=["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 Ho(r){return ue(r)&&!W(r)&&!(r instanceof Date)?r.value:r}function SR(r){return ue(r)&&!(r instanceof Array)}function wT(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=ae();L(e,function(l,u){if(!ue(l)){e[u]=null;return}});var s=wR(r,o,t);return(a||n)&&TR(s,r,o,e),a&&CR(s,e),a||n?AR(s,e,n):i&&DR(s,e),MR(s),s}function wR(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"||fl(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function TR(r,e,t,a){L(a,function(n,i){if(!(!n||n.id==null)){var o=Ys(n.id),s=t.get(o);if(s!=null){var l=r[s];Zt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function CR(r,e){L(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)&&!fl(t)&&!fl(i)&&TT("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function AR(r,e,t){L(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||fl(n.existing)||n.existing&&a.id!=null&&!TT("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function DR(r,e){L(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function MR(r){var e=ae();L(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),L(r,function(t){var a=t.newOption;Zt(!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={})}),L(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(ue(i)){if(o.name=i.name!=null?Ys(i.name):n?n.name:bT+a,n)o.id=Ys(n.id);else if(i.id!=null)o.id=Ys(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 TT(r,e,t){var a=mt(e[r],null),n=mt(t[r],null);return a!=null&&n!=null&&a===n}function Ys(r){return mt(r,"")}function mt(r,e){return r==null?e:J(r)?r:Be(r)||Zd(r)?r+"":e}function tm(r){var e=r.name;return!!(e&&e.indexOf(bT))}function fl(r){return r&&r.id!=null&&Ys(r.id).indexOf(ST)===0}function LR(r){return ST+r}function IR(r,e,t){L(r,function(a){var n=a.newOption;ue(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=PR(e,n,a.existing,t))})}function PR(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function kR(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,c=o.length;u<c;u++){var f=mt(o[u].seriesId,null);if(f==null)return;for(var h=Xe(o[u].dataIndex),v=l&&l[f],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[f]||(s[f]={}))[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 c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Ci(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?$(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?$(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ne(){var r="__ec_inner_"+RR++;return function(e){return e[r]||(e[r]={})}}var RR=xT();function Xs(r,e,t){var a=rm(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,c){var f=Ol(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function rm(r,e){var t;if(J(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=ae(),i={},o=!1;return L(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&Ce(e.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var vt={useDefault:!0,enableAll:!1,enableNone:!1},NR={useDefault:!1,enableAll:!0,enableNone:!0};function Ol(r,e,t,a){a=a||vt;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?(Zt(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Zt(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 CT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function ER(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function OR(r){return r==="auto"?Me.domSupported?"html":"richText":r||"html"}function yp(r,e){var t=ae(),a=[];return L(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function AT(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Be(a)){var o=Y0(t||0,a,n);return ot(o,i?Math.max(aa(t||0),aa(a)):e)}else{if(J(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=Y0(v,d,n);s[f]=ot(o,i?Math.max(aa(v),aa(d)):e)}}return s}}var BR=".",Rn="___EC__COMPONENT__CONTAINER___",DT="___EC__EXTENDED_CLASS___";function na(r){var e={main:"",sub:""};if(r){var t=r.split(BR);e.main=t[0]||"",e.sub=t[1]||""}return e}function zR(r){Zt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function VR(r){return!!(r&&r[DT])}function am(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return GR(a)?n=(function(i){z(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},Xk(n,this)),H(n.prototype,t),n[DT]=!0,n.extend=this.extend,n.superCall=jR,n.superApply=WR,n.superClass=a,n}}function GR(r){return se(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function MT(r,e){r.extend=e.extend}var FR=Math.round(Math.random()*10);function HR(r){var e=["__\0is_clz",FR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function jR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function WR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Bf(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){zR(n),a.prototype.type=n;var i=na(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Rn){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Rn]&&(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=na(a),i=[],o=e[n.main];return o&&o[Rn]?L(o,function(s,l){l!==Rn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=na(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return L(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=na(a),i=e[n.main];return i&&i[Rn]};function t(a){var n=e[a.main];return(!n||!n[Rn])&&(n=e[a.main]={},n[Rn]=!0),n}}function Ai(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&&Ce(n,l)>=0||i&&Ce(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var $R=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UR=Ai($R),YR=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return UR(this,e,t)},r})(),xp=new Nl(50);function XR(r){if(typeof r=="string"){var e=xp.get(r);return e&&e.image}else return r}function nm(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=xp.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!zf(e)&&i.pending.push(o)):(e=yn.loadImage(r,Z0,Z0),e.__zrImageSrc=r,xp.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Z0(){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 zf(r){return r&&r.width&&r.height}var jh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ZR(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
- `);i=LT(t,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)IT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
- `),r.isTruncated=s}function LT(r,e,t,a){a=a||{};var n=H({},a);n.font=e,t=me(t,"..."),n.maxIterations=me(a.maxIterations,2);var i=n.minChar=me(a.minChar,0);n.cnCharWidth=hr("国",e);var o=n.ascCharWidth=hr("a",e);n.placeholder=me(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=hr(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 IT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=hr(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?KR(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=hr(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function KR(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 qR(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Ef(n),s=me(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,f=e.width,h;f!=null&&(t==="break"||t==="breakAll")?h=r?PT(r,e.font,f,t==="breakAll",0).lines:[]:h=r?r.split(`
5
- `):[];var v=h.length*s,d=me(e.height,v);if(v>d&&u){var p=Math.floor(d/s);c=c||h.length>p,h=h.slice(0,p)}if(r&&i&&f!=null)for(var g=LT(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},y=0;y<h.length;y++)IT(m,h[y],g),h[y]=m.textLine,c=c||m.isTruncated;for(var x=d,_=0,y=0;y<h.length;y++)_=Math.max(hr(h[y],n),_);f==null&&(f=_);var S=_;return a&&(x+=a[0]+a[2],S+=a[1]+a[3],f+=a[1]+a[3]),l&&(S=f),{lines:h,height:d,outerWidth:S,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:_,contentHeight:v,width:f,isTruncated:c}}var JR=(function(){function r(){}return r})(),K0=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),QR=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function e3(r,e){var t=new QR;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=jh.lastIndex=0,l;(l=jh.exec(r))!=null;){var u=l.index;u>s&&Wh(t,r.substring(s,u),e,o),Wh(t,l[2],e,o,l[1]),s=jh.lastIndex}s<r.length&&Wh(t,r.substring(s,r.length),e,o);var c=[],f=0,h=0,v=e.padding,d=i==="truncate",p=e.lineOverflow==="truncate",g={};function m(F,G,j){F.width=G,F.lineHeight=j,f+=j,h=Math.max(h,G)}e:for(var y=0;y<t.lines.length;y++){for(var x=t.lines[y],_=0,S=0,b=0;b<x.tokens.length;b++){var w=x.tokens[b],C=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=C.padding,D=A?A[1]+A[3]:0,M=w.font=C.font||e.font;w.contentHeight=Ef(M);var I=me(C.height,w.contentHeight);if(w.innerHeight=I,A&&(I+=A[0]+A[2]),w.height=I,w.lineHeight=sa(C.lineHeight,e.lineHeight,I),w.align=C&&C.align||e.align,w.verticalAlign=C&&C.verticalAlign||"middle",p&&n!=null&&f+w.lineHeight>n){var P=t.lines.length;b>0?(x.tokens=x.tokens.slice(0,b),m(x,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y),t.isTruncated=t.isTruncated||t.lines.length<P;break e}var k=C.width,R=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")w.percentWidth=k,c.push(w),w.contentWidth=hr(w.text,M);else{if(R){var E=C.backgroundColor,B=E&&E.image;B&&(B=XR(B),zf(B)&&(w.width=Math.max(w.width,B.width*I/B.height)))}var O=d&&a!=null?a-S:null;O!=null&&O<w.width?!R||O<D?(w.text="",w.width=w.contentWidth=0):(ZR(g,w.text,O-D,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=hr(w.text,M)):w.contentWidth=hr(w.text,M)}w.width+=D,S+=w.width,C&&(_=Math.max(_,w.lineHeight))}m(x,S,_)}t.outerWidth=t.width=me(a,h),t.outerHeight=t.height=me(n,f),t.contentHeight=f,t.contentWidth=h,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var y=0;y<c.length;y++){var w=c[y],V=w.percentWidth;w.width=parseInt(V,10)/100*t.width}return t}function Wh(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(a){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Hr(o.width,a.width)+v;s.length>0&&d+a.accumWidth>a.width&&(c=e.split(`
6
- `),u=!0),a.accumWidth=d}else{var p=PT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}else c=e.split(`
7
- `);for(var g=0;g<c.length;g++){var m=c[g],y=new JR;if(y.styleName=n,y.text=m,y.isLineHolder=!m&&!i,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:hr(m,l),!g&&!u){var x=(s[s.length-1]||(s[0]=new K0)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=y:(m||!_||i)&&x.push(y)}else s.push(new K0([y]))}}function t3(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var r3=ua(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function a3(r){return t3(r)?!!r3[r]:!0}function PT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<r.length;f++){var h=r.charAt(f);if(h===`
8
- `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=hr(h,e),d=a?!1:!a3(h);if(i.length?c+v>t:n+c+v>t){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=h,c=v)):d?(i.push(l),o.push(u),l=h,u=v):(i.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}var _p="__zr_style_"+Math.round(Math.random()*10),mi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Vf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};mi[_p]=!0;var q0=["z","z2","invisible"],n3=["invisible"],Mr=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Pe(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&i3(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new we(0,0,0,0)),a?we.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new we(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:H(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ps,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ps)},e.prototype.styleUpdated=function(){this.__dirty&=~Ps},e.prototype.createStyle=function(t){return kf(mi,t)},e.prototype.useStyle=function(t){t[_p]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[_p]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,q0)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Pe(c),h=0;h<f.length;h++){var v=f[h];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var d=Pe(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?n3:q0,h=0;h<p.length;h++){var v=p[h];a&&a[v]!=null?this[v]=a[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return H(t,a),t},e.prototype.getAnimationStyleProps=function(){return Vf},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=lr|Ps})(),e})(Of),$h=new we(0,0,0,0),Uh=new we(0,0,0,0);function i3(r,e,t){return $h.copy(r.getBoundingRect()),r.transform&&$h.applyTransform(r.transform),Uh.width=e,Uh.height=t,!$h.intersect(Uh)}var rr=Math.min,ar=Math.max,Yh=Math.sin,Xh=Math.cos,Nn=Math.PI*2,hu=Pi(),vu=Pi(),du=Pi();function Gf(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=rr(n,a[0]),i=ar(i,a[0]),o=rr(o,a[1]),s=ar(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function J0(r,e,t,a,n,i){n[0]=rr(r,t),n[1]=rr(e,a),i[0]=ar(r,t),i[1]=ar(e,a)}var Q0=[],e1=[];function o3(r,e,t,a,n,i,o,s,l,u){var c=K2,f=bt,h=c(r,t,n,o,Q0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=f(r,t,n,o,Q0[v]);l[0]=rr(d,l[0]),u[0]=ar(d,u[0])}h=c(e,a,i,s,e1);for(var v=0;v<h;v++){var p=f(e,a,i,s,e1[v]);l[1]=rr(p,l[1]),u[1]=ar(p,u[1])}l[0]=rr(r,l[0]),u[0]=ar(r,u[0]),l[0]=rr(o,l[0]),u[0]=ar(o,u[0]),l[1]=rr(e,l[1]),u[1]=ar(e,u[1]),l[1]=rr(s,l[1]),u[1]=ar(s,u[1])}function s3(r,e,t,a,n,i,o,s){var l=J2,u=Dt,c=ar(rr(l(r,t,n),1),0),f=ar(rr(l(e,a,i),1),0),h=u(r,t,n,c),v=u(e,a,i,f);o[0]=rr(r,n,h),o[1]=rr(e,i,v),s[0]=ar(r,n,h),s[1]=ar(e,i,v)}function l3(r,e,t,a,n,i,o,s,l){var u=an,c=nn,f=Math.abs(n-i);if(f%Nn<1e-4&&f>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(hu[0]=Xh(n)*t+r,hu[1]=Yh(n)*a+e,vu[0]=Xh(i)*t+r,vu[1]=Yh(i)*a+e,u(s,hu,vu),c(l,hu,vu),n=n%Nn,n<0&&(n=n+Nn),i=i%Nn,i<0&&(i=i+Nn),n>i&&!o?i+=Nn:n<i&&o&&(n+=Nn),o){var h=i;i=n,n=h}for(var v=0;v<i;v+=Math.PI/2)v>n&&(du[0]=Xh(v)*t+r,du[1]=Yh(v)*a+e,u(s,du,s),c(l,du,l))}var Ke={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},En=[],On=[],Yr=[],ja=[],Xr=[],Zr=[],Zh=Math.min,Kh=Math.max,Bn=Math.cos,zn=Math.sin,_a=Math.abs,bp=Math.PI,Ja=bp*2,qh=typeof Float32Array<"u",ss=[];function Jh(r){var e=Math.round(r/bp*1e8)/1e8;return e%2*bp}function im(r,e){var t=Jh(r[0]);t<0&&(t+=Ja);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=Ja?n=t+Ja:e&&t-n>=Ja?n=t-Ja:!e&&t>n?n=t+(Ja-Jh(t-n)):e&&t<n&&(n=t-(Ja-Jh(n-t))),r[0]=t,r[1]=n}var va=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=_a(a/zc/e)||0,this._uy=_a(a/zc/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ke.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=_a(e-this._xi),n=_a(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ke.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Ke.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Ke.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),ss[0]=n,ss[1]=i,im(ss,o),n=ss[0],i=ss[1];var s=i-n;return this.addData(Ke.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Bn(i)*a+e,this._yi=zn(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Ke.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ke.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&qh&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();qh&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,qh&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Yr[0]=Yr[1]=Xr[0]=Xr[1]=Number.MAX_VALUE,ja[0]=ja[1]=Zr[0]=Zr[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],n=t,i=a),s){case Ke.M:t=n=e[o++],a=i=e[o++],Xr[0]=n,Xr[1]=i,Zr[0]=n,Zr[1]=i;break;case Ke.L:J0(t,a,e[o],e[o+1],Xr,Zr),t=e[o++],a=e[o++];break;case Ke.C:o3(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Xr,Zr),t=e[o++],a=e[o++];break;case Ke.Q:s3(t,a,e[o++],e[o++],e[o],e[o+1],Xr,Zr),t=e[o++],a=e[o++];break;case Ke.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(n=Bn(v)*f+u,i=zn(v)*h+c),l3(u,c,f,h,v,d,p,Xr,Zr),t=Bn(d)*f+u,a=zn(d)*h+c;break;case Ke.R:n=t=e[o++],i=a=e[o++];var g=e[o++],m=e[o++];J0(n,i,n+g,i+m,Xr,Zr);break;case Ke.Z:t=n,a=i;break}an(Yr,Yr,Xr),nn(ja,ja,Zr)}return o===0&&(Yr[0]=Yr[1]=ja[0]=ja[1]=0),new we(Yr[0],Yr[1],ja[0]-Yr[0],ja[1]-Yr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<t;){var v=e[h++],d=h===1;d&&(i=e[h],o=e[h+1],s=i,l=o);var p=-1;switch(v){case Ke.M:i=s=e[h++],o=l=e[h++];break;case Ke.L:{var g=e[h++],m=e[h++],y=g-i,x=m-o;(_a(y)>a||_a(x)>n||h===t-1)&&(p=Math.sqrt(y*y+x*x),i=g,o=m);break}case Ke.C:{var _=e[h++],S=e[h++],g=e[h++],m=e[h++],b=e[h++],w=e[h++];p=M5(i,o,_,S,g,m,b,w,10),i=b,o=w;break}case Ke.Q:{var _=e[h++],S=e[h++],g=e[h++],m=e[h++];p=I5(i,o,_,S,g,m,10),i=g,o=m;break}case Ke.A:var C=e[h++],A=e[h++],D=e[h++],M=e[h++],I=e[h++],P=e[h++],k=P+I;h+=1,d&&(s=Bn(I)*D+C,l=zn(I)*M+A),p=Kh(D,M)*Zh(Ja,Math.abs(P)),i=Bn(k)*D+C,o=zn(k)*M+A;break;case Ke.R:{s=i=e[h++],l=o=e[h++];var R=e[h++],E=e[h++];p=R*2+E*2;break}case Ke.Z:{var y=s-i,x=l-o;p=Math.sqrt(y*y+x*x),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,c,f,h,v=t<1,d,p,g=0,m=0,y,x=0,_,S;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=t*p,!y)))e:for(var b=0;b<o;){var w=a[b++],C=b===1;switch(C&&(u=a[b],c=a[b+1],s=u,l=c),w!==Ke.L&&x>0&&(e.lineTo(_,S),x=0),w){case Ke.M:s=u=a[b++],l=c=a[b++],e.moveTo(u,c);break;case Ke.L:{f=a[b++],h=a[b++];var A=_a(f-u),D=_a(h-c);if(A>n||D>i){if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;e.lineTo(u*(1-I)+f*I,c*(1-I)+h*I);break e}g+=M}e.lineTo(f,h),u=f,c=h,x=0}else{var P=A*A+D*D;P>x&&(_=f,S=h,x=P)}break}case Ke.C:{var k=a[b++],R=a[b++],E=a[b++],B=a[b++],O=a[b++],V=a[b++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;xn(u,k,E,O,I,En),xn(c,R,B,V,I,On),e.bezierCurveTo(En[1],On[1],En[2],On[2],En[3],On[3]);break e}g+=M}e.bezierCurveTo(k,R,E,B,O,V),u=O,c=V;break}case Ke.Q:{var k=a[b++],R=a[b++],E=a[b++],B=a[b++];if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;sl(u,k,E,I,En),sl(c,R,B,I,On),e.quadraticCurveTo(En[1],On[1],En[2],On[2]);break e}g+=M}e.quadraticCurveTo(k,R,E,B),u=E,c=B;break}case Ke.A:var F=a[b++],G=a[b++],j=a[b++],Y=a[b++],X=a[b++],Q=a[b++],fe=a[b++],he=!a[b++],ne=j>Y?j:Y,q=_a(j-Y)>.001,ie=X+Q,Z=!1;if(v){var M=d[m++];g+M>y&&(ie=X+Q*(y-g)/M,Z=!0),g+=M}if(q&&e.ellipse?e.ellipse(F,G,j,Y,fe,X,ie,he):e.arc(F,G,ne,X,ie,he),Z)break e;C&&(s=Bn(X)*j+F,l=zn(X)*Y+G),u=Bn(ie)*j+F,c=zn(ie)*Y+G;break;case Ke.R:s=u=a[b],l=c=a[b+1],f=a[b++],h=a[b++];var re=a[b++],ye=a[b++];if(v){var M=d[m++];if(g+M>y){var ge=y-g;e.moveTo(f,h),e.lineTo(f+Zh(ge,re),h),ge-=re,ge>0&&e.lineTo(f+re,h+Zh(ge,ye)),ge-=ye,ge>0&&e.lineTo(f+Kh(re-ge,0),h+ye),ge-=re,ge>0&&e.lineTo(f,h+Kh(ye-ge,0));break e}g+=M}e.rect(f,h,re,ye);break;case Ke.Z:if(v){var M=d[m++];if(g+M>y){var I=(y-g)/M;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=M}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Ke,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function en(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function u3(r,e,t,a,n,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>a+f&&c>i+f&&c>s+f||c<e-f&&c<a-f&&c<i-f&&c<s-f||u>r+f&&u>t+f&&u>n+f&&u>o+f||u<r-f&&u<t-f&&u<n-f&&u<o-f)return!1;var h=q2(r,e,t,a,n,i,o,s,u,c,null);return h<=f/2}function kT(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var c=Q2(r,e,t,a,n,i,s,l,null);return c<=u/2}var t1=Math.PI*2;function ur(r){return r%=t1,r<0&&(r+=t1),r}var ls=Math.PI*2;function c3(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(a-n)%ls<1e-4)return!0;if(i){var f=a;a=ur(n),n=ur(f)}else a=ur(a),n=ur(n);a>n&&(n+=ls);var h=Math.atan2(l,s);return h<0&&(h+=ls),h>=a&&h<=n||h+ls>=a&&h+ls<=n}function Ta(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var Wa=va.CMD,Vn=Math.PI*2,f3=1e-4;function h3(r,e){return Math.abs(r-e)<f3}var Wt=[-1,-1,-1],_r=[-1,-1];function v3(){var r=_r[0];_r[0]=_r[1],_r[1]=r}function d3(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var c=Nc(e,a,i,s,u,Wt);if(c===0)return 0;for(var f=0,h=-1,v=void 0,d=void 0,p=0;p<c;p++){var g=Wt[p],m=g===0||g===1?.5:1,y=bt(r,t,n,o,g);y<l||(h<0&&(h=K2(e,a,i,s,_r),_r[1]<_r[0]&&h>1&&v3(),v=bt(e,a,i,s,_r[0]),h>1&&(d=bt(e,a,i,s,_r[1]))),h===2?g<_r[0]?f+=v<e?m:-m:g<_r[1]?f+=d<v?m:-m:f+=s<d?m:-m:g<_r[0]?f+=v<e?m:-m:f+=s<v?m:-m)}return f}function p3(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=L5(e,a,i,s,Wt);if(l===0)return 0;var u=J2(e,a,i);if(u>=0&&u<=1){for(var c=0,f=Dt(e,a,i,u),h=0;h<l;h++){var v=Wt[h]===0||Wt[h]===1?.5:1,d=Dt(r,t,n,Wt[h]);d<o||(Wt[h]<u?c+=f<e?v:-v:c+=i<f?v:-v)}return c}else{var v=Wt[0]===0||Wt[0]===1?.5:1,d=Dt(r,t,n,Wt[0]);return d<o?0:i<e?v:-v}}function g3(r,e,t,a,n,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Wt[0]=-l,Wt[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Vn-1e-4){a=0,n=Vn;var c=i?1:-1;return o>=Wt[0]+r&&o<=Wt[1]+r?c:0}if(a>n){var f=a;a=n,n=f}a<0&&(a+=Vn,n+=Vn);for(var h=0,v=0;v<2;v++){var d=Wt[v];if(d+r>o){var p=Math.atan2(s,d),c=i?1:-1;p<0&&(p=Vn+p),(p>=a&&p<=n||p+Vn>=a&&p+Vn<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),h+=c)}}return h}function RT(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Wa.M&&d>1&&(t||(s+=Ta(l,u,c,f,a,n))),g&&(l=i[d],u=i[d+1],c=l,f=u),p){case Wa.M:c=i[d++],f=i[d++],l=c,u=f;break;case Wa.L:if(t){if(en(l,u,i[d],i[d+1],e,a,n))return!0}else s+=Ta(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Wa.C:if(t){if(u3(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=d3(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Wa.Q:if(t){if(kT(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=p3(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Wa.A:var m=i[d++],y=i[d++],x=i[d++],_=i[d++],S=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(S)*x+m,v=Math.sin(S)*_+y,g?(c=h,f=v):s+=Ta(l,u,h,v,a,n);var C=(a-m)*_/x+m;if(t){if(c3(m,y,_,S,S+b,w,e,C,n))return!0}else s+=g3(m,y,_,S,S+b,w,C,n);l=Math.cos(S+b)*x+m,u=Math.sin(S+b)*_+y;break;case Wa.R:c=l=i[d++],f=u=i[d++];var A=i[d++],D=i[d++];if(h=c+A,v=f+D,t){if(en(c,f,h,f,e,a,n)||en(h,f,h,v,e,a,n)||en(h,v,c,v,e,a,n)||en(c,v,c,f,e,a,n))return!0}else s+=Ta(h,f,h,v,a,n),s+=Ta(c,v,c,f,a,n);break;case Wa.Z:if(t){if(en(l,u,c,f,e,a,n))return!0}else s+=Ta(l,u,c,f,a,n);l=c,u=f;break}}return!t&&!h3(u,f)&&(s+=Ta(l,u,c,f,a,n)||0),s!==0}function m3(r,e,t){return RT(r,0,!1,e,t)}function y3(r,e,t,a){return RT(r,e,!0,t,a)}var Gc=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},mi),x3={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Vf.style)},Qh=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),De=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<Qh.length;++s)n[Qh[s]]=this[Qh[s]];n.__dirty|=lr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Pe(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(J(t)){var a=Oc(t,0);return a>.5?pp:a>.2?aR:gp}else if(t)return gp}return pp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(J(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Oc(t,0)<dp;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~fo},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new va(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&fo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),y3(s,l/u,t,a)))return!0}if(this.hasFill())return m3(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=fo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:H(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&fo)},e.prototype.createStyle=function(t){return kf(Gc,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=H({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=H({},n.shape),H(u,a.shape)):(u=H({},i?this.shape:n.shape),H(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=H({},this.shape);for(var c={},f=Pe(u),h=0;h<f.length;h++){var v=f[h];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return x3},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=(function(i){z(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ce(t.style)},o.prototype.getDefaultShape=function(){return ce(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=lr|Ps|fo})(),e})(Mr),_3=le({strokeFirst:!0,font:mn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Gc),Lo=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return a!=null&&a!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return kf(_3,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=El(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Mr);Lo.prototype.type="tspan";var b3=le({x:0,y:0},mi),S3={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Vf.style)};function w3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Lt=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return kf(b3,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=w3(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return S3},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new we(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Mr);Lt.prototype.type="image";function T3(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,c;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+c>n&&(f=u+c,u*=n/f,c*=n/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+c,a+i),c!==0&&r.arc(t+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var yo=Math.round;function NT(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(yo(a*2)===yo(n*2)&&(r.x1=r.x2=li(a,s,!0)),yo(i*2)===yo(o*2)&&(r.y1=r.y2=li(i,s,!0))),r}}function ET(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=li(a,s,!0),r.y=li(n,s,!0),r.width=Math.max(li(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(li(n+o,s,!1)-r.y,o===0?0:1)),r}}function li(r,e,t){if(!e)return r;var a=yo(r*2);return(a+yo(e))%2===0?a/2:(a+(t?1:-1))/2}var C3=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),A3={},Re=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new C3},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=ET(A3,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?T3(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(De);Re.prototype.type="rect";var r1={fill:"#000"},a1=2,D3={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Vf.style)},Oe=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=r1,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,I3(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new we(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||r1},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return H(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Pe(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},H(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return D3},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||mn,n=t.padding,i=c1(t),o=qR(i,t),s=ev(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=t.x||0,g=t.y||0,m=t.align||d.align||"left",y=t.verticalAlign||d.verticalAlign||"top",x=p,_=ho(g,o.contentHeight,y);if(s||n){var S=Rs(p,c,m),b=ho(g,u,y);s&&this._renderBackground(t,t,S,b,c,u)}_+=v/2,n&&(x=u1(p,m,n),y==="top"?_+=n[0]:y==="bottom"&&(_-=n[2]));for(var w=0,C=!1,A=l1("fill"in t?t.fill:(C=!0,d.fill)),D=s1("stroke"in t?t.stroke:!l&&(!d.autoStroke||C)?(w=a1,d.stroke):null),M=t.textShadowBlur>0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k<h.length;k++){var R=this._getOrCreateChild(Lo),E=R.createStyle();R.useStyle(E),E.text=h[k],E.x=x,E.y=_,E.textAlign=m,E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,M&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=D,E.fill=A,D&&(E.lineWidth=t.lineWidth||w,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,i1(E,t),_+=v,I&&R.setBoundingRect(new we(Rs(E.x,f,E.textAlign),ho(E.y,P,E.textBaseline),f,P))}},e.prototype._updateRichTexts=function(){var t=this.style,a=c1(t),n=e3(a,t),i=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,f=this._defaultStyle,h=t.align||f.align,v=t.verticalAlign||f.verticalAlign;this.isTruncated=!!n.isTruncated;var d=Rs(u,o,h),p=ho(c,s,v),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+i;ev(t)&&this._renderBackground(t,t,d,p,o,s);for(var x=!!t.backgroundColor,_=0;_<n.lines.length;_++){for(var S=n.lines[_],b=S.tokens,w=b.length,C=S.lineHeight,A=S.width,D=0,M=g,I=y,P=w-1,k=void 0;D<w&&(k=b[D],!k.align||k.align==="left");)this._placeToken(k,t,C,m,M,"left",x),A-=k.width,M+=k.width,D++;for(;P>=0&&(k=b[P],k.align==="right");)this._placeToken(k,t,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(i-(M-g)-(y-I)-A)/2;D<=P;)k=b[D],this._placeToken(k,t,C,m,M+k.width/2,"center",x),M+=k.width,D++;m+=C}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=i+n/2;c==="top"?f=i+t.height/2:c==="bottom"&&(f=i+n-t.height/2);var h=!t.isLineHolder&&ev(u);h&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var v=!!u.backgroundColor,d=t.textPadding;d&&(o=u1(o,s,d),f-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Lo),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,x=0,_=l1("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,m.fill)),S=s1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!m.autoStroke||y)?(x=a1,m.stroke):null),b=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||mn,g.opacity=sa(u.opacity,a.opacity,1),i1(g,u),S&&(g.lineWidth=sa(u.lineWidth,a.lineWidth,x),g.lineDash=me(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=S),_&&(g.fill=_);var w=t.contentWidth,C=t.contentHeight;p.setBoundingRect(new we(Rs(g.x,w,g.textAlign),ho(g.y,C,g.textBaseline),w,C))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,f=l&&l.image,h=l&&!f,v=t.borderRadius,d=this,p,g;if(h||t.lineHeight||u&&c){p=this._getOrCreateChild(Re),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=n,m.y=i,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=me(t.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Lt),g.onload=function(){d.dirtyStyle()};var x=g.style;x.image=l.image,x.x=n,x.y=i,x.width=o,x.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=me(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(p||g).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=sa(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return BT(t)&&(a=[t.fontStyle,t.fontWeight,OT(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&zr(a)||t.textFont||t.font},e})(Mr),M3={left:!0,right:1,center:1},L3={top:1,bottom:1,middle:1},n1=["fontStyle","fontWeight","fontSize","fontFamily"];function OT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Fg+"px":r+"px"}function i1(r,e){for(var t=0;t<n1.length;t++){var a=n1[t],n=e[a];n!=null&&(r[a]=n)}}function BT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function I3(r){return o1(r),L(r.rich,o1),r}function o1(r){if(r){r.font=Oe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||M3[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||L3[t]?t:"top";var a=r.padding;a&&(r.padding=Yg(r.padding))}}function s1(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function l1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function u1(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function c1(r){var e=r.text;return e!=null&&(e+=""),e}function ev(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var de=Ne(),Sp=function(r,e,t,a){if(a){var n=de(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=de(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},f1=1,h1={},zT=Ne(),om=Ne(),sm=0,Bl=1,Ff=2,Kt=["emphasis","blur","select"],hl=["normal","emphasis","blur","select"],jo=10,P3=9,yi="highlight",pc="downplay",Zs="select",gc="unselect",Ks="toggleSelect";function Ui(r){return r!=null&&r!=="none"}function Hf(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function VT(r){Hf(r,"emphasis",Ff)}function GT(r){r.hoverState===Ff&&Hf(r,"normal",sm)}function lm(r){Hf(r,"blur",Bl)}function FT(r){r.hoverState===Bl&&Hf(r,"normal",sm)}function k3(r){r.selected=!0}function R3(r){r.selected=!1}function v1(r,e,t){e(r,t)}function Ga(r,e,t){v1(r,e,t),r.isGroup&&r.traverse(function(a){v1(a,e,t)})}function Fc(r,e){switch(e){case"emphasis":r.hoverState=Ff;break;case"normal":r.hoverState=sm;break;case"blur":r.hoverState=Bl;break;case"select":r.selected=!0}}function N3(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function E3(r,e,t,a){var n=t&&Ce(t,"select")>=0,i=!1;if(r instanceof De){var o=zT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ui(s)||Ui(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!Ui(u.fill)&&Ui(s)?(i=!0,a=H({},a),u=H({},u),u.fill=sp(s)):!Ui(u.stroke)&&Ui(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=sp(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??jo)}return a}function O3(r,e,t){if(t&&t.z2==null){t=H({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??P3)}return t}function B3(r,e,t){var a=Ce(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:N3(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=H({},t),o=H({opacity:a?n:i.opacity*.1},o),t.style=o),t}function tv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return E3(this,r,e,t);if(r==="blur")return B3(this,r,t);if(r==="select")return O3(this,r,t)}return t}function Di(r){r.stateProxy=tv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=tv),t&&(t.stateProxy=tv)}function d1(r,e){!$T(r,e)&&!r.__highByOuter&&Ga(r,VT)}function p1(r,e){!$T(r,e)&&!r.__highByOuter&&Ga(r,GT)}function Na(r,e){r.__highByOuter|=1<<(e||0),Ga(r,VT)}function Ea(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ga(r,GT)}function HT(r){Ga(r,lm)}function um(r){Ga(r,FT)}function jT(r){Ga(r,k3)}function WT(r){Ga(r,R3)}function $T(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function UT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=om(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){FT(u)}),s&&t.push(i)),o.isBlured=!1}),L(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function wp(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&um(h)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!h||e==="series"&&c)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||lm(g)}),zt(e))i(u.getData(),e);else if(ue(e))for(var d=Pe(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),om(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function Tp(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){om(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){lm(i)})}}}function z3(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=Ci(n,e);i=(W(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=de(o);wp(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&wp(a,c,f,t)}}}function cm(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function V3(r,e,t){var a=de(r),n=cm(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Tp(a.componentMainType,a.componentIndex,t),L(i,function(s){return d1(s,e)})):(wp(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Tp(a.componentMainType,a.componentIndex,t),d1(r,e))}function G3(r,e,t){UT(t);var a=de(r),n=cm(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?L(n,function(i){return p1(i,e)}):p1(r,e)}function F3(r,e,t){if(Ap(e)){var a=e.dataType,n=r.getData(a),i=Ci(n,e);W(i)||(i=[i]),r[e.type===Ks?"toggleSelect":e.type===Zs?"select":"unselect"](i,a)}}function g1(r){var e=r.getAllData();L(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?jT(i):WT(i)})})}function H3(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();L(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function xi(r,e,t){ui(r,!0),Ga(r,Di),Cp(r,e,t)}function j3(r){ui(r,!1)}function it(r,e,t,a){a?j3(r):xi(r,e,t)}function Cp(r,e,t){var a=de(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var m1=["emphasis","blur","select"],W3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function kt(r,e,t,a){t=t||"itemStyle";for(var n=0;n<m1.length;n++){var i=m1[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[W3[t]]()}}function ui(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function vl(r){return!!(r&&r.__highDownDispatcher)}function $3(r,e,t){var a=de(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function U3(r){var e=h1[r];return e==null&&f1<=32&&(e=h1[r]=f1++),e}function Ap(r){var e=r.type;return e===Zs||e===gc||e===Ks}function y1(r){var e=r.type;return e===yi||e===pc}function Y3(r){var e=zT(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Yi=va.CMD,X3=[[],[],[]],x1=Math.sqrt,Z3=Math.atan2;function YT(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,c=Yi.M,f=Yi.C,h=Yi.L,v=Yi.R,d=Yi.A,p=Yi.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case c:i=1;break;case h:i=1;break;case f:i=3;break;case p:i=2;break;case d:var g=e[4],m=e[5],y=x1(e[0]*e[0]+e[1]*e[1]),x=x1(e[2]*e[2]+e[3]*e[3]),_=Z3(-e[1]/x,e[0]/y);t[o]*=y,t[o++]+=g,t[o]*=x,t[o++]+=m,t[o++]*=y,t[o++]*=x,t[o++]+=_,t[o++]+=_,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Pt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Pt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var S=X3[l];S[0]=t[o++],S[1]=t[o++],Pt(S,S,e),t[s++]=S[0],t[s++]=S[1]}}r.increaseVersion()}}var rv=Math.sqrt,pu=Math.sin,gu=Math.cos,us=Math.PI;function _1(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Dp(r,e){return(r[0]*e[0]+r[1]*e[1])/(_1(r)*_1(e))}function b1(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Dp(r,e))}function S1(r,e,t,a,n,i,o,s,l,u,c){var f=l*(us/180),h=gu(f)*(r-t)/2+pu(f)*(e-a)/2,v=-1*pu(f)*(r-t)/2+gu(f)*(e-a)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=rv(d),s*=rv(d));var p=(n===i?-1:1)*rv((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,m=p*-s*h/o,y=(r+t)/2+gu(f)*g-pu(f)*m,x=(e+a)/2+pu(f)*g+gu(f)*m,_=b1([1,0],[(h-g)/o,(v-m)/s]),S=[(h-g)/o,(v-m)/s],b=[(-1*h-g)/o,(-1*v-m)/s],w=b1(S,b);if(Dp(S,b)<=-1&&(w=us),Dp(S,b)>=1&&(w=0),w<0){var C=Math.round(w/us*1e6)/1e6;w=us*2+C%2*us}c.addData(u,y,x,o,s,_,w,f,i)}var K3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,q3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function J3(r){var e=new va;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=va.CMD,l=r.match(K3);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,v=c.match(q3)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,C=t,A=a,D=void 0,M=void 0;switch(f){case"l":t+=v[g++],a+=v[g++],h=s.L,e.addData(h,t,a);break;case"L":t=v[g++],a=v[g++],h=s.L,e.addData(h,t,a);break;case"m":t+=v[g++],a+=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="l";break;case"M":t=v[g++],a=v[g++],h=s.M,e.addData(h,t,a),n=t,i=a,f="L";break;case"h":t+=v[g++],h=s.L,e.addData(h,t,a);break;case"H":t=v[g++],h=s.L,e.addData(h,t,a);break;case"v":a+=v[g++],h=s.L,e.addData(h,t,a);break;case"V":a=v[g++],h=s.L,e.addData(h,t,a);break;case"C":h=s.C,e.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],a=v[g-1];break;case"c":h=s.C,e.addData(h,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a,v[g++]+t,v[g++]+a),t+=v[g-2],a+=v[g-1];break;case"S":m=t,y=a,D=e.len(),M=e.data,o===s.C&&(m+=t-M[D-4],y+=a-M[D-3]),h=s.C,C=v[g++],A=v[g++],t=v[g++],a=v[g++],e.addData(h,m,y,C,A,t,a);break;case"s":m=t,y=a,D=e.len(),M=e.data,o===s.C&&(m+=t-M[D-4],y+=a-M[D-3]),h=s.C,C=t+v[g++],A=a+v[g++],t+=v[g++],a+=v[g++],e.addData(h,m,y,C,A,t,a);break;case"Q":C=v[g++],A=v[g++],t=v[g++],a=v[g++],h=s.Q,e.addData(h,C,A,t,a);break;case"q":C=v[g++]+t,A=v[g++]+a,t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,C,A,t,a);break;case"T":m=t,y=a,D=e.len(),M=e.data,o===s.Q&&(m+=t-M[D-4],y+=a-M[D-3]),t=v[g++],a=v[g++],h=s.Q,e.addData(h,m,y,t,a);break;case"t":m=t,y=a,D=e.len(),M=e.data,o===s.Q&&(m+=t-M[D-4],y+=a-M[D-3]),t+=v[g++],a+=v[g++],h=s.Q,e.addData(h,m,y,t,a);break;case"A":x=v[g++],_=v[g++],S=v[g++],b=v[g++],w=v[g++],C=t,A=a,t=v[g++],a=v[g++],h=s.A,S1(C,A,t,a,b,w,x,_,S,h,e);break;case"a":x=v[g++],_=v[g++],S=v[g++],b=v[g++],w=v[g++],C=t,A=a,t+=v[g++],a+=v[g++],h=s.A,S1(C,A,t,a,b,w,x,_,S,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),t=n,a=i),o=h}return e.toStatic(),e}var XT=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(De);function ZT(r){return r.setData!=null}function KT(r,e){var t=J3(r),a=H({},e);return a.buildPath=function(n){if(ZT(n)){n.setData(t.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;t.rebuildPath(i,1)}},a.applyTransform=function(n){YT(t,n),this.dirtyShape()},a}function qT(r,e){return new XT(KT(r,e))}function Q3(r,e){var t=KT(r,e),a=(function(n){z(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(XT);return a}function eN(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new De(e);return o.createPathProxy(),o.buildPath=function(s){if(ZT(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function fm(r,e){e=e||{};var t=new De;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?YT(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var tN=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Fa=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tN},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(De);Fa.prototype.type="circle";var rN=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),jf=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rN},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,c=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e})(De);jf.prototype.type="ellipse";var JT=Math.PI,av=JT*2,Gn=Math.sin,Xi=Math.cos,aN=Math.acos,Nt=Math.atan2,w1=Math.abs,qs=Math.sqrt,Ns=Math.max,Kr=Math.min,Nr=1e-4;function nN(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=f*l-c*u;if(!(h*h<Nr))return h=(c*(e-i)-f*(r-n))/h,[r+h*l,e+h*u]}function mu(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/qs(s*s+l*l),c=u*l,f=-u*s,h=r+c,v=e+f,d=t+c,p=a+f,g=(h+d)/2,m=(v+p)/2,y=d-h,x=p-v,_=y*y+x*x,S=n-i,b=h*p-d*v,w=(x<0?-1:1)*qs(Ns(0,S*S*_-b*b)),C=(b*x-y*w)/_,A=(-b*y-x*w)/_,D=(b*x+y*w)/_,M=(-b*y+x*w)/_,I=C-g,P=A-m,k=D-g,R=M-m;return I*I+P*P>k*k+R*R&&(C=D,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(n/S-1),y1:A*(n/S-1)}}function iN(r){var e;if(W(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function oN(r,e){var t,a=Ns(e.r,0),n=Ns(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=w1(u-l),d=v>av&&v%av;if(d>Nr&&(v=d),!(a>Nr))r.moveTo(c,f);else if(v>av-Nr)r.moveTo(c+a*Xi(l),f+a*Gn(l)),r.arc(c,f,a,l,u,!h),n>Nr&&(r.moveTo(c+n*Xi(u),f+n*Gn(u)),r.arc(c,f,n,u,l,h));else{var p=void 0,g=void 0,m=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,C=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,k=void 0,R=a*Xi(l),E=a*Gn(l),B=n*Xi(u),O=n*Gn(u),V=v>Nr;if(V){var F=e.cornerRadius;F&&(t=iN(F),p=t[0],g=t[1],m=t[2],y=t[3]);var G=w1(a-n)/2;if(x=Kr(G,m),_=Kr(G,y),S=Kr(G,p),b=Kr(G,g),A=w=Ns(x,_),D=C=Ns(S,b),(w>Nr||C>Nr)&&(M=a*Xi(u),I=a*Gn(u),P=n*Xi(l),k=n*Gn(l),v<JT)){var j=nN(R,E,P,k,M,I,B,O);if(j){var Y=R-j[0],X=E-j[1],Q=M-j[0],fe=I-j[1],he=1/Gn(aN((Y*Q+X*fe)/(qs(Y*Y+X*X)*qs(Q*Q+fe*fe)))/2),ne=qs(j[0]*j[0]+j[1]*j[1]);A=Kr(w,(a-ne)/(he+1)),D=Kr(C,(n-ne)/(he-1))}}}if(!V)r.moveTo(c+R,f+E);else if(A>Nr){var q=Kr(m,A),ie=Kr(y,A),Z=mu(P,k,R,E,a,q,h),re=mu(M,I,B,O,a,ie,h);r.moveTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),A<w&&q===ie?r.arc(c+Z.cx,f+Z.cy,A,Nt(Z.y0,Z.x0),Nt(re.y0,re.x0),!h):(q>0&&r.arc(c+Z.cx,f+Z.cy,q,Nt(Z.y0,Z.x0),Nt(Z.y1,Z.x1),!h),r.arc(c,f,a,Nt(Z.cy+Z.y1,Z.cx+Z.x1),Nt(re.cy+re.y1,re.cx+re.x1),!h),ie>0&&r.arc(c+re.cx,f+re.cy,ie,Nt(re.y1,re.x1),Nt(re.y0,re.x0),!h))}else r.moveTo(c+R,f+E),r.arc(c,f,a,l,u,!h);if(!(n>Nr)||!V)r.lineTo(c+B,f+O);else if(D>Nr){var q=Kr(p,D),ie=Kr(g,D),Z=mu(B,O,M,I,n,-ie,h),re=mu(R,E,P,k,n,-q,h);r.lineTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),D<C&&q===ie?r.arc(c+Z.cx,f+Z.cy,D,Nt(Z.y0,Z.x0),Nt(re.y0,re.x0),!h):(ie>0&&r.arc(c+Z.cx,f+Z.cy,ie,Nt(Z.y0,Z.x0),Nt(Z.y1,Z.x1),!h),r.arc(c,f,n,Nt(Z.cy+Z.y1,Z.cx+Z.x1),Nt(re.cy+re.y1,re.cx+re.x1),h),q>0&&r.arc(c+re.cx,f+re.cy,q,Nt(re.y1,re.x1),Nt(re.y0,re.x0),!h))}else r.lineTo(c+B,f+O),r.arc(c,f,n,u,l,h)}r.closePath()}}}var sN=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),qt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new sN},e.prototype.buildPath=function(t,a){oN(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(De);qt.prototype.type="sector";var lN=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),zl=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new lN},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e})(De);zl.prototype.type="ring";function uN(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,c,f;if(a){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=r.length;h<v;h++)an(c,c,r[h]),nn(f,f,r[h]);an(c,c,a[0]),nn(f,f,a[1])}for(var h=0,v=r.length;h<v;h++){var d=r[h];if(t)l=r[h?h-1:v-1],u=r[(h+1)%v];else if(h===0||h===v-1){n.push(Da(r[h]));continue}else l=r[h-1],u=r[h+1];si(i,u,l),lc(i,i,e);var p=Jd(d,l),g=Jd(d,u),m=p+g;m!==0&&(p/=m,g/=m),lc(o,i,-p),lc(s,i,g);var y=g0([],d,o),x=g0([],d,s);a&&(nn(y,y,c),an(y,y,f),nn(x,x,c),an(x,x,f)),n.push(y),n.push(x)}return t&&n.push(n.shift()),n}function QT(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=uN(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var cN=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Jt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new cN},e.prototype.buildPath=function(t,a){QT(t,a,!0)},e})(De);Jt.prototype.type="polygon";var fN=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Qt=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fN},e.prototype.buildPath=function(t,a){QT(t,a,!1)},e})(De);Qt.prototype.type="polyline";var hN={},vN=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),St=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=NT(hN,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e})(De);St.prototype.type="line";var er=[],dN=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function T1(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?M0:bt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?M0:bt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?ap:Dt)(r.x1,r.cpx1,r.x2,e),(t?ap:Dt)(r.y1,r.cpy1,r.y2,e)]}var Vl=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dN},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,c=a.cpx2,f=a.cpy2,h=a.percent;h!==0&&(t.moveTo(n,i),c==null||f==null?(h<1&&(sl(n,l,o,h,er),l=er[1],o=er[2],sl(i,u,s,h,er),u=er[1],s=er[2]),t.quadraticCurveTo(l,u,o,s)):(h<1&&(xn(n,l,c,o,h,er),l=er[1],c=er[2],o=er[3],xn(i,u,f,s,h,er),u=er[1],f=er[2],s=er[3]),t.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(t){return T1(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=T1(this.shape,t,!0);return Go(a,a)},e})(De);Vl.prototype.type="bezier-curve";var pN=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Wf=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new pN},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+n,f*o+i),t.arc(n,i,o,s,l,!u)},e})(De);Wf.prototype.type="arc";var hm=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),De.prototype.getBoundingRect.call(this)},e})(De),eC=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Gl=(function(r){z(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(eC),tC=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(eC),Fn=[0,0],Hn=[0,0],yu=new Se,xu=new Se,Hc=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new Se;for(var a=0;a<2;a++)this._axes[a]=new Se;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);Se.sub(n[0],a[1],a[0]),Se.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,n=!t;return yu.set(1/0,1/0),xu.set(0,0),!this._intersectCheckOneSide(this,e,yu,xu,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,yu,xu,n,-1)&&(a=!1,n)||n||Se.copy(t,a?yu:xu),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Fn),this._getProjMinMaxOnAxis(l,t._corners,Hn),Fn[1]<Hn[0]||Fn[0]>Hn[1]){if(s=!1,i)return s;var c=Math.abs(Hn[0]-Fn[1]),f=Math.abs(Fn[0]-Hn[1]);Math.min(c,f)>n.len()&&(c<f?Se.scale(n,u,-c*o):Se.scale(n,u,f*o))}else if(a){var c=Math.abs(Hn[0]-Fn[1]),f=Math.abs(Fn[0]-Hn[1]);Math.min(c,f)<a.len()&&(c<f?Se.scale(a,u,c*o):Se.scale(a,u,-f*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(n)+i[e];s=Math.min(c,s),l=Math.max(c,l)}a[0]=s,a[1]=l},r})(),gN=[],mN=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new we(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(gN)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e})(Mr),rC=Ne();function Wo(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=me(a.duration,200),c=me(a.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),se(f)&&(f=f(t,n)),se(u)&&(u=u(t));var h={duration:u||0,delay:f,easing:c};return h}else return null}function vm(r,e,t,a,n,i,o){var s=!1,l;se(n)?(o=i,i=n,n=null):ue(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=Wo(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Ve(r,e,t,a,n,i){vm("update",r,e,t,a,n,i)}function at(r,e,t,a,n,i){vm("enter",r,e,t,a,n,i)}function wo(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function _n(r,e,t,a,n,i){wo(r)||vm("leave",r,e,t,a,n,i)}function C1(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),_n(r,{style:{opacity:0}},e,t,a)}function dl(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||C1(n,e,t,a)}):C1(r,e,t,a)}function jr(r){rC(r).oldStyle=r.style}function yN(r){return rC(r).oldStyle}var jc=Math.max,Wc=Math.min,Mp={};function xN(r){return De.extend(r)}var _N=Q3;function bN(r,e){return _N(r,e)}function Wr(r,e){Mp[r]=e}function dm(r){if(Mp.hasOwnProperty(r))return Mp[r]}function $f(r,e,t,a){var n=qT(r,e);return t&&(a==="center"&&(t=nC(t,n.getBoundingRect())),iC(n,t)),n}function aC(r,e,t){var a=new Lt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(nC(e,i))}}});return a}function nC(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Tr=eN;function iC(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Io(r,e){return NT(r,r,{lineWidth:e}),r}function SN(r){return ET(r.shape,r.shape,r.style),r}var mc=li;function _i(r,e){for(var t=Rf([]);r&&r!==e;)Ma(t,r.getLocalTransform(),t),r=r.parent;return t}function Fr(r,e,t){return e&&!zt(e)&&(e=Ca.getLocalTransform(e)),t&&(e=Fo([],e)),Pt([],r,e)}function Uf(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Fr(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function A1(r){return!r.isGroup}function wN(r){return r.shape!=null}function Fl(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){A1(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wN(o)&&(s.shape=H({},o.shape)),s}var i=a(r);e.traverse(function(o){if(A1(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Ve(o,l,t,de(o).dataIndex)}}})}function oC(r,e){return $(r,function(t){var a=t[0];a=jc(a,e.x),a=Wc(a,e.x+e.width);var n=t[1];return n=jc(n,e.y),n=Wc(n,e.y+e.height),[a,n]})}function TN(r,e){var t=jc(r.x,e.x),a=Wc(r.x+r.width,e.x+e.width),n=jc(r.y,e.y),i=Wc(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Hl(r,e,t){var a=H({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),le(n,t),new Lt(a)):$f(r.replace("path://",""),a,t,"center")}function Es(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(sC(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function sC(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=nv(c,f,l,u);if(CN(h))return!1;var v=r-n,d=e-i,p=nv(v,d,l,u)/h;if(p<0||p>1)return!1;var g=nv(v,d,c,f)/h;return!(g<0||g>1)}function nv(r,e,t,a){return r*a-t*e}function CN(r){return r<=1e-6&&r>=-1e-6}function Ri(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=J(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&L(Pe(l),function(c){te(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=de(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:le({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function D1(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Cn(r,e){if(r)if(W(r))for(var t=0;t<r.length;t++)D1(r[t],e);else D1(r,e)}Wr("circle",Fa);Wr("ellipse",jf);Wr("sector",qt);Wr("ring",zl);Wr("polygon",Jt);Wr("polyline",Qt);Wr("rect",Re);Wr("line",St);Wr("bezierCurve",Vl);Wr("arc",Wf);const Ni=Object.freeze(Object.defineProperty({__proto__:null,Arc:Wf,BezierCurve:Vl,BoundingRect:we,Circle:Fa,CompoundPath:hm,Ellipse:jf,Group:ve,Image:Lt,IncrementalDisplayable:mN,Line:St,LinearGradient:Gl,OrientedBoundingRect:Hc,Path:De,Point:Se,Polygon:Jt,Polyline:Qt,RadialGradient:tC,Rect:Re,Ring:zl,Sector:qt,Text:Oe,applyTransform:Fr,clipPointsByRect:oC,clipRectByRect:TN,createIcon:Hl,extendPath:bN,extendShape:xN,getShapeClass:dm,getTransform:_i,groupTransition:Fl,initProps:at,isElementRemoved:wo,lineLineIntersect:sC,linePolygonIntersect:Es,makeImage:aC,makePath:$f,mergePath:Tr,registerShape:Wr,removeElement:_n,removeElementWithFadeOut:dl,resizePath:iC,setTooltipConfig:Ri,subPixelOptimize:mc,subPixelOptimizeLine:Io,subPixelOptimizeRect:SN,transformDirection:Uf,traverseElements:Cn,updateProps:Ve},Symbol.toStringTag,{value:"Module"}));var Yf={};function lC(r,e){for(var t=0;t<Kt.length;t++){var a=Kt[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Lp(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=se(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Kt.length;u++){var c=Kt[u],f=e[c];l[c]=me(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Rt(r,e,t,a){t=t||Yf;for(var n=r instanceof Oe,i=!1,o=0;o<hl.length;o++){var s=e[hl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Oe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Lp(t,e),c=e.normal,f=!!c.getShallow("show"),h=Je(c,a&&a.normal,t,!1,!n);h.text=u.normal,n||r.setTextConfig($c(c,t,!1));for(var o=0;o<Kt.length;o++){var v=Kt[o],s=e[v];if(s){var d=l.ensureState(v),p=!!me(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Je(s,a&&a[v],t,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=$c(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),t.enableTextSetter&&($o(l).setLabelText=function(m){var y=Lp(t,e,m);lC(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Ct(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<Kt.length;a++){var n=Kt[a];t[n]=r.getModel([n,e])}return t}function Je(r,e,t,a,n){var i={};return AN(i,r,t,a,n),e&&H(i,e),i}function $c(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=me(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",a}function AN(r,e,t,a,n){t=t||Yf;var i=e.ecModel,o=i&&i.option.textStyle,s=DN(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);P1(l[u]={},c,o,t,a,n,!1,!0)}}l&&(r.rich=l);var f=e.get("overflow");f&&(r.overflow=f);var h=e.get("minMargin");h!=null&&(r.margin=h),P1(r,e,o,t,a,n,!0,!1)}function DN(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Yf).rich;if(t){e=e||{};for(var a=Pe(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var M1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],L1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],I1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function P1(r,e,t,a,n,i,o,s){t=!n&&t||Yf;var l=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=me(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=me(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var v=me(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var d=me(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<M1.length;p++){var g=M1[p],m=me(e.getShallow(g),t[g]);m!=null&&(r[g]=m)}for(var p=0;p<L1.length;p++){var g=L1[p],m=e.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!a.disableBox){for(var p=0;p<I1.length;p++){var g=I1[p],m=e.getShallow(g);m!=null&&(r[g]=m)}var x=e.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function pm(r,e){var t=e&&e.getModel("textStyle");return zr([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var $o=Ne();function uC(r,e,t,a){if(r){var n=$o(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function cC(r,e,t,a,n){var i=$o(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=me(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=AT(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=Lp({labelDataIndex:e,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);lC(r,h)}r.percent=0,(i.prevValue==null?at:Ve)(r,{percent:1},a,e,null,u)}var MN=["textStyle","color"],iv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ov=new Oe,LN=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(MN):null)},r.prototype.getFont=function(){return pm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<iv.length;a++)t[iv[a]]=this.getShallow(iv[a]);return ov.useStyle(t),ov.update(),ov.getBoundingRect()},r})(),fC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],IN=Ai(fC),PN=(function(){function r(){}return r.prototype.getLineStyle=function(e){return IN(this,e)},r})(),hC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],kN=Ai(hC),RN=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return kN(this,e,t)},r})(),$e=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){be(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ce(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Me.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();am($e);HR($e);pt($e,PN);pt($e,RN);pt($e,YR);pt($e,LN);var NN=Math.round(Math.random()*10);function Uo(r){return[r||"",NN++].join("_")}function EN(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=na(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=na(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function ON(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,f=u.noEntryList,h={};for(L(i,function(y){h[y]=!0});f.length;){var v=f.pop(),d=c[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),L(d.successor,p?m:g)}L(h,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){h[y]=!0,g(y)}};function t(i){var o={},s=[];return L(i,function(l){var u=a(o,l),c=u.originalDeps=e(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),L(f,function(h){Ce(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);Ce(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return L(i,function(l){Ce(o,l)>=0&&s.push(l)}),s}}function An(r,e){return be(be({},r,!0),e,!0)}const BN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},zN={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Uc="ZH",gm="EN",To=gm,yc={},mm={},vC=Me.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||To).toUpperCase();return r.indexOf(Uc)>-1?Uc:To})():To;function dC(r,e){r=r.toUpperCase(),mm[r]=new $e(e),yc[r]=e}function VN(r){if(J(r)){var e=yc[r.toUpperCase()]||{};return r===Uc||r===gm?ce(e):be(ce(e),ce(yc[To]),!1)}else return be(ce(r),ce(yc[To]),!1)}function Ip(r){return mm[r]}function GN(){return mm[To]}dC(gm,BN);dC(Uc,zN);var ym=1e3,xm=ym*60,Js=xm*60,Cr=Js*24,k1=Cr*365,Os={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},_u="{yyyy}-{MM}-{dd}",R1={year:"{yyyy}",month:"{yyyy}-{MM}",day:_u,hour:_u+" "+Os.hour,minute:_u+" "+Os.minute,second:_u+" "+Os.second,millisecond:Os.none},sv=["year","month","day","hour","minute","second","millisecond"],pC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $a(r,e){return r+="","0000".substr(0,e-r.length)+r}function Co(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function FN(r){return r===Co(r)}function HN(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Xf(r,e,t,a){var n=ha(r),i=n[_m(t)](),o=n[Ao(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Zf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[pl(t)](),f=(c-1)%12+1,h=n[Kf(t)](),v=n[qf(t)](),d=n[Jf(t)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof $e?a:Ip(a||vC)||GN(),y=m.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,$a(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,$a(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$a(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$a(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$a(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$a(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,$a(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,$a(d,3)).replace(/{S}/g,d+"")}function jN(r,e,t,a,n){var i=null;if(J(t))i=t;else if(se(t))i=t(r.value,e,{level:r.level});else{var o=H({},Os);if(r.level>0)for(var s=0;s<sv.length;++s)o[sv[s]]="{primary|"+o[sv[s]]+"}";var l=t?t.inherit===!1?t:le(t,o):o,u=gC(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=pC.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(W(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Xf(new Date(r.value),i,n,a)}function gC(r,e){var t=ha(r),a=t[Ao(e)]()+1,n=t[Zf(e)](),i=t[pl(e)](),o=t[Kf(e)](),s=t[qf(e)](),l=t[Jf(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function N1(r,e,t){var a=Be(r)?ha(r):r;switch(e=e||gC(r,t),e){case"year":return a[_m(t)]();case"half-year":return a[Ao(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ao(t)]()+1)/4);case"month":return a[Ao(t)]();case"day":return a[Zf(t)]();case"half-day":return a[pl(t)]()/24;case"hour":return a[pl(t)]();case"minute":return a[Kf(t)]();case"second":return a[qf(t)]();case"millisecond":return a[Jf(t)]()}}function _m(r){return r?"getUTCFullYear":"getFullYear"}function Ao(r){return r?"getUTCMonth":"getMonth"}function Zf(r){return r?"getUTCDate":"getDate"}function pl(r){return r?"getUTCHours":"getHours"}function Kf(r){return r?"getUTCMinutes":"getMinutes"}function qf(r){return r?"getUTCSeconds":"getSeconds"}function Jf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function WN(r){return r?"setUTCFullYear":"setFullYear"}function mC(r){return r?"setUTCMonth":"setMonth"}function yC(r){return r?"setUTCDate":"setDate"}function xC(r){return r?"setUTCHours":"setHours"}function _C(r){return r?"setUTCMinutes":"setMinutes"}function bC(r){return r?"setUTCSeconds":"setSeconds"}function SC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function wC(r){if(!yT(r))return J(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function TC(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Yo=Yg;function Pp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&zr(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ha(r):r;if(isNaN(+l)){if(s)return"-"}else return Xf(l,a,t)}if(e==="ordinal")return Zd(r)?n(r):Be(r)&&i(r)?r+"":"-";var u=Ra(r);return i(u)?wC(u):Zd(r)?n(r):typeof r=="boolean"?r+"":"-"}var E1=["a","b","c","d","e","f","g"],lv=function(r,e){return"{"+r+(e??"")+"}"};function CC(r,e,t){W(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=E1[i];r=r.replace(lv(o),lv(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(lv(E1[l],s),t?Ut(u):u)}return r}function $N(r,e,t){return L(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function UN(r,e){var t=J(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ut(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ut(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Mi(r,e){return e=e||"transparent",J(r)?r:ue(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Yc(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var xc=L,AC=["left","right","top","bottom","width","height"],ci=[["width","left","right"],["height","top","bottom"]];function bm(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var bi=bm;xe(bm,"vertical");xe(bm,"horizontal");function YN(r,e,t){var a=e.width,n=e.height,i=K(r.left,a),o=K(r.top,n),s=K(r.right,a),l=K(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Yo(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function yt(r,e,t){t=Yo(t||0);var a=e.width,n=e.height,i=K(r.left,a),o=K(r.top,n),s=K(r.right,a),l=K(r.bottom,n),u=K(r.width,a),c=K(r.height,n),f=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new we(i+t[3],o+t[0],u,c);return d.margin=t,d}function Qf(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new we(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=yt(le({width:u.width,height:u.height},e),t,a),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===r&&r.markRedraw(),!0}function XN(r,e){return r[ci[e][0]]!=null||r[ci[e][1]]!=null&&r[ci[e][2]]!=null}function gl(r){var e=r.layoutMode||r.constructor.layoutMode;return ue(e)?e:e?{type:e}:null}function bn(r,e,t){var a=t&&t.ignoreSize;!W(a)&&(a=[a,a]);var n=o(ci[0],0),i=o(ci[1],1);u(ci[0],r,n),u(ci[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(xc(c,function(x){d[x]=r[x]}),xc(c,function(x){s(e,x)&&(h[x]=d[x]=e[x]),l(h,x)&&v++,l(d,x)&&p++}),a[f])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){xc(c,function(v){f[v]=h[v]})}}function Xo(r){return DC({},r)}function DC(r,e){return e&&r&&xc(AC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var ZN=Ne(),Ie=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Uo("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=gl(this),i=n?Xo(t):{},o=a.getTheme();be(t,o.get(this.mainType)),be(t,this.getDefaultOption()),n&&bn(t,i,n)},e.prototype.mergeOption=function(t,a){be(this.option,t,!0);var n=gl(this);n&&bn(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!VR(t))return t.defaultOption;var a=ZN(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=be(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Ol(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})($e);MT(Ie,$e);Bf(Ie);EN(Ie);ON(Ie,KN);function KN(r){var e=[];return L(Ie.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=$(e,function(t){return na(t).main}),r!=="dataset"&&Ce(e,"dataset")<=0&&e.unshift("dataset"),e}var MC="";typeof navigator<"u"&&(MC=navigator.platform||"");var Zi="rgba(0, 0, 0, 0.2)";const qN={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var LC=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ir="original",Vt="arrayRows",Pr="objectRows",da="keyedColumns",dn="typedArray",IC="unknown",la="column",Zo="row",It={Must:1,Might:2,Not:3},PC=Ne();function JN(r){PC(r).datasetMap=ae()}function kC(r,e,t){var a={},n=wm(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=PC(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),L(r,function(p,g){var m=ue(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),a[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});L(r,function(p,g){var m=p.name,y=d(p);if(c==null){var x=h.valueWayDim;v(a[m],x,y),v(o,x,y),h.valueWayDim+=y}else if(c===g)v(a[m],0,y),v(i,0,y);else{var x=h.categoryWayDim;v(a[m],x,y),v(o,x,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Sm(r,e,t){var a={},n=wm(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Pr||i===da)&&L(o,function(c,f){(ue(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},h=[],v=0,d=Math.min(5,t);v<d;v++){var p=NC(e.data,i,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===It.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&h[c.n]===It.Not)&&(c.n=v),m(c)&&h[c.n]!==It.Not)return c;g||(p===It.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function wm(r){var e=r.get("data",!0);if(!e)return Ol(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},vt).models[0]}function QN(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ol(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},vt).models}function RC(r,e){return NC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function NC(r,e,t,a,n,i){var o,s=5;if(ir(r))return It.Not;var l,u;if(a){var c=a[i];ue(c)?(l=c.name,u=c.type):J(c)&&(l=c)}if(u!=null)return u==="ordinal"?It.Must:It.Not;if(e===Vt){var f=r;if(t===Zo){for(var h=f[i],v=0;v<(h||[]).length&&v<s;v++)if((o=_(h[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[n+v];if(d&&(o=_(d[i]))!=null)return o}}else if(e===Pr){var p=r;if(!l)return It.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=_(g[l]))!=null)return o}}else if(e===da){var m=r;if(!l)return It.Not;var h=m[l];if(!h||ir(h))return It.Not;for(var v=0;v<h.length&&v<s;v++)if((o=_(h[v]))!=null)return o}else if(e===Ir)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],x=Ho(g);if(!W(x))return It.Not;if((o=_(x[i]))!=null)return o}function _(S){var b=J(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return b?It.Might:It.Not;if(b&&S!=="-")return It.Must}return It.Not}var kp=ae();function eE(r,e){Zt(kp.get(r)==null&&e),kp.set(r,e)}function tE(r,e,t){var a=kp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var O1=Ne(),rE=Ne(),Tm=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=Xe(this.get("color",!0)),i=this.get("colorLayer",!0);return EC(this,O1,n,i,e,t,a)},r.prototype.clearColorPalette=function(){nE(this,O1)},r})();function Rp(r,e,t,a){var n=Xe(r.get(["aria","decal","decals"]));return EC(r,rE,n,null,e,t,a)}function aE(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function EC(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:aE(a,o);if(c=c||t,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function nE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var bu,cs,B1,z1="\0_ec_inner",iE=1,Cm=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new $e(i),this._locale=new $e(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=F1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,F1(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?B1(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&L(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=a&&a.replaceMergeMainTypeMap;JN(this),L(t,function(f,h){f!=null&&(Ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ce(f):be(n[h],f,!0))}),u&&u.each(function(f,h){Ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ie.topologicalTravel(s,Ie.getAllClassMainTypes(),c,this);function c(f){var h=tE(this,f,Xe(t[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=wT(v,h,d);IR(p,f,Ie),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;L(p,function(_,S){var b=_.existing,w=_.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=Ie.getClass(f,_.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=_.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var D=H({componentIndex:S},_.keyInfo);b=new A(w,this,this,D),H(b,D),_.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,y),f==="series"&&bu(this)}this._seriesIndices||bu(this)},e.prototype.getOption=function(){var t=ce(this.option);return L(t,function(a,n){if(Ie.hasClass(n)){for(var i=Xe(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!fl(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[z1],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],L(Xe(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=V1("id",i,s):o!=null?l=V1("name",o,s):l=je(s,function(u){return!!u}),G1(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):je(this._componentsMap.get(n),function(u){return!!u});return l(G1(o,t));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return t.filter?je(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(se(t)){var o=a,s=t;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=J(t)?i.get(t):ue(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=mt(t,null);return je(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return je(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return je(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){cs(this),L(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){L(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){cs(this),L(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return L(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return cs(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){cs(this);var n=[];L(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ae(n)},e.prototype.restoreData=function(t){bu(this);var a=this._componentsMap,n=[];a.each(function(i,o){Ie.hasClass(o)&&n.push(o)}),Ie.topologicalTravel(n,Ie.getAllClassMainTypes(),function(i){L(a.get(i),function(o){o&&(i!=="series"||!oE(o,t))&&o.restoreData()})})},e.internalField=(function(){bu=function(t){var a=t._seriesIndices=[];L(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=ae(a)},cs=function(t){},B1=function(t,a){t.option={},t.option[z1]=iE,t._componentsMap=ae({series:[]}),t._componentsCount=ae();var n=a.aria;ue(n)&&n.enabled==null&&(n.enabled=!0),sE(a,t._theme.option),be(a,qN,!1),t._mergeOption(a,null)}})(),e})($e);function oE(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function sE(r,e){var t=r.color&&!r.colorLayer;L(e,function(a,n){n==="colorLayer"&&t||Ie.hasClass(n)||(typeof a=="object"?r[n]=r[n]?be(r[n],a,!1):ce(a):r[n]==null&&(r[n]=a))})}function V1(r,e,t){if(W(e)){var a=ae();return L(e,function(i){if(i!=null){var o=mt(i,null);o!=null&&a.set(i,!0)}}),je(t,function(i){return i&&a.get(i[r])})}else{var n=mt(e,null);return je(t,function(i){return i&&n!=null&&i[r]===n})}}function G1(r,e){return e.hasOwnProperty("subType")?je(r,function(t){return t&&t.subType===e.subType}):r}function F1(r){var e=ae();return r&&L(Xe(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}pt(Cm,Tm);var lE=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],OC=(function(){function r(e){L(lE,function(t){this[t]=ee(e[t],e)},this)}return r})(),uv={},jl=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];L(uv,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){L(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){uv[e]=t},r.get=function(e){return uv[e]},r})(),uE=/^(min|max)?(.+)$/,cE=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(L(Xe(e.series),function(o){o&&o.data&&ir(o.data)&&Pc(o.data)}),L(Xe(e.dataset),function(o){o&&o.source&&ir(o.source)&&Pc(o.source)})),e=ce(e);var n=this._optionBackup,i=fE(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ce(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=ce(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)hE(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!dE(o,this._currentMediaIndices)&&(s=$(o,function(c){return ce(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r})();function fE(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&W(u)&&L(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),L(l,function(v){return h(v)}),L(a,function(v){return h(v.option)});function h(v){L(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function hE(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return L(r,function(i,o){var s=o.match(uE);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();vE(a[u],i,l)||(n=!1)}}),n}function vE(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function dE(r,e){return r.join(",")===e.join(",")}var kr=L,ml=ue,H1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cv(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=H1.length;t<a;t++){var n=H1[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?be(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?be(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Bt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,le(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Bs(r){Bt(r,"itemStyle"),Bt(r,"lineStyle"),Bt(r,"areaStyle"),Bt(r,"label"),Bt(r,"labelLine"),Bt(r,"upperLabel"),Bt(r,"edgeLabel")}function ht(r,e){var t=ml(r)&&r[e],a=ml(t)&&t.textStyle;if(a)for(var n=0,i=X0.length;n<i;n++){var o=X0[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function xr(r){r&&(Bs(r),ht(r,"label"),r.emphasis&&ht(r.emphasis,"label"))}function pE(r){if(ml(r)){cv(r),Bs(r),ht(r,"label"),ht(r,"upperLabel"),ht(r,"edgeLabel"),r.emphasis&&(ht(r.emphasis,"label"),ht(r.emphasis,"upperLabel"),ht(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(cv(e),xr(e));var t=r.markLine;t&&(cv(t),xr(t));var a=r.markArea;a&&xr(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!ir(i))for(var o=0;o<i.length;o++)xr(i[o]);L(r.categories,function(u){Bs(u)})}if(n&&!ir(n))for(var o=0;o<n.length;o++)xr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)W(l[o])?(xr(l[o][0]),xr(l[o][1])):xr(l[o]);r.type==="gauge"?(ht(r,"axisLabel"),ht(r,"title"),ht(r,"detail")):r.type==="treemap"?(Bt(r.breadcrumb,"itemStyle"),L(r.levels,function(u){Bs(u)})):r.type==="tree"&&Bs(r.leaves)}}function ba(r){return W(r)?r:r?[r]:[]}function j1(r){return(W(r)?r[0]:r)||{}}function gE(r,e){kr(ba(r.series),function(a){ml(a)&&pE(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),kr(t,function(a){kr(ba(r[a]),function(n){n&&(ht(n,"axisLabel"),ht(n.axisPointer,"label"))})}),kr(ba(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ht(n,"axisLabel"),ht(n&&n.axisPointer,"label")}),kr(ba(r.calendar),function(a){Bt(a,"itemStyle"),ht(a,"dayLabel"),ht(a,"monthLabel"),ht(a,"yearLabel")}),kr(ba(r.radar),function(a){ht(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),kr(ba(r.geo),function(a){ml(a)&&(xr(a),kr(ba(a.regions),function(n){xr(n)}))}),kr(ba(r.timeline),function(a){xr(a),Bt(a,"label"),Bt(a,"itemStyle"),Bt(a,"controlStyle",!0);var n=a.data;W(n)&&L(n,function(i){ue(i)&&(Bt(i,"label"),Bt(i,"itemStyle"))})}),kr(ba(r.toolbox),function(a){Bt(a,"iconStyle"),kr(a.feature,function(n){Bt(n,"iconStyle")})}),ht(j1(r.axisPointer),"label"),ht(j1(r.tooltip).axisPointer,"label")}function mE(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function yE(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=t)}function W1(r){r&&L(xE,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var xE=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_E=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],fv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fs(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<fv.length;t++){var a=fv[t][1],n=fv[t][0];e[a]!=null&&(e[n]=e[a])}}function $1(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function U1(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function bE(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function BC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&BC(r[t].children,e)}function zC(r,e){gE(r,e),r.series=Xe(r.series),L(r.series,function(t){if(ue(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),$1(t.label);var n=t.data;if(n&&!ir(n))for(var i=0;i<n.length;i++)$1(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=mE(t,"pointer.color");o!=null&&yE(t,"itemStyle.color",o)}else if(a==="bar"){fs(t),fs(t.backgroundStyle),fs(t.emphasis);var n=t.data;if(n&&!ir(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(fs(n[i]),fs(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),U1(t),BC(t.data,U1)}else a==="graph"||a==="sankey"?bE(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&le(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),W1(t)}}),r.dataRange&&(r.visualMap=r.dataRange),L(_E,function(t){var a=r[t];a&&(W(a)||(a=[a]),L(a,function(n){W1(n)}))})}function SE(r){var e=ae();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(wE)}function wE(r){L(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(f):v=o.get(e.stackedByDimension,f);for(var p=NaN,g=t-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=xR(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var eh=(function(){function r(e){this.data=e.data||(e.sourceFormat===da?{}:[]),this.sourceFormat=e.sourceFormat||IC,this.seriesLayoutBy=e.seriesLayoutBy||la,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&RC(this,a)===It.Must&&(n.type="ordinal")}}return r})();function Am(r){return r instanceof eh}function Np(r,e,t){t=t||VC(r);var a=e.seriesLayoutBy,n=CE(r,t,a,e.sourceHeader,e.dimensions),i=new eh({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ce(e)});return i}function Dm(r){return new eh({data:r,sourceFormat:ir(r)?dn:Ir})}function TE(r){return new eh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ce(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function VC(r){var e=IC;if(ir(r))e=dn;else if(W(r)){r.length===0&&(e=Vt);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(W(n)||ir(n)){e=Vt;break}else if(ue(n)){e=Pr;break}}}}else if(ue(r)){for(var i in r)if(te(r,i)&&zt(r[i])){e=da;break}}return e}function CE(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:Y1(n),startIndex:o,dimensionsDetectedCount:i};if(e===Vt){var s=r;a==="auto"||a==null?X1(function(u){u!=null&&u!=="-"&&(J(u)?o==null&&(o=1):o=0)},t,s,10):o=Be(a)?a:a?1:0,!n&&o===1&&(n=[],X1(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===Zo?s.length:s[0]?s[0].length:null}else if(e===Pr)n||(n=AE(r));else if(e===da)n||(n=[],L(r,function(u,c){n.push(c)}));else if(e===Ir){var l=Ho(r[0]);i=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Y1(n),dimensionsDetectedCount:i}}function AE(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Pe(t)}function Y1(r){if(r){var e=ae();return $(r,function(t,a){t=ue(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function X1(r,e,t,a){if(e===Zo)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function GC(r){var e=r.sourceFormat;return e===Pr||e===da}var jn,Wn,$n,Z1,K1,FC=(function(){function r(e,t){var a=Am(e)?e:Dm(e);this._source=a;var n=this._data=a.data;a.sourceFormat===dn&&(this._offset=0,this._dimSize=t,this._data=n),K1(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;K1=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=Z1[Mm(u,c)];if(H(o,v),u===dn)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=HC(u,c);o.getItem=ee(d,null,s,f,h);var p=jC(u,c);o.count=ee(p,null,s,f,h)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[h],y=0;y<g;y++){var x=c[y*f+h];m[o+y]=x,x<d&&(d=x),x>p&&(p=x)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Z1=(e={},e[Vt+"_"+la]={pure:!0,appendData:i},e[Vt+"_"+Zo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pr]={pure:!0,appendData:i},e[da]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Ir]={appendData:i},e[dn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),q1=function(r,e,t,a){return r[a]},DE=(jn={},jn[Vt+"_"+la]=function(r,e,t,a){return r[a+e]},jn[Vt+"_"+Zo]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},jn[Pr]=q1,jn[da]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];i[o]=l?l[a]:null}return i},jn[Ir]=q1,jn);function HC(r,e){var t=DE[Mm(r,e)];return t}var J1=function(r,e,t){return r.length},ME=(Wn={},Wn[Vt+"_"+la]=function(r,e,t){return Math.max(0,r.length-e)},Wn[Vt+"_"+Zo]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Wn[Pr]=J1,Wn[da]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Wn[Ir]=J1,Wn);function jC(r,e){var t=ME[Mm(r,e)];return t}var hv=function(r,e,t){return r[e]},LE=($n={},$n[Vt]=hv,$n[Pr]=function(r,e,t){return r[t]},$n[da]=hv,$n[Ir]=function(r,e,t){var a=Ho(r);return a instanceof Array?a[e]:a},$n[dn]=hv,$n);function WC(r){var e=LE[r];return e}function Mm(r,e){return r===Vt?r+"_"+e:r}function Po(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return WC(i)(a,o,s)}else{var l=a;return i===Ir&&(l=Ho(a)),l}}}}var IE=/\{@(.+?)\}/g,th=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&W(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(se(i))return l.status=t,l.dimensionIndex=n,i(l);if(J(i)){var c=CC(i,l);return c.replace(IE,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Po(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Po(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function Q1(r){var e,t;return ue(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Qs(r){return new PE(r)}var PE=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){ex.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:ex.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),W(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),ex=(function(){var r,e,t,a,n,i={reset:function(l,u,c,f){e=l,r=u,t=c,a=f,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}})();function pn(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Be(r)&&r!=null&&r!=="-"&&(r=+ha(r)),r==null||r===""?NaN:Number(r))}var kE=ae({number:function(r){return parseFloat(r)},time:function(r){return+ha(r)},trim:function(r){return J(r)?zr(r):r}});function $C(r){return kE.get(r)}var UC={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},RE=(function(){function r(e,t){if(!Be(t)){var a="";He(a)}this._opFn=UC[e],this._rvalFloat=Ra(t)}return r.prototype.evaluate=function(e){return Be(e)?this._opFn(e,this._rvalFloat):this._opFn(Ra(e),this._rvalFloat)},r})(),YC=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Be(e)?e:Ra(e),n=Be(t)?t:Ra(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=J(e),l=J(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),NE=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ra(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=Ra(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function EE(r,e){return r==="eq"||r==="ne"?new NE(r==="eq",e):te(UC,r)?new RE(r,e):null}var OE=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return pn(e,t)},r})();function BE(r,e){var t=new OE,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==la&&He(o);var s=[],l={},u=r.dimensionsDefine;if(u)L(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var x="";te(l,m)&&He(x),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=HC(n,la);e.__isBuiltIn&&(t.getRawDataItem=function(p){return f(a,i,s,p)},t.getRawData=ee(zE,null,r)),t.cloneRawData=ee(VE,null,r);var h=jC(n,la);t.count=ee(h,null,a,i,s);var v=WC(n);t.retrieveValue=function(p,g){var m=f(a,i,s,p);return d(m,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return t.getDimensionInfo=ee(GE,null,s,l),t.cloneAllDimensionInfo=ee(FE,null,s),t}function zE(r){var e=r.sourceFormat;if(!Lm(e)){var t="";He(t)}return r.data}function VE(r){var e=r.sourceFormat,t=r.data;if(!Lm(e)){var a="";He(a)}if(e===Vt){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Pr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(H({},t[i]));return n}}function GE(r,e,t){if(t!=null){if(Be(t)||!isNaN(t)&&!te(e,t))return r[t];if(te(e,t))return e[t]}}function FE(r){return ce(r)}var XC=ae();function HE(r){r=ce(r);var e=r.type,t="";e||He(t);var a=e.split(":");a.length!==2&&He(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,XC.set(e,r)}function jE(r,e,t){var a=Xe(r),n=a.length,i="";n||He(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=WE(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function WE(r,e,t,a){var n="";e.length||He(n),ue(r)||He(n);var i=r.type,o=XC.get(i);o||He(n);var s=$(e,function(u){return BE(u,o)}),l=Xe(o.transform({upstream:s[0],upstreamList:s,config:ce(r.config)}));return $(l,function(u,c){var f="";ue(u)||He(f),u.data||He(f);var h=VC(u.data);Lm(h)||He(f);var v,d=e[0];if(d&&c===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:la,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:la,sourceHeader:0,dimensions:u.dimensions};return Np(u.data,v,null)})}function Lm(r){return r===Vt||r===Pr}var rh="undefined",$E=typeof Uint32Array===rh?Array:Uint32Array,UE=typeof Uint16Array===rh?Array:Uint16Array,ZC=typeof Int32Array===rh?Array:Int32Array,tx=typeof Float64Array===rh?Array:Float64Array,KC={float:tx,int:ZC,ordinal:Array,number:Array,time:tx},vv;function Ki(r){return r>65535?$E:UE}function qi(){return[1/0,-1/0]}function YE(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function rx(r,e,t,a,n){var i=KC[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var Ep=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=vv[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],GC(n),this._dimensions=$(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new KC[t||"float"](this._rawCount),this._rawExtent[i]=qi(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=qi());for(var l=i[e],u=o;u<s;u++){var c=a[u]=t.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=n[u];rx(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=vv.arrayRows.call(this,e[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=qi()),rx(i,c,f.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),v=t-i[h],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=Ki(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Ki(a._rawCount),o=new i(n),s=[],l=e.length,u=0,c=e[0],f=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=f[c][d];v=t(p,h)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][d];s[g]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Pe(e),i=n.length;if(!i)return this;var o=t.count(),s=Ki(t._rawCount),l=new s(o),u=0,c=n[0],f=e[c][0],h=e[c][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=v[n[0]],m=0;m<a;m++){var y=g[m];(y>=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],x=v[n[1]],_=e[n[1]][0],S=e[n[1]][1],m=0;m<a;m++){var y=g[m],b=x[m];(y>=f&&y<=h||isNaN(y))&&(b>=_&&b<=S||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var w=t.getRawIndex(m),y=v[n[0]][w];(y>=f&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var C=!0,w=t.getRawIndex(m),A=0;A<i;A++){var D=n[A],y=v[D][w];(y<e[D][0]||y>e[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(m))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=qi();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),v=0;v<o;v++)l[v]=n[t[v]][h];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=t[c],g=d[c],m=u[p],y=n[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,h,v=new(Ki(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,x=p;x<g;x++){var _=this.getRawIndex(x),S=i[_];isNaN(S)||(y+=S)}y/=g-p;var b=d,w=Math.min(d+l,o),C=d-1,A=i[u];c=-1,h=b;for(var D=-1,M=0,x=b;x<w;x++){var _=this.getRawIndex(x),S=i[_];if(isNaN(S)){M++,D<0&&(D=_);continue}f=Math.abs((C-m)*(S-A)-(C-x)*(y-A)),f>c&&(c=f,h=_)}M>0&&M<w-b&&(v[s++]=Math.min(D,h),h=Math.max(D,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(Ki(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,h=o[this.getRawIndex(f)],v=c,d=o[this.getRawIndex(v)],p=i;c+i>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=o[m];y<h&&(h=y,f=c+g),y>d&&(d=y,v=c+g)}var x=this.getRawIndex(f),_=this.getRawIndex(v);f<v?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=i._rawExtent[e]=qi(),h=new(Ki(this._rawCount))(Math.ceil(c/l)),v=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=a(s),y=this.getRawIndex(Math.min(d+n(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=qi();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=t[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&ua(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?YE(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ce(this._extent),e._rawExtent=ce(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return pn(t[i],this._dimensions[i])}vv={arrayRows:e,objectRows:function(t,a,n,i){return pn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return pn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),qC=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Su(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ir(s)?dn:Ir,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=me(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=me(f.sourceHeader,h.sourceHeader),p=me(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Np(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(a){var y=this._applyTransform(t);n=y.sourceList,i=y.upstreamSignList}else{var x=m.get("source",!0);n=[Np(x,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&nx(i)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&nx(f),s.push(c),l.push(u._getVersionSign())}),a?o=jE(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[TE(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Su(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new Ep,s.initData(new FC(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Su(e)){var t=wm(e);return t?[t.getSourceManager()]:[]}else return $(QN(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(Su(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function ax(r){var e=r.option.transform;e&&Pc(r.option.transform)}function Su(r){return r.mainType==="series"}function nx(r){throw new Error(r)}var XE="line-height:1";function JC(r){var e=r.lineHeight;return e==null?XE:"line-height:"+Ut(e+"")+"px"}function QC(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ut(a+"")+"px;color:"+Ut(t)+";font-weight:"+Ut(n+""),valueStyle:"font-size:"+Ut(o+"")+"px;color:"+Ut(i)+";font-weight:"+Ut(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var ZE=[0,10,20,30],KE=["",`
9
- `,`
10
-
11
- `,`
12
-
13
-
14
- `];function At(r,e){return e.type=r,e}function Op(r){return r.type==="section"}function eA(r){return Op(r)?qE:JE}function tA(r){if(Op(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return L(r.blocks,function(n){var i=tA(n);i>=e&&(e=i+ +(a&&(!i||Op(n)&&!n.noHeader)))}),e}return 0}function qE(r,e,t,a){var n=e.noHeader,i=QE(tA(e)),o=[],s=e.blocks||[];Zt(!s||W(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(te(u,l)){var c=new YC(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(p,g){var m=e.valueFormatter,y=eA(p)(m?H(H({},r),{valueFormatter:m}):r,p,g>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):Bp(a,o.join(""),n?t:i.html);if(n)return f;var h=Pp(e.header,"ordinal",r.useUTC),v=QC(a,r.renderMode).nameStyle,d=JC(a);return r.renderMode==="richText"?rA(r,h,v)+i.richText+f:Bp(a,'<div style="'+v+";"+d+';">'+Ut(h)+"</div>"+f,t)}function JE(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(_){return _=W(_)?_:[_],$(_,function(S,b){return Pp(S,W(v)?v[b]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),h=i?"":Pp(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value,e.dataIndex),p=!s||!i,g=!s&&i,m=QC(a,n),y=m.nameStyle,x=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":rA(r,h,y))+(o?"":r4(r,d,p,g,x)):Bp(a,(s?"":f)+(i?"":e4(h,!s,y))+(o?"":t4(d,p,g,x)),t)}}function ix(r,e,t,a,n,i){if(r){var o=eA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function QE(r){return{html:ZE[r],richText:KE[r]}}function Bp(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=JC(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function e4(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ut(r)+"</span>"}function t4(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=W(r)?r:[r],'<span style="'+i+";"+a+'">'+$(r,function(o){return Ut(o)}).join("&nbsp;&nbsp;")+"</span>"}function rA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function r4(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}function aA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Mi(a)}function nA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var dv=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=xT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=UN({color:t,type:e,renderMode:a,markerId:n});return J(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};W(t)?L(t,function(i){return H(a,i)}):H(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function iA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=W(s),u=aA(e,t),c,f,h,v;if(o>1||l&&!o){var d=a4(s,e,t,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=Po(n,t,i[0]),f=p.type}else v=c=l?s[0]:s;var g=tm(e),m=g&&e.name||"",y=n.getName(t),x=a?m:y;return At("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[At("nameValue",{markerType:"item",markerColor:u,name:x,noName:!zr(x),value:c,valueType:f,dataIndex:t})].concat(h||[])})}function a4(r,e,t,a,n){var i=e.getData(),o=ua(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?L(a,function(f){c(Po(i,t,f),f)}):L(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(At("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ua=Ne();function wu(r,e){return r.getName(e)||r.getId(e)}var _c="__universalTransitionEnabled",Qe=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Qs({count:i4,reset:o4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Ua(this).sourceManager=new qC(this);i.prepareSource();var o=this.getInitialData(t,n);sx(o,this),this.dataTask.context.data=o,Ua(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=gl(this),i=n?Xo(t):{},o=this.subType;Ie.hasClass(o)&&(o+="Series"),be(t,a.getTheme().get(this.subType)),be(t,this.getDefaultOption()),Ti(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&bn(t,i,n)},e.prototype.mergeOption=function(t,a){t=be(this.option,t,!0),this.fillDataTextStyle(t.data);var n=gl(this);n&&bn(this.option,t,n);var i=Ua(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ua(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ir(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ti(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=zp(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return Ua(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=zp(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Ua(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ae(t)},e.prototype.getSourceManager=function(){return Ua(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ua(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return iA({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Me.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Tm.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=wu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Pe(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[wu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[_c])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ue(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],h=wu(t,f);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=wu(t,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Ie.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Ie);pt(Qe,th);pt(Qe,Tm);MT(Qe,Ie);function ox(r){var e=r.name;tm(r)||(r.name=n4(r)||e)}function n4(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return L(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function i4(r){return r.model.getRawData().count()}function o4(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),s4}function s4(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sx(r,e){L(ol(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,xe(l4,e))})}function l4(r,e){var t=zp(r);return t&&t.setOutputEnd((e||this).count()),e}function zp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var nt=(function(){function r(){this.group=new ve,this.uid=Uo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();am(nt);Bf(nt);function Ko(){var r=Ne();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var oA=Ne(),u4=Ko(),Ze=(function(){function r(){this.group=new ve,this.uid=Uo("viewChart"),this.renderTask=Qs({plan:c4,reset:f4}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&ux(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&ux(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Cn(this.group,e)},r.markUpdateMethod=function(e,t){oA(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function lx(r,e,t){r&&vl(r)&&(e==="emphasis"?Na:Ea)(r,t)}function ux(r,e,t){var a=Ci(r,e),n=e&&e.highlightKey!=null?U3(e.highlightKey):null;a!=null?L(Xe(a),function(i){lx(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){lx(i,t,n)})}am(Ze);Bf(Ze);function c4(r){return u4(r.model)}function f4(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&oA(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),h4[l]}var h4={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Xc="\0__throttleOriginMethod",cx="\0__throttleRate",fx="\0__throttleType";function Im(r,e,t){var a,n=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=c||e,g=c||t;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function qo(r,e,t,a){var n=r[e];if(n){var i=n[Xc]||n,o=n[fx],s=n[cx];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Im(i,t,a==="debounce"),n[Xc]=i,n[fx]=a,n[cx]=t}return n}}function yl(r,e){var t=r[e];t&&t[Xc]&&(t.clear&&t.clear(),r[e]=t[Xc])}var hx=Ne(),vx={itemStyle:Ai(hC,!0),lineStyle:Ai(fC,!0)},v4={lineStyle:"stroke",itemStyle:"fill"};function sA(r,e){var t=r.visualStyleMapper||vx[e];return t||(console.warn("Unknown style type '"+e+"'."),vx.itemStyle)}function lA(r,e){var t=r.visualDrawType||v4[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var d4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=sA(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=lA(r,a),u=o[l],c=se(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||se(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||se(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=H({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},hs=new $e,p4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=sA(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){hs.option=l[a];var u=n(hs),c=o.ensureUniqueItemVisual(s,"style");H(c,u),hs.option.decal&&(o.setItemVisual(s,"decal",hs.option.decal),hs.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},g4={performRawSeries:!0,overallReset:function(r){var e=ae();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),hx(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=hx(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=lA(t,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},Tu=Math.PI;function m4(r,e){e=e||{},le(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ve,a=new Re({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Re({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Wf({shape:{startAngle:-Tu/2,endAngle:-Tu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Tu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Tu*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var uA=(function(){function r(e,t,a,n){this._stageTaskMap=ae(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=ae();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;L(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Zt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;L(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Qs({plan:S4,reset:w4,count:C4}));v.context={model:f,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Qs({reset:y4});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";Zt(!e.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,L(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Qs({reset:x4,onDirty:b4})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return se(e)&&(e={overallReset:e,seriesType:A4(e)}),e.uid=Uo("stageHandler"),t&&(e.visualType=t),e},r})();function y4(r){r.overallReset(r.ecModel,r.api,r.payload)}function x4(r){return r.overallProgress&&_4}function _4(){this.agent.dirty(),this.getDownstream().dirty()}function b4(){this.agent&&this.agent.dirty()}function S4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function w4(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Xe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?$(e,function(t,a){return cA(a)}):T4}var T4=cA(0);function cA(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function C4(r){return r.data.count()}function A4(r){Zc=null;try{r(xl,fA)}catch{}return Zc}var xl={},fA={},Zc;hA(xl,Cm);hA(fA,OC);xl.eachSeriesByType=xl.eachRawSeriesByType=function(r){Zc=r};xl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Zc=r.subType)};function hA(r,e){for(var t in e.prototype)r[t]=ct}var dx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const D4={color:dx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],dx]};var Ot="#B9B8CE",px="#100C2A",Cu=function(){return{axisLine:{lineStyle:{color:Ot}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},gx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],vA={darkMode:!0,color:gx,backgroundColor:px,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ot},pageTextStyle:{color:Ot}},textStyle:{color:Ot},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ot}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ot},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ot}},timeline:{lineStyle:{color:Ot},label:{color:Ot},controlStyle:{color:Ot,borderColor:Ot}},calendar:{itemStyle:{color:px},dayLabel:{color:Ot},monthLabel:{color:Ot},yearLabel:{color:Ot}},timeAxis:Cu(),logAxis:Cu(),valueAxis:Cu(),categoryAxis:Cu(),line:{symbol:"circle"},graph:{color:gx},gauge:{title:{color:Ot},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ot},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};vA.categoryAxis.splitLine.show=!1;var M4=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(J(e)){var i=na(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(t.mainType=d,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Vp=["symbol","symbolSize","symbolRotate","symbolOffset"],mx=Vp.concat(["symbolKeepAspect"]),L4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Vp.length;o++){var s=Vp[o],l=r.get(s);se(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(H({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Pe(n);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(h,g,n[g](v,d))}}return{dataEach:i?c:null}}},I4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<mx.length;s++){var l=mx[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Pm(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Wl(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function dA(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function pA(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}L([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Ji(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=Ci(f,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:W(h)?f.getName(h[0]):f.getName(h),selected:J(l)?l:H({},l)})}})}function P4(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Ji("map","selectchanged",e,n,a),Ji("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Ji("map","selected",e,n,a),Ji("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Ji("map","unselected",e,n,a),Ji("pie","unselected",e,n,a))})}function fi(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var k4=Math.round(Math.random()*9),R4=typeof Object.defineProperty=="function",N4=(function(){function r(){this._id="__ec_inner_"+k4++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return R4?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),E4=De.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),O4=De.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),B4=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*v,l+s+h*v,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-c+f*v,l+s+h*v,t-c,l+s),r.closePath()}}),z4=De.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),V4={line:St,rect:Re,roundRect:Re,square:Re,circle:Fa,diamond:O4,pin:B4,arrow:z4,triangle:E4},G4={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},Kc={};L(V4,function(r,e){Kc[e]=new r});var F4=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Vc(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=Kc[a];n||(a="rect",n=Kc[a]),G4[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function H4(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function dt(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=aC(r.slice(8),new we(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=$f(r.slice(7),{},new we(e,t,a,n),o?"center":"cover"):l=new F4({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=H4,i&&l.setColor(i),l}function Jo(r){return W(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ei(r,e){if(r!=null)return W(r)||(r=[r,r]),[K(r[0],e[0])||0,K(me(r[1],r[0]),e[1])||0]}function hi(r){return isFinite(r)}function j4(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=hi(a)?a:0,n=hi(n)?n:1,i=hi(i)?i:0,o=hi(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function W4(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*n+t.y,l=l*i),o=hi(o)?o:.5,s=hi(s)?s:.5,l=l>=0&&hi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Gp(r,e,t){for(var a=e.type==="radial"?W4(r,e,t):j4(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function $4(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Au(r){return parseInt(r,10)}function xo(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Au(s[a])||Au(r.style[a]))-(Au(s[i])||0)-(Au(s[o])||0)|0}function U4(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Be(r)?[r]:W(r)?r:null}function km(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&U4(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=$(t,function(i){return i/n}),a/=n)}return[t,a]}var Y4=new va(!0);function qc(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function yx(r){return typeof r=="string"&&r!=="none"}function Jc(r){var e=r.fill;return e!=null&&e!=="none"}function xx(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function _x(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Fp(r,e,t){var a=nm(e.image,e.__image,t);if(zf(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*sc),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function X4(r,e,t,a){var n,i=qc(t),o=Jc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||Y4,f=e.__dirty;if(!a){var h=t.fill,v=t.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,m=i&&!!v.image,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0;(d||p)&&(b=e.getBoundingRect()),d&&(y=f?Gp(r,h,b):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(x=f?Gp(r,v,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(_=f||!e.__canvasFillPattern?Fp(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(S=f||!e.__canvasStrokePattern?Fp(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),d?r.fillStyle=y:g&&(_?r.fillStyle=_:o=!1),p?r.strokeStyle=x:m&&(S?r.strokeStyle=S:i=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(n=km(e),C=n[0],A=n[1]);var D=!0;(u||f&fo)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),a||(t.strokeFirst?(i&&_x(r,t),o&&xx(r,t)):(o&&xx(r,t),i&&_x(r,t))),C&&r.setLineDash([])}function Z4(r,e,t){var a=e.__image=nm(t.image,e.__image,e,e.onload);if(!(!a||!zf(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(a,u,c,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,h=s-c;r.drawImage(a,u,c,f,h,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function K4(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||mn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=km(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(qc(t)&&r.strokeText(n,t.x,t.y),Jc(t)&&r.fillText(n,t.x,t.y)):(Jc(t)&&r.fillText(n,t.x,t.y),qc(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var bx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gA(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){nr(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?mi.opacity:o}(a||e.blend!==t.blend)&&(i||(nr(r,n),i=!0),r.globalCompositeOperation=e.blend||mi.blend);for(var s=0;s<bx.length;s++){var l=bx[s];(a||e[l]!==t[l])&&(i||(nr(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(nr(r,n),i=!0),r.shadowColor=e.shadowColor||mi.shadowColor),i}function Tx(r,e,t,a,n){var i=_l(e,n.inHover),o=a?null:t&&_l(t,n.inHover)||{};if(i===o)return!1;var s=gA(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(nr(r,n),s=!0),yx(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(nr(r,n),s=!0),yx(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(nr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(nr(r,n),s=!0),r.lineWidth=u)}for(var c=0;c<Sx.length;c++){var f=Sx[c],h=f[0];(a||i[h]!==o[h])&&(s||(nr(r,n),s=!0),r[h]=i[h]||f[1])}return s}function q4(r,e,t,a,n){return gA(r,_l(e,n.inHover),t&&_l(t,n.inHover),a,n)}function mA(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function J4(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),mA(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function Q4(r,e){return r&&e?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&&!e)}var Cx=1,Ax=2,Dx=3,Mx=4;function eO(r){var e=Jc(r),t=qc(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function nr(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function _l(r,e){return e&&r.__hoverStyle||r.style}function yA(r,e){vi(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vi(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~lr,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||$4(i,o))&&(o&&o.length&&(nr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(nr(r,t),r.save(),J4(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof De&&e.autoBatch&&eO(e.style);s||Q4(n,u.transform)?(nr(r,t),mA(r,e)):c||nr(r,t);var f=_l(e,t.inHover);e instanceof De?(t.lastDrawType!==Cx&&(l=!0,t.lastDrawType=Cx),Tx(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),X4(r,e,f,c),c&&(t.batchFill=f.fill||"",t.batchStroke=f.stroke||"")):e instanceof Lo?(t.lastDrawType!==Dx&&(l=!0,t.lastDrawType=Dx),Tx(r,e,u,l,t),K4(r,e,f)):e instanceof Lt?(t.lastDrawType!==Ax&&(l=!0,t.lastDrawType=Ax),q4(r,e,u,l,t),Z4(r,e,f)):e.getTemporalDisplayables&&(t.lastDrawType!==Mx&&(l=!0,t.lastDrawType=Mx),tO(r,e,t)),c&&a&&nr(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function tO(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var pv=new N4,Lx=new Nl(100),Ix=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ko(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&pv.delete(r);var i=pv.get(r);if(i)return i;var o=le(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,pv.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],f=!0,h=0;h<Ix.length;++h){var v=o[Ix[h]];if(v!=null&&!W(v)&&!J(v)&&!Be(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=Lx.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=_A(o.dashArrayX),m=rO(o.dashArrayY),y=xA(o.symbol),x=aO(g),_=bA(m),S=!n&&yn.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),C;S&&(S.width=w.width*t,S.height=w.height*t,C=S.getContext("2d")),D(),f&&Lx.put(d,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var M=1,I=0,P=x.length;I<P;++I)M=U0(M,x[I]);for(var k=1,I=0,P=y.length;I<P;++I)k=U0(k,y[I].length);M*=k;var R=_*x.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var P=-_,k=0,R=0,E=0;P<w.height;){if(k%2===0){for(var B=R/2%y.length,O=0,V=0,F=0;O<w.width*2;){for(var G=0,I=0;I<g[E].length;++I)G+=g[E][I];if(G<=0)break;if(V%2===0){var j=(1-o.symbolSize)*.5,Y=O+g[E][V]*j,X=P+m[k]*j,Q=g[E][V]*o.symbolSize,fe=m[k]*o.symbolSize,he=F/2%y[B].length;ne(Y,X,Q,fe,y[B][he])}O+=g[E][V],++F,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}P+=m[k],++R,++k,k===m.length&&(k=0)}function ne(q,ie,Z,re,ye){var ge=n?1:t,pe=dt(ye,q*ge,ie*ge,Z*ge,re*ge,o.color,o.symbolKeepAspect);if(n){var _e=a.painter.renderOneToVNode(pe);_e&&b.children.push(_e)}else yA(C,pe)}}}}function xA(r){if(!r||r.length===0)return[["rect"]];if(J(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!J(r[t])){e=!1;break}if(e)return xA([r]);for(var a=[],t=0;t<r.length;++t)J(r[t])?a.push([r[t]]):a.push(r[t]);return a}function _A(r){if(!r||r.length===0)return[[0,0]];if(Be(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Be(r[a])){t=!1;break}if(t)return _A([r]);for(var n=[],a=0;a<r.length;++a)if(Be(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=$(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function rO(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Be(r)){var e=Math.ceil(r);return[e,e]}var t=$(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function aO(r){return $(r,function(e){return bA(e)})}function bA(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function nO(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=ko(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=ko(n,e)}}})}var Or=new Lr,SA={};function iO(r,e){SA[r]=e}function oO(r){return SA[r]}var sO=1,lO=800,uO=900,cO=1e3,fO=2e3,hO=5e3,wA=1e3,vO=1100,Rm=2e3,TA=3e3,dO=4e3,ah=4500,pO=4600,gO=5e3,mO=6e3,CA=7e3,yO={PROCESSOR:{FILTER:cO,SERIES_FILTER:lO,STATISTIC:hO},VISUAL:{LAYOUT:wA,PROGRESSIVE_LAYOUT:vO,GLOBAL:Rm,CHART:TA,POST_CHART_LAYOUT:pO,COMPONENT:dO,BRUSH:gO,CHART_ITEM:ah,ARIA:mO,DECAL:CA}},Et="__flagInMainProcess",tr="__pendingUpdate",gv="__needsUpdateStatus",Px=/^[a-zA-Z0-9_]+$/,mv="__connectUpdateStatus",kx=0,xO=1,_O=2;function AA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return MA(this,r,e)}}function DA(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return MA(this,r,e)}}function MA(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Lr.prototype[e].apply(r,t)}var LA=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Lr),IA=LA.prototype;IA.on=DA("on");IA.off=DA("off");var Qi,yv,Du,Ya,xv,_v,bv,vs,ds,Rx,Nx,Sv,Ex,Mu,Ox,PA,vr,Bx,kA=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,new M4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},J(a)&&(a=RA[a]),i._dom=t;var o="canvas",s="auto",l=!1;n.ssr&&pR(function(h){var v=de(h),d=v.dataIndex;if(d!=null){var p=ae();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=i._zr=H0(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:me(n.useDirtyRect,l),useCoarsePointer:me(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Im(ee(u.flush,u),17),a=ce(a),a&&zC(a,!0),i._theme=a,i._locale=VN(n.locale||vC),i._coordSysMgr=new jl;var c=i._api=Ox(i);function f(h,v){return h.__prio-v.__prio}return cc(ef,f),cc(Hp,f),i._scheduler=new uA(i,c,Hp,ef),i._messageCenter=new LA,i._initEvents(),i.resize=ee(i.resize,i),u.animation.on("frame",i._onframe,i),Rx(u,i),Nx(u,i),Pc(i),i}return e.prototype._onframe=function(){if(!this._disposed){Bx(this);var t=this._scheduler;if(this[tr]){var a=this[tr].silent;this[Et]=!0;try{Qi(this),Ya.update.call(this,null,this[tr].updateParams)}catch(l){throw this[Et]=!1,this[tr]=null,l}this._zr.flush(),this[Et]=!1,this[tr]=null,vs.call(this,a),ds.call(this,a)}else if(t.unfinished){var n=sO,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),_v(this,i),t.performVisualTasks(i),Mu(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Et]){if(this._disposed){this.id;return}var i,o,s;if(ue(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Et]=!0,!this._model||a){var l=new cE(this._api),u=this._theme,c=this._model=new Cm;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},jp);var f={seriesTransition:s,optionChanged:!0};if(n)this[tr]={silent:i,updateParams:f},this[Et]=!1,this.getZr().wakeUp();else{try{Qi(this),Ya.update.call(this,null,f)}catch(h){throw this[tr]=null,this[Et]=!1,h}this._ssr||this._zr.flush(),this[tr]=null,this[Et]=!1,vs.call(this,i),ds.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Me.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Me.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return L(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;L(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(zx[n]){var l=s,u=s,c=-s,f=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();L(tl,function(x,_){if(x.group===n){var S=a?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ce(t)),b=x.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),f=o(b.bottom,f),h.push({dom:S,left:b.left,top:b.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=yn.createCanvas(),m=H0(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return L(h,function(x){var _=x.left-l,S=x.top-u;y+='<g transform="translate('+_+","+S+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Re({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),L(h,function(x){var _=new Lt({style:{x:x.left*v-l,y:x.top*v-u,image:x.dom}});m.add(_)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return xv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return xv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Xs(n,t);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Xs(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Pm(s,l,a):Wl(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;L(bO,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&fi(s,function(d){var p=de(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=H({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),L(el,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),L(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),P4(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&CT(this.getDom(),Em,"");var a=this,n=a._api,i=a._model;L(a._componentsViews,function(o){o.dispose(i,n)}),L(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete tl[a.id]},e.prototype.resize=function(t){if(!this[Et]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[tr]&&(i==null&&(i=this[tr].silent),n=!0,this[tr]=null),this[Et]=!0;try{n&&Qi(this),Ya.update.call(this,{type:"resize",animation:H({duration:0},t&&t.animation)})}catch(o){throw this[Et]=!1,o}this[Et]=!1,vs.call(this,i),ds.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(ue(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Wp[t]){var n=Wp[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=H({},t);return a.type=el[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(ue(a)||(a={silent:!!a}),!!Qc[t.type]&&this._model){if(this[Et]){this._pendingActions.push(t);return}var n=a.silent;bv.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Me.browser.weChat&&this._throttledZrFlush(),vs.call(this,n),ds.call(this,n)}},e.prototype.updateLabelLayout=function(){Or.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Qi=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),yv(f,!0),yv(f,!1),h.plan()},yv=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;x<p.length;x++)p[x].__alive=!1;h?v.eachComponent(function(b,w){b!=="series"&&_(w)}):v.eachSeries(_);function _(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,A=!w&&g[C];if(!A){var D=na(b.type),M=h?nt.getClass(D.main,D.sub):Ze.getClass(D.sub);A=new M,A.init(v,y),g[C]=A,p.push(A),m.add(A.group)}b.__viewId=A.__id=C,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&d.prepareView(A,b,v,y)}for(var x=0;x<p.length;){var S=p[x];S.__alive?x++:(!h&&S.renderTask.dispose(),m.remove(S.group),S.dispose(v,y),p.splice(x,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Du=function(f,h,v,d,p){var g=f._model;if(g.setUpdatePayload(v),!d){L([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var x=v.excludeSeriesId,_;x!=null&&(_=ae(),L(Xe(x),function(b){var w=mt(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(y,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(y1(v))if(b instanceof Qe)v.type===yi&&!v.notBlur&&!b.get(["emphasis","disabled"])&&z3(b,v,f._api);else{var C=cm(b.mainType,b.componentIndex,v.name,f._api),A=C.focusSelf,D=C.dispatchers;v.type===yi&&A&&!v.notBlur&&Tp(b.mainType,b.componentIndex,f._api),D&&L(D,function(M){v.type===yi?Na(M):Ea(M)})}else Ap(v)&&b instanceof Qe&&(F3(b,v,f._api),g1(b),vr(f))},f),g&&g.eachComponent(y,function(b){var w=_&&_.get(b.id)!=null;w||S(f[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},f);function S(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,f._api,v)}},Ya={prepareAndUpdate:function(f){Qi(this),Ya.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,f),_v(this,v),g.update(v,d),t(v),m.performVisualTasks(v,f),Sv(this,v,d,f,h);var y=v.get("backgroundColor")||"transparent",x=v.get("darkMode");p.setBackgroundColor(y),x!=null&&x!=="auto"&&p.setDarkMode(x),Or.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var x=h.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,v,d,f);_&&_.update&&p.push(x)}else p.push(x)}});var g=ae();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var x=y.updateTransform(m,v,d,f);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),t(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),Mu(this,v,d,f,{},g),Or.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),Ze.markUpdateMethod(f,"updateView"),t(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),Sv(this,h,this._api,f,{}),Or.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ze.markUpdateMethod(f,"updateVisual"),t(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,f)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,f)}),Or.trigger("afterupdate",v,this._api))},updateLayout:function(f){Ya.update.call(this,f)}},xv=function(f,h,v,d){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Xs(p,v),x=0;x<g.length;x++){var _=g[x];if(_[h]&&(m=_[h](p,y,d))!=null)return m}},_v=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},bv=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=Qc[p],y=m.actionInfo,x=(y.update||"update").split(":"),_=x.pop(),S=x[0]!=null&&na(x[0]);this[Et]=!0;var b=[f],w=!1;f.batch&&(w=!0,b=$(f.batch,function(k){return k=le(H({},k),f),k.batch=null,k}));var C=[],A,D=Ap(f),M=y1(f);if(M&&UT(this._api),L(b,function(k){if(A=m.action(k,v._model,v._api),A=A||H({},k),A.type=y.event||A.type,C.push(A),M){var R=rm(f),E=R.queryOptionMap,B=R.mainTypeSpecified,O=B?E.keys()[0]:"series";Du(v,_,k,O),vr(v)}else D?(Du(v,_,k,"series"),vr(v)):S&&Du(v,_,k,S.main,S.sub)}),_!=="none"&&!M&&!D&&!S)try{this[tr]?(Qi(this),Ya.update.call(this,f),this[tr]=null):Ya[_].call(this,f)}catch(k){throw this[Et]=!1,k}if(w?A={type:y.event||p,escapeConnect:g,batch:C}:A=C[0],this[Et]=!1,!h){var I=this._messageCenter;if(I.trigger(A.type,A),D){var P={type:"selectchanged",escapeConnect:g,selected:H3(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(P.type,P)}}},vs=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();bv.call(this,v,f)}},ds=function(f){!f&&this.trigger("updated")},Rx=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[tr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Nx=function(f,h){f.on("mouseover",function(v){var d=v.target,p=fi(d,vl);p&&(V3(p,v,h._api),vr(h))}).on("mouseout",function(v){var d=v.target,p=fi(d,vl);p&&(G3(p,v,h._api),vr(h))}).on("click",function(v){var d=v.target,p=fi(d,function(y){return de(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=de(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function t(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function a(f){var h=[],v=[],d=!1;if(f.eachComponent(function(y,x){var _=x.get("zlevel")||0,S=x.get("z")||0,b=x.getZLevelKey();d=d||!!b,(y==="series"?v:h).push({zlevel:_,z:S,idx:x.componentIndex,type:y,key:b})}),d){var p=h.concat(v),g,m;cc(p,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),L(p,function(y){var x=f.getComponent(y.type,y.idx),_=y.zlevel,S=y.key;g!=null&&(_=Math.max(g,_)),S?(_===g&&S!==m&&_++,m=S):m&&(_===g&&_++,m=""),g=_,x.setZLevel(_)})}}Sv=function(f,h,v,d,p){a(h),Ex(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive=!1}),Mu(f,h,v,d,p),L(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},Ex=function(f,h,v,d,p,g){L(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),s(y,m),c(y,m)})},Mu=function(f,h,v,d,p,g){var m=f._scheduler;p=H(p||{},{updatedSeries:h.getSeries()}),Or.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(x){var _=f._chartsMap[x.__viewId];_.__alive=!0;var S=_.renderTask;m.updatePayload(S,d),u(x,_),g&&g.get(x.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),_.group.silent=!!x.get("silent"),o(x,_),g1(x)}),m.unfinished=y||m.unfinished,Or.trigger("series:layoutlabels",h,v,p),Or.trigger("series:transition",h,v,p),h.eachSeries(function(x){var _=f._chartsMap[x.__viewId];s(x,_),c(x,_)}),i(f,h),Or.trigger("series:afterupdate",h,v,p)},vr=function(f){f[gv]=!0,f.getZr().wakeUp()},Bx=function(f){f[gv]&&(f.getZr().storage.traverse(function(h){wo(h)||n(h)}),f[gv]=!1)};function n(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===Ff&&f.states.emphasis?h.push("emphasis"):f.hoverState===Bl&&f.states.blur&&h.push("blur"),f.useStates(h)}function i(f,h){var v=f._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!Me.node&&!Me.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x<y.length;x++)d=Math.max(l(y[x],h,v,d),d);else f.z=h,f.zlevel=v,d=Math.max(f.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var _=f.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(_&&_.showAbove?1:-1))}return d}function u(f,h){h.eachRendered(function(v){if(!wo(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(wo(m))return;if(m instanceof De&&Y3(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var x=m.getTextContent(),_=m.getTextGuideLine();x&&(x.stateTransition=g),_&&(_.stateTransition=g)}m.__dirty&&n(m)}})}Ox=function(f){return new((function(h){z(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Na(d,p),vr(f)},v.prototype.leaveEmphasis=function(d,p){Ea(d,p),vr(f)},v.prototype.enterBlur=function(d){HT(d),vr(f)},v.prototype.leaveBlur=function(d){um(d),vr(f)},v.prototype.enterSelect=function(d){jT(d),vr(f)},v.prototype.leaveSelect=function(d){WT(d),vr(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v})(OC))(f)},PA=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[mv]=d}}L(el,function(v,d){f._messageCenter.on(d,function(p){if(zx[f.group]&&f[mv]!==kx){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];L(tl,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,kx),L(m,function(y){y[mv]!==xO&&y.dispatchAction(g)}),h(m,_O)}})})}})(),e})(Lr),Nm=kA.prototype;Nm.on=AA("on");Nm.off=AA("off");Nm.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var bO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Qc={},el={},Hp=[],jp=[],ef=[],RA={},Wp={},tl={},zx={},SO=+new Date-0,Em="_echarts_instance_";function wO(r,e,t){{var a=TO(r);if(a)return a}var n=new kA(r,e,t);return n.id="ec_"+SO++,tl[n.id]=n,CT(r,Em,n.id),PA(n),Or.trigger("afterinit",n),n}function TO(r){return tl[ER(r,Em)]}function NA(r,e){RA[r]=e}function EA(r){Ce(jp,r)<0&&jp.push(r)}function OA(r,e){Bm(Hp,r,e,fO)}function CO(r){Om("afterinit",r)}function AO(r){Om("afterupdate",r)}function Om(r,e){Or.on(r,e)}function pa(r,e,t){se(e)&&(t=e,e="");var a=ue(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!el[e]&&(Zt(Px.test(a)&&Px.test(e)),Qc[a]||(Qc[a]={action:t,actionInfo:r}),el[e]=a)}function DO(r,e){jl.register(r,e)}function MO(r,e){Bm(ef,r,e,wA,"layout")}function Oi(r,e){Bm(ef,r,e,TA,"visual")}var Vx=[];function Bm(r,e,t,a,n){if((se(e)||ue(e))&&(t=e,e=a),!(Ce(Vx,t)>=0)){Vx.push(t);var i=uA.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function BA(r,e){Wp[r]=e}function LO(r,e,t){var a=oO("registerMap");a&&a(r,e,t)}var IO=HE;Oi(Rm,d4);Oi(ah,p4);Oi(ah,g4);Oi(Rm,L4);Oi(ah,I4);Oi(CA,nO);EA(zC);OA(uO,SE);BA("default",m4);pa({type:yi,event:yi,update:yi},ct);pa({type:pc,event:pc,update:pc},ct);pa({type:Zs,event:Zs,update:Zs},ct);pa({type:gc,event:gc,update:gc},ct);pa({type:Ks,event:Ks,update:Ks},ct);NA("light",D4);NA("dark",vA);var Gx=[],PO={registerPreprocessor:EA,registerProcessor:OA,registerPostInit:CO,registerPostUpdate:AO,registerUpdateLifecycle:Om,registerAction:pa,registerCoordinateSystem:DO,registerLayout:MO,registerVisual:Oi,registerTransform:IO,registerLoading:BA,registerMap:LO,registerImpl:iO,PRIORITY:yO,ComponentModel:Ie,ComponentView:nt,SeriesModel:Qe,ChartView:Ze,registerComponentModel:function(r){Ie.registerClass(r)},registerComponentView:function(r){nt.registerClass(r)},registerSeriesModel:function(r){Qe.registerClass(r)},registerChartView:function(r){Ze.registerClass(r)},registerSubTypeDefaulter:function(r,e){Ie.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){vR(r,e)}};function Ae(r){if(W(r)){L(r,function(e){Ae(e)});return}Ce(Gx,r)>=0||(Gx.push(r),se(r)&&(r={install:r}),r.install(PO))}function ps(r){return r==null?0:r.length||1}function Fx(r){return r}var Oa=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Fx,this._newKeyGetter=n||Fx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=ps(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=ps(u),h=ps(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=ps(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=ps(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),kO=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function RO(r,e){var t={},a=t.encode={},n=ae(),i=[],o=[],s={};L(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;wv(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),NO(v.type)&&(i[0]=h),wv(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}LC.each(function(g,m){var y=wv(a,m),x=v.otherDims[m];x!=null&&x!==!1&&(y[x]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=$(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new kO(s,e),t}function wv(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function tf(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function NO(r){return!(r==="ordinal"||r==="time")}var bc=(function(){function r(e){this.otherDims={},e!=null&&H(this,e)}return r})(),EO=Ne(),OO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zA=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=FA(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return me(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=GC(this.source),a=!HA(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=OO[u]||"f",c&&(n+=c.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function VA(r){return r instanceof zA}function GA(r){for(var e=ae(),t=0;t<(r||[]).length;t++){var a=r[t],n=ue(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function FA(r){var e=EO(r);return e.dimNameMap||(e.dimNameMap=GA(r.dimensionsDefine))}function HA(r){return r>30}var gs=ue,Xa=$,BO=typeof Int32Array>"u"?Array:Int32Array,zO="e\0\0",Hx=-1,VO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],GO=["_approximateExtent"],jx,Lu,ms,ys,Tv,xs,Cv,Yt=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;VA(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],h=J(f)?new bc({name:f}):f instanceof bc?f:new bc(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ae();L(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Be(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof Ep&&(i=e),!i){var o=this.dimensions,s=Am(e)||zt(e)?new FC(e,o.length):e;i=new Ep;var l=Xa(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=RO(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&Cv(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==dn&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ir;if(l&&!n.pure)for(var u=[],c=e;c<t;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&SR(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=mt(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=mt(v,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Cv(this,c);jx(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){gs(e)?H(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=ms(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return Lu(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return W(e)?n.getValues(Xa(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?Hx:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){se(e)&&(a=t,t=e,e=[]);var n=a||this,i=Xa(ys(e),this._getStoreDimIndex,this);this._store.each(i,n?ee(t,n):t)},r.prototype.filterSelf=function(e,t,a){se(e)&&(a=t,t=e,e=[]);var n=a||this,i=Xa(ys(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?ee(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Pe(e);return L(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){se(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=Xa(ys(e),this._getStoreDimIndex,this),s=xs(this);return s._store=this._store.map(o,i?ee(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Xa(ys(e),this._getStoreDimIndex,this);this._store.modify(o,i?ee(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=xs(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=xs(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=xs(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new $e(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Oa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Lu(e,a)},function(a){return Lu(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},gs(e)?H(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),W(i)?i=i.slice():gs(i)&&(i=H({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,gs(t)?H(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){gs(e)?H(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?H(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Sp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Xa(this.dimensions,this._getDimInfo,this),this.hostModel)),Tv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];se(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Ug(arguments)))})},r.internalField=(function(){jx=function(e){var t=e._invertedIndicesMap;L(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new BO(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Hx;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},ms=function(e,t,a){return mt(e._getCategory(t,a),null)},Lu=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=ms(e,e._idDimIdx,t)),a==null&&(a=zO+t),a},ys=function(e){return W(e)||(e=e!=null?[e]:[]),e},xs=function(e){var t=new r(e._schema?e._schema:Xa(e.dimensions,e._getDimInfo,e),e.hostModel);return Tv(t,e),t},Tv=function(e,t){L(VO.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,L(GO,function(a){e[a]=ce(t[a])}),e._calculationInfo=H({},t._calculationInfo)},Cv=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=ms(e,i,t)),l==null&&o!=null&&(n[t]=l=ms(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[t]=l}}})(),r})();function $l(r,e){Am(r)||(r=Dm(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=ae(),i=[],o=HO(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&HA(o),l=a===r.dimensionsDefine,u=l?FA(r):GA(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var f=ae(c),h=new ZC(o),v=0;v<h.length;v++)h[v]=-1;function d(A){var D=h[A];if(D<0){var M=a[A],I=ue(M)?M:{name:M},P=new bc,k=I.name;k!=null&&u.get(k)!=null&&(P.name=P.displayName=k),I.type!=null&&(P.type=I.type),I.displayName!=null&&(P.displayName=I.displayName);var R=i.length;return h[A]=R,P.storeDimIndex=A,i.push(P),P}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(A,D){var M=Xe(A).slice();if(M.length===1&&!J(M[0])&&M[0]<0){f.set(D,!1);return}var I=f.set(D,[]);L(M,function(P,k){var R=J(P)?u.get(P):P;R!=null&&R<o&&(I[k]=R,g(d(R),D,k))})});var p=0;L(t,function(A){var D,M,I,P;if(J(A))D=A,P={};else{P=A,D=P.name;var k=P.ordinalMeta;P.ordinalMeta=null,P=H({},P),P.ordinalMeta=k,M=P.dimsDef,I=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var R=f.get(D);if(R!==!1){if(R=Xe(R),!R.length)for(var E=0;E<(M&&M.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}L(R,function(B,O){var V=d(B);if(l&&P.type!=null&&(V.type=P.type),g(le(V,P),D,O),V.name==null&&M){var F=M[O];!ue(F)&&(F={name:F}),V.name=V.displayName=F.name,V.defaultTooltip=F.defaultTooltip}I&&le(V.otherDims,I)})}});function g(A,D,M){LC.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,n.set(D,!0))}var m=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=m?y||1:0;var _=m||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)L(i,function(A){S(A)}),i.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),C=w.coordDim;C==null&&(w.coordDim=jO(_,n,x),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(RC(r,b)===It.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return FO(i),new zA({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function FO(r){for(var e=ae(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function HO(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return L(e,function(i){var o;ue(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function jO(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var WO=(function(){function r(e){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=e}return r})();function $O(r){var e=r.get("coordinateSystem"),t=new WO(e),a=UO[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var UO={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",vt).models[0],i=r.getReferringComponents("yAxis",vt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),eo(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),eo(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",vt).models[0];e.coordSysDims=["single"],t.set("single",n),eo(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",vt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),eo(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),eo(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();L(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];t.set(c,u),eo(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function eo(r){return r.get("type")==="category"}function YO(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;XO(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(L(i,function(y,x){J(y)&&(i[x]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(c=y))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;L(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:f}}function XO(r){return!VA(r.schema)}function Sn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function jA(r,e){return Sn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function ZO(r,e){var t=r.get("coordinateSystem"),a=jl.get(t),n;return e&&e.coordSysDims&&(n=$(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=tf(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function KO(r,e,t){var a,n;return t&&L(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Ha(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Dm(r)):(n=a.getSource(),i=n.sourceFormat===Ir);var o=$O(e),s=ZO(e,o),l=t.useEncodeDefaulter,u=se(l)?l:l?xe(kC,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=$l(n,c),h=KO(f.dimensions,t.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=YO(e,{schema:f,store:v}),p=new Yt(f,e);p.setCalculationInfo(d);var g=h!=null&&qO(n)?function(m,y,x,_){return _===h?x:this.defaultDimValueGetter(m,y,x,_)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function qO(r){if(r.sourceFormat===Ir){var e=JO(r.data||[]);return!W(Ho(e))}}function JO(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var ga=(function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Bf(ga);var QO=0,$p=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QO}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&$(a,eB);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!J(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},r})();function eB(r){return ue(r)&&r.value!=null?r.value:r+""}function Up(r){return r.type==="interval"||r.type==="log"}function tB(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=mT(i/e);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=WA(o),l=n.niceTickExtent=[ot(Math.ceil(r[0]/o)*o,s),ot(Math.floor(r[1]/o)*o,s)];return rB(l,r),n}function Av(r){var e=Math.pow(10,em(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,ot(t*e)}function WA(r){return aa(r)+2}function Wx(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function rB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Wx(r,0,e),Wx(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function nh(r,e){return r>=e[0]&&r<=e[1]}function ih(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function oh(r,e){return r*(e[1]-e[0])+e[0]}var sh=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new $p({})),W(n)&&(n=new $p({categories:$(n,function(i){return ue(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:J(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),nh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),ih(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(oh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(ga);ga.registerClass(sh);var Un=ot,Ba=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return nh(t,this._extent)},e.prototype.normalize=function(t){return ih(t,this._extent)},e.prototype.scale=function(t){return oh(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=WA(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(t?s.push({value:Un(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Un(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(t?s.push({value:Un(c+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,h=f/t;u<t-1;){var v=Un(l.value+(u+1)*h);v>i[0]&&v<i[1]&&c.push(v),u++}n.push(c)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=aa(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Un(t.value,n,!0);return wC(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=tB(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Un(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Un(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(ga);ga.registerClass(Ba);var $A=typeof Float32Array<"u",aB=$A?Float32Array:Array;function ia(r){return W(r)?$A?new Float32Array(r):r:new aB(r)}var Yp="__ec_stack_";function UA(r){return r.get("stack")||Yp+r.seriesIndex}function zm(r){return r.dim+r.index}function nB(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(le({bandWidth:n,axisKey:a,stackId:Yp+i},r));for(var o=ZA(e),s=[],i=0;i<r.count;i++){var l=o[a][Yp+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function YA(r,e){var t=[];return e.eachSeriesByType(r,function(a){JA(a)&&t.push(a)}),t}function iB(r){var e={};L(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);e[h]?e[h].push(m):e[h]=[m]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function XA(r){var e=iB(r),t=[];return L(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=K(a.get("barWidth"),s),p=K(a.get("barMaxWidth"),s),g=K(a.get("barMinWidth")||(QA(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:zm(i),stackId:UA(a)})}),ZA(t)}function ZA(r){var e={};L(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return L(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Pe(i).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),c=K(a.gap,1),f=a.remainedWidth,h=a.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),L(i,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var _=m.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),m.width=_,f-=_+c*_,h--}else{var _=v;y&&y<_&&(_=Math.min(y,f)),x&&x>_&&(_=x),_!==v&&(m.width=_,f-=_+c*_,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;L(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;L(i,function(m,y){t[n][y]=t[n][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),t}function oB(r,e,t){if(r&&e){var a=r[zm(e)];return a}}function KA(r,e){var t=YA(r,e),a=XA(t);L(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=UA(n),u=a[zm(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function qA(r){return{seriesType:r,plan:Ko(),reset:function(e){if(JA(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),f=Sn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=sB(n,i),d=QA(e),p=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var S=x.count,b=d&&ia(S*3),w=d&&l&&ia(S*3),C=d&&ia(S),A=a.master.getRect(),D=h?A.width:A.height,M,I=_.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),E=v,B=void 0;f&&(B=+k-I.get(o,M));var O=void 0,V=void 0,F=void 0,G=void 0;if(h){var j=a.dataToPoint([k,R]);if(f){var Y=a.dataToPoint([B,R]);E=Y[0]}O=E,V=j[1]+y,F=j[0]-E,G=m,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var j=a.dataToPoint([R,k]);if(f){var Y=a.dataToPoint([R,B]);E=Y[1]}O=j[0]+y,V=E,F=m,G=j[1]-E,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}d?(b[P]=O,b[P+1]=V,b[P+2]=h?F:G,w&&(w[P]=h?A.x:O,w[P+1]=h?V:A.y,w[P+2]=D),C[M]=M):_.setItemLayout(M,{x:O,y:V,width:F,height:G}),P+=3}d&&_.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function JA(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function QA(r){return r.pipelineContext&&r.pipelineContext.large}function sB(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var lB=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},Vm=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return Xf(t.value,R1[HN(Co(this._minLevelUnit))]||R1.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return jN(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=pB(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Cr,a[1]+=Cr),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Cr}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Iu.length,l=Math.min(lB(Iu,this._approxInterval,0,s),s-1);this._interval=Iu[l][1],this._minLevelUnit=Iu[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Be(t)?t:+ha(t)},e.prototype.contain=function(t){return nh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return ih(this.parse(t),this._extent)},e.prototype.scale=function(t){return oh(t,this._extent)},e.type="time",e})(Ba),Iu=[["second",ym],["minute",xm],["hour",Js],["quarter-day",Js*6],["half-day",Js*12],["day",Cr*1.2],["half-week",Cr*3.5],["week",Cr*7],["month",Cr*31],["quarter",Cr*95],["half-year",k1/2],["year",k1]];function uB(r,e,t,a){var n=ha(e),i=ha(t),o=function(d){return N1(n,d,a)===N1(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function cB(r,e){return r/=Cr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fB(r){var e=30*Cr;return r/=e,r>6?6:r>3?3:r>2?2:1}function hB(r){return r/=Js,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function $x(r,e){return r/=e?xm:ym,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vB(r){return mT(r)}function dB(r,e,t){var a=new Date(r);switch(Co(e)){case"year":case"month":a[mC(t)](0);case"day":a[yC(t)](1);case"hour":a[xC(t)](0);case"minute":a[_C(t)](0);case"second":a[bC(t)](0),a[SC(t)](0)}return a.getTime()}function pB(r,e,t,a){var n=1e4,i=pC,o=0;function s(D,M,I,P,k,R,E){for(var B=new Date(M),O=M,V=B[P]();O<I&&O<=a[1];)E.push({value:O}),V+=D,B[k](V),O=B.getTime();E.push({value:O,notAdd:!0})}function l(D,M,I){var P=[],k=!M.length;if(!uB(Co(D),a[0],a[1],t)){k&&(M=[{value:dB(new Date(a[0]),D,t)},{value:a[1]}]);for(var R=0;R<M.length-1;R++){var E=M[R].value,B=M[R+1].value;if(E!==B){var O=void 0,V=void 0,F=void 0,G=!1;switch(D){case"year":O=Math.max(1,Math.round(e/Cr/365)),V=_m(t),F=WN(t);break;case"half-year":case"quarter":case"month":O=fB(e),V=Ao(t),F=mC(t);break;case"week":case"half-week":case"day":O=cB(e),V=Zf(t),F=yC(t),G=!0;break;case"half-day":case"quarter-day":case"hour":O=hB(e),V=pl(t),F=xC(t);break;case"minute":O=$x(e,!0),V=Kf(t),F=_C(t);break;case"second":O=$x(e,!1),V=qf(t),F=bC(t);break;case"millisecond":O=vB(e),V=Jf(t),F=SC(t);break}s(O,E,B,V,F,G,P),D==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R<P.length;R++)I.push(P[R]);return P}}for(var u=[],c=[],f=0,h=0,v=0;v<i.length&&o++<n;++v){var d=Co(i[v]);if(FN(i[v])){l(i[v],u[u.length-1]||[],c);var p=i[v+1]?Co(i[v+1]):null;if(d!==p){if(c.length){h=f,c.sort(function(D,M){return D.value-M.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=a[0]&&y<=a[1]&&f++)}var x=(a[1]-a[0])/e;if(f>x*1.5&&h>x/1.5||(u.push(g),f>x||r===i[v]))break}c=[]}}}for(var _=je($(u,function(D){return je(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),S=[],b=_.length-1,v=0;v<_.length;++v)for(var w=_[v],C=0;C<w.length;++C)S.push({value:w[C].value,level:b-v});S.sort(function(D,M){return D.value-M.value});for(var A=[],v=0;v<S.length;++v)(v===0||S[v].value!==S[v-1].value)&&A.push(S[v]);return A}ga.registerClass(Vm);var Ux=ga.prototype,rl=Ba.prototype,gB=ot,mB=Math.floor,yB=Math.ceil,Pu=Math.pow,Rr=Math.log,Gm=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ba,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=rl.getTicks.call(this,t);return $(o,function(s){var l=s.value,u=ot(Pu(this.base,l));return u=l===n[0]&&this._fixMin?ku(u,i[0]):u,u=l===n[1]&&this._fixMax?ku(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=Rr(this.base);t=Rr(Math.max(0,t))/n,a=Rr(Math.max(0,a))/n,rl.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=Ux.getExtent.call(this);a[0]=Pu(t,a[0]),a[1]=Pu(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=ku(a[0],i[0])),this._fixMax&&(a[1]=ku(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=Rr(t[0])/Rr(a),t[1]=Rr(t[1])/Rr(a),Ux.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=bR(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[ot(yB(a[0]/i)*i),ot(mB(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){rl.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Rr(t)/Rr(this.base),nh(t,this._extent)},e.prototype.normalize=function(t){return t=Rr(t)/Rr(this.base),ih(t,this._extent)},e.prototype.scale=function(t){return t=oh(t,this._extent),Pu(this.base,t)},e.type="log",e})(ga),eD=Gm.prototype;eD.getMinorTicks=rl.getMinorTicks;eD.getLabel=rl.getLabel;function ku(r,e){return gB(r,aa(e))}ga.registerClass(Gm);var xB=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;se(o)?this._modelMinNum=Ru(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Ru(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(se(s)?this._modelMaxNum=Ru(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Ru(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Hr(u[0],1),Hr(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=il(s)||il(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[bB[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=_B[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),_B={min:"_determinedMin",max:"_determinedMax"},bB={min:"_dataMin",max:"_dataMax"};function tD(r,e,t){var a=r.rawExtentInfo;return a||(a=new xB(r,e,t),r.rawExtentInfo=a,a)}function Ru(r,e){return e==null?null:il(e)?NaN:r.parse(e)}function rD(r,e){var t=r.type,a=tD(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=YA("bar",o),l=!1;if(L(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=XA(s),c=SB(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function SB(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=oB(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;L(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;L(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,f=1-(s+l)/i,h=c/f-c;return e+=h*(l/u),r-=h*(s/u),{min:r,max:e}}function Ro(r,e){var t=e,a=rD(r,t),n=a.extent,i=t.get("splitNumber");r instanceof Gm&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function lh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new sh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Vm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ga.getClass(e)||Ba)}}function wB(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Qo(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}})(e):J(e)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(e):se(e)?(function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Fm(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function Fm(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function TB(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof sh?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Qo(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},h=s(f,c),v=o.getTextRect(h),d=CB(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function CB(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new we(r.x,r.y,i,o);return s}function Hm(r){var e=r.get("interval");return e??"auto"}function aD(r){return r.type==="category"&&Hm(r.getLabelModel())===0}function rf(r,e){var t={};return L(r.mapDimensionsAll(e),function(a){t[jA(r,a)]=!0}),Pe(t)}function AB(r,e,t){e&&L(rf(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Ul=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),DB=1e-8;function Yx(r,e){return Math.abs(r-e)<DB}function ai(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=Ta(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Yx(n[0],s[0])||!Yx(n[1],s[1]))&&(a+=Ta(n[0],n[1],s[0],s[1],e,t)),a!==0}var MB=[];function Dv(r,e){for(var t=0;t<r.length;t++)Pt(r[t],r[t],e)}function Xx(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(an(e,e,i),nn(t,t,i))}}function LB(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var nD=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),Zx=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),Kx=(function(){function r(e){this.type="linestring",this.points=e}return r})(),iD=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return LB(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return L(o,function(s){s.type==="polygon"?Xx(s.exterior,n,i,t):L(s.points,function(l){Xx(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new we(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ai(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(ai(u[c],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new we(t,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(Dv(h.exterior,u),L(h.interiors,function(v){Dv(v,u)})):L(h.points,function(v){Dv(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e})(nD),IB=(function(r){z(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Rf(MB),o=t;o&&!o.isGeoSVGGraphicRoot;)Ma(i,o.getLocalTransform(),i),o=o.parent;return Fo(i,i),Pt(n,n,i),n},e})(nD);function PB(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return L(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=oD(s,o,t);break;case"Polygon":Mv(s,o,t);break;case"MultiLineString":Mv(s,o,t);break;case"MultiPolygon":L(s,function(l,u){return Mv(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Mv(r,e,t){for(var a=0;a<r.length;a++)r[a]=oD(r[a],e[a],t)}function oD(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function kB(r,e){return r=PB(r),$(je(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Zx(o[0],o.slice(1)));break;case"MultiPolygon":L(n.coordinates,function(l){l[0]&&i.push(new Zx(l[0],l.slice(1)))});break;case"LineString":i.push(new Kx([n.coordinates]));break;case"MultiLineString":i.push(new Kx(n.coordinates))}var s=new iD(a[e||"name"],i,a.cp);return s.properties=a,s})}var bl=Ne();function sD(r,e){var t=$(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function RB(r){var e=r.getLabelModel().get("customValues");if(e){var t=Qo(r),a=r.scale.getExtent(),n=sD(r,e),i=je(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:$(i,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?EB(r):BB(r)}function NB(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=sD(r,t);return{ticks:je(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?OB(r,e):{ticks:$(r.scale.getTicks(),function(i){return i.value})}}function EB(r){var e=r.getLabelModel(),t=lD(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function lD(r,e){var t=uD(r,"labels"),a=Hm(e),n=cD(t,a);if(n)return n;var i,o;return se(a)?i=vD(r,a):(o=a==="auto"?zB(r):a,i=hD(r,o)),fD(t,a,{labels:i,labelCategoryInterval:o})}function OB(r,e){var t=uD(r,"ticks"),a=Hm(e),n=cD(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),se(a))i=vD(r,a,!0);else if(a==="auto"){var s=lD(r,r.getLabelModel());o=s.labelCategoryInterval,i=$(s.labels,function(l){return l.tickValue})}else o=a,i=hD(r,o,!0);return fD(t,a,{ticks:i,tickCategoryInterval:o})}function BB(r){var e=r.scale.getTicks(),t=Qo(r);return{labels:$(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function uD(r,e){return bl(r)[e]||(bl(r)[e]=[])}function cD(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function fD(r,e,t){return r.push({key:e,value:t}),t}function zB(r){var e=bl(r).autoInterval;return e??(bl(r).autoInterval=r.calculateCategoryInterval())}function VB(r){var e=GB(r),t=Qo(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=El(t({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=bl(r.model),S=r.getExtent(),b=_.lastAutoInterval,w=_.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&_.axisExtent0===S[0]&&_.axisExtent1===S[1]?x=b:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=S[0],_.axisExtent1=S[1]),x}function GB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function hD(r,e,t){var a=Qo(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=aD(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(t?g:{formattedLabel:a(m),rawLabel:n.getLabel(m),tickValue:g})}return s}function vD(r,e,t){var a=r.scale,n=Qo(r),i=[];return L(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var qx=[0,1],$r=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return pT(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Jx(a,n.count())),We(e,qx,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Jx(a,n.count()));var i=We(e,a,qx,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=NB(this,t),n=a.ticks,i=$(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return FB(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=$(a,function(i){return $(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return RB(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return VB(this)},r})();function Jx(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function FB(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;L(e,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var f=i[0]>i[1];h(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&h(i[0],e[0].coord)&&e.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&h(o.coord,i[1])&&e.push({coord:i[1]});function h(v,d){return v=ot(v),d=ot(d),f?v>d:v<d}}var _s=Math.PI*2,Yn=va.CMD,HB=["top","right","bottom","left"];function jB(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function WB(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(a-n)%_s<1e-4)return l[0]=c,l[1]=f,u-t;if(i){var h=a;a=ur(n),n=ur(h)}else a=ur(a),n=ur(n);a>n&&(n+=_s);var v=Math.atan2(s,o);if(v<0&&(v+=_s),v>=a&&v<=n||v+_s>=a&&v+_s<=n)return l[0]=c,l[1]=f,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,m=t*Math.sin(n)+e,y=(d-o)*(d-o)+(p-s)*(p-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y<x?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(x))}function af(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,c=t-r,f=a-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=e+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function dD(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var Br=[];function $B(r,e,t){var a=dD(e.x,e.y,e.width,e.height,r.x,r.y,Br);return t.set(Br[0],Br[1]),a}function UB(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=e.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(a=c[v],n=c[v+1],i=a,o=n);var p=u;switch(d){case Yn.M:i=c[v++],o=c[v++],a=i,n=o;break;case Yn.L:p=af(a,n,c[v],c[v+1],f,h,Br,!0),a=c[v++],n=c[v++];break;case Yn.C:p=q2(a,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,Br),a=c[v++],n=c[v++];break;case Yn.Q:p=Q2(a,n,c[v++],c[v++],c[v],c[v+1],f,h,Br),a=c[v++],n=c[v++];break;case Yn.A:var g=c[v++],m=c[v++],y=c[v++],x=c[v++],_=c[v++],S=c[v++];v+=1;var b=!!(1-c[v++]);s=Math.cos(_)*y+g,l=Math.sin(_)*x+m,v<=1&&(i=s,o=l);var w=(f-g)*x/y+g;p=WB(g,m,x,_,_+S,b,w,h,Br),a=Math.cos(_+S)*y+g,n=Math.sin(_+S)*x+m;break;case Yn.R:i=a=c[v++],o=n=c[v++];var C=c[v++],A=c[v++];p=dD(i,o,C,A,f,h,Br);break;case Yn.Z:p=af(a,n,i,o,f,h,Br,!0),a=i,n=o;break}p<u&&(u=p,t.set(Br[0],Br[1]))}return u}var Vr=new Se,qe=new Se,lt=new Se,oa=new Se,ra=new Se;function Qx(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||HB,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Fo([],c),h=e.get("length2")||0;u&&lt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];jB(d,0,s,Vr,oa),Se.scaleAndAdd(qe,Vr,oa,h),qe.transform(f);var p=r.getBoundingRect(),g=u?u.distance(qe):r instanceof De?UB(qe,r.path,lt):$B(qe,p,lt);g<l&&(l=g,qe.transform(c),lt.transform(c),lt.toArray(i[0]),qe.toArray(i[1]),Vr.toArray(i[2]))}pD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var nf=[],$t=new Se;function pD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Vr.fromArray(r[0]),qe.fromArray(r[1]),lt.fromArray(r[2]),Se.sub(oa,Vr,qe),Se.sub(ra,lt,qe);var t=oa.len(),a=ra.len();if(!(t<.001||a<.001)){oa.scale(1/t),ra.scale(1/a);var n=oa.dot(ra),i=Math.cos(e);if(i<n){var o=af(qe.x,qe.y,lt.x,lt.y,Vr.x,Vr.y,nf,!1);$t.fromArray(nf),$t.scaleAndAdd(ra,o/Math.tan(Math.PI-e));var s=lt.x!==qe.x?($t.x-qe.x)/(lt.x-qe.x):($t.y-qe.y)/(lt.y-qe.y);if(isNaN(s))return;s<0?Se.copy($t,qe):s>1&&Se.copy($t,lt),$t.toArray(r[1])}}}}function YB(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Vr.fromArray(r[0]),qe.fromArray(r[1]),lt.fromArray(r[2]),Se.sub(oa,qe,Vr),Se.sub(ra,lt,qe);var a=oa.len(),n=ra.len();if(!(a<.001||n<.001)){oa.scale(1/a),ra.scale(1/n);var i=oa.dot(e),o=Math.cos(t);if(i<o){var s=af(qe.x,qe.y,lt.x,lt.y,Vr.x,Vr.y,nf,!1);$t.fromArray(nf);var l=Math.PI/2,u=Math.acos(ra.dot(e)),c=l+u-t;if(c>=l)Se.copy($t,lt);else{$t.scaleAndAdd(ra,s/Math.tan(Math.PI/2-c));var f=lt.x!==qe.x?($t.x-qe.x)/(lt.x-qe.x):($t.y-qe.y)/(lt.y-qe.y);if(isNaN(f))return;f<0?Se.copy($t,qe):f>1&&Se.copy($t,lt)}$t.toArray(r[1])}}}}function Lv(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function XB(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=rn(a[0],a[1]),i=rn(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function jm(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<hl.length;l++){var u=hl[l],c=e[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:me(n.states[u]&&n.states[u].ignore,s);if(v||!me(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&Lv(a,!0,u,c);continue}a||(a=new Qt,r.setTextGuideLine(a),!f&&(s||!o)&&Lv(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Lv(a,!1,u,c)}}if(a){le(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=XB}}function Wm(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<Kt.length;a++){var n=Kt[a];t[n]=r.getModel([n,e])}return t}function gD(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Hc(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return e}function mD(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(b,w){return b.rect[e]-w.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=r[c],h=f.rect;l=h[e]-s,l<0&&(h[e]-=l,f.label[e]-=l,u=!0),s=h[e]+h[t]}var v=r[0],d=r[o-1],p,g;m(),p<0&&_(-p,.8),g<0&&_(g,.8),m(),y(p,g,1),y(g,p,-1),m(),p<0&&S(-p),g<0&&S(g);function m(){p=v.rect[e]-a,g=n-d.rect[e]-d.rect[t]}function y(b,w,C){if(b<0){var A=Math.min(w,-b);if(A>0){x(A*C,0,o);var D=A+b;D<0&&_(-D*C,1)}else _(-b*C,1)}}function x(b,w,C){b!==0&&(u=!0);for(var A=w;A<C;A++){var D=r[A],M=D.rect;M[e]+=b,D.label[e]+=b}}function _(b,w){for(var C=[],A=0,D=1;D<o;D++){var M=r[D-1].rect,I=Math.max(r[D].rect[e]-M[e]-M[t],0);C.push(I),A+=I}if(A){var P=Math.min(Math.abs(b)/A,w);if(b>0)for(var D=0;D<o-1;D++){var k=C[D]*P;x(k,0,D+1)}else for(var D=o-1;D>0;D--){var k=C[D-1]*P;x(-k,D,o)}}}function S(b){var w=b<0?-1:1;b=Math.abs(b);for(var C=Math.ceil(b/(o-1)),A=0;A<o-1;A++)if(w>0?x(C,0,A+1):x(-C,o-A-1,o),b-=C,b<=0)return}return u}function ZB(r,e,t,a){return mD(r,"x","width",e,t)}function yD(r,e,t,a){return mD(r,"y","height",e,t)}function xD(r){var e=[];r.sort(function(p,g){return g.priority-p.priority});var t=new we(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var f=i.obb,h=!1,v=0;v<e.length;v++){var d=e[v];if(t.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Hc(d.localRect,d.transform)),f||(f=new Hc(s,l)),f.intersect(d.obb)){h=!0;break}}}h?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function KB(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function qB(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:KB(a&&a.shape.points)}}var e_=["align","verticalAlign","width","height","fontSize"],Ht=new Ca,Iv=Ne(),JB=Ne();function Nu(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Eu=["x","y","rotation"],QB=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();we.applyTransform(c,c,u),u?Ht.setLocalTransform(u):(Ht.x=Ht.y=Ht.rotation=Ht.originX=Ht.originY=0,Ht.scaleX=Ht.scaleY=1),Ht.rotation=ur(Ht.rotation);var f=n.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();we.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ht.x,y:Ht.y,scaleX:Ht.scaleX,scaleY:Ht.scaleY,rotation:Ht.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(se(n)||Pe(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=de(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(x,_){return function(){Qx(x,_)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;se(o.layoutOption)?c=o.layoutOption(qB(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=K(c.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=K(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=Iv(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<e_.length;p++){var g=e_[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=gD(this._labelList),i=je(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=je(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});ZB(i,0,t),yD(o,0,a);var s=je(n,function(l){return l.layoutOption.hideOverlap});xD(s)},r.prototype.processLabelsOverall=function(){var e=this;L(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Iv(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=de(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");jm(e,Wm(s),l),Qx(e,f)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!wo(e))){var i=Iv(a),o=i.oldLayout,s=de(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=t.getData(s.dataType);if(o){a.attr(o);var h=e.prevStates;h&&(Ce(h,"select")>=0&&a.attr(i.oldLayoutSelect),Ce(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Ve(a,u,t,l)}else if(a.attr(u),!$o(a).valueAnimation){var f=me(a.style.opacity,1);a.style.opacity=0,at(a,{style:{opacity:f}},t,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};Nu(v,u,Eu),Nu(v,a.states.select,Eu)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Nu(d,u,Eu),Nu(d,a.states.emphasis,Eu)}cC(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=JB(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Ve(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,at(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Pv=Ne();function ez(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Pv(t).labelManager;n||(n=Pv(t).labelManager=new QB),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Pv(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var kv=Math.sin,Rv=Math.cos,_D=Math.PI,Xn=Math.PI*2,tz=180/_D,bD=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=ln(f-Xn)||(c?u>=Xn:-u>=Xn),v=u>0?u%Xn:u%Xn+Xn,d=!1;h?d=!0:ln(f)?d=!1:d=v>=_D==!!c;var p=e+a*Rv(o),g=t+n*kv(o);this._start&&this._add("M",p,g);var m=Math.round(i*tz);if(h){var y=1/this._p,x=(c?1:-1)*(Xn-y);this._add("A",a,n,m,1,+c,e+a*Rv(o+x),t+n*kv(o+x)),y>.01&&this._add("A",a,n,m,0,+c,p,g)}else{var _=e+a*Rv(s),S=t+n*kv(s);this._add("A",a,n,m,+d,+c,_,S)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),$m="none",rz=Math.round;function az(r){var e=r.fill;return e!=null&&e!==$m}function nz(r){var e=r.stroke;return e!=null&&e!==$m}var Xp=["lineCap","miterLimit","lineJoin"],iz=$(Xp,function(r){return"stroke-"+r.toLowerCase()});function oz(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof Lt){r("opacity",n);return}if(az(e)){var i=ul(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",$m);if(nz(e)){var s=ul(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,f=e.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var h=km(t),v=h[0],d=h[1];v&&(d=rz(d||0),r("stroke-dasharray",v.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<Xp.length;p++){var g=Xp[p];if(e[g]!==Gc[g]){var m=e[g]||Gc[g];m&&r(iz[p],m)}}}}var SD="http://www.w3.org/2000/svg",wD="http://www.w3.org/1999/xlink",sz="http://www.w3.org/2000/xmlns/",lz="http://www.w3.org/XML/1998/namespace",t_="ecmeta_";function TD(r){return document.createElementNS(SD,r)}function wt(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function uz(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function cz(r){return"</"+r+">"}function Um(r,e){e=e||{};var t=e.newline?`
15
- `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return uz(o,s)+(o!=="style"?Ut(l):l||"")+(i?""+t+$(i,function(u){return a(u)}).join(t)+t:"")+cz(o)}return a(r)}function fz(r,e,t){t=t||{};var a=t.newline?`
16
- `:"",n=" {"+a,i=a+"}",o=$(Pe(r),function(l){return l+n+$(Pe(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=$(Pe(e),function(l){return"@keyframes "+l+n+$(Pe(e[l]),function(u){return u+n+$(Pe(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function Zp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function r_(r,e,t,a){return wt("svg","root",{width:r,height:e,xmlns:SD,"xmlns:xlink":wD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var hz=0;function CD(){return hz++}var a_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},qn="transform-origin";function vz(r,e,t){var a=H({},r.shape);H(a,e),r.buildPath(t,a);var n=new bD;return n.reset(oT(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function dz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[qn]=t+"px "+a+"px")}var pz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function AD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function gz(r,e,t){var a=r.shape.paths,n={},i,o;if(L(a,function(l){var u=Zp(t.zrId);u.animation=!0,uh(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Pe(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=AD(n,t);return i.replace(o,s)}}function n_(r){return J(r)?a_[r]?"cubic-bezier("+a_[r]+")":qg(r)?r:"":""}function uh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof hm){var s=gz(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],f=[c.getMaxTime()/1e3+"s"],h=n_(c.getClip().easing),v=c.getDelay();h?f.push(h):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function p(y){var x=y[1],_=x.length,S={},b={},w={},C="animation-timing-function";function A(ne,q,ie){for(var Z=ne.getTracks(),re=ne.getMaxTime(),ye=0;ye<Z.length;ye++){var ge=Z[ye];if(ge.needsAnimate()){var pe=ge.keyframes,_e=ge.propName;if(ie&&(_e=ie(_e)),_e)for(var Ee=0;Ee<pe.length;Ee++){var Ue=pe[Ee],U=Math.round(Ue.time/re*100)+"%",oe=n_(Ue.easing),Ge=Ue.rawValue;(J(Ge)||Be(Ge))&&(q[U]=q[U]||{},q[U][_e]=Ue.rawValue,oe&&(q[U][C]=oe))}}}}for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I?I==="shape"&&A(M,b):!a&&A(M,S)}for(var P in S){var k={};fT(k,r),H(k,S[P]);var R=sT(k),E=S[P][C];w[P]=R?{transform:R}:{},dz(w[P],k),E&&(w[P][C]=E)}var B,O=!0;for(var P in b){w[P]=w[P]||{};var V=!B,E=b[P][C];V&&(B=new va);var F=B.len();B.reset(),w[P].d=vz(r,b[P],B);var G=B.len();if(!V&&F!==G){O=!1;break}E&&(w[P][C]=E)}if(!O)for(var P in w)delete w[P].d;if(!a)for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I==="style"&&A(M,w,function(Z){return pz[Z]})}for(var j=Pe(w),Y=!0,X,D=1;D<j.length;D++){var Q=j[D-1],fe=j[D];if(w[Q][qn]!==w[fe][qn]){Y=!1;break}X=w[Q][qn]}if(Y&&X){for(var P in w)w[P][qn]&&delete w[P][qn];e[qn]=X}if(je(j,function(ne){return Pe(w[ne]).length>0}).length){var he=AD(w,t);return he+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=t.zrId+"-cls-"+CD();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function mz(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};i_(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=sp(l))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),i_(a,e,t)}}function i_(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+CD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var Sl=Math.round;function DD(r){return r&&J(r.src)}function MD(r){return r&&se(r.toDataURL)}function Ym(r,e,t,a){oz(function(n,i){var o=n==="fill"||n==="stroke";o&&iT(i)?ID(e,r,n,a):o&&Jg(i)?PD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Tz(t,r,a)}function Xm(r,e){var t=dR(e);t&&(t.each(function(a,n){a!=null&&(r[(t_+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[t_+"silent"]="true"))}function o_(r){return ln(r[0]-1)&&ln(r[1])&&ln(r[2])&&ln(r[3]-1)}function yz(r){return ln(r[4])&&ln(r[5])}function Zm(r,e,t){if(e&&!(yz(e)&&o_(e))){var a=1e4;r.transform=o_(e)?"translate("+Sl(e[4]*a)/a+" "+Sl(e[5]*a)/a+")":B5(e)}}function s_(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(Sl(a[i][0]*t)/t),n.push(Sl(a[i][1]*t)/t);e.points=n.join(" ")}function l_(r){return!r.smooth}function xz(r){var e=$(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(a[o[1]]=Sl(s*n)/n)}}}var _z={circle:[xz(["cx","cy","r"])],polyline:[s_,l_],polygon:[s_,l_]};function bz(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function LD(r,e){var t=r.style,a=r.shape,n=_z[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&oT(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&bz(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;f&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new bD),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return Zm(i,r.transform),Ym(i,t,r,e),Xm(i,r),e.animation&&uh(r,i,e),e.emphasis&&mz(r,i,e),wt(s,r.id+"",i)}function Sz(r,e){var t=r.style,a=t.image;if(a&&!J(a)&&(DD(a)?a=a.src:MD(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Zm(l,r.transform),Ym(l,t,r,e),Xm(l,r),e.animation&&uh(r,l,e),wt("image",r.id+"",l)}}function wz(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||mn,i=t.x||0,o=V5(t.y||0,Ef(n),t.textBaseline),s=z5[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(BT(t)){var u="",c=t.fontStyle,f=OT(t.fontSize);if(!parseFloat(f))return;var h=t.fontFamily||O2,v=t.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Zm(l,r.transform),Ym(l,t,r,e),Xm(l,r),e.animation&&uh(r,l,e),wt("text",r.id+"",l,void 0,a)}}function u_(r,e){if(r instanceof De)return LD(r,e);if(r instanceof Lt)return Sz(r,e);if(r instanceof Lo)return wz(r,e)}function Tz(r,e,t){var a=r.style;if(G5(a)){var n=F5(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,f=a.shadowOffsetY||0,h=a.shadowBlur,v=ul(a.shadowColor),d=v.opacity,p=v.color,g=h/2/l,m=h/2/u,y=g+" "+m;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=wt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wt("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),i[n]=o}e.filter=Nf(o)}}function ID(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(aT(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(nT(n))i="radialGradient",o.cx=me(n.x,.5),o.cy=me(n.y,.5),o.r=me(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=lp(s[u].offset)*100+"%",h=s[u].color,v=ul(h),d=v.color,p=v.opacity,g={offset:f};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(wt("stop",u+"",g))}var m=wt(i,"",o,l),y=Um(m),x=a.gradientCache,_=x[y];_||(_=a.zrId+"-g"+a.gradientIdx++,x[y]=_,o.id=_,a.defs[_]=wt(i,_,o,l)),e[t]=Nf(_)}function PD(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(rT(n)){var h=n.imageWidth,v=n.imageHeight,d=void 0,p=n.image;if(J(p)?d=p:DD(p)?d=p.src:MD(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Zt(h,g),Zt(v,g)}else if(h==null||v==null){var m=function(D,M){if(D){var I=D.elm,P=h||M.width,k=v||M.height;D.tag==="pattern"&&(u?(k=1,P/=i.width):c&&(P=1,k/=i.height)),D.attrs.width=P,D.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=nm(d,null,r,function(D){l||m(b,D),m(f,D)});y&&y.width&&y.height&&(h=h||y.width,v=v||y.height)}f=wt("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else n.svgElement&&(f=ce(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var x,_;l?x=_=1:u?(_=1,x=o.width/i.width):c?(x=1,_=o.height/i.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var S=sT(n);S&&(o.patternTransform=S);var b=wt("pattern","",o,[f]),w=Um(b),C=a.patternCache,A=C[w];A||(A=a.zrId+"-p"+a.patternIdx++,C[w]=A,o.id=A,b=a.defs[A]=wt("pattern",A,o,[f])),e[t]=Nf(A)}}function Cz(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=wt("clipPath",i,o,[LD(r,t)])}e["clip-path"]=Nf(i)}function c_(r){return document.createTextNode(r)}function ni(r,e,t){r.insertBefore(e,t)}function f_(r,e){r.removeChild(e)}function h_(r,e){r.appendChild(e)}function kD(r){return r.parentNode}function RD(r){return r.nextSibling}function Nv(r,e){r.textContent=e}var v_=58,Az=120,Dz=wt("","");function Kp(r){return r===void 0}function ea(r){return r!==void 0}function Mz(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function zs(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function wl(r){var e,t=r.children,a=r.tag;if(ea(a)){var n=r.elm=TD(a);if(Km(Dz,r),W(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&h_(n,wl(i))}else ea(r.text)&&!ue(r.text)&&h_(n,c_(r.text))}else r.elm=c_(r.text);return r.elm}function ND(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&ni(r,wl(i),e)}}function of(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(ea(n.tag)){var i=kD(n.elm);f_(i,n.elm)}else f_(r,n.elm)}}function Km(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t==="style"?a.style.cssText=o:t.charCodeAt(0)!==Az?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(sz,t,o):t.charCodeAt(3)===v_?a.setAttributeNS(lz,t,o):t.charCodeAt(5)===v_?a.setAttributeNS(wD,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function Lz(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],f,h,v,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=t[++n]:c==null?c=t[--l]:zs(o,u)?(vo(o,u),o=e[++a],u=t[++n]):zs(s,c)?(vo(s,c),s=e[--i],c=t[--l]):zs(o,c)?(vo(o,c),ni(r,o.elm,RD(s.elm)),o=e[++a],c=t[--l]):zs(s,u)?(vo(s,u),ni(r,s.elm,o.elm),s=e[--i],u=t[++n]):(Kp(f)&&(f=Mz(e,a,i)),h=f[u.key],Kp(h)?ni(r,wl(u),o.elm):(v=e[h],v.tag!==u.tag?ni(r,wl(u),o.elm):(vo(v,u),e[h]=void 0,ni(r,v.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(d=t[l+1]==null?null:t[l+1].elm,ND(r,d,t,n,l)):of(r,e,a,i))}function vo(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(Km(r,e),Kp(e.text)?ea(a)&&ea(n)?a!==n&&Lz(t,a,n):ea(n)?(ea(r.text)&&Nv(t,""),ND(t,null,n,0,n.length-1)):ea(a)?of(t,a,0,a.length-1):ea(r.text)&&Nv(t,""):r.text!==e.text&&(ea(a)&&of(t,a,0,a.length-1),Nv(t,e.text)))}function Iz(r,e){if(zs(r,e))vo(r,e);else{var t=r.elm,a=kD(t);wl(e),a!==null&&(ni(a,e.elm,RD(t)),of(a,[r],0,0))}return e}var Pz=0,kz=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=d_(),this.configLayer=d_(),this.storage=t,this._opts=a=H({},a),this.root=e,this._id="zr"+Pz++,this._oldVNode=r_(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=TD("svg");Km(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Iz(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return u_(e,Zp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Zp(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Rz(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=wt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=$(Pe(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(wt("defs","defs",{},u)),e.animation){var c=fz(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=wt("style","stl",{},[],c);o.push(f)}}return r_(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Um(this.renderToVNode({animation:me(e.cssAnimation,!0),emphasis:me(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:me(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,c=0;c<n;c++){var f=e[c];if(!f.invisible){var h=f.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<v;m++){var y={};Cz(h[m],y,t);var x=wt("g","clip-g-"+u++,y,[]);(s?s.children:a).push(x),i[o++]=x,s=x}l=h;var _=u_(f,t);_&&(s?s.children:a).push(_)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=xo(n,0,a),t=xo(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Jg(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=j5(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function d_(r){return function(){}}function Rz(r,e,t,a){var n;if(t&&t!=="none")if(n=wt("rect","bg",{width:r,height:e,x:"0",y:"0"}),iT(t))ID({fill:t},n.attrs,"fill",a);else if(Jg(t))PD({style:{fill:t},dirty:ct,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=ul(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function Nz(r){r.registerPainter("svg",kz)}function p_(r,e,t){var a=yn.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var Ev=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||zc,typeof t=="string"?o=p_(t,a,n):ue(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(H2(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=p_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new we(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new we(0,0,0,0);x.copy(y),o.push(x)}else{for(var _=!1,S=1/0,b=0,w=0;w<o.length;++w){var C=o[w];if(C.intersect(y)){var A=new we(0,0,0,0);A.copy(C),A.union(y),o[w]=A,_=!0;break}else if(l){u.copy(y),u.union(C);var D=y.width*y.height,M=C.width*C.height,I=u.width*u.height,P=I-D-M;P<S&&(S=P,b=w)}}if(l&&(o[b].union(y),_=!0),!_){var x=new we(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=t[f];if(h){var v=h.shouldBePainted(n,i,!0,!0),d=h.__isRendered&&(h.__dirty&lr||!v)?h.getPrevPaintRect():null;d&&c(d);var p=v&&(h.__dirty&lr||!h.__isRendered)?h.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=a[f],v=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&c(d)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var v=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),a&&a!=="transparent"){var x=void 0;if(Pf(a)){var _=a.global||a.__width===m&&a.__height===y;x=_&&a.__canvasGradient||Gp(o,a,{x:0,y:0,width:m,height:y}),a.__canvasGradient=x,a.__width=m,a.__height=y}else qk(a)&&(a.scaleX=a.scaleX||f,a.scaleY=a.scaleY||f,x=Fp(o,a,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=x||a,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(v,p,g,m,y),o.restore())}!n||u?d(0,0,s,l):n.length&&L(n,function(p){d(p.x*f,p.y*f,p.width*f,p.height*f)})},e})(Lr),g_=1e5,Zn=314159,Ou=.01,Ez=.001;function Oz(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Bz(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var zz=(function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=H({},a||{}),this.dpr=a.devicePixelRatio||zc,this._singleCanvas=i,this.root=e;var o=e.style;o&&(H2(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,h=c.height;a.width!=null&&(f=a.width),a.height!=null&&(h=a.height),this.dpr=a.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var v=new Ev(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Zn]=v,v.zlevel=Zn,s.push(Zn),this._domRoot=e}else{this._width=xo(e,0,a),this._height=xo(e,1,a);var u=this._domRoot=Bz(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(g_)),i||(i=a.ctx,i.save()),vi(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(g_)},r.prototype.paintOne=function(e,t){yA(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;kc(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Zn).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var c=!0,f=!1,h=function(p){var g=i[p],m=g.ctx,y=o&&g.createRepaintRects(e,t,v._width,v._height),x=a?g.__startIndex:g.__drawIndex,_=!a&&g.incremental&&Date.now,S=_&&Date.now(),b=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,y);else if(x===g.__startIndex){var w=e[x];(!w.incremental||!w.notClear||a)&&g.clear(!1,b,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=g.__startIndex);var C,A=function(P){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=x;C<g.__endIndex;C++){var R=e[C];if(R.__inHover&&(f=!0),n._doPaintEl(R,g,o,P,k,C===g.__endIndex-1),_){var E=Date.now()-S;if(E>15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var D=v.dpr,M=0;M<y.length;++M){var I=y[M];m.save(),m.beginPath(),m.rect(I.x*D,I.y*D,I.width*D,I.height*D),m.clip(),A(I),m.restore()}else m.save(),A(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},v=this,d=0;d<i.length;d++)h(d);return Me.wxa&&L(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!n||l&&l.intersect(n))&&(vi(s,e,i,o),e.setPrevPaintRect(l))}else vi(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Zn);var a=this._layers[e];return a||(a=new Ev("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?be(a,this._layerConfig[e],!0):this._layerConfig[e-Ou]&&be(a,this._layerConfig[e-Ou],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&Oz(t)){if(i>0&&e>n[0]){for(l=0;l<i-1&&!(n[l]<e&&n[l+1]>e);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function t(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var n=e[l],u=n.zlevel,c=void 0;s!==u&&(s=u,o=0),n.incremental?(c=this.getLayer(u+Ez,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Ou:0),this._needsManuallyCompositing),c.__builtin__||Wg("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),n.__dirty&lr&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?be(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===e||i===e+Ou){var o=this._layers[i];be(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(Ce(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=xo(i,0,n),t=xo(i,1,n),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Zn).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Zn].dom;var t=new Ev("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(f){f.__builtin__?a.drawImage(f.dom,0,0,n,i):f.renderToCanvas&&(a.save(),f.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];vi(a,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function Vz(r){r.registerPainter("canvas",zz)}var Gz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ha(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new ve,n=dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=dt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Qe);function No(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=Po(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(Po(r,e,t[o]));return i.join(" ")}}function ED(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Yl=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=dt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Fz,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Na(this.childAt(0))},e.prototype.downplay=function(){Ea(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ve(h,v,s,a),jr(h)}if(this._updateCommon(t,a,l,n,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,at(h,v,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(a),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),v=x.get("blurScope"),d=x.get("disabled"),p=Ct(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var _=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=Ei(t.getItemVisual(a,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var b=t.getItemVisual(a,"style"),w=b.fill;if(s instanceof Lt){var C=s.style;s.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(H({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Rt(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?t.getName(R):No(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),it(this,h,v,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=de(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&_n(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();_n(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Jo(t.getItemVisual(a,"symbolSize"))},e})(ve);function Fz(r,e){this.parent.drift(r,e)}function Ov(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function m_(r){return r!=null&&!ue(r)&&(r={isIgnore:r}),r||{}}function y_(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Ct(e),cursorStyle:e.get("cursor")}}var Xl=(function(){function r(e){this.group=new ve,this._SymbolCtor=e||Yl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=m_(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=y_(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};i||a.removeAll(),e.diff(i).add(function(f){var h=c(f);if(Ov(e,h,f,t)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),a.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!Ov(e,d,f,t)){a.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Ve(v,m,n)}a.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=y_(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=m_(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Ov(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Cn(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function OD(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Hz(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=$(r.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Sn(e,f[0])&&(h=!0,f[0]=v),Sn(e,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Hz(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Be(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function BD(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function jz(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function Wz(r,e,t,a,n,i,o,s){for(var l=jz(r,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=OD(n,e,o),m=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],S=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=_.idx*2,w=_.idx1*2;var C=m[b],A=m[b+1],D=y[w],M=y[w+1];(isNaN(C)||isNaN(A))&&(C=D,A=M),u.push(C,A),c.push(D,M),f.push(t[b],t[b+1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,P=g.dataDimsForPoint,k=n.dataToPoint([e.get(P[0],I),e.get(P[1],I)]);w=I*2,u.push(k[0],k[1]),c.push(y[w],y[w+1]);var R=BD(g,n,e,I);f.push(R[0],R[1]),h.push(a[w],a[w+1]),p.push(e.getRawIndex(I));break;case"-":S=!1}S&&(v.push(_),d.push(d.length))}d.sort(function(Q,fe){return p[Q]-p[fe]});for(var E=u.length,B=ia(E),O=ia(E),V=ia(E),F=ia(E),G=[],x=0;x<d.length;x++){var j=d[x],Y=x*2,X=j*2;B[Y]=u[X],B[Y+1]=u[X+1],O[Y]=c[X],O[Y+1]=c[X+1],V[Y]=f[X],V[Y+1]=f[X+1],F[Y]=h[X],F[Y+1]=h[X+1],G[x]=v[j]}return{current:B,next:O,stackedOnCurrent:V,stackedOnNext:F,status:G}}var Za=Math.min,Ka=Math.max;function Si(r,e){return isNaN(r)||isNaN(e)}function qp(r,e,t,a,n,i,o,s,l){for(var u,c,f,h,v,d,p=t,g=0;g<a;g++){var m=e[p*2],y=e[p*2+1];if(p>=n||p<0)break;if(Si(m,y)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){p+=i;continue}if(o>0){for(var S=p+i,b=e[S*2],w=e[S*2+1];b===m&&w===y&&g<a;)g++,S+=i,p+=i,b=e[S*2],w=e[S*2+1],m=e[p*2],y=e[p*2+1],x=m-u,_=y-c;var C=g+1;if(l)for(;Si(b,w)&&C<a;)C++,S+=i,b=e[S*2],w=e[S*2+1];var A=.5,D=0,M=0,I=void 0,P=void 0;if(C>=a||Si(b,w))v=m,d=y;else{D=b-u,M=w-c;var k=m-u,R=b-m,E=y-c,B=w-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(k),V=Math.abs(R);var F=D>0?1:-1;v=m-F*O*o,d=y,I=m+F*V*o,P=y}else if(s==="y"){O=Math.abs(E),V=Math.abs(B);var G=M>0?1:-1;v=m,d=y-G*O*o,I=m,P=y+G*V*o}else O=Math.sqrt(k*k+E*E),V=Math.sqrt(R*R+B*B),A=V/(V+O),v=m-D*o*(1-A),d=y-M*o*(1-A),I=m+D*o*A,P=y+M*o*A,I=Za(I,Ka(b,m)),P=Za(P,Ka(w,y)),I=Ka(I,Za(b,m)),P=Ka(P,Za(w,y)),D=I-m,M=P-y,v=m-D*O/V,d=y-M*O/V,v=Za(v,Ka(u,m)),d=Za(d,Ka(c,y)),v=Ka(v,Za(u,m)),d=Ka(d,Za(c,y)),D=m-v,M=y-d,I=m+D*V/O,P=y+M*V/O}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=P}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var zD=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),$z=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zD},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Si(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Si(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=qp(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=va.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var h=i[f++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,x=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],d=i[f++],x=u?(t-s)/(v-s):(t-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(v-s)*x+s;return u?[t,_]:[_,t]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var S=u?Nc(s,v,p,m,t,c):Nc(l,d,g,y,t,c);if(S>0)for(var b=0;b<S;b++){var w=c[b];if(w<=1&&w>=0){var _=u?bt(l,d,g,y,w):bt(s,v,p,m,w);return u?[t,_]:[_,t]}}s=m,l=y;break}}},e})(De),Uz=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(zD),VD=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new Uz},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Si(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Si(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=qp(t,n,o,s,s,1,a.smooth,l,a.connectNulls);qp(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e})(De);function GD(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Re({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=se(n)?function(g){n(g,f)}:null;at(f,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return f}function FD(r,e,t){var a=r.getArea(),n=ot(a.r0,1),i=ot(a.r,1),o=new qt({shape:{cx:ot(r.cx,1),cy:ot(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,at(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Zl(r,e,t,a,n){if(r){if(r.type==="polar")return FD(r,e,t);if(r.type==="cartesian2d")return GD(r,e,t,a,n)}else return null;return null}function Bi(r,e){return r.type===e}function x_(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function __(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function b_(r,e){var t=__(r),a=t[0],n=t[1],i=__(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function S_(r){return Be(r)?r:r?.5:0}function Yz(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=ia(a*2),i=0;i<a;i++){var o=BD(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function qa(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+f[o])/2,p=[];u[o]=p[o]=d,u[1-o]=c[1-o],p[1-o]=f[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Xz(r,e){var t=[],a=r.length,n,i;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),p=O5(d,[c.color,f.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function Zz(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=$(i.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=Xz(u,n==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";L(h,function(x){x.offset=(x.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Gl(0,0,0,0,h,!0);return y[n]=p,y[n+"2"]=g,y}}}function Kz(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&qz(i,e))){var o=e.mapDimension(i.dim),s={};return L(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qz(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Yl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function Jz(r,e){return isNaN(r)||isNaN(e)}function Qz(r){for(var e=r.length/2;e>0&&Jz(r[e*2-2],r[e*2-1]);e--);return e-1}function w_(r,e){return[r[e*2],r[e*2+1]]}function eV(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function HD(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Kt.length;e++)if(r.get([Kt[e],"endLabel","show"]))return!0;return!1}function Bv(r,e,t,a){if(Bi(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=HD(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=GD(e,t,a,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return FD(e,t,a)}function tV(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var rV=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ve,a=new Xl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=ee(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!a.ssr&&t.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=OD(i,s,x),S=y&&Yz(i,s,_),b=t.get("showSymbol"),w=t.get("connectNulls"),C=b&&!f&&Kz(t,s,i),A=this._data;A&&A.eachItemGraphicEl(function(Q,fe){Q.__temp&&(o.remove(Q),A.setItemGraphicEl(fe,null))}),b||v.remove(),o.add(g);var D=f?!1:t.get("step"),M;i&&i.getArea&&t.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=Zz(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&D===this._step))b&&v.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[c[Q*2],c[Q*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,M),D&&(S&&(S=qa(S,c,i,D,w)),c=qa(c,null,i,D,w)),d=this._newPolyline(c),y?p=this._newPolygon(c,S):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,Mi(I)),g.setClipPath(Bv(this,i,!0,t));else{y&&!p?p=this._newPolygon(c,S):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(t,i,Mi(I));var P=g.getClipPath();if(P){var k=Bv(this,i,!1,t);at(P,{shape:k.shape},t)}else g.setClipPath(Bv(this,i,!0,t));b&&v.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Q){return[c[Q*2],c[Q*2+1]]}}),(!x_(this._stackedOnPoints,S)||!x_(this._points,c))&&(m?this._doUpdateAnimation(s,S,i,n,D,x,w):(D&&(S&&(S=qa(S,c,i,D,w)),c=qa(c,null,i,D,w)),d.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:S})))}var R=t.getModel("emphasis"),E=R.get("focus"),B=R.get("blurScope"),O=R.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),kt(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}de(d).seriesIndex=t.seriesIndex,it(d,E,B,O);var F=S_(t.get("smooth")),G=t.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:G,connectNulls:w}),p){var j=s.getCalculationInfo("stackedOnSeries"),Y=0;p.useStyle(le(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),j&&(Y=S_(j.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:Y,smoothMonotone:G,connectNulls:w}),kt(p,t,"areaStyle"),de(p).seriesIndex=t.seriesIndex,it(p,E,B,O)}var X=this._changePolyState;s.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=i,this._stackedOnPoints=S,this._points=c,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){de(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Ci(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Yl(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ze.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Ci(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ze.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Fc(this._polyline,t),a&&Fc(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new $z({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new VD({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");se(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=se(f)?f(null):f;t.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,x=void 0;if(n)if(o){var _=n,S=a.pointToCoord(g);i?(m=_.startAngle,y=_.endAngle,x=-S[1]/180*Math.PI):(m=_.r0,y=_.r,x=S[0])}else{var b=n;i?(m=b.x,y=b.x+b.width,x=v.x):(m=b.y+b.height,y=b.y,x=v.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=se(f)?f(d):c*w+h,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(HD(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Qz(l);c>=0&&(Rt(s,Ct(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?ED(o,v):No(o,f)},enableTextSetter:!0},tV(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=a.shape,_=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,S=(m?p:0)*(y?-1:1),b=(m?0:-p)*(y?-1:1),w=m?"x":"y",C=eV(f,_,w),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!v){var I=w_(f,A[0]);u.attr({x:I[0]+S,y:I[1]+b}),o&&(M=h.getRawValue(A[0]))}else{var I=c.getPointOn(_,w);I&&u.attr({x:I[0]+S,y:I[1]+b});var P=h.getRawValue(A[0]),k=h.getRawValue(A[1]);o&&(M=AT(n,d,P,k,C.t))}i.lastFrameIndex=A[0]}else{var R=t===1||i.lastFrameIndex>0?A[0]:0,I=w_(f,R);o&&(M=h.getRawValue(R)),u.attr({x:I[0]+S,y:I[1]+b})}if(o){var E=$o(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,h=Wz(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=qa(h.stackedOnCurrent,h.current,n,o,l),v=qa(h.current,null,n,o,l),g=qa(h.stackedOnNext,h.next,n,o,l),p=qa(h.next,null,n,o,l)),b_(v,p)>3e3||c&&b_(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),Ve(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ve(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=h.status,_=0;_<x.length;_++){var S=x[_].cmd;if(S==="="){var b=t.getItemGraphicEl(x[_].idx1);b&&y.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,D=y[C].ptIdx*2;A.x=w[D],A.y=w[D+1],A.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Ze);function Kl(r,e){return{seriesType:r,plan:Ko(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var s=$(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Sn(a,s[0])&&(s[0]=u),Sn(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&ia(p*l),m=[],y=[],x=v.start,_=0;x<v.end;x++){var S=void 0;if(l===1){var b=c.get(f,x);S=n.dataToPoint(b,null,y)}else m[0]=c.get(f,x),m[1]=c.get(h,x),S=n.dataToPoint(m,null,y);o?(g[_++]=S[0],g[_++]=S[1]):d.setItemLayout(x,S.slice())}o&&d.setLayout("points",g)}}}}}}var aV={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},nV=function(r){return Math.round(r.length/2)};function jD(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;J(i)?d=aV[i]:se(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/v,d,nV))}}}}}function iV(r){r.registerChartView(rV),r.registerSeriesModel(Gz),r.registerLayout(Kl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jD("line"))}var Tl=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ha(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)L(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=a[v]==="x1"||a[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,x=void 0,_=1,S=0;S<d.length;S++){var b=d[S].coord,w=S===d.length-1?d[S-1].tickValue+_:d[S].tickValue;if(w===g){x=b;break}else if(w<g)y=b;else if(y!=null&&w>g){x=(b+y)/2;break}S===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[v]=h.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e})(Qe);Qe.registerClass(Tl);var oV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ha(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=An(Tl.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e})(Tl),sV=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),sf=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new sV},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);d?(t.moveTo(p*o+n,g*o+i),t.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!h)):t.moveTo(p*s+n,g*s+i),t.arc(n,i,s,c,f,!h),t.arc(m*u+n,y*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&t.arc(n,i,o,f,c,h)},e})(De);function lV(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Vc(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=t?Math.abs(h-v)/2:0,x=Math.cos,_=Math.sin,S=c+h*x(p),b=f+h*_(p),w="left",C="top";switch(s){case"startArc":S=c+(v-l)*x(m),b=f+(v-l)*_(m),w="center",C="top";break;case"insideStartArc":S=c+(v+l)*x(m),b=f+(v+l)*_(m),w="center",C="bottom";break;case"startAngle":S=c+d*x(p)+Bu(p,l+y,!1),b=f+d*_(p)+zu(p,l+y,!1),w="right",C="middle";break;case"insideStartAngle":S=c+d*x(p)+Bu(p,-l+y,!1),b=f+d*_(p)+zu(p,-l+y,!1),w="left",C="middle";break;case"middle":S=c+d*x(m),b=f+d*_(m),w="center",C="middle";break;case"endArc":S=c+(h+l)*x(m),b=f+(h+l)*_(m),w="center",C="bottom";break;case"insideEndArc":S=c+(h-l)*x(m),b=f+(h-l)*_(m),w="center",C="top";break;case"endAngle":S=c+d*x(g)+Bu(g,l+y,!0),b=f+d*_(g)+zu(g,l+y,!0),w="left",C="middle";break;case"insideEndAngle":S=c+d*x(g)+Bu(g,-l+y,!0),b=f+d*_(g)+zu(g,-l+y,!0),w="right",C="middle";break;default:return Vc(a,n,i)}return a=a||{},a.x=S,a.y=b,a.align=w,a.verticalAlign=C,a}}function uV(r,e,t,a){if(Be(a)){r.setTextConfig({rotation:a});return}else if(W(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function Bu(r,e,t){return e*Math.sin(r)*(t?-1:1)}function zu(r,e,t){return e*Math.cos(r)*(t?1:-1)}function di(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;W(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(a,function(i){return Hr(i,n)})}}var zv=Math.max,Vv=Math.min;function cV(r,e){var t=r.getArea&&r.getArea();if(Bi(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var fV=(function(r){z(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=hV(t,u);v&&this._enableRealtimeSort(v,s,n);var d=t.get("clip",!0)||v,p=cV(u,s);o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],S=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(M){var I=Vu[u.type](s,M),P=xV(u,f,I);return P.useStyle(y.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",x):P.setShape("cornerRadius",x),_[M]=P,P}s.diff(l).add(function(M){var I=s.getItemModel(M),P=Vu[u.type](s,M,I);if(m&&C(M),!(!s.hasValue(M)||!M_[u.type](P))){var k=!1;d&&(k=T_[u.type](p,P));var R=C_[u.type](t,s,M,P,f,h,c.model,!1,g);v&&(R.forceLabelAnimation=!0),L_(R,s,M,I,P,t,f,u.type==="polar"),b?R.attr({shape:P}):v?A_(v,h,R,P,M,f,!1,!1):at(R,{shape:P},t,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=k}}).update(function(M,I){var P=s.getItemModel(M),k=Vu[u.type](s,M,P);if(m){var R=void 0;S.length===0?R=C(I):(R=S[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",x):R.setShape("cornerRadius",x),_[M]=R);var E=Vu[u.type](s,M),B=$D(f,E,u);Ve(R,{shape:B},h,M)}var O=l.getItemGraphicEl(I);if(!s.hasValue(M)||!M_[u.type](k)){o.remove(O);return}var V=!1;if(d&&(V=T_[u.type](p,k),V&&o.remove(O)),O?jr(O):O=C_[u.type](t,s,M,k,f,h,c.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var G=$o(F);G.prevValue!=null&&(G.prevValue=G.value)}}else L_(O,s,M,P,k,t,f,u.type==="polar");b?O.attr({shape:k}):v?A_(v,h,O,k,M,f,!0,w):Ve(O,{shape:k},t,M,null),s.setItemGraphicEl(M,O),O.ignore=V,o.add(O)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&dl(I,t,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new ve);A.removeAll();for(var D=0;D<_.length;++D)A.add(_[D]);o.add(A),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),P_(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),P_(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Zl(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){dl(i,t,de(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Ze),T_={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=zv(e.x,r.x),s=Vv(e.x+e.width,n),l=zv(e.y,r.y),u=Vv(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>n?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=Vv(e.r,r.r),i=zv(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},C_={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Re({shape:H({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?sf:qt,c=new u({shape:a,z2:1});c.name="item";var f=WD(n);if(c.calculateTextPosition=lV(f,{isRoundCap:u===sf}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?Ve:at)(c,{shape:d},i)}return c}};function hV(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function A_(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Ve:at)(t,{shape:l},e,n,null);var c=e?r.baseAxis.model:null;(o?Ve:at)(t,{shape:u},c,n)}function D_(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var vV=["x","y","width","height"],dV=["cx","cy","r","startAngle","endAngle"],M_={cartesian2d:function(r){return!D_(r,vV)},polar:function(r){return!D_(r,dV)}},Vu={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?gV(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function pV(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function WD(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function L_(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=di(a.getModel("itemStyle"),c,!0);H(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Ct(a);Rt(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:No(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,uV(r,g==="outside"?v:g,WD(o),a.get(["label","rotate"]))}uC(p,d,i.getRawValue(t),function(y){return ED(e,y)});var m=a.getModel(["emphasis"]);it(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),kt(r,a),pV(n)&&(r.style.fill="none",r.style.stroke="none",L(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function gV(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var mV=(function(){function r(){}return r})(),I_=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new mV},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],t.rect(s[0],s[1],l[0],l[1])},e})(De);function P_(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new I_({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var f=new I_({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,de(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",k_),f.on("mousemove",k_)),t&&t.push(f)}var k_=Im(function(r){var e=this,t=yV(e,r.offsetX,r.offsetY);de(e).dataIndex=t>=0?t:null},30,!1);function yV(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function $D(r,e,t){if(Bi(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function xV(r,e,t){var a=r.type==="polar"?qt:Re;return new a({shape:$D(e,t,r),silent:!0,z2:0})}function _V(r){r.registerChartView(fV),r.registerSeriesModel(oV),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xe(KA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jD("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var R_=Math.PI*2,Gu=Math.PI/180;function UD(r,e){return yt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function YD(r,e){var t=UD(r,e),a=r.get("center"),n=r.get("radius");W(n)||(n=[0,n]);var i=K(t.width,e.getWidth()),o=K(t.height,e.getHeight()),s=Math.min(i,o),l=K(n[0],s/2),u=K(n[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(a);c=v[0]||0,f=v[1]||0}else W(a)||(a=[a,a]),c=K(a[0],i)+t.x,f=K(a[1],o)+t.y;return{cx:c,cy:f,r0:l,r:u}}function bV(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=UD(a,t),s=YD(a,t),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*Gu,v=a.get("endAngle"),d=a.get("padAngle")*Gu;v=v==="auto"?h-R_:-v*Gu;var p=a.get("minAngle")*Gu,g=p+d,m=0;n.each(i,function(B){!isNaN(B)&&m++});var y=n.getSum(i),x=Math.PI/(y||m)*2,_=a.get("clockwise"),S=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var C=_?1:-1,A=[h,v],D=C*d/2;im(A,!_),h=A[0],v=A[1];var M=XD(a);M.startAngle=h,M.endAngle=v,M.clockwise=_;var I=Math.abs(v-h),P=I,k=0,R=h;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(B,O){var V;if(isNaN(B)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?V=y===0&&b?x:B*x:V=I/m,V<g?(V=g,P-=g):k+=B;var F=R+C*V,G=0,j=0;d>V?(G=R+C*V/2,j=G):(G=R+D,j=F-D),n.setItemLayout(O,{angle:V,startAngle:G,endAngle:j,clockwise:_,cx:l,cy:u,r0:f,r:S?We(B,w,[f,c]):c}),R=F}),P<R_&&m)if(P<=.001){var E=I/m;n.each(i,function(B,O){if(!isNaN(B)){var V=n.getItemLayout(O);V.angle=E;var F=0,G=0;E<d?(F=h+C*(O+1/2)*E,G=F):(F=h+C*O*E+D,G=h+C*(O+1)*E-D),V.startAngle=F,V.endAngle=G}})}else x=P/k,R=h,n.each(i,function(B,O){if(!isNaN(B)){var V=n.getItemLayout(O),F=V.angle===g?g:B*x,G=0,j=0;F<d?(G=R+C*F/2,j=G):(G=R+D,j=R+C*F-D),V.startAngle=G,V.endAngle=j,R+=C*F}})})}var XD=Ne();function ql(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var SV=Math.PI/180;function N_(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var x=p.list[y],_=Math.abs(x.label.y-t),S=a+x.len,b=S*S,w=Math.sqrt(Math.abs((1-_*_/m)*b)),C=e+(w+x.len2)*n,A=C-x.label.x,D=x.targetTextWidth-A*n;ZD(x,D,!0),x.label.x=C}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var x=p[y],_=x.label.y>t?m:g,S=Math.abs(x.label.y-t);if(S>=_.maxY){var b=x.label.x-e-x.len2*n,w=a+x.len,C=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;_.rB=C,_.maxY=S}_.list.push(x)}c(g),c(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}yD(r,l,l+o)&&f(r)}function wV(r,e,t,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Gv(r[h])||(v.x<e?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!Gv(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+n-v.x-d.bleedMargin,d.targetTextWidth=g,ZD(d,g)}}N_(u,e,t,a,1,n,i,o,s,f),N_(l,e,t,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!Gv(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,x=y?y[1]+y[3]:0,_=v.style.backgroundColor?0:x,S=d.rect.width+_,b=p[1][0]-p[2][0];m?v.x<e?p[2][0]=o+d.edgeDistance+S+d.labelDistance:p[2][0]=o+n-d.edgeDistance-S-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=v.y}}}function ZD(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(e<c||t){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var h=a.getBoundingRect();a.setStyle("width",Math.ceil(h.width)),a.setStyle("backgroundColor",o)}else{var v=e-l,d=e<c?v:t?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function Gv(r){return r.position==="center"}function TV(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*SV,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),D=w.getTextGuideLine(),M=e.getItemModel(b),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=K(I.get("edgeDistance"),u),B=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=K(V,u);var F=O.get("length2");if(F=K(F,u),Math.abs(C.endAngle-C.startAngle)<o){L(A.states,v),A.ignore=!0,D&&(L(D.states,v),D.ignore=!0);return}if(d(A)){var G=(C.startAngle+C.endAngle)/2,j=Math.cos(G),Y=Math.sin(G),X,Q,fe,he;a=C.cx,n=C.cy;var ne=P==="inside"||P==="inner";if(P==="center")X=C.cx,Q=C.cy,he="center";else{var q=(ne?(C.r+C.r0)/2*j:C.r*j)+a,ie=(ne?(C.r+C.r0)/2*Y:C.r*Y)+n;if(X=q+j*3,Q=ie+Y*3,!ne){var Z=q+j*(V+l-C.r),re=ie+Y*(V+l-C.r),ye=Z+(j<0?-1:1)*F,ge=re;R==="edge"?X=j<0?c+E:c+u-E:X=ye+(j<0?-k:k),Q=ge,fe=[[q,ie],[Z,re],[ye,ge]]}he=ne?"center":R==="edge"?j>0?"right":"left":j>0?"left":"right"}var pe=Math.PI,_e=0,Ee=I.get("rotate");if(Be(Ee))_e=Ee*(pe/180);else if(P==="center")_e=0;else if(Ee==="radial"||Ee===!0){var Ue=j<0?-G+pe:-G;_e=Ue}else if(Ee==="tangential"&&P!=="outside"&&P!=="outer"){var U=Math.atan2(j,Y);U<0&&(U=pe*2+U);var oe=Y>0;oe&&(U=pe+U),_e=U-pe}if(i=!!_e,A.x=X,A.y=Q,A.rotation=_e,A.setStyle({verticalAlign:"middle"}),ne){A.setStyle({align:he});var st=A.states.select;st&&(st.x+=A.x,st.y+=A.y)}else{var Ge=A.getBoundingRect().clone();Ge.applyTransform(A.getComputedTransform());var _t=(A.style.margin||0)+2.1;Ge.y-=_t/2,Ge.height+=_t,t.push({label:A,labelLine:D,position:P,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Se(j,Y),linePoints:fe,textAlign:he,labelDistance:k,labelAlignTo:R,edgeDistance:E,bleedMargin:B,rect:Ge,unconstrainedWidth:Ge.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:ne})}}),!i&&r.get("avoidLabelOverlap")&&wV(t,a,n,l,u,h,c,f);for(var p=0;p<t.length;p++){var g=t[p],m=g.label,y=g.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),x&&(L(m.states,v),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var S=g.linePoints;x||!S?(L(y.states,v),y.ignore=!0):(pD(S,g.minTurnAngle),YB(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new Se(S[0][0],S[0][1])})}}}var CV=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Oe;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),c=t.getItemLayout(a),f=H(di(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(at(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,at(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),at(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,Ve(o,{shape:{endAngle:c.endAngle}},s,a))}else jr(o),Ve(o,{shape:f},s,a);o.useStyle(t.getItemVisual(a,"style")),kt(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=H({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},di(u.getModel("itemStyle"),c)),H(o.ensureState("select"),{x:p,y:g,shape:di(l.getModel(["select","itemStyle"]),c)}),H(o.ensureState("blur"),{shape:di(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&H(y.ensureState("select"),{x:p,y:g}),H(x.ensureState("select"),{x:p,y:g}),it(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Rt(i,Ct(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Qt,this.setTextGuideLine(v)),jm(this,Wm(o),{stroke:u,opacity:sa(s.get(["lineStyle","opacity"]),c,1)})}},e})(qt),AV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=XD(t),v=new qt({shape:H(YD(t,n),h)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new CV(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);dl(p,t,d)}).execute(),TV(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(Ze);function es(r,e,t){e=W(e)&&{coordDimensions:e}||H({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=$l(a,e).dimensions,i=new Yt(n,r);return i.initData(a,t),i}var Jl=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),DV=Ne(),MV=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Jl(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return es(this,{coordDimensions:["value"],encodeDefaulter:xe(Sm,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=DV(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=yR(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Ti(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Qe);function LV(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Be(o)&&!isNaN(o)&&o<0)})}}}function IV(r){r.registerChartView(AV),r.registerSeriesModel(MV),pA("pie",r.registerAction),r.registerLayout(xe(bV,"pie")),r.registerProcessor(ql("pie")),r.registerProcessor(LV("pie"))}var PV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ha(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e})(Qe),KD=4,kV=(function(){function r(){}return r})(),RV=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new kV},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<KD,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var h=n[f++],v=n[f++];isNaN(h)||isNaN(v)||c&&!c.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,h=i[c+1]-l/2;if(t>=f&&a>=h&&t<=f+s&&a<=h+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<n.length;){var v=n[h++],d=n[h++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(d,u),f=Math.max(d,f)}t=this._rect=new we(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e})(De),NV=(function(){function r(){this.group=new ve}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;t=new Float32Array(t.buffer,i,n)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new RV({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=dt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<KD;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=de(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),EV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Kl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new NV:new Xl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Ze),OV=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e})(Ie),Jp=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",vt).models[0]},e.type="cartesian2dAxis",e})(Ie);pt(Jp,Ul);var qD={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},BV=be({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qD),qm=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},qD),zV=be({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qm),VV=le({logBase:10},qm);const JD={category:BV,value:qm,time:zV,log:VV};var GV={value:1,category:1,time:1,log:1};function Eo(r,e,t,a){L(GV,function(n,i){var o=be(be({},JD[i],!0),a,!0),s=(function(l){z(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=gl(this),v=h?Xo(c):{},d=f.getTheme();be(c,d.get(i+"Axis")),be(c,this.getDefaultOption()),c.type=E_(c),h&&bn(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=$p.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",E_)}function E_(r){return r.type||(r.data?"category":"value")}var FV=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return $(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),je(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Qp=["x","y"];function O_(r){return r.type==="interval"||r.type==="time"}var HV=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Qp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!O_(t)||!O_(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Fo([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new we(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Pt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return Pt(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new we(i,o,s,l)},e})(FV),jV=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})($r);function eg(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Mt(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function B_(r){return r.get("coordinateSystem")==="cartesian2d"}function z_(r){var e={xAxisModel:null,yAxisModel:null};return L(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,vt).models[0];e[a]=i}),e}var Fv=Math.log;function QD(r,e,t){var a=Ba.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=rD(r,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Fv(r.base);u=[Fv(u[0])/h,Fv(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=a.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Av(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Av(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Av(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=ot(g-y),p<0&&u[0]>=0?(p=0,g=ot(y)):g>0&&u[1]<=0&&(g=0,p=-ot(y))}var x=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*x,g+d*_),a.setInterval.call(r,d),(x||_)&&a.setNiceExtent.call(r,p+d,g-d)}var WV=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Qp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Pe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;Up(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Ro(p,d),Up(p)&&(s=v))}c.length&&(s||(s=c.pop(),Ro(s.scale,s.model)),L(c,function(g){QD(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};L(a.x,function(o){V_(a,"y",o,i)}),L(a.y,function(o){V_(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=yt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(L(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=TB(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),L(this._coordsList,function(u){u.calcAffineTransform()});function l(){L(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),$V(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}ue(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",vt).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",vt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Ce(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,L(s.x,function(c,f){L(s.y,function(h,v){var d="x"+f+"y"+v,p=new HV(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(h)})});function u(c){return function(f,h){if(Hv(f,e)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new jV(c,lh(f),[0,0],f.get("type"),v),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=i,d.index=h,i._axesList.push(d),s[c][h]=d,l[c]++}}}},r.prototype._updateScale=function(e,t){L(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(B_(n)){var i=z_(n),o=i.xAxisModel,s=i.yAxisModel;if(!Hv(o,t)||!Hv(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){L(rf(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return L(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);Ce(t,i)<0&&t.push(i),Ce(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){if(B_(n)){var i=z_(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=Qp,r})();function Hv(r,e){return r.getCoordSysModel()===e}function V_(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)G_(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&G_(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function G_(r){return r&&r.type!=="category"&&r.type!=="time"&&wB(r)}function $V(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}var un=Math.PI,Xt=(function(){function r(e,t){this.group=new ve,this.opt=t,this.axisModel=e,le(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new ve({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!F_[e]},r.prototype.add=function(e){F_[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=gT(t-e),i,o;return cl(n)?(o=a>0?"top":"bottom",i="center"):cl(n-un)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<un?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),F_={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Pt(s,s,o),Pt(l,l,o));var c=H({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new St({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Io(f.shape,f.style.lineWidth),f.anid="line",t.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);J(h)&&(h=[h,h]),(J(v)||Be(v))&&(v=[v,v]);var d=Ei(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];L([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var x=dt(h[y],-p/2,-g/2,p,g,c.stroke,!0),_=m.r+m.offset,S=u?l:s;x.attr({rotation:m.rotate,x:S[0]+_*Math.cos(r.rotation),y:S[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,a){var n=XV(t,a,e,r),i=KV(t,a,e,r);if(YV(e,i,n),ZV(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=gD($(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));xD(o)}},axisName:function(r,e,t,a){var n=Mt(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,j_(i)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*un/180);var d;j_(i)?h=Xt.innerTextLayout(r.rotation,v??r.rotation,o):(h=UV(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=Mt(r.nameTruncateMaxWidth,g.maxWidth,d),x=new Oe({x:f[0],y:f[1],rotation:h.rotation,silent:Xt.isLabelSilent(e),style:Je(s,{text:n,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ri({el:x,componentModel:e,itemName:n}),x.__fullText=n,x.anid="name",e.get("triggerEvent")){var _=Xt.makeAxisEventDataBase(e);_.targetType="axisName",_.name=n,de(x).eventData=_}a.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function UV(r,e,t,a){var n=gT(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return cl(n-un/2)?(o=l?"bottom":"top",i="center"):cl(n-un*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<un*1.5&&n>un/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function YV(r,e,t){if(!aD(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],f=t[t.length-1],h=t[t.length-2];a===!1?(dr(i),dr(u)):H_(i,o)&&(a?(dr(o),dr(c)):(dr(i),dr(u))),n===!1?(dr(s),dr(f)):H_(l,s)&&(n?(dr(l),dr(h)):(dr(s),dr(f)))}}function dr(r){r&&(r.ignore=!0)}function H_(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=Rf([]);return ki(n,n,-r.rotation),t.applyTransform(Ma([],n,r.getLocalTransform())),a.applyTransform(Ma([],n,e.getLocalTransform())),t.intersect(a)}}function j_(r){return r==="middle"||r==="center"}function eM(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Pt(o,o,e),Pt(s,s,e));var c=new St({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Io(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function XV(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=eM(u,e.transform,l,le(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function ZV(r,e,t,a){var n=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=le(s.getLineStyle(),le(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=eM(o[c],e.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function KV(r,e,t,a){var n=t.axis,i=Mt(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Mt(a.labelRotate,o.get("rotate"))||0)*un/180,c=Xt.innerTextLayout(a.rotation,u,a.labelDirection),f=t.getCategories&&t.getCategories(!0),h=[],v=Xt.isLabelSilent(t),d=t.get("triggerEvent");return L(l,function(p,g){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,x=p.rawLabel,_=o;if(f&&f[m]){var S=f[m];ue(S)&&S.textStyle&&(_=new $e(S.textStyle,o,t.ecModel))}var b=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(m),C=_.getShallow("align",!0)||c.textAlign,A=me(_.getShallow("alignMinLabel",!0),C),D=me(_.getShallow("alignMaxLabel",!0),C),M=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,I=me(_.getShallow("verticalAlignMinLabel",!0),M),P=me(_.getShallow("verticalAlignMaxLabel",!0),M),k=new Oe({x:w,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(p.level||0),style:Je(_,{text:y,align:g===0?A:g===l.length-1?D:C,verticalAlign:g===0?I:g===l.length-1?P:M,fill:se(b)?b(n.type==="category"?x:n.type==="value"?m+"":m,g):b})});if(k.anid="label_"+m,Ri({el:k,componentModel:t,itemName:y,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:x,tickIndex:g}}),d){var R=Xt.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=x,R.tickIndex=g,n.type==="category"&&(R.dataIndex=m),de(k).eventData=R}e.add(k),k.updateTransform(),h.push(k),r.add(k),k.decomposeTransform()}),h}}function qV(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return JV(t,r,e),t.seriesInvolved&&e6(t,r),t}function JV(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];L(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Cl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(L(s.getAxes(),xe(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&L(d.baseAxes,xe(p,v?"cross":!0,h)),v&&L(d.otherAxes,xe(p,"cross",!1))}function p(g,m,y){var x=y.model.getModel("axisPointer",n),_=x.get("show");if(!(!_||_==="auto"&&!g&&!tg(x))){m==null&&(m=x.get("triggerTooltip")),x=g?QV(y,f,n,e,g,m):x;var S=x.get("snap"),b=x.get("triggerEmphasis"),w=Cl(y.model),C=m||S||y.type==="category",A=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:b,involveSeries:C,snap:S,useHandle:tg(x),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||C;var D=t6(i,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=A,M.mapper=i[D].mapper,A.linkGroup=M}}}})}function QV(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(h){l[h]=ce(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&le(u,f.textStyle)}}return r.model.getModel("axisPointer",new $e(l,t,a))}function e6(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||L(r.coordSysAxesInfo[Cl(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function t6(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(jv(i[a+"AxisId"],t.id)||jv(i[a+"AxisIndex"],t.componentIndex)||jv(i[a+"AxisName"],t.name))return n}}function jv(r,e){return r==="all"||W(r)&&Ce(r,e)>=0||r===e}function r6(r){var e=Jm(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=tg(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Jm(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Cl(r)]}function a6(r){var e=Jm(r);return e&&e.axisPointerModel}function tg(r){return!!r.get(["handle","show"])}function Cl(r){return r.type+"||"+r.id}var W_={},zi=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&r6(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=a6(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){W_[t]=a},e.getAxisPointerClass=function(t){return t&&W_[t]},e.type="axis",e})(nt),rg=Ne();function tM(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=rg(r).splitAreaColors,h=ae(),v=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){v=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),x=void 0,_=void 0,S=void 0,b=void 0;n.isHorizontal()?(x=g,_=l.y,S=y-x,b=l.height,g=x+S):(x=l.x,_=g,S=l.width,b=y-_,g=_+b);var w=u[d-1].tickValue;w!=null&&h.set(w,v),e.add(new Re({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:S,height:b},style:le({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}rg(r).splitAreaColors=h}}}function rM(r){rg(r).splitAreaColors=null}var n6=["axisLine","axisTickLabel","axisName"],i6=["splitArea","splitLine","minorSplitLine"],aM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ve,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=eg(s,t),u=new Xt(t,H({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Up(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));L(n6,u.add,u),this._axisGroup.add(u.getGroup()),L(i6,function(f){t.get([f,"show"])&&o6[f](this,this._axisGroup,t,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Fl(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){rM(this)},e.type="cartesianAxis",e})(zi),o6={splitLine:function(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=W(s)?s:[s];for(var c=a.coordinateSystem.getRect(),f=n.isHorizontal(),h=0,v=n.getTicksCoords({tickModel:i}),d=[],p=[],g=o.getLineStyle(),m=0;m<v.length;m++){var y=n.toGlobalCoord(v[m].coord);if(!(m===0&&!l||m===v.length-1&&!u)){var x=v[m].tickValue;f?(d[0]=y,d[1]=c.y,p[0]=y,p[1]=c.y+c.height):(d[0]=c.x,d[1]=y,p[0]=c.x+c.width,p[1]=y);var _=h++%s.length,S=new St({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:le({stroke:s[_]},g),silent:!0});Io(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(r,e,t,a){var n=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=n.toGlobalCoord(u[v][d].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new St({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Io(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,a){tM(r,e,t,a)}},nM=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(aM),s6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=nM.type,t}return e.type="yAxis",e})(aM),l6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Re({shape:t.coordinateSystem.getRect(),style:le({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(nt),$_={offset:0};function iM(r){r.registerComponentView(l6),r.registerComponentModel(OV),r.registerCoordinateSystem("cartesian2d",WV),Eo(r,"x",Jp,$_),Eo(r,"y",Jp,$_),r.registerComponentView(nM),r.registerComponentView(s6),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function u6(r){Ae(iM),r.registerSeriesModel(PV),r.registerChartView(EV),r.registerLayout(Kl("scatter"))}function c6(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();L(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=U_(c)?c:Y_(n)})}),t.each(function(o){var s=Zk(a[o],function(l){return U_(l)})||Y_(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function U_(r){return!isNaN(r[0])&&!isNaN(r[1])}function Y_(r){return[r.cx,r.cy]}function f6(r){var e=r.polar;if(e){W(e)||(e=[e]);var t=[];L(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],W(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}L(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var h6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Jo(h.getItemVisual(v,"symbolSize")),g=dt(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(h,v,d,p,g,m){d.removeAll();for(var y=0;y<v.length-1;y++){var x=u(p,g);x&&(x.__dimIdx=y,h[y]?(x.setPosition(h[y]),Ni[m?"initProps":"updateProps"](x,{x:v[y][0],y:v[y][1]},t,g)):x.setPosition(v[y]),d.add(x))}}function f(h){return $(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Jt,p=new Qt,g={shape:{points:v}};d.shape.points=f(v),p.shape.points=f(v),at(d,g,t,h),at(p,g,t,h);var m=new ve,y=new ve;m.add(p),m.add(d),m.add(y),c(p.shape.points,v,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(c(p.shape.points,y.shape.points,m,s,h,!1),jr(g),jr(p),Ve(p,y,t),Ve(g,y,t),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),m=h.childAt(2),y=s.getItemVisual(v,"style"),x=y.fill;o.add(h),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),kt(p,d,"lineStyle"),kt(g,d,"areaStyle");var _=d.getModel("areaStyle"),S=_.isEmpty()&&_.parentModel.isEmpty();g.ignore=S,L(["emphasis","select","blur"],function(C){var A=d.getModel([C,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=D&&S}),g.useStyle(le(_.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var b=d.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();m.eachChild(function(C){if(C instanceof Lt){var A=C.style;C.useStyle(H({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else C.useStyle(y),C.setColor(x),C.style.strokeNoScale=!0;var D=C.ensureState("emphasis");D.style=ce(w);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Rt(C,Ct(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:x,defaultOpacity:y.opacity})}),it(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Ze),v6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Jl(ee(this.getData,this),ee(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return es(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=aA(this,t);return At("section",{header:u,sortBlocks:!0,blocks:$(s,function(f){var h=i.get(i.mapDimension(f.dim),t);return At("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues($(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Qe),bs=JD.value;function Fu(r,e){return le({show:e},r)}var d6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),v=$(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=le({color:d.color},l));var g=be(ce(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(J(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else se(c)&&(g.name=c(g.name,g));var y=new $e(g,null,this.ecModel);return pt(y,Ul.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:be({lineStyle:{color:"#bbb"}},bs.axisLine),axisLabel:Fu(bs.axisLabel,!1),axisTick:Fu(bs.axisTick,!1),splitLine:Fu(bs.splitLine,!0),splitArea:Fu(bs.splitArea,!0),indicator:[]},e})(Ie),p6=["axisLine","axisTickLabel","axisName"],g6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=$(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Xt(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});L(i,function(o){L(p6,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=W(h)?h:[h],p=W(v)?v:[v],g=[],m=[];function y(R,E,B){var O=B%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var x=n[0].getTicksCoords(),_=a.cx,S=a.cy,b=0;b<x.length;b++){if(c){var w=y(g,d,b);g[w].push(new Fa({shape:{cx:_,cy:S,r:x[b].coord}}))}if(f&&b<x.length-1){var w=y(m,p,b);m[w].push(new zl({shape:{cx:_,cy:S,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var C,A=$(n,function(R,E){var B=R.getTicksCoords();return C=C==null?B.length-1:Math.min(B.length-1,C),$(B,function(O){return a.coordToPoint(O.coord,E)})}),D=[],b=0;b<=C;b++){for(var M=[],I=0;I<n.length;I++)M.push(A[I][b]);if(M[0]&&M.push(M[0].slice()),c){var w=y(g,d,b);g[w].push(new Qt({shape:{points:M}}))}if(f&&D){var w=y(m,p,b-1);m[w].push(new Jt({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var P=l.getLineStyle(),k=u.getAreaStyle();L(m,function(R,E){this.group.add(Tr(R,{style:le({stroke:"none",fill:p[E%p.length]},k),silent:!0}))},this),L(g,function(R,E){this.group.add(Tr(R,{style:le({fill:"none",stroke:d[E%d.length]},P),silent:!0}))},this)},e.type="radar",e})(nt),m6=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})($r),y6=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new m6(o,new Ba);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=K(a[0],n),this.cy=K(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(J(s)||Be(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o),L(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;L(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();L(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new Ba;o.setExtent(0,i),o.setInterval(1),L(a,function(s,l){QD(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function x6(r){r.registerCoordinateSystem("radar",y6),r.registerComponentModel(d6),r.registerComponentView(g6),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function _6(r){Ae(x6),r.registerChartView(h6),r.registerSeriesModel(v6),r.registerLayout(c6),r.registerProcessor(ql("radar")),r.registerPreprocessor(f6)}var X_="\0_ec_interaction_mutex";function b6(r,e,t){var a=Qm(r);a[e]=t}function S6(r,e,t){var a=Qm(r),n=a[e];n===t&&(a[e]=null)}function Z_(r,e){return!!Qm(r)[e]}function Qm(r){return r[X_]||(r[X_]={})}pa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ct);var Ql=(function(r){z(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=ee(a._mousedownHandler,a),i=ee(a._mousemoveHandler,a),o=ee(a._mouseupHandler,a),s=ee(a._mousewheelHandler,a),l=ee(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=le(ce(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!_0(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Sc("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||Z_(this._zr,"globalPan"))){var a=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&ka(t.event),oM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){_0(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=Sc("zoomOnMouseWheel",t,this._opt),n=Sc("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Wv(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Wv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Z_(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Wv(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Lr);function Wv(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(ka(a.event),oM(r,e,t,a,n))}function oM(r,e,t,a,n){n.isAvailableBehavior=ee(Sc,null,t,a),r.trigger(e,n)}function Sc(r,e,t){var a=t[r];return!r||a&&(!J(a)||e.event[a+"Key"])}function ey(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function ty(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var w6={axisPointer:1,tooltip:1,brush:1};function ch(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!w6.hasOwnProperty(a.mainType)&&n&&n.model!==t}function sM(r){if(J(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var $v,lf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},K_=Pe(lf),uf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},q_=Pe(uf),T6=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=sM(e);this._defsUsePending=[];var n=new ve;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),sr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;D6(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=fh(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=uM(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=n;n=new ve,n.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Re({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=$v[s];if(c&&te($v,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var v=J_[s];if(v&&te(J_,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Lo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pr(t,a),sr(e,a,this._defsUsePending,!1,!1),C6(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){$v={g:function(e,t){var a=new ve;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Re;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Fa;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new St;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new jf;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=tb(a));var i=new Jt({shape:{points:n||[]},silent:!0});return pr(t,i),sr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=tb(a));var i=new Qt({shape:{points:n||[]},silent:!0});return pr(t,i),sr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new Lt;return pr(t,a),sr(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ve;return pr(t,s),sr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new ve;return pr(t,s),sr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=qT(a);return pr(t,n),sr(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),J_={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Gl(e,t,a,n);return Q_(r,i),eb(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new tC(e,t,a);return Q_(r,n),eb(r,n),n}};function Q_(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function eb(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};lM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function pr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),le(e.__inheritedStyle,r.__inheritedStyle))}function tb(r){for(var e=fh(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function sr(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(I6(r,e),lM(r,o,s),a||P6(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=rb(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=rb(i,"stroke",o.stroke,t)),L(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),L(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=$(fh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function C6(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var A6=/^url\(\s*#(.*?)\)/;function rb(r,e,t,a){var n=t&&t.match(A6);if(n){var i=zr(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function D6(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var M6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fh(r){return r.match(M6)||[]}var L6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Uv=Math.PI/180;function I6(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(L6,function(f,h,v){return a.push(h,v),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=fh(o);switch(n=n||cr(),s){case"translate":ca(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Kg(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ki(n,n,-parseFloat(l[0])*Uv,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Uv);Ma(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Uv);Ma(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var ab=/([^\s:;]+)\s*:\s*([^:;]+)/g;function lM(r,e,t){var a=r.getAttribute("style");if(a){ab.lastIndex=0;for(var n;(n=ab.exec(a))!=null;){var i=n[1],o=te(lf,i)?lf[i]:null;o&&(e[o]=n[2]);var s=te(uf,i)?uf[i]:null;s&&(t[s]=n[2])}}}function P6(r,e,t){for(var a=0;a<K_.length;a++){var n=K_[a],i=r.getAttribute(n);i!=null&&(e[lf[n]]=i)}for(var a=0;a<q_.length;a++){var n=q_[a],i=r.getAttribute(n);i!=null&&(t[uf[n]]=i)}}function uM(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function k6(r,e){var t=new T6;return t.parse(r,e)}var R6=ae(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),N6=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=ae(),this._freedGraphics=[],this._mapName=e,this._parsedXML=sM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=O6(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&k6(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Zt(a!=null)}catch(g){throw new Error(`Invalid svg format
17
- `+g.message)}var n=new ve;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=a.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new we(u,c,f,h)}if(s){var d=uM(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Re({shape:l.plain()}));var p=[];return L(t.named,function(g){R6.get(g.svgNodeTagLower)!=null&&(p.push(g),E6(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function E6(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function O6(r){var e=[],t=ae();return L(r,function(a){if(a.namedFrom==null){var n=new IB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var ag=[126,25],nb="南海诸岛",Jn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Kn=0;Kn<Jn.length;Kn++)for(var to=0;to<Jn[Kn].length;to++)Jn[Kn][to][0]/=10.5,Jn[Kn][to][1]/=-10.5/.75,Jn[Kn][to][0]+=ag[0],Jn[Kn][to][1]+=ag[1];function B6(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===nb)return;e.push(new iD(nb,$(Jn,function(a){return{type:"polygon",exterior:a}}),ag))}}var z6={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function V6(r,e){if(r==="china"){var t=z6[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var G6=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function F6(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:G6[0]})}var H6="name",j6=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=ae(),this._mapName=e,this._specialAreas=a,this._geoJSON=$6(t)}return r.prototype.load=function(e,t){t=t||H6;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:W6(n)})}var i=ae(),o=[];return L(a.regions,function(s){var l=s.name;e&&te(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new we(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?kB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
18
- `+i.message)}return B6(t,n),L(n,function(i){var o=i.name;V6(t,i),F6(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function W6(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function $6(r){return J(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ss=ae();const za={registerMap:function(r,e,t){if(e.svg){var a=new N6(r,e.svg);Ss.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new j6(r,n,t);Ss.set(r,a)}},getGeoResource:function(r){return Ss.get(r)},getMapForUser:function(r){var e=Ss.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=Ss.get(r);if(a)return a.load(e,t)}};var ry=["rect","circle","line","ellipse","polygon","polyline","path"],U6=ae(ry),Y6=ae(ry.concat(["g"])),X6=ae(ry.concat(["g"])),cM=Ne();function Hu(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function ib(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var fM=(function(){function r(e){var t=new ve;this.uid=Uo("ec_map_draw"),this._controller=new Ql(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ve),t.add(this._svgGroup=new ve)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===e&&(s=m.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,v=f.roam,d=!u.childAt(0)||i;d?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):Ve(c,v,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ae(),a=ae(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var m=c(v[g],p);m&&d.push(m)}return d}function h(v){return{shape:{points:f(v)}}}n.removeAll(),L(e.geo.regions,function(v){var d=v.name,p=t.get(d),g=a.get(d)||{},m=g.dataIdx,y=g.regionModel;if(!p){p=t.set(d,new ve),n.add(p),m=s?s.indexOfName(d):null,y=e.isGeo?o.getRegionModel(d):s?s.getItemModel(m):null;var x=y.get("silent",!0);x!=null&&(p.silent=x),a.set(d,{dataIdx:m,regionModel:y})}var _=[],S=[];L(v.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=fb(A,u)),L(A,function(M){_.push(new Jt(h(M)))})}else{var D=C.points;u&&(D=fb(D,u,!0)),L(D,function(M){S.push(new Qt(h(M)))})}});var b=c(v.getCenter(),l&&l.project);function w(C,A){if(C.length){var D=new hm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});p.add(D),ob(e,D,m,y),sb(e,D,d,y,o,m,b),A&&(ib(D),L(D.states,ib))}}w(_),w(S,!0)}),t.each(function(v,d){var p=a.get(d),g=p.dataIdx,m=p.regionModel;lb(e,v,d,m,o,g),ub(e,v,d,m,o),cb(e,v,d,m,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=ae(),i=!1;L(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);U6.get(c)!=null&&f instanceof Mr&&ob(e,f,h,v),f instanceof Mr&&(f.culling=!0);var d=v.get("silent",!0);if(d!=null&&(f.silent=d),f.z2EmphasisLift=0,!o.namedFrom&&(X6.get(c)!=null&&sb(e,f,s,v,l,h,null),lb(e,f,s,v,l,h),ub(e,f,s,v,l),Y6.get(c)!=null)){var p=cb(e,f,s,v,l);p==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Di(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=za.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=za.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,ey(o,u.dx,u.dy),a.dispatchAction(H(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,ty(o,u.scale,u.originX,u.originY),a.dispatchAction(H(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return n.containPoint([c,f])&&!ch(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=cM(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function ob(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Hu(n),u=Hu(i),c=Hu(s),f=Hu(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),d=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=ko(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,Di(e)}function sb(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Rt(e,Ct(a),{labelFetcher:h,labelDataIndex:f,defaultText:t},v);var d=e.getTextContent();if(d&&(cM(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function lb(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):de(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function ub(r,e,t,a,n){r.data||Ri({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function cb(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return it(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&$3(e,n,t),o}function fb(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),L(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var Z6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new fM(n);o.add(s.group),s.draw(t,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new Fa({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:jo+1)});if(!f){var v=t.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),m=g.getModel("label"),y=v.getItemGraphicEl(p);Rt(h,Ct(g),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(p,_)}},defaultText:d}),h.disableLabelAnimation=!0,m.get("position")||h.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(x){Fc(h,x)}}o.add(h)}}})},e.type="map",e})(Ze),K6=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=es(this,{coordDimensions:["value"],encodeDefaulter:xe(Sm,this)}),n=ae(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=za.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return L(u.regions,function(c){var f=c.name,h=n.get(f),v=c.properties&&c.properties.echartsStyle,d;h==null?(d={name:f},i.push(d)):d=a.getRawDataItem(h),v&&be(d,v)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return At("section",{header:u.join(", "),noHeader:!u.length,blocks:[At("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=dt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(Qe);function q6(r,e){var t={};return L(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function J6(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),L(e,function(t,a){for(var n=q6($(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function Q6(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var n={};L(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var v=n[f]||0,d=s.dataToPoint(h.getCenter());n[f]=v+1,l.setItemLayout(c,{point:d,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[a]=!0}})}var hb=Pt,eu=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Ca,a._rawTransformable=new Ca,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new we(t,a,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new we(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new we(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,a){t&&(this._center=[K(t[0],a.getWidth()),K(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Pt([],i,t),n=Pt([],n,t),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Zg(this.transform||(this.transform=[]),a.transform||cr()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Fo(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new Ca;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?hb(n,t,i):jt(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?hb([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=vb(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=vb(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(Ca);function vb(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var eG={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},hM=["lng","lat"],ng=(function(r){z(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=hM,i.type="geo",i._nameCoordMap=ae(),i.map=a;var o=n.projection,s=za.load(a,n.nameMap,n.nameProperty),l=za.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=eG[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);f=f||v.clone(),f.union(v)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:me(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new we(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(J(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=db(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=db(a);return i===this?i.pointToData(n):null},e})(eu);pt(ng,eu);function db(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",vt).models[0]||{}).coordinateSystem:null}function pb(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(b,w,C,A){for(var D=C-b,M=A-w,I=0;I<=100;I++){var P=I/100,k=i.project([b+D*P,w+M*P]);an(a,a,k),nn(n,n,k)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var f=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),d=e.getWidth(),p=e.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,y,x;h&&v&&(y=[K(h[0],d),K(h[1],p)],x=K(v,Math.min(d,p)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(m=!0));var _;if(m)_={},g>1?(_.width=x,_.height=x/g):(_.height=x,_.width=x*g),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=g,_=yt(S,{width:d,height:p})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function tG(r,e){L(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var rG=(function(){function r(){this.dimensions=hM}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new ng(l+s,l,H({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=pb,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),L(i,function(o,s){var l=$(o,function(c){return c.get("nameMap")}),u=new ng(s,s,H({nameMap:$g(l)},n(o[0])));u.zoomLimit=Mt.apply(null,$(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=pb,u.resize(o[0],t),L(o,function(c){c.coordinateSystem=u,tG(u,c)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=ae(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=za.load(t,a,n);return L(l.regions,function(u){var c=u.name,f=o.get(c),h=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),h&&be(f,h)}),i},r})(),vM=new rG,aG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=za.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Ti(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=vM.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=ua(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new $e(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},ae()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new $e(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(se(i))return o.status=a,i(o);if(J(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(Ie);function gb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function ay(r,e,t,a){var n=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(gb(r,s),a)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),f=(e.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(gb(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var nG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new fM(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;fi(t.target,function(n){return(a=de(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=de(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(nt);function iG(r,e,t){za.registerMap(r,e,t)}function dM(r){r.registerCoordinateSystem("geo",vM),r.registerComponentModel(aG),r.registerComponentView(nG),r.registerImpl("registerMap",iG),r.registerImpl("getMap",function(t){return za.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;L(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];L(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=ay(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&L(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function oG(r){Ae(dM),r.registerChartView(Z6),r.registerSeriesModel(K6),r.registerLayout(Q6),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,J6),pA("map",r.registerAction)}function sG(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function lG(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){fG(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=hG(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function uG(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function mb(r){return arguments.length?r:pG}function Vs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function cG(r,e){return yt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fG(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function hG(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Yv(s),i=Xv(i),s&&i;){n=Yv(n),o=Xv(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(dG(vG(s,r,t),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!Yv(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!Xv(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function Yv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Xv(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function vG(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function dG(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function pG(r,e){return r.parentNode===e.parentNode?1:2}var gG=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),mG=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gG},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=K(a.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[c]=s[c],t.lineTo(v[0],v[1]),v[c]=l[c],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),v[c]=p[c],t.lineTo(v[0],v[1])}},e})(De),yG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ve,t}return e.prototype.init=function(t,a){this._controller=new Ql(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,a,n);var u=this._data;i.diff(u).add(function(c){yb(i,c)&&xb(i,c,null,s,t)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!yb(i,c)){h&&bb(u,f,h,s,t);return}xb(i,c,h,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&bb(u,c,f,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(f){var h=n.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Gf(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new eu;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),a),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!ch(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ey(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ty(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(Ze);function yb(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function xb(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(t=new Yl(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ve(t,{x:p.x,y:p.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),x=m.children.length,_=void 0,S=void 0;if(p.x===y.x&&o.isExpand===!0&&m.children.length){var b={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};_=Math.atan2(b.y-y.y,b.x-y.x),_<0&&(_=Math.PI*2+_),S=b.x<y.x,S&&(_=_-Math.PI)}else _=Math.atan2(p.y-y.y,p.x-y.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=p.x<y.x,S&&(_=_-Math.PI)):(S=p.x>y.x,S||(_=_-Math.PI));var w=S?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),P=I==="relative"?ol(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(de(t).focus=P),xG(n,o,c,t,d,v,p,a),t.__edge&&(t.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Bl||Fc(t.__edge,k)}})}function xG(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new Vl({shape:ig(c,f,h,n,n)})),Ve(p,{shape:ig(c,f,h,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,m=[],y=0;y<g.length;y++){var x=g[y].getLayout();m.push([x.x,x.y])}p||(p=a.__edge=new mG({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),Ve(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(le({strokeNoScale:!0,fill:null},d)),kt(p,l,"lineStyle"),Di(p),s.add(p))}function _b(r,e,t,a,n){var i=e.tree.root,o=pM(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(v==="curve"?_n(h,{shape:ig(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}):v==="polyline"&&a.get("layout")==="orthogonal"&&_n(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(h)},removeOpt:n}))}}function pM(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function bb(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=pM(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};_n(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){_b(u,r,a,n,l)}),_b(i,r,a,n,l)}function ig(r,e,t,a,n){var i,o,s,l,u,c,f,h;if(r==="radial"){u=a.rawX,f=a.rawY,c=n.rawX,h=n.rawY;var v=Vs(u,f),d=Vs(u,f+(h-f)*t),p=Vs(c,h+(f-h)*t),g=Vs(c,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,f=a.y,c=n.x,h=n.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=f,s=c+(u-c)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=f+(h-f)*t,s=c,l=h+(f-h)*t);return{x1:u,y1:f,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Dr=Ne();function gM(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,mM(e,t,r),L(t,function(a){L(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,xe(_G,r))})}),e.wrapMethod("cloneShallow",xe(SG,r)),L(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,xe(bG,r))}),Zt(t[e.dataType]===e)}function _G(r,e){if(CG(this)){var t=H({},Dr(this).datas);t[this.dataType]=e,mM(e,t,r)}else ny(e,this.dataType,Dr(this).mainData,r);return e}function bG(r,e){return r.struct&&r.struct.update(),e}function SG(r,e){return L(Dr(e).datas,function(t,a){t!==e&&ny(t.cloneShallow(),a,e,r)}),e}function wG(r){var e=Dr(this).mainData;return r==null||e==null?e:Dr(e).datas[r]}function TG(){var r=Dr(this).mainData;return r==null?[{data:r}]:$(Pe(Dr(r).datas),function(e){return{type:e,data:Dr(r).datas[e]}})}function CG(r){return Dr(r).mainData===r}function mM(r,e,t){Dr(r).datas={},L(e,function(a,n){ny(a,n,r,t)})}function ny(r,e,t,a){Dr(t).datas[e]=r,Dr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=wG,r.getLinkedDataAll=TG}var AG=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){se(e)&&(a=t,t=e,e=null),e=e||{},J(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),iy=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;s(e);function s(c,f){var h=c.value;o=Math.max(o,W(h)?h.length:1),i.push(c);var v=new AG(mt(c.name,""),n);f?DG(v,f):n.root=v,n._nodes.push(v);var d=c.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}n.root.updateDepthAndHeight(0);var l=$l(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Yt(l,t);return u.initData(i),a&&a(u),gM({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function DG(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Al(r,e,t){if(r&&Ce(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(J(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function yM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function oy(r,e){var t=yM(r);return Ce(t,e)>=0}function hh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var MG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new $e(n,this,this.ecModel),o=iy.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return At("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=hh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Qe);function LG(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}function ws(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function IG(r,e){r.eachSeriesByType("tree",function(t){PG(t,e)})}function PG(r,e){var t=cG(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=mb(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(n=t.width,i=t.height,o=mb());var s=r.getData().tree.root,l=s.children[0];if(l){sG(s),LG(l,lG,o),s.hierNode.modifier=-l.hierNode.prelim,ws(l,uG);var u=l,c=l,f=l;ws(l,function(x){var _=x.getLayout().x;_<u.getLayout().x&&(u=x),_>c.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ws(l,function(x){g=(x.getLayout().x+v)*d,m=(x.depth-1)*p;var _=Vs(g,m);x.setLayout({x:_.x,y:_.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+h+v),d=n/(f.depth-1||1),ws(l,function(x){m=(x.getLayout().x+v)*p,g=y==="LR"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ws(l,function(x){g=(x.getLayout().x+v)*d,m=y==="TB"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)}))}}}function kG(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");H(s,o)})})}function RG(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=ay(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function NG(r){r.registerChartView(yG),r.registerSeriesModel(MG),r.registerLayout(IG),r.registerVisual(kG),RG(r)}var Sb=["treemapZoomToNode","treemapRender","treemapMove"];function EG(r){for(var e=0;e<Sb.length;e++)r.registerAction({type:Sb[e],update:"updateView"},ct);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Al(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=oy(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function xM(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Rp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var OG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};_M(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new $e({itemStyle:o},this,a);i=t.levels=BG(i,a);var l=$(i||[],function(f){return new $e(f,s,a)},this),u=iy.createTree(n,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return At("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=hh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=ae(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){xM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Qe);function _M(r){var e=0;L(r.children,function(a){_M(a);var n=a.value;W(n)&&(n=n[0]),e+=n});var t=r.value;W(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),W(r.value)?r.value[0]=t:r.value=t}function BG(r,e){var t=Xe(e.get("color")),a=Xe(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;L(r,function(s){var l=new $e(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var zG=8,wb=8,Zv=5,VG=(function(){function r(e){this.group=new ve,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,f,u),this._renderContent(e,f,s,l,u,c,n),Qf(o,f.pos,f.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=mt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+zG*2,t.emptyItemWidth);t.totalWidth+=s+wb,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=YN(t.pos,t.box),h=t.totalWidth,v=t.renderList,d=n.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],m=g.node,y=g.width,x=g.text;h>f.width&&(h-=y-u,y=u,x=null);var _=new Jt({shape:{points:GG(l,0,y,c,p===v.length-1,p===0)},style:le(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Oe({style:Je(i,{text:x})}),textConfig:{position:"inside"},z2:jo*1e4,onclick:xe(s,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Je(o,{text:x}),_.ensureState("emphasis").style=d,it(_,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(_),FG(_,e,m),l+=y+wb}},r.prototype.remove=function(){this.group.removeAll()},r})();function GG(r,e,t,a,n,i){var o=[[n?r:r-Zv,e],[r+t,e],[r+t,e+a],[n?r:r-Zv,e+a]];return!i&&o.splice(2,0,[r+t+Zv,e+a/2]),!n&&o.push([r,e+a/2]),o}function FG(r,e,t){de(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&hh(t,e)}}var HG=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function jG(){return new HG}var og=ve,Tb=Re,Cb=3,Ab="label",Db="upperLabel",WG=jo*10,$G=jo*2,UG=jo*3,Qn=Ai([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Mb=function(r){var e=Qn(r);return e.stroke=e.fill=e.lineWidth=null,e},cf=Ne(),YG=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Ts(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ce(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Al(i,s,t),u=i&&i.type,c=t.layoutInfo,f=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(c),p=t.get("animation"),g=this._doRender(d,t,v);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new og,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s=Ts(),l=Ts(),u=this._storage,c=[];function f(y,x,_,S){return XG(a,l,u,n,s,c,y,x,_,S)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function p(y,x,_,S,b){S?(x=y,L(y,function(A,D){!A.isRemoved()&&C(D,D)})):new Oa(x,y,w,w).add(C).update(C).remove(xe(C,null)).execute();function w(A){return A.getId()}function C(A,D){var M=A!=null?y[A]:null,I=D!=null?x[D]:null,P=f(M,I,_,b);P&&p(M&&M.viewChildren||[],I&&I.viewChildren||[],P,S,b+1)}}function g(y){var x=Ts();return y&&L(y,function(_,S){var b=x[S];L(_,function(w){w&&(b.push(w),cf(w).willDelete=!0)})}),x}function m(){L(h,function(y){L(y,function(x){x.parent&&x.parent.remove(x)})}),L(c,function(y){y.invisible=!0,y.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(se(o)?0:o)||0,u=(se(s)?null:s)||"cubicOut",c=jG();L(a.willDeleteEls,function(f,h){L(f,function(v,d){if(!v.invisible){var p=v.parent,g,m=cf(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;m.willDelete||(y=m.nodeWidth/2,x=m.nodeHeight/2),g=h==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}g&&c.add(v,g,l,0,u)}})}),L(this._storage,function(f,h){L(f,function(v,d){var p=a.lastsForAnimation[h][d],g={};p&&(v instanceof ve?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=H({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),c.add(v,g,l,0,u))})},this),this._state="animating",c.finished(ee(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new Ql(t.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",ee(this._onPan,this)),a.on("zoom",ee(this._onZoom,this)));var i=new we(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Cb||Math.abs(t.dy)>Cb)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new we(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var h=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),h)}var d=f/c.zoom;c.zoom=f;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=cr();ca(g,g,[-a,-n]),Kg(g,g,[d,d]),ca(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Yc(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new VG(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(oy(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ts(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e})(Ze);function Ts(){return{nodeGroup:[],background:[],content:[]}}function XG(r,e,t,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=c.upperHeight,S=x&&x.length,b=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),A=h.getModel(["select","itemStyle"]),D=b.get("borderRadius")||0,M=Q("nodeGroup",og);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),cf(M).nodeWidth=v,cf(M).nodeHeight=d,c.isAboveViewRoot)return M;var I=Q("background",Tb,u,$G);I&&F(M,I,S&&c.upperLabelHeight);var P=h.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),E=P.get("disabled"),B=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(S)vl(M)&&ui(M,!1),I&&(ui(I,!E),f.setItemGraphicEl(o.dataIndex,I),Cp(I,B,R));else{var O=Q("content",Tb,u,UG);O&&G(M,O),I.disableMorphing=!0,I&&vl(I)&&ui(I,!1),ui(M,!E),f.setItemGraphicEl(o.dataIndex,M);var V=h.getShallow("cursor");V&&O.attr("cursor",V),Cp(M,B,R)}return M;function F(ne,q,ie){var Z=de(q);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,q.setShape({x:0,y:0,width:v,height:d,r:D}),g)j(q);else{q.invisible=!1;var re=o.getVisual("style"),ye=re.stroke,ge=Mb(b);ge.fill=ye;var pe=Qn(w);pe.fill=w.get("borderColor");var _e=Qn(C);_e.fill=C.get("borderColor");var Ee=Qn(A);if(Ee.fill=A.get("borderColor"),ie){var Ue=v-2*p;Y(q,ye,re.opacity,{x:p,y:0,width:Ue,height:_})}else q.removeTextContent();q.setStyle(ge),q.ensureState("emphasis").style=pe,q.ensureState("blur").style=_e,q.ensureState("select").style=Ee,Di(q)}ne.add(q)}function G(ne,q){var ie=de(q);ie.dataIndex=o.dataIndex,ie.seriesIndex=r.seriesIndex;var Z=Math.max(v-2*p,0),re=Math.max(d-2*p,0);if(q.culling=!0,q.setShape({x:p,y:p,width:Z,height:re,r:D}),g)j(q);else{q.invisible=!1;var ye=o.getVisual("style"),ge=ye.fill,pe=Mb(b);pe.fill=ge,pe.decal=ye.decal;var _e=Qn(w),Ee=Qn(C),Ue=Qn(A);Y(q,ge,ye.opacity,null),q.setStyle(pe),q.ensureState("emphasis").style=_e,q.ensureState("blur").style=Ee,q.ensureState("select").style=Ue,Di(q)}ne.add(q)}function j(ne){!ne.invisible&&i.push(ne)}function Y(ne,q,ie,Z){var re=h.getModel(Z?Db:Ab),ye=mt(h.get("name"),null),ge=re.getShallow("show");Rt(ne,Ct(h,Z?Db:Ab),{defaultText:ge?ye:null,inheritColor:q,defaultOpacity:ie,labelFetcher:r,labelDataIndex:o.dataIndex});var pe=ne.getTextContent();if(pe){var _e=pe.style,Ee=Yg(_e.padding||0);Z&&(ne.setTextConfig({layoutRect:Z}),pe.disableLabelLayout=!0),pe.beforeUpdate=function(){var U=Math.max((Z?Z.width:ne.shape.width)-Ee[1]-Ee[3],0),oe=Math.max((Z?Z.height:ne.shape.height)-Ee[0]-Ee[2],0);(_e.width!==U||_e.height!==oe)&&pe.setStyle({width:U,height:oe})},_e.truncateMinChar=2,_e.lineOverflow="truncate",X(_e,Z,c);var Ue=pe.getState("emphasis");X(Ue?Ue.style:null,Z,c)}}function X(ne,q,ie){var Z=ne?ne.text:null;if(!q&&ie.isLeafRoot&&Z!=null){var re=r.get("drillDownIcon",!0);ne.text=re?re+" "+Z:Z}}function Q(ne,q,ie,Z){var re=y!=null&&t[ne][y],ye=n[ne];return re?(t[ne][y]=null,fe(ye,re)):g||(re=new q,re instanceof Mr&&(re.z2=ZG(ie,Z)),he(ye,re)),e[ne][m]=re}function fe(ne,q){var ie=ne[m]={};q instanceof og?(ie.oldX=q.x,ie.oldY=q.y):ie.oldShape=H({},q.shape)}function he(ne,q){var ie=ne[m]={},Z=o.parentNode,re=q instanceof ve;if(Z&&(!a||a.direction==="drillDown")){var ye=0,ge=0,pe=n.background[Z.getRawIndex()];!a&&pe&&pe.oldShape&&(ye=pe.oldShape.width,ge=pe.oldShape.height),re?(ie.oldX=0,ie.oldY=ge):ie.oldShape={x:ye,y:ge,width:0,height:0}}ie.fadein=!re}}function ZG(r,e){return r*WG+e}var Dl=L,KG=ue,ff=-1,Tt=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=ce(e);this.type=a,this.mappingMethod=t,this._normalizeData=QG[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(Kv(n),qG(n)):t==="category"?n.categories?JG(n):Kv(n,!0):(Zt(t!=="linear"||n.dataExtent),Kv(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ee(this._normalizeData,this)},r.listVisualTypes=function(){return Pe(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){ue(e)?L(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=W(e)?[]:ue(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Dl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(W(e))e=e.slice();else if(KG(e)){var t=[];Dl(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||J(l)&&l===e+"")return o;a&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Wu(f[1],e,c[1]))return o}else if(c[1]===1/0){if(Wu(f[0],c[0],e))return o}else if(Wu(f[0],c[0],e)&&Wu(f[1],e,c[1]))return o;a&&h(c[0],o),a&&h(c[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Cs("color"),getColorMapper:function(){var e=this.option;return ee(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Gs.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=Ih(t,e.parsedVisual,n),i?n:La(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return La(Ih(e,this.option.parsedVisual),"rgba")},category:Gs,piecewise:function(e,t){var a=lg.call(this,t);return a==null&&(a=La(Ih(e,this.option.parsedVisual),"rgba")),a},fixed:ei}},colorHue:ju(function(e,t){return $s(e,t)}),colorSaturation:ju(function(e,t){return $s(e,null,t)}),colorLightness:ju(function(e,t){return $s(e,null,null,t)}),colorAlpha:ju(function(e,t){return Ec(e,t)}),decal:{applyVisual:Cs("decal"),_normalizedToVisual:{linear:null,category:Gs,piecewise:null,fixed:null}},opacity:{applyVisual:Cs("opacity"),_normalizedToVisual:sg([0,1])},liftZ:{applyVisual:Cs("liftZ"),_normalizedToVisual:{linear:ei,category:ei,piecewise:ei,fixed:ei}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:Lb,category:Gs,piecewise:function(e,t){var a=lg.call(this,t);return a==null&&(a=Lb.call(this,e)),a},fixed:ei}},symbolSize:{applyVisual:Cs("symbolSize"),_normalizedToVisual:sg([0,1])}},r})();function qG(r){var e=r.pieceList;r.hasSpecialVisual=!1,L(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function JG(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Dl(e,function(o,s){t[o]=s}),!W(a)){var n=[];ue(a)?Dl(a,function(o,s){var l=t[s];n[l??ff]=o}):n[ff]=a,a=bM(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function Kv(r,e){var t=r.visual,a=[];ue(t)?Dl(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),bM(r,a)}function ju(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:sg([0,1])}}function Lb(r){var e=this.option.visual;return e[Math.round(We(r,[0,1],[0,e.length-1],!0))]||{}}function Cs(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Gs(r){var e=this.option.visual;return e[this.option.loop&&r!==ff?r%e.length:r]}function ei(){return this.option.visual[0]}function sg(r){return{linear:function(e){return We(e,r,this.option.visual,!0)},category:Gs,piecewise:function(e,t){var a=lg.call(this,t);return a==null&&(a=We(e,r,this.option.visual,!0)),a},fixed:ei}}function lg(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Tt.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function bM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=$(e,function(t){var a=fr(t);return a||[0,0,0,1]})),e}var QG={linear:function(r){return We(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Tt.findPieceIndex(r,e,!0);if(t!=null)return We(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??ff},fixed:ct};function Wu(r,e,t){return r?e<=t:e<t}var eF="itemStyle",SM=Ne();const tF={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||wM(t,{},r.getViewRoot().getAncestors(),r)}};function wM(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(eF),l=rF(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=Ib(l),c=aF(f,h)),u.stroke=c;var v=r.viewChildren;if(!v||!v.length)h=Ib(l),u.fill=h;else{var d=nF(r,n,i,s,l,v);L(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var m=iF(n,l,p,g,d,a);wM(p,m,t,a)}})}}}function rF(r,e,t){var a=H({},e),n=t.designatedVisualItemStyle;return L(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Ib(r){var e=qv(r,"color");if(e){var t=qv(r,"colorAlpha"),a=qv(r,"colorSaturation");return a&&(e=$s(e,null,null,a)),t&&(e=Ec(e,t)),e}}function aF(r,e){return e!=null?$s(e,null,null,r):null}function qv(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function nF(r,e,t,a,n,i){if(!(!i||!i.length)){var o=Jv(e,"color")||n.color!=null&&n.color!=="none"&&(Jv(e,"colorAlpha")||Jv(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new Tt(f);return SM(h).drColorMappingBy=c,h}}}function Jv(r,e){var t=r.get(e);return W(t)&&t.length?{name:e,range:t}:null}function iF(r,e,t,a,n,i){var o=H({},e);if(n){var s=n.type,l=s==="color"&&SM(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Ml=Math.max,hf=Math.min,Pb=Mt,sy=L,TM=["itemStyle","borderWidth"],oF=["itemStyle","gapWidth"],sF=["upperLabel","show"],lF=["upperLabel","height"];const uF={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=yt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=K(Pb(s.width,l[0]),n),c=K(Pb(s.height,l[1]),i),f=a&&a.type,h=["treemapZoomToNode","treemapRootToNode"],v=Al(a,h,r),d=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=yM(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?pF(r,v,p,u,c):d?[d.width,d.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(_),CM(p,x,!1,0),_=p.getLayout(),sy(g,function(b,w){var C=(g[w+1]||p).getValue();b.setLayout(H({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(gF(s,d,v),!0),r.setLayoutInfo(s),AM(S,new we(-s.x,-s.y,n,i),g,p,0)}};function CM(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(TM),u=s.get(oF)/2,c=DM(s),f=Math.max(l,c),h=l-u,v=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=Ml(n-2*h,0),i=Ml(i-h-v,0);var d=n*i,p=cF(r,s,d,e,t,a);if(p.length){var g={x:h,y:v,width:n,height:i},m=hf(n,i),y=1/0,x=[];x.area=0;for(var _=0,S=p.length;_<S;){var b=p[_];x.push(b),x.area+=b.getLayout().area;var w=dF(x,m,e.squareRatio);w<=y?(_++,y=w):(x.area-=x.pop().getLayout().area,kb(x,m,g,u,!1),m=hf(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&kb(x,m,g,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&d<C&&(t=!0)}for(var _=0,S=p.length;_<S;_++)CM(p[_],e,t,a+1)}}}function cF(r,e,t,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=je(o,function(v){return!v.isRemoved()}),hF(o,s);var u=vF(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=fF(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*t;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function fF(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function hF(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function vF(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],sy(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function dF(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Ml(u*a/l,l/(u*n)):1/0}function kb(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(n||c>t[l[o]])&&(c=t[l[o]]);for(var f=0,h=r.length;f<h;f++){var v=r[f],d={},p=c?v.getLayout().area/c:0,g=d[l[o]]=Ml(c-2*a,0),m=t[s[i]]+t[l[i]]-u,y=f===h-1||m<p?m:p,x=d[l[i]]=Ml(y-2*a,0);d[s[o]]=t[s[o]]+hf(a,g/2),d[s[i]]=u+hf(a,x/2),u+=y,v.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function pF(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,h=0,v=f.length;h<v;h++)c+=f[h].getValue();var d=i.getValue();if(d===0)return o;u*=c/d;var p=s.getModel(),g=p.get(TM),m=Math.max(g,DM(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>W0&&(u=W0),i=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[a*y,n*y]}function gF(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function AM(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new we(e.x-i.x,e.y-i.y,e.width,e.height);sy(r.viewChildren||[],function(u){AM(u,l,t,a,n+1)})}}function DM(r){return r.get(sF)?r.get(lF):0}function mF(r){r.registerSeriesModel(OG),r.registerChartView(YG),r.registerVisual(tF),r.registerLayout(uF),EG(r)}function yF(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Be(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function xF(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&a.setItemVisual(o,c[f],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){J(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");H(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)n.setItemVisual(o,f[h],a.getItemVisual(l,f[h]))}})})}function $u(r){return r instanceof Array||(r=[r,r]),r}function _F(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=$u(e.get("edgeSymbol")),i=$u(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=$u(s.getShallow("symbol",!0)),c=$u(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(H(h,f),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var ug="-->",vh=function(r){return r.get("autoCurveness")||null},MM=function(r,e){var t=vh(r),a=20,n=[];if(Be(t))a=t;else if(W(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Ll=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(ug)},LM=function(r){var e=r.split(ug);return[e[0],e[2],e[1]].join(ug)},bF=function(r,e){var t=Ll(r.node1,r.node2,e);return e.__edgeMap[t]},SF=function(r,e){var t=cg(Ll(r.node1,r.node2,e),e),a=cg(Ll(r.node2,r.node1,e),e);return t+a},cg=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function wF(r){vh(r)&&(r.__curvenessList=[],r.__edgeMap={},MM(r))}function TF(r,e,t,a){if(vh(t)){var n=Ll(r,e,t),i=t.__edgeMap,o=i[LM(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function ly(r,e,t,a){var n=vh(e),i=W(n);if(!n)return null;var o=bF(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=SF(r,e);MM(e,u),r.lineStyle=r.lineStyle||{};var c=Ll(r.node1,r.node2,e),f=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return f[h+s];var v=LM(c),d=cg(v,e),p=f[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:f[s+d+h]}function IM(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),uy(t,r)}}function uy(r,e){r.eachEdge(function(t,a){var n=sa(t.getModel().get(["lineStyle","curveness"]),-ly(t,e,a,!0),0),i=Da(t.node1.getLayout()),o=Da(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function CF(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];L(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}uy(i.graph,t)}else(!a||a==="none")&&IM(t)})}function Fs(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Hs(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Rb=Math.PI,Qv=[];function cy(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(t){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];Go(p,p),lc(p,p,c),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);PM(t,g,l,u)}AF[e](r,s,o,c,l,u,f),s.eachEdge(function(m,y){var x=sa(m.getModel().get(["lineStyle","curveness"]),ly(m,r,y),0),_=Da(m.node1.getLayout()),S=Da(m.node2.getLayout()),b,w=(_[0]+S[0])/2,C=(_[1]+S[1])/2;+x&&(x*=3,b=[l*x+w*(1-x),u*x+C*(1-x)]),m.setLayout([_,S,b])})}}}var AF={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,a,n,i,o){var s=0;Qv.length=o;var l=Fs(r);e.eachNode(function(f){var h=Hs(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Rb/2),Qv[f.dataIndex]=v,s+=v*2});var u=(2*Rb-s)/o/2,c=0;e.eachNode(function(f){var h=u+Qv[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=h})}};function PM(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");H(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function DF(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&cy(e,"symbolSize")})}var ro=Kd;function MF(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<a.length;c++){var f=a[c];f.p||(f.p=Pi(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Da(f.p),f.edges=null}var h=t.friction==null?.6:t.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,n);for(var m=[],y=a.length,x=0;x<n.length;x++){var _=n[x];if(!_.ignoreForceLayout){var S=_.n1,b=_.n2;si(m,b.p,S.p);var w=qd(m)-_.d,C=b.w/(S.w+b.w);isNaN(C)&&(C=0),Go(m,m),!S.fixed&&ro(S.p,S.p,m,C*w*v),!b.fixed&&ro(b.p,b.p,m,-(1-C)*w*v)}}for(var x=0;x<y;x++){var A=a[x];A.fixed||(si(m,l,A.p),ro(A.p,A.p,m,u*v))}for(var x=0;x<y;x++)for(var S=a[x],D=x+1;D<y;D++){var b=a[D];si(m,b.p,S.p);var w=qd(m);w===0&&(r5(m,Math.random()-.5,Math.random()-.5),w=1);var M=(S.rep+b.rep)/w/w;!S.fixed&&ro(S.pp,S.pp,m,M),!b.fixed&&ro(b.pp,b.pp,m,-M)}for(var I=[],x=0;x<y;x++){var A=a[x];A.fixed||(si(I,A.p,A.pp),ro(A.p,A.p,I,v),jt(A.pp,A.p))}v=v*.992;var P=v<.01;p&&p(a,n,P),g&&g(P)}}}function LF(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(x){var _=i.getId(x);i.setItemLayout(x,a[_]||[NaN,NaN])}):!l||l==="none"?IM(e):l==="circular"&&cy(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),v=W(f)?f:[f,f],d=W(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(x,_){var S=i.getItemLayout(_),b=We(x,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:i.getItemModel(_).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),g=o.mapArray("value",function(x,_){var S=n.getEdgeByIndex(_),b=We(x,c,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=S.getModel(),C=sa(S.getModel().get(["lineStyle","curveness"]),-ly(S,e,_,!0),0);return{n1:p[S.node1.dataIndex],n2:p[S.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=t.getBoundingRect(),y=MF(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,_){for(var S=0,b=x.length;S<b;S++)x[S].fixed&&jt(x[S].p,n.getNodeByIndex(S).getLayout())}),y.afterStep(function(x,_,S){for(var b=0,w=x.length;b<w;b++)x[b].fixed||n.getNodeByIndex(b).setLayout(x[b].p),a[i.getId(b)]=x[b].p;for(var b=0,w=_.length;b<w;b++){var C=_[b],A=n.getEdgeByIndex(b),D=C.n1.p,M=C.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],jt(I[0],D),jt(I[1],M),+C.curveness&&(I[2]=[(D[0]+M[0])/2-(D[1]-M[1])*C.curveness,(D[1]+M[1])/2-(M[0]-D[0])*C.curveness]),A.setLayout(I)}}),e.forceLayout=y,e.preservedPoints=a,y.step()}else e.forceLayout=null})}function IF(r,e,t){var a=H(r.getBoxLayoutParams(),{aspect:t});return yt(a,{width:e.getWidth(),height:e.getHeight()})}function PF(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(g){var m=i.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];Gf(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=IF(a,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],v=c.width,d=c.height,p=a.coordinateSystem=new eu;p.zoomLimit=a.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,h),p.setViewRect(c.x,c.y,v,d),p.setCenter(a.get("center"),e),p.setZoom(a.get("zoom")),t.push(p)}}),t}var Nb=St.prototype,ed=Vl.prototype,kM=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(kM);function td(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var kF=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kM},e.prototype.buildPath=function(t,a){td(a)?Nb.buildPath.call(this,t,a):ed.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return td(this.shape)?Nb.pointAt.call(this,t):ed.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=td(a)?[a.x2-a.x1,a.y2-a.y1]:ed.tangentAt.call(this,t);return Go(n,n)},e})(De),rd=["fromSymbol","toSymbol"];function Eb(r){return"_"+r+"Type"}function Ob(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Jo(n),u=Ei(o||0,l);return a+l+u+(i||"")+(s||"")}function Bb(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Jo(n),u=Ei(o||0,l),c=dt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function RF(r){var e=new kF({name:"line",subPixelOptimize:!0});return fg(e.shape,r),e}function fg(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var fy=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=RF(o);s.shape.percent=0,at(s,{shape:{percent:1}},i,a),this.add(s),L(rd,function(l){var u=Bb(l,t,a);this.add(u),this[Eb(l)]=Ob(l,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};fg(l.shape,s),Ve(o,l,i,a),L(rd,function(u){var c=Ob(u,t,a),f=Eb(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=Bb(u,t,a);this.add(h)}this[f]=c},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),c=Ct(d)}var g=t.getItemVisual(a,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,L(rd,function(b){var w=this.childOfName(b);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var C=0;C<Kt.length;C++){var A=Kt[C],D=o.getState(A);if(D){var M=D.style||{},I=w.ensureState(A),P=I.style||(I.style={});M.stroke!=null&&(P[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(P.opacity=M.opacity)}}w.markRedraw()}},this);var y=i.getRawValue(a);Rt(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?t.getName(a):isFinite(y)?ot(y):y)+""});var x=this.getTextContent();if(x){var _=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var S=_.get("distance");W(S)||(S=[S,S]),x.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),it(this,h,v,f)},e.prototype.highlight=function(){Na(this)},e.prototype.downplay=function(){Ea(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");fg(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=si([],f,c);Go(h,h);function v(D,M){var I=D.__specifiedRotation;if(I==null){var P=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else D.attr("rotation",I)}if(a&&(a.setPosition(c),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(f),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,y=g[1]*o,x=u/2,_=l.tangentAt(x),S=[_[1],-_[0]],b=l.pointAt(x);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=_[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(_[1],_[0]);f[0]<c[0]&&(C=Math.PI+C),i.rotation=C}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=y,p="top";break;default:A=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*m+f[0],i.y=h[1]*y+f[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+c[0],i.y=-h[1]*y+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*w+c[0],i.y=c[1]+A,d=_[0]<0?"right":"left",i.originX=-m*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+A,d="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+A,d=_[0]>=0?"right":"left",i.originX=m*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(ve),hy=(function(){function r(e){this.group=new ve,this._LineCtor=e||fy}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=zb(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zb(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!NF(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(ad(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Cn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(ad(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!ad(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function NF(r){return r.animators&&r.animators.length>0}function zb(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Ct(e)}}function Vb(r){return isNaN(r[0])||isNaN(r[1])}function ad(r){return r&&!Vb(r[0])&&!Vb(r[1])}var nd=[],id=[],od=[],ao=Dt,sd=pi,Gb=Math.abs;function Fb(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){nd[0]=ao(a[0],n[0],i[0],c),nd[1]=ao(a[1],n[1],i[1],c);var f=Gb(sd(nd,e)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var v=s+u;id[0]=ao(a[0],n[0],i[0],s),id[1]=ao(a[1],n[1],i[1],s),od[0]=ao(a[0],n[0],i[0],v),od[1]=ao(a[1],n[1],i[1],v);var f=sd(id,e)-l;if(Gb(f)<.01)break;var d=sd(od,e)-l;u/=2,f<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function ld(r,e){var t=[],a=sl,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Da(u[0]),Da(u[1])],u[2]&&u.__original.push(Da(u[2])));var h=u.__original;if(u[2]!=null){if(jt(n[0],h[0]),jt(n[1],h[2]),jt(n[2],h[1]),c&&c!=="none"){var v=Hs(s.node1),d=Fb(n,h[0],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(f&&f!=="none"){var v=Hs(s.node2),d=Fb(n,h[1],v*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}jt(u[0],n[0]),jt(u[1],n[2]),jt(u[2],n[1])}else{if(jt(i[0],h[0]),jt(i[1],h[1]),si(o,i[1],i[0]),Go(o,o),c&&c!=="none"){var v=Hs(s.node1);Kd(i[0],i[0],o,v*e)}if(f&&f!=="none"){var v=Hs(s.node2);Kd(i[1],i[1],o,-v*e)}jt(u[0],i[0]),jt(u[1],i[1])}})}function Hb(r){return r.type==="view"}var EF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Xl,i=new hy,o=this.group;this._controller=new Ql(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Hb(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Ve(u,c,t)}ld(t.getGraph(),Fs(t));var f=t.getData();s.updateData(f);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=t.get("layout");f.graph.eachNode(function(x){var _=x.dataIndex,S=x.getGraphicEl(),b=x.getModel();if(S){S.off("drag").off("dragend");var w=b.get("draggable");w&&S.on("drag",function(A){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,d),v.setFixed(_),f.setItemLayout(_,[S.x,S.y]);break;case"circular":f.setItemLayout(_,[S.x,S.y]),x.setLayout({fixed:!0},!0),cy(t,"symbolSize",x,[A.offsetX,A.offsetY]),i.updateLayout(t);break;default:f.setItemLayout(_,[S.x,S.y]),uy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(_)}),S.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(de(S).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var _=x.getGraphicEl(),S=x.getModel().get(["emphasis","focus"]);_&&S==="adjacency"&&(de(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){PM(x,g,m,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!ch(u,n,t)}),!Hb(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){ey(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ty(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),ld(t.getGraph(),Fs(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Fs(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){ld(t.getGraph(),Fs(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(Ze);function no(r){return"_EC_"+r}var OF=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[no(e)]){var n=new ti(e,t);return n.hostGraph=this,this.nodes.push(n),a[no(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[no(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Be(e)&&(e=this.nodes[e]),Be(t)&&(t=this.nodes[t]),e instanceof ti||(e=n[no(e)]),t instanceof ti||(t=n[no(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new RM(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof ti&&(e=e.id),t instanceof ti&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof ti||(t=this._nodesMap[no(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(n,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),ti=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=ae(),t=ae(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r})(),RM=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=ae(),t=ae();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r})();function NM(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}pt(ti,NM("hostGraph","data"));pt(RM,NM("hostGraph","edgeData"));function EM(r,e,t,a,n){for(var i=new OF(a),o=0;o<r.length;o++)i.addNode(Mt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,h=c.target;i.addEdge(f,h,u)&&(l.push(c),s.push(Mt(mt(c.id,null),f+" > "+h)),u++)}var v=t.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Ha(r,t);else{var p=jl.get(v),g=p?p.dimensions||[]:[];Ce(g,"value")<0&&g.concat(["value"]);var m=$l(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Yt(m,t),d.initData(r)}var y=new Yt(["value"],t);return y.initData(l,s),n&&n(d,y),gM({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var BF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Jl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ti(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){wF(this);var s=EM(i,n,this,!0,l);return L(s.edges,function(u){TF(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),m=p[g];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var f=$e.prototype.getModel;function h(d,p){var g=f.call(this,d,p);return g.resolveParentPath=v,g}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),At("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=iA({series:this,dataIndex:t,multipleSeries:a});return f},e.prototype._updateCategoriesData=function(){var t=$(this.option.categories||[],function(n){return n.value!=null?n:H({value:0},n)}),a=new Yt(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Qe),zF={type:"graphRoam",event:"graphRoam",update:"none"};function VF(r){r.registerChartView(EF),r.registerSeriesModel(BF),r.registerProcessor(yF),r.registerVisual(xF),r.registerVisual(_F),r.registerLayout(CF),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,DF),r.registerLayout(LF),r.registerCoordinateSystem("graphView",{dimensions:eu.dimensions,create:PF}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ct),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ct),r.registerAction(zF,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=ay(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var GF=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),FF=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new GF},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,c)},e})(De);function HF(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=K(t[0],e.getWidth()),s=K(t[1],e.getHeight()),l=K(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Uu(r,e){var t=r==null?"":r+"";return e&&(J(e)?t=e.replace("{value}",t):se(e)&&(t=e(r))),t}var jF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=HF(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),h=f.get("roundCap"),v=h?sf:qt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];im(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,_=[],S=0;d&&S<i.length;S++){var b=Math.min(Math.max(i[S][0],0),1);c=u+y*b;var w=new v({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[S][1]}),w.setStyle(p.getLineStyle(["color","width"])),_.push(w),x=c}_.reverse(),L(_,function(A){return s.add(A)});var C=function(A){if(A<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=A&&(D===0?0:i[D-1][0])<A)return i[D][1];return i[D-1][1]};this._renderTicks(t,a,n,C,o,u,c,l,g),this._renderTitleAndDetail(t,a,n,C,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,C,o,u,c,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),S=y.get("splitNumber"),b=K(m.get("length"),d),w=K(y.get("length"),d),C=s,A=(l-s)/_,D=A/S,M=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),P=m.get("distance"),k,R,E=0;E<=_;E++){if(k=Math.cos(C),R=Math.sin(C),m.get("show")){var B=P?P+c:c,O=new St({shape:{x1:k*(d-B)+h,y1:R*(d-B)+v,x2:k*(d-b-B)+h,y2:R*(d-b-B)+v},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:i(E/_)}),f.add(O)}if(x.get("show")){var B=x.get("distance")+P,V=Uu(ot(E/_*(g-p)+p),x.get("formatter")),F=i(E/_),G=k*(d-b-B)+h,j=R*(d-b-B)+v,Y=x.get("rotate"),X=0;Y==="radial"?(X=-C+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):Y==="tangential"?X=-C-Math.PI/2:Be(Y)&&(X=Y*Math.PI/180),X===0?f.add(new Oe({style:Je(x,{text:V,x:G,y:j,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new Oe({style:Je(x,{text:V,x:G,y:j,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:G,originY:j,rotation:X}))}if(y.get("show")&&E!==_){var B=y.get("distance");B=B?B+c:c;for(var Q=0;Q<=S;Q++){k=Math.cos(C),R=Math.sin(C);var fe=new St({shape:{x1:k*(d-B)+h,y1:R*(d-B)+v,x2:k*(d-w-B)+h,y2:R*(d-w-B)+v},silent:!0,style:I});I.stroke==="auto"&&fe.setStyle({stroke:i((E+Q/S)/_)}),f.add(fe),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),S=+t.get("max"),b=[_,S],w=[s,l];function C(D,M){var I=y.getItemModel(D),P=I.getModel("pointer"),k=K(P.get("width"),o.r),R=K(P.get("length"),o.r),E=t.get(["pointer","icon"]),B=P.get("offsetCenter"),O=K(B[0],o.r),V=K(B[1],o.r),F=P.get("keepAspect"),G;return E?G=dt(E,O-k/2,V-R,k,R,null,F):G=new FF({shape:{angle:-Math.PI/2,width:k,r:R,x:O,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(D,M){var I=g.get("roundCap"),P=I?sf:qt,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),E=k?o.r-R:o.r-(D+1)*R,B=k?o.r:o.r-D*R,O=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:B}});return k&&(O.z2=We(y.get(x,D),[_,S],[100,0],!0)),O}(m||p)&&(y.diff(h).add(function(D){var M=y.get(x,D);if(p){var I=C(D,s);at(I,{rotation:-((isNaN(+M)?w[0]:We(M,b,w,!0))+Math.PI/2)},t),f.add(I),y.setItemGraphicEl(D,I)}if(m){var P=A(D,s),k=g.get("clip");at(P,{shape:{endAngle:We(M,b,w,k)}},t),f.add(P),Sp(t.seriesIndex,y.dataType,D,P),d[D]=P}}).update(function(D,M){var I=y.get(x,D);if(p){var P=h.getItemGraphicEl(M),k=P?P.rotation:s,R=C(D,k);R.rotation=k,Ve(R,{rotation:-((isNaN(+I)?w[0]:We(I,b,w,!0))+Math.PI/2)},t),f.add(R),y.setItemGraphicEl(D,R)}if(m){var E=v[M],B=E?E.shape.endAngle:s,O=A(D,B),V=g.get("clip");Ve(O,{shape:{endAngle:We(I,b,w,V)}},t),f.add(O),Sp(t.seriesIndex,y.dataType,D,O),d[D]=O}}).execute(),y.each(function(D){var M=y.getItemModel(D),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(p){var E=y.getItemGraphicEl(D),B=y.getItemVisual(D,"style"),O=B.fill;if(E instanceof Lt){var V=E.style;E.useStyle(H({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},B))}else E.useStyle(B),E.type!=="pointer"&&E.setColor(O);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(We(y.get(x,D),b,[0,1],!0))),E.z2EmphasisLift=0,kt(E,M),it(E,P,k,R)}if(m){var F=d[D];F.useStyle(y.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,kt(F,M),it(F,P,k,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=dt(s,a.cx-o/2+K(l[0],a.r),a.cy-o/2+K(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),h=new ve,v=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new Oe({silent:!0}),d[m]=new Oe({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),_=new ve,S=i(We(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+K(w[0],o.r),A=o.cy+K(w[1],o.r),D=v[m];D.attr({z2:g?0:2,style:Je(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),P=o.cx+K(I[0],o.r),k=o.cy+K(I[1],o.r),R=K(M.get("width"),o.r),E=K(M.get("height"),o.r),B=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,D=d[m],O=M.get("formatter");D.attr({z2:g?0:2,style:Je(M,{x:P,y:k,text:Uu(x,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:B})}),uC(D,{normal:M},x,function(F){return Uu(F,O)}),p&&cC(D,m,l,t,{getFormattedLabel:function(F,G,j,Y,X,Q){return Uu(Q?Q.interpolatedValue:x,O)}}),_.add(D)}h.add(_)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e})(Ze),WF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return es(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Qe);function $F(r){r.registerChartView(jF),r.registerSeriesModel(WF)}var UF=["itemStyle","opacity"],YF=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Qt,s=new Oe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(UF);c=c??1,n||jr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,at(i,{style:{opacity:c}},o,a)):Ve(i,{style:{opacity:c},shape:{points:l.points}},o,a),kt(i,s),this._updateLabel(t,a),it(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),c=u.label,f=t.getItemVisual(a,"style"),h=f.fill;Rt(o,Ct(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:t.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;i.setShape({points:v}),n.textGuideLineConfig={anchor:v?new Se(v[0][0],v[0][1]):null},Ve(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),jm(n,Wm(l),{stroke:h})},e})(Jt),XF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new YF(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);dl(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(Ze),ZF=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Jl(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return es(this,{coordDimensions:["value"],encodeDefaulter:xe(Sm,this)})},e.prototype._defaultLabelLine=function(t){Ti(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Qe);function KF(r,e){return yt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qF(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return se(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function JF(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,v,d;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,m=void 0,y=void 0,x=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-x,h=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+x,h=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-x,v=y-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+x,v=y+5,f="center"):o==="rightTop"?(p=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(y=g-x,v=y-5,f="center"):(m=p+x,h=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p+x,h=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(y=g-x,v=y-5,f="center"):(m=p-x,h=m-5,f="right")):o==="leftBottom"?(p=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p-x,h=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(y=g+x,v=y+5,f="center"):(m=p+x,h=m+5,f="left")),t==="horizontal"?(m=p,h=m):(y=g,v=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function QF(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=KF(t,e),s=t.get("orient"),l=o.width,u=o.height,c=qF(a,i),f=o.x,h=o.y,v=s==="horizontal"?[K(t.get("minSize"),u),K(t.get("maxSize"),u)]:[K(t.get("minSize"),l),K(t.get("maxSize"),l)],d=a.getDataExtent(n),p=t.get("min"),g=t.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var m=t.get("funnelAlign"),y=t.get("gap"),x=s==="horizontal"?l:u,_=(x-y*(a.count()-1))/a.count(),S=function(k,R){if(s==="horizontal"){var E=a.get(n,k)||0,B=We(E,[p,g],v,!0),O=void 0;switch(m){case"top":O=h;break;case"center":O=h+(u-B)/2;break;case"bottom":O=h+(u-B);break}return[[R,O],[R,O+B]]}var V=a.get(n,k)||0,F=We(V,[p,g],v,!0),G;switch(m){case"left":G=f;break;case"center":G=f+(l-F)/2;break;case"right":G=f+l-F;break}return[[G,R],[G+F,R]]};i==="ascending"&&(_=-_,y=-y,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var b=0;b<c.length;b++){var w=c[b],C=c[b+1],A=a.getItemModel(w);if(s==="horizontal"){var D=A.get(["itemStyle","width"]);D==null?D=_:(D=K(D,l),i==="ascending"&&(D=-D));var M=S(w,f),I=S(C,f+D);f+=D+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);P==null?P=_:(P=K(P,u),i==="ascending"&&(P=-P));var M=S(w,h),I=S(C,h+P);h+=P+y,a.setItemLayout(w,{points:M.concat(I.slice().reverse())})}}JF(a)})}function e7(r){r.registerChartView(XF),r.registerSeriesModel(ZF),r.registerLayout(QF),r.registerProcessor(ql("funnel"))}var t7=.3,r7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ve,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=Wb(t);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var m=jb(s,o,g,c,u);ud(m,s,g,f)}function v(g,m){var y=l.getItemGraphicEl(m),x=OM(s,g,c,u);s.setItemGraphicEl(g,y),Ve(y,{shape:{points:x}},t,g),jr(y),ud(y,s,g,f)}function d(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=a7(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=Wb(a),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var f=jb(i,this._dataGroup,c,s,o);f.incremental=!0,ud(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Ze);function a7(r,e,t){var a=r.model,n=r.getRect(),i=new Re({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),at(i,{shape:{width:n.width,height:n.height}},e,t),i}function OM(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);n7(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function jb(r,e,t,a,n){var i=OM(r,t,a,n),o=new Qt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function Wb(r){var e=r.get("smooth",!0);return e===!0&&(e=t7),e=Ra(e),il(e)&&(e=0),{smooth:e}}function ud(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");kt(r,n,"lineStyle"),it(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function n7(r,e){return e==="category"?r==null:r==null||isNaN(r)}var i7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return Ha(null,this,{useEncodeDefaulter:ee(o7,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(Qe);function o7(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return L(e.dimensions,function(a){var n=s7(a);t[a]=n}),t}}function s7(r){return+r.replace("dim","")}var l7=["lineStyle","opacity"],u7={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(l7,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function c7(r){f7(r),h7(r)}function f7(r){if(!r.parallel){var e=!1;L(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function h7(r){var e=Xe(r.parallelAxis);L(e,function(t){if(ue(t)){var a=t.parallelIndex||0,n=Xe(r.parallel)[a];n&&n.parallelAxisDefault&&be(t,n.parallelAxisDefault,!1)}})}var v7=5,d7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},L(p7,function(i,o){n.getZr().on(o,this._handlers[o]=ee(i,this))},this)),qo(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){yl(this,"_throttledDispatchExpand"),L(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(H({type:"parallelAxisExpand"},t))},e.type="parallel",e})(nt),p7={mousedown:function(r){cd(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(cd(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>v7)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!cd(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function cd(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var g7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&be(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){L(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=je(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);L(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Ie),m7=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})($r);function Vi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=io(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=io(s,[0,o]),n=i=io(s,[n,i]),a=0}e[0]=io(e[0],t),e[1]=io(e[1],t);var l=fd(e,a);e[a]+=r;var u=n||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[a]=io(e[a],c);var f;return f=fd(e,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(e[1-a]=e[a]+l.sign*n),f=fd(e,a),i!=null&&f.span>i&&(e[1-a]=e[a]+f.sign*i),e}function fd(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function io(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var hd=L,BM=Math.min,zM=Math.max,$b=Math.floor,y7=Math.ceil,Ub=ot,x7=Math.PI,_7=(function(){function r(e,t,a){this.type="parallel",this._axesMap=ae(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;hd(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new m7(o,lh(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();hd(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Ro(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=yt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,c=Yu(e.get("axisExpandWidth"),l),f=Yu(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Yu(v[1]-v[0],l),v[1]=v[0]+d;else{d=Yu(c*(f-1),l);var p=e.get("axisExpandCenter")||$b(u/2);v=[c*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-f);g<3&&(g=0);var m=[$b(Ub(v[0]/c,1))+1,y7(Ub(v[1]/c,1))-1],y=g/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),hd(a,function(o,s){var l=(n.axisExpandable?S7:b7)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:x7/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],h=c[i],v=cr();ki(v,v,h),ca(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];L(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=e.getValues(s,c),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return Fr([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return ce(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):h&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Vi(l,n,o,"all"):u="none";else{var v=n[1]-n[0],d=o[1]*s/v;n=[zM(0,d-v/2)],n[1]=BM(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r})();function Yu(r,e){return BM(zM(r,e[0]),e[1])}function b7(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function S7(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function w7(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new _7(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",vt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var T7={create:w7},hg=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Ai([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=ce(t);if(a)for(var n=a.length-1;n>=0;n--)Ar(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(Ie);pt(hg,Ul);var Li=!0,Il=Math.min,Oo=Math.max,C7=Math.pow,A7=1e4,D7=6,M7=6,Yb="globalPan",L7={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},I7={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Xb={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},P7=0,vy=(function(r){z(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new ve,a._uid="brushController_"+P7++,L(z7,function(n,i){this._handlers[i]=ee(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||b6(a,Yb,this._uid),L(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=be(ce(Xb),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;S6(t,Yb,this._uid),L(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};L(t,function(n){a[n.panelId]=ce(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=$(t,function(h){return be(ce(Xb),h,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Oa(n,t,u,l).add(c).update(c).remove(f).execute(),this;function l(h,v){return(h.id!=null?h.id:a+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function c(h,v){var d=t[h];if(v!=null&&n[v]===s)i[h]=n[v];else{var p=i[h]=v!=null?(n[v].__brushOption=d,n[v]):GM(o,VM(o,d));dy(o,p)}}function f(h){n[h]!==s&&o.group.remove(n[h])}},e.prototype.unmount=function(){return this.enableBrush(!1),vg(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Lr);function VM(r,e){var t=dh[e.brushType].createCover(r,e);return t.__brushOption=e,HM(t,e),r.group.add(t),t}function GM(r,e){var t=py(e);return t.endCreating&&(t.endCreating(r,e),HM(e,e.__brushOption)),e}function FM(r,e){var t=e.__brushOption;py(e).updateCoverShape(r,e,t.range,t)}function HM(r,e){var t=e.z;t==null&&(t=A7),r.traverse(function(a){a.z=t,a.z2=t})}function dy(r,e){py(e).updateCommon(r,e),FM(r,e)}function py(r){return dh[r.__brushOption.brushType]}function gy(r,e,t){var a=r._panels;if(!a)return Li;var n,i=r._transform;return L(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function jM(r,e){var t=r._panels;if(!t)return Li;var a=e.__brushOption.panelId;return a!=null?t[a]:Li}function vg(r){var e=r._covers,t=e.length;return L(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function Ii(r,e){var t=$(r._covers,function(a){var n=a.__brushOption,i=ce(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function k7(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=C7(n*n+i*i,.5);return o>D7}function WM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function $M(r,e,t,a){var n=new ve;return n.add(new Re({name:"main",style:my(t),silent:!0,draggable:!0,cursor:"move",drift:xe(Zb,r,e,n,["n","s","w","e"]),ondragend:xe(Ii,e,{isEnd:!0})})),L(a,function(i){n.add(new Re({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(Zb,r,e,n,i),ondragend:xe(Ii,e,{isEnd:!0})}))}),n}function UM(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Oo(n,M7),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,c=t[0][1],f=t[1][1],h=c-i+n/2,v=f-i+n/2,d=c-o,p=f-s,g=d+n,m=p+n;Sa(r,e,"main",o,s,d,p),a.transformable&&(Sa(r,e,"w",l,u,i,m),Sa(r,e,"e",h,u,i,m),Sa(r,e,"n",l,u,g,i),Sa(r,e,"s",l,v,g,i),Sa(r,e,"nw",l,u,i,i),Sa(r,e,"ne",h,u,i,i),Sa(r,e,"sw",l,v,i,i),Sa(r,e,"se",h,v,i,i))}function dg(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(my(t)),n.attr({silent:!a,cursor:a?"move":"default"}),L([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?pg(r,i[0]):N7(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?I7[s]+"-resize":null})})}function Sa(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(O7(yy(r,e,[[a,n],[a+i,n+o]])))}function my(r){return le({strokeNoScale:!0},r.brushStyle)}function YM(r,e,t,a){var n=[Il(r,t),Il(e,a)],i=[Oo(r,t),Oo(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function R7(r){return _i(r.group)}function pg(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Uf(t[e],R7(r));return a[n]}function N7(r,e){var t=[pg(r,e[0]),pg(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Zb(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=XM(e,n,i);L(a,function(u){var c=L7[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(YM(s[0][0],s[1][0],s[0][1],s[1][1])),dy(e,t),Ii(e,{isEnd:!1})}function E7(r,e,t,a){var n=e.__brushOption.range,i=XM(r,t,a);L(n,function(o){o[0]+=i[0],o[1]+=i[1]}),dy(r,e),Ii(r,{isEnd:!1})}function XM(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function yy(r,e,t){var a=jM(r,e);return a&&a!==Li?a.clipPath(t,r._transform):ce(t)}function O7(r){var e=Il(r[0][0],r[1][0]),t=Il(r[0][1],r[1][1]),a=Oo(r[0][0],r[1][0]),n=Oo(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function B7(r,e,t){if(!(!r._brushType||V7(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=gy(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Li||s.panelId===i.panelId)&&dh[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function gg(r){var e=r.event;e.preventDefault&&e.preventDefault()}function mg(r,e,t){return r.childOfName("main").contain(e,t)}function ZM(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),k7(r)||n){if(i&&!n){o.brushMode==="single"&&vg(r);var l=ce(o);l.brushType=Kb(l.brushType,i),l.panelId=i===Li?null:i.panelId,n=r._creatingCover=VM(r,l),r._covers.push(n)}if(n){var u=dh[Kb(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(yy(r,n,r._track)),a&&(GM(r,n),u.updateCommon(r,n)),FM(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&gy(r,e,t)&&vg(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Kb(r,e){return r==="auto"?e.defaultBrushType:r}var z7={mousedown:function(r){if(this._dragging)qb(this,r);else if(!r.target||!r.target.draggable){gg(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=gy(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(B7(this,r,a),this._dragging){gg(r);var n=ZM(this,r,a,!1);n&&Ii(this,n)}},mouseup:function(r){qb(this,r)}};function qb(r,e){if(r._dragging){gg(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=ZM(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ii(r,i)}}function V7(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var dh={lineX:Jb(0),lineY:Jb(1),rect:{createCover:function(r,e){function t(a){return a}return $M({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=WM(r);return YM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){UM(r,e,t,a)},updateCommon:dg,contain:mg},polygon:{createCover:function(r,e){var t=new ve;return t.add(new Qt({name:"main",style:my(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Jt({name:"main",draggable:!0,drift:xe(E7,r,e),ondragend:xe(Ii,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:yy(r,e,t)})},updateCommon:dg,contain:mg}};function Jb(r){return{createCover:function(e,t){return $M({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=WM(e),a=Il(t[0][r],t[1][r]),n=Oo(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=jM(e,t);if(o!==Li&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),UM(e,t,l,n)},updateCommon:dg,contain:mg}}function KM(r){return r=xy(r),function(e){return oC(e,r)}}function qM(r,e){return r=xy(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function JM(r,e,t){var a=xy(r);return function(n,i){return a.contain(i[0],i[1])&&!ch(n,e,t)}}function xy(r){return we.create(r)}var G7=["axisLine","axisTickLabel","axisName"],F7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new vy(a.getZr())).on("brush",ee(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!H7(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ve,this.group.add(this._axisGroup),!!t.get("show")){var s=W7(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,h=l.getAxisLayout(f),v=H({strokeContainThreshold:c},h),d=new Xt(t,v);L(G7,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,t,s,c,n),Fl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=we.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:KM(f),isTargetByCursor:JM(f,s,i),getLinearBrushOtherExtent:qM(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(j7(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=$(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(nt);function H7(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function j7(r){var e=r.axis;return $(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function W7(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var $7={type:"axisAreaSelect",event:"axisAreaSelected"};function U7(r){r.registerAction($7,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var Y7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function QM(r){r.registerComponentView(d7),r.registerComponentModel(g7),r.registerCoordinateSystem("parallel",T7),r.registerPreprocessor(c7),r.registerComponentModel(hg),r.registerComponentView(F7),Eo(r,"parallel",hg,Y7),U7(r)}function X7(r){Ae(QM),r.registerChartView(r7),r.registerSeriesModel(i7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,u7)}var Z7=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),K7=(function(r){z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Z7},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){Na(this)},e.prototype.downplay=function(){Ea(this)},e})(De),q7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,f=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new K7,g=de(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var m=d.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),_=d.node1.getLayout(),S=d.node1.getModel(),b=S.get("localX"),w=S.get("localY"),C=d.node2.getLayout(),A=d.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=d.getLayout(),P,k,R,E,B,O,V,F;p.shape.extent=Math.max(1,I.dy),p.shape.orient=v,v==="vertical"?(P=(b!=null?b*u:_.x)+I.sy,k=(w!=null?w*c:_.y)+_.dy,R=(D!=null?D*u:C.x)+I.ty,E=M!=null?M*c:C.y,B=P,O=k*(1-x)+E*x,V=R,F=k*x+E*(1-x)):(P=(b!=null?b*u:_.x)+_.dx,k=(w!=null?w*c:_.y)+I.sy,R=D!=null?D*u:C.x,E=(M!=null?M*c:C.y)+I.ty,B=P*(1-x)+R*x,O=k,V=P*x+R*(1-x),F=E),p.setShape({x1:P,y1:k,x2:R,y2:E,cpx1:B,cpy1:O,cpx2:V,cpy2:F}),p.useStyle(y.getItemStyle()),Qb(p.style,v,d);var G=""+m.get("value"),j=Ct(m,"edgeLabel");Rt(p,j,{labelFetcher:{getFormattedLabel:function(Q,fe,he,ne,q,ie){return t.getFormattedLabel(Q,fe,"edge",ne,sa(q,j.normal&&j.normal.get("formatter"),G),ie)}},labelDataIndex:d.dataIndex,defaultText:G}),p.setTextConfig({position:"inside"});var Y=m.getModel("emphasis");kt(p,m,"lineStyle",function(Q){var fe=Q.getItemStyle();return Qb(fe,v,d),fe}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var X=Y.get("focus");it(p,X==="adjacency"?d.getAdjacentDataIndices():X==="trajectory"?d.getTrajectoryDataIndices():X,Y.get("blurScope"),Y.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),_=g.get(["itemStyle","borderRadius"])||0,S=new Re({shape:{x:m!=null?m*u:p.x,y:y!=null?y*c:p.y,width:p.dx,height:p.dy,r:_},style:g.getModel("itemStyle").getItemStyle(),z2:10});Rt(S,Ct(g),{labelFetcher:{getFormattedLabel:function(w,C){return t.getFormattedLabel(w,C,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),kt(S,g),s.add(S),f.setItemGraphicEl(d.dataIndex,S),de(S).dataType="node";var b=x.get("focus");it(S,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(d,p){var g=f.getItemModel(p);g.get("draggable")&&(d.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(J7(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(Ze);function Qb(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");J(a)&&J(n)&&(r.fill=new Gl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function J7(r,e,t){var a=new Re({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return at(a,{shape:{width:r.width+20}},e,t),a}var Q7=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new $e(o[l],this,a));var u=EM(i,n,this,!0,c);return u.data;function c(f,h){f.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var m=g.depth,y=p.levelModels[m];y&&(v.parentModel=y)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var y=m.depth,x=p.levelModels[y];x&&(v.parentModel=x)}return v})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(v){return isNaN(v)||v==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return At("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,h=this.getDataParams(t,n).data.name;return At("nameValue",{name:h!=null?h+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(Qe);function e8(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=t8(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;a8(u);var f=je(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");r8(u,c,a,n,o,s,h,v,d)})}function t8(r,e){return yt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r8(r,e,t,a,n,i,o,s,l){n8(r,e,t,n,i,s,l),l8(r,e,i,n,a,o,s),m8(r,s)}function a8(r){L(r,function(e){var t=gn(e.outEdges,vf),a=gn(e.inEdges,vf),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function n8(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>v&&(v=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var y=0;y<p.outEdges.length;y++){var x=p.outEdges[y],_=e.indexOf(x);s[_]=0;var S=x.node2,b=r.indexOf(S);--l[b]===0&&c.indexOf(S)<0&&c.push(S)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>f-1?v:f-1;o&&o!=="left"&&i8(r,o,i,w);var C=i==="vertical"?(n-t)/w:(a-t)/w;s8(r,C,i)}function eL(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function i8(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}L(r,function(f){eL(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&o8(r,a)}function o8(r,e){L(r,function(t){!eL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function s8(r,e,t){L(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function l8(r,e,t,a,n,i,o){var s=u8(r,o);c8(s,e,t,a,n,o),vd(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,f8(s,l,o),vd(s,n,t,a,o),g8(s,l,o),vd(s,n,t,a,o)}function u8(r,e){var t=[],a=e==="vertical"?"y":"x",n=yp(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),L(n.keys,function(i){t.push(n.buckets.get(i))}),t}function c8(r,e,t,a,n,i){var o=1/0;L(r,function(s){var l=s.length,u=0;L(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;c<o&&(o=c)}),L(r,function(s){L(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),L(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function vd(r,e,t,a,n){var i=n==="vertical"?"x":"y";L(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,h=n==="vertical"?"dx":"dy",v=0;v<f;v++)l=o[v],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[h]+e;var d=n==="vertical"?a:t;if(u=c-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function f8(r,e,t){L(r.slice().reverse(),function(a){L(a,function(n){if(n.outEdges.length){var i=gn(n.outEdges,h8,t)/gn(n.outEdges,vf);if(isNaN(i)){var o=n.outEdges.length;i=o?gn(n.outEdges,v8,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-wn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-wn(n,t))*e;n.setLayout({y:l},!0)}}})})}function h8(r,e){return wn(r.node2,e)*r.getValue()}function v8(r,e){return wn(r.node2,e)}function d8(r,e){return wn(r.node1,e)*r.getValue()}function p8(r,e){return wn(r.node1,e)}function wn(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function vf(r){return r.getValue()}function gn(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function g8(r,e,t){L(r,function(a){L(a,function(n){if(n.inEdges.length){var i=gn(n.inEdges,d8,t)/gn(n.inEdges,vf);if(isNaN(i)){var o=n.inEdges.length;i=o?gn(n.inEdges,p8,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-wn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-wn(n,t))*e;n.setLayout({y:l},!0)}}})})}function m8(r,e){var t=e==="vertical"?"x":"y";L(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),L(r,function(a){var n=0,i=0;L(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),L(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function y8(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;L(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),L(a,function(s){var l=new Tt({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&L(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function x8(r){r.registerChartView(q7),r.registerSeriesModel(Q7),r.registerLayout(e8),r.registerVisual(y8),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var tL=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[n,i],d=v[c].get("type"),p=v[1-c].get("type"),g=e.data;if(g&&l){var m=[];L(g,function(_,S){var b;W(_)?(b=_.slice(),_.unshift(S)):W(_.value)?(b=H({},_),b.value=b.value.slice(),_.value.unshift(S)):b=_,m.push(b)}),e.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:tf(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:tf(p),dimsDef:y.slice()}];return es(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:xe(kC,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),rL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(Qe);pt(rL,tL,!0);var _8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=eS(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var h=i.getItemLayout(u);f?(jr(f),aL(h,f,i,u)):f=eS(h,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e})(Ze),b8=(function(){function r(){}return r})(),S8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new b8},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(De);function eS(r,e,t,a,n){var i=r.ends,o=new S8({shape:{points:n?w8(i,a,r):i}});return aL(r,o,e,t,n),o}function aL(r,e,t,a,n){var i=t.hostModel,o=Ni[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");kt(e,s),it(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function w8(r,e,t){return $(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var al=L;function T8(r){var e=C8(r);al(e,function(t){var a=t.seriesModels;a.length&&(A8(t),al(a,function(n,i){D8(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function C8(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=Ce(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function A8(r){var e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;al(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}al(t,function(d){var p=d.get("boxWidth");W(p)||(p=[p,p]),o.push([K(p[0],s)||0,K(p[1],s)||0])});var c=s*.8-2,f=c/a*.3,h=(c-f*(a-1))/a,v=h/2-c/2;al(t,function(d,p){i.push(v),v+=f+h,n.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function D8(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<n.count();f++){var h=n.get(u,f),v=x(h,c[2],f),d=x(h,c[0],f),p=x(h,c[1],f),g=x(h,c[3],f),m=x(h,c[4],f),y=[];_(y,p,!1),_(y,g,!0),y.push(d,p,m,g),S(y,d),S(y,m),S(y,v),n.setItemLayout(f,{initBaseline:v[s],ends:y})}function x(b,w,C){var A=n.get(w,C),D=[];D[o]=b,D[s]=A;var M;return isNaN(b)||isNaN(A)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=e),M}function _(b,w,C){var A=w.slice(),D=w.slice();A[o]+=i,D[o]-=i,C?b.push(A,D):b.push(D,A)}function S(b,w){var C=w.slice(),A=w.slice();C[o]-=i,A[o]+=i,b.push(C,A)}}function M8(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Ar(r[o].slice()),l=Hh(s,.25),u=Hh(s,.5),c=Hh(s,.75),f=s[0],h=s[s.length-1],v=(n??1.5)*(c-l),d=i?f:Math.max(f,l-v),p=i?h:Math.min(h,c+v),g=e.itemNameFormatter,m=se(g)?g({value:o}):J(g)?g.replace("{value}",o+""):o+"";t.push([m,d,l,u,c,p]);for(var y=0;y<s.length;y++){var x=s[y];if(x<d||x>p){var _=[m,x];a.push(_)}}}return{boxData:t,outliers:a}}var L8={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Vt){var a="";He(a)}var n=M8(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function I8(r){r.registerSeriesModel(rL),r.registerChartView(_8),r.registerLayout(T8),r.registerTransform(L8)}var P8=["itemStyle","borderColor"],k8=["itemStyle","borderColor0"],R8=["itemStyle","borderColorDoji"],N8=["itemStyle","color"],E8=["itemStyle","color0"];function _y(r,e){return e.get(r>0?N8:E8)}function by(r,e){return e.get(r===0?R8:r>0?P8:k8)}var O8={seriesType:"candlestick",plan:Ko(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=_y(s,o),l.stroke=by(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");H(u,l)}}}}}},B8=["color","borderColor"],z8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var f=a.getItemLayout(c);if(s&&tS(u,f))return;var h=dd(f,c,!0);at(h,{shape:{points:f.ends}},t,c),pd(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}}).update(function(c,f){var h=n.getItemGraphicEl(f);if(!a.hasValue(c)){i.remove(h);return}var v=a.getItemLayout(c);if(s&&tS(u,v)){i.remove(h);return}h?(Ve(h,{shape:{points:v.ends}},t,c),jr(h)):h=dd(v),pd(h,a,c,o),i.add(h),a.setItemGraphicEl(c,h)}).remove(function(c){var f=n.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),rS(t,this.group);var a=t.get("clip",!0)?Zl(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=dd(s);pd(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){rS(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(Ze),V8=(function(){function r(){}return r})(),G8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new V8},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e})(De);function dd(r,e,t){var a=r.ends;return new G8({shape:{points:t?F8(a,r):a},z2:100})}function tS(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function pd(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,kt(r,n);var i=e.getItemLayout(t).sign;L(r.states,function(s,l){var u=n.getModel(l),c=_y(i,u),f=by(i,u)||c,h=s.style||(s.style={});c&&(h.fill=c),f&&(h.stroke=f)});var o=n.getModel("emphasis");it(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function F8(r,e){return $(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var H8=(function(){function r(){}return r})(),gd=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new H8},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(De);function rS(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new gd({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new gd({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new gd({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),md(1,o,r),md(-1,s,r),md(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function md(r,e,t,a){var n=by(r,t)||_y(r,t),i=t.getModel("itemStyle").getItemStyle(B8);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var nL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Qe);pt(nL,tL,!0);function j8(r){!r||!W(r.series)||L(r.series,function(e){ue(e)&&e.type==="k"&&(e.type="candlestick")})}var W8={seriesType:"candlestick",plan:Ko(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=$8(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=$(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],h=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var x=y.get(s,m),_=y.get(u,m),S=y.get(c,m),b=y.get(f,m),w=y.get(h,m),C=Math.min(_,S),A=Math.max(_,S),D=B(C,x),M=B(A,x),I=B(b,x),P=B(w,x),k=[];O(k,M,0),O(k,D,1),k.push(F(P),F(M),F(I),F(D));var R=g.getItemModel(m),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:aS(y,m,_,S,c,E),initBaseline:_>S?M[i]:D[i],ends:k,brushRect:V(b,w,x)})}function B(G,j){var Y=[];return Y[n]=j,Y[i]=G,isNaN(j)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Y)}function O(G,j,Y){var X=j.slice(),Q=j.slice();X[n]=mc(X[n]+a/2,1,!1),Q[n]=mc(Q[n]-a/2,1,!0),Y?G.push(X,Q):G.push(Q,X)}function V(G,j,Y){var X=B(G,Y),Q=B(j,Y);return X[n]-=a/2,Q[n]-=a/2,{x:X[0],y:X[1],width:a,height:Q[1]-X[1]}}function F(G){return G[n]=mc(G[n],1),G}}function d(p,g){for(var m=ia(p.count*4),y=0,x,_=[],S=[],b,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var A=w.get(s,b),D=w.get(u,b),M=w.get(c,b),I=w.get(f,b),P=w.get(h,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=aS(w,b,D,M,c,C),_[n]=A,_[i]=I,x=e.dataToPoint(_,null,S),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,_[i]=P,x=e.dataToPoint(_,null,S),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function aS(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function $8(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=K(me(r.get("barMaxWidth"),n),n),o=K(me(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?K(s,n):Math.max(Math.min(n/2,i),o)}function U8(r){r.registerChartView(z8),r.registerSeriesModel(nL),r.registerPreprocessor(j8),r.registerVisual(O8),r.registerLayout(W8)}function nS(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var Y8=(function(r){z(e,r);function e(t,a){var n=r.call(this)||this,i=new Yl(t,a),o=new ve;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=dt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}nS(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}nS(n,t)},e.prototype.highlight=function(){Na(this)},e.prototype.downplay=function(){Ea(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=Jo(t.getItemVisual(a,"symbolSize")),c=t.getItemVisual(a,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var v=Ei(t.getItemVisual(a,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=t.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&n.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=p,it(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(ve),X8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Xl(Y8)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=Kl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=y5(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Ze),Z8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ha(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Qe);function K8(r){r.registerChartView(X8),r.registerSeriesModel(Z8),r.registerLayout(Kl("effectScatter"))}var iL=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new fy(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");W(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=dt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),f=Mt(a.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;se(f)?h=f(n):h=f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return rn(t.__p1,t.__cp1)+rn(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Dt,c=ap;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var f=t.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),h=t.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=rn(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*rn(a,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e})(ve),oL=(function(r){z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Qt({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};Ve(o,s,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,it(this,l,u,c)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e})(ve),q8=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new oL(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=rn(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),f=n[l],h=n[l+1];t.x=f[0]*(1-c)+c*h[0],t.y=f[1]*(1-c)+c*h[1];var v=t.__t<1?h[0]-f[0]:f[0]-h[0],d=t.__t<1?h[1]-f[1]:f[1]-h[1];t.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e})(iL),J8=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),Q8=(function(r){z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new J8},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],f=n[o++],h=n[o++];if(t.moveTo(u,c),i>0){var v=(u+f)/2-(c-h)*i,d=(c+h)/2-(f-u)*i;t.quadraticCurveTo(v,d,f,h)}else t.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],h=i[u++],v=1;v<c;v++){var d=i[u++],p=i[u++];if(en(f,h,d,p,s,t,a))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(f+d)/2-(h-p)*o,m=(h+p)/2-(d-f)*o;if(kT(f,h,g,m,d,p,s,t,a))return l}else if(en(f,h,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],f=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new we(i,o,s,l)}return t},e})(De),eH=(function(){function r(){this.group=new ve}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Q8({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=de(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),sL={seriesType:"lines",plan:Ko(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=n.start;c<n.end;c++){var v=r.getLineCoords(c,o);t&&(s[f++]=v);for(var d=0;d<v;d++)h=e.dataToPoint(o[d],!1,h),s[f++]=h[0],s[f++]=h[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var p=i.getItemModel(c),v=r.getLineCoords(c,o),g=[];if(t)for(var m=0;m<v;m++)g.push(e.dataToPoint(o[m]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var y=p.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}i.setItemLayout(c,g)}}}}}},tH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=t.get("clip",!0)&&Zl(t.coordinateSystem,!1,t);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=sL.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new eH:new hy(o?i?q8:oL:i?iL:fy),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e})(Ze),rH=typeof Uint32Array>"u"?Array:Uint32Array,aH=typeof Float64Array>"u"?Array:Float64Array;function iS(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=$(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),$g([n,t[0],t[1]])}))}var nH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],iS(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(iS(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=ol(this._flatCoords,a.flatCoords),this._flatCoordsOffset=ol(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Be(t[0])){for(var n=t.length,i=new rH(n),o=new aH(n),s=0,l=0,u=0,c=0;c<n;){u++;var f=t[c++];i[l++]=s+a,i[l++]=f;for(var h=0;h<f;h++){var v=t[c++],d=t[c++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var n=new Yt(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),At("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Qe);function Xu(r){return r instanceof Array||(r=[r,r]),r}var iH={seriesType:"lines",reset:function(r){var e=Xu(r.get("symbol")),t=Xu(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=Xu(s.getShallow("symbol",!0)),u=Xu(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function oH(r){r.registerChartView(tH),r.registerSeriesModel(nH),r.registerLayout(sL),r.registerVisual(iH)}var sH=256,lH=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=yn.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=t,f.height=a;for(var d=0;d<v;++d){var p=e[d],g=p[0],m=p[1],y=p[2],x=n(y);h.globalAlpha=x,h.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var _=h.getImageData(0,0,f.width,f.height),S=_.data,b=0,w=S.length,C=this.minOpacity,A=this.maxOpacity,D=A-C;b<w;){var x=S[b+3]/256,M=Math.floor(x*(sH-1))*4;if(x>0){var I=o(x)?l:u;x>0&&(x=x*D+C),S[b++]=I[M],S[b++]=I[M+1],S[b++]=I[M+2],S[b++]=I[M+3]*x*256}else b+=4}return h.putImageData(_,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=yn.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function uH(r,e,t){var a=r[1]-r[0];e=$(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function cH(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function oS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var fH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):oS(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(oS(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var s=t.coordinateSystem,l=Bi(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),S=Ct(t),b=t.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;M<i;M++){var I=void 0,P=g.getItemVisual(M,"style");if(l){var k=g.get(D[0],M),R=g.get(D[1],M);if(isNaN(g.get(D[2],M))||isNaN(k)||isNaN(R)||k<f[0]||k>f[1]||R<h[0]||R>h[1])continue;var E=s.dataToPoint([k,R]);I=new Re({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(D[1],M)))continue;I=new Re({z2:1,shape:s.dataToRect([g.get(D[0],M)]).contentShape,style:P})}if(g.hasItemOption){var B=g.getItemModel(M),O=B.getModel("emphasis");m=O.getModel("itemStyle").getItemStyle(),y=B.getModel(["blur","itemStyle"]).getItemStyle(),x=B.getModel(["select","itemStyle"]).getItemStyle(),_=B.get(["itemStyle","borderRadius"]),w=O.get("focus"),C=O.get("blurScope"),A=O.get("disabled"),S=Ct(B)}I.shape.r=_;var V=t.getRawValue(M),F="-";V&&V[2]!=null&&(F=V[2]+""),Rt(I,S,{labelFetcher:t,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:F}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,it(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new lH;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=d-h,m=p-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var D=t.dataToPoint([w,C]);return D[0]-=h,D[1]-=v,D.push(A),D}),_=n.getExtent(),S=n.type==="visualMap.continuous"?cH(_,n.option.range):uH(_,n.getPieceList(),n.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new Lt({style:{width:g,height:m,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Ze),hH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ha(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=jl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(Qe);function vH(r){r.registerChartView(fH),r.registerSeriesModel(hH)}var dH=["itemStyle","borderWidth"],sS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],yd=new Fa,pH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:sS[+c],categoryDim:sS[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=uS(o,d),g=lS(o,d,p,h),m=cS(o,h,g);o.setItemGraphicEl(d,m),i.add(m),hS(m,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var m=uS(o,d),y=lS(o,d,m,h),x=vL(o,y);g&&x!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?SH(g,h,y):g=cS(o,h,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,i.add(g),hS(g,h,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&fS(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=t.get("clip",!0)?Zl(t.coordinateSystem,!1,t):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){fS(i,de(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(Ze);function lS(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),h={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};gH(t,i,n,a,h),mH(r,e,n,i,o,h.boundingLength,h.pxSign,c,a,h),yH(t,h.symbolScale,u,a,h);var v=h.symbolSize,d=Ei(t.get("symbolOffset"),v);return xH(t,v,n,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,a,h),h}function gH(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(W(o)){var f=[xd(s,o[0])-l,xd(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=xd(s,o)-l:e?c=a.coordSysExtent[i.index][u]-l:c=t[i.wh];n.boundingLength=c,e&&(n.repeatCutLength=t[i.wh]);var h=i.xy==="x",v=s.inverse;n.pxSign=h&&!v||!h&&v?c>=0?1:-1:c>0?1:-1}function xd(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function mH(r,e,t,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(t[f.wh]),v=r.getItemVisual(e,"symbolSize"),d;W(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=K(d[f.index],h),d[c.index]=K(d[c.index],a?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function yH(r,e,t,a,n){var i=r.get(dH)||0;i&&(yd.attr({scaleX:e[0],scaleY:e[1],rotation:t}),yd.updateTransform(),i/=yd.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function xH(r,e,t,a,n,i,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),g=p;if(a){var m=Math.abs(l),y=Mt(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=K(y,e[v.index]),S=Math.max(p+_*2,0),b=x?0:_*2,w=yT(a),C=w?a:vS((m+b)/S),A=m-C*p;_=A/2/(x?C:Math.max(C-1,1)),S=p+_*2,b=x?0:_*2,!w&&a!=="fixed"&&(C=u?vS((Math.abs(u)+b)/S):0),g=C*S-b,f.repeatTimes=C,f.symbolMargin=_}var D=d*(g/2),M=f.pathPosition=[];M[h.index]=t[h.wh]/2,M[v.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[h.index]=t[h.xy],I[v.index]=t[v.xy];var P=f.barRectShape=H({},t);P[v.wh]=d*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+D)),P[h.wh]=t[h.wh];var k=f.clipShape={};k[h.xy]=-t[h.xy],k[h.wh]=c.ecSize[h.wh],k[v.xy]=0,k[v.wh]=t[v.wh]}function lL(r){var e=r.symbolPatternSize,t=dt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function uL(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+t.symbolMargin*2;for(Sy(r,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Do(p,null,d(c),t,a):Do(p,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(p)}),c++});c<u;c++){var h=lL(t);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,n.add(h);var v=d(c);Do(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,a)}function d(p){var g=s.slice(),m=t.pxSign,y=p;return(t.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function cL(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Do(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=lL(t),n.add(i),Do(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function fL(r,e,t){var a=H({},e.barRectShape),n=r.__pictorialBarRect;n?Do(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Re({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function hL(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=H({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Ve(n,{shape:i},s,l);else{i[o.wh]=0,n=new Re({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Ni[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function uS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=_H,t.isAnimationEnabled=bH,t}function _H(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function bH(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function cS(r,e,t,a){var n=new ve,i=new ve;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?uL(n,e,t):cL(n,e,t),fL(n,t,a),hL(n,e,t,a),n.__pictorialShapeStr=vL(r,t),n.__pictorialSymbolMeta=t,n}function SH(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Ve(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?uL(r,e,t,!0):cL(r,e,t,!0),fL(r,t,!0),hL(r,e,t,!0)}function fS(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];Sy(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),L(i,function(o){_n(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function vL(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Sy(r,e,t){L(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Do(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Ni[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function hS(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),h=i.get("scale");Sy(r,function(p){if(p instanceof Lt){var g=p.style;p.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var m=p.ensureState("emphasis");m.style=o,h&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Rt(d,Ct(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:No(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),it(r,c,f,i.get("disabled"))}function vS(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var wH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=An(Tl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(Tl);function TH(r){r.registerChartView(pH),r.registerSeriesModel(wH),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xe(KA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qA("pictorialBar"))}var CH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(g){return g.name}var v=new Oa(this._layersSeries||[],l,h,h),d=[];v.add(ee(p,this,"add")).update(ee(p,this,"update")).remove(ee(p,this,"remove")).execute();function p(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var _=[],S=[],b,w=l[m].indices,C=0;C<w.length;C++){var A=i.getItemLayout(w[C]),D=A.x,M=A.y0,I=A.y;_.push(D,M),S.push(D,M+I),b=i.getItemVisual(w[C],"style")}var P,k=i.getItemLayout(w[0]),R=t.getModel("label"),E=R.get("margin"),B=t.getModel("emphasis");if(g==="add"){var O=d[m]=new ve;P=new VD({shape:{points:_,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(P),s.add(O),t.isAnimationEnabled()&&P.setClipPath(AH(P.getBoundingRect(),t,function(){P.removeClipPath()}))}else{var O=x[y];P=O.childAt(0),s.add(O),d[m]=O,Ve(P,{shape:{points:_,stackedOnPoints:S}},t),jr(P)}Rt(P,Ct(t),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var V=P.getTextContent();V&&(V.x=k.x-E,V.y=k.y0+k.y/2),P.useStyle(b),i.setItemGraphicEl(m,P),kt(P,t),it(P,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e})(Ze);function AH(r,e,t){var a=new Re({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return at(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var _d=2,DH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Jl(ee(this.getData,this),ee(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=yp(t,function(h){return n.hasOwnProperty(h[0]+"")||(n[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";n[f]=l}for(var f in n)n.hasOwnProperty(f)&&n[f]!==l&&(n[f]=l,t[a]=[f,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",vt).models[0],i=n.get("type"),o=je(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ae(),c=0,f=0;f<s.length;++f)l.push(s[f][_d]),u.get(s[f][_d])||(u.set(s[f][_d],c),c++);var h=$l(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:tf(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Yt(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=yp(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return t.get(o,f)-t.get(o,h)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){W(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,v=o[c].indices.length,d=0;d<v;++d){var p=i.get(t[0],o[c].indices[d]),g=Math.abs(p-a);g<=f&&(u=p,f=g,h=o[c].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return At("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Qe);function MH(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=K(s[0],o.height),s[1]=K(s[1],o.height);var u=o.height-s[0]-s[1];dS(a,t,u)}else{s[0]=K(s[0],o.width),s[1]=K(s[1],o.width);var c=o.width-s[0]-s[1];dS(a,t,c)}a.setLayout("layoutInfo",i)})}function dS(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=$(n,function(g){return $(g.indices,function(m){var y=a.dataToPoint(r.get(i,m));return y[1]=r.get(o,m),y})}),l=LH(s),u=l.y0,c=t/l.max,f=n.length,h=n[0].indices.length,v,d=0;d<h;++d){v=u[d]*c,r.setItemLayout(n[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*c});for(var p=1;p<f;++p)v+=s[p-1][d][1]*c,r.setItemLayout(n[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*c})}}function LH(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<t;++c){var f=a[c]+n[c];f>i&&(i=f)}return{y0:n,max:i}}function IH(r){r.registerChartView(CH),r.registerSeriesModel(DH),r.registerLayout(MH),r.registerProcessor(ql("themeRiver"))}var PH=2,kH=4,pS=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=PH,o.textConfig={inside:!0},de(o).seriesIndex=a.seriesIndex;var s=new Oe({z2:kH,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;de(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),f=H({},c);f.label=null;var h=a.getVisual("style");h.lineJoin="bevel";var v=a.getVisual("decal");v&&(h.decal=ko(v,o));var d=di(l.getModel("itemStyle"),f,!0);H(f,d),L(Kt,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var S=di(_,f);S&&(x.shape=S)}),t?(s.setShape(f),s.shape.r=c.r0,at(s,{shape:{r:c.r}},n,a.dataIndex)):(Ve(s,{shape:f},n),jr(s)),s.useStyle(h),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="relative"?ol(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;it(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,L(hl,function(m){var y=m==="normal"?n.getModel("label"):n.getModel([m,"label"]),x=m==="normal",_=x?h:h.ensureState(m),S=t.getFormattedLabel(v,m);x&&(S=S||a.node.name),_.style=Je(y,{},null,m!=="normal",!0),S&&(_.style.text=S);var b=y.get("show");b!=null&&!x&&(_.ignore=!b);var w=g(y,"position"),C=x?f:f.states[m],A=C.style.fill;C.textConfig={outsideFill:y.get("color")==="inherit"?A:null,inside:w!=="outside"};var D,M=g(y,"distance")||0,I=g(y,"align"),P=g(y,"rotate"),k=Math.PI*.5,R=Math.PI*1.5,E=ur(P==="tangential"?Math.PI/2-l:l),B=E>k&&!cl(E-k)&&E<R;w==="outside"?(D=o.r+M,I=B?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,I=B?"right":"left"):I==="right"&&(D=o.r-M,I=B?"left":"right"),_.style.align=I,_.style.verticalAlign=g(y,"verticalAlign")||"middle",_.x=D*u+o.cx,_.y=D*c+o.cy;var O=0;P==="radial"?O=ur(-l)+(B?Math.PI:0):P==="tangential"?O=ur(Math.PI/2-l)+(B?Math.PI:0):Be(P)&&(O=P*Math.PI/180),_.rotation=ur(O)});function g(m,y){var x=m.get(y);return x??i.get(y)}h.dirtyStyle()},e})(qt),yg="sunburstRootToNode",gS="sunburstHighlight",RH="sunburstUnhighlight";function NH(r){r.registerAction({type:yg,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Al(e,[yg],n);if(o){var s=n.getViewRoot();s&&(e.direction=oy(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:gS,update:"none"},function(e,t,a){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Al(e,[gS],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(H(e,{type:"highlight"}))}),r.registerAction({type:RH,update:"updateView"},function(e,t,a){e=H({},e),a.dispatchAction(H(e,{type:"downplay"}))})}var EH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(y){h.push(y)});var v=this._oldChildren||[];d(h,v),m(l,u),this._initEvents(),this._oldChildren=h;function d(y,x){if(y.length===0&&x.length===0)return;new Oa(x,y,_,_).add(S).update(S).remove(xe(S,null)).execute();function _(b){return b.getId()}function S(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];p(C,A)}}function p(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,t,a,n),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var _=new pS(y,t,a,n);c.add(_),s.setItemGraphicEl(y.dataIndex,_)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,a,n):(o.virtualPiece=new pS(y,t,a,n),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Yc(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yg,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(Ze),OH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};dL(n);var i=this._levelModels=$(t.levels||[],function(l){return new $e(l,this,a)},this),o=iy.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=i[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=hh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){xM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Qe);function dL(r){var e=0;L(r.children,function(a){dL(a);var n=a.value;W(n)&&(n=n[0]),e+=n});var t=r.value;W(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),W(r.value)?r.value[0]=t:r.value=t}var mS=Math.PI/180;function BH(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");W(i)||(i=[0,i]),W(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=K(n[0],o),c=K(n[1],s),f=K(i[0],l/2),h=K(i[1],l/2),v=-a.get("startAngle")*mS,d=a.get("minAngle")*mS,p=a.getData().tree.root,g=a.getViewRoot(),m=g.depth,y=a.get("sort");y!=null&&pL(g,y);var x=0;L(g.children,function(E){!isNaN(E.getValue())&&x++});var _=g.getValue(),S=Math.PI/(_||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(h-f)/(w||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,I=function(E,B){if(E){var O=B;if(E!==p){var V=E.getValue(),F=_===0&&D?S:V*S;F<d&&(F=d),O=B+M*F;var G=E.depth-m-(b?-1:1),j=f+C*G,Y=f+C*(G+1),X=a.getLevelModel(E);if(X){var Q=X.get("r0",!0),fe=X.get("r",!0),he=X.get("radius",!0);he!=null&&(Q=he[0],fe=he[1]),Q!=null&&(j=K(Q,l/2)),fe!=null&&(Y=K(fe,l/2))}E.setLayout({angle:F,startAngle:B,endAngle:O,clockwise:A,cx:u,cy:c,r0:j,r:Y})}if(E.children&&E.children.length){var ne=0;L(E.children,function(q){ne+=I(q,B+ne)})}return O-B}};if(b){var P=f,k=f+C,R=Math.PI*2;p.setLayout({angle:R,startAngle:v,endAngle:v+R,clockwise:A,cx:u,cy:c,r0:P,r:k})}I(g,v)})}function pL(r,e){var t=r.children||[];r.children=zH(t,e),t.length&&L(r.children,function(a){pL(a,e)})}function zH(r,e){if(se(e)){var t=$(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),$(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function VH(r){var e={};function t(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&J(s)&&(s=op(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function GH(r){r.registerChartView(EH),r.registerSeriesModel(OH),r.registerLayout(xe(BH,"sunburst")),r.registerProcessor(xe(ql,"sunburst")),r.registerVisual(VH),NH(r)}var yS={color:"fill",borderColor:"stroke"},FH={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ia=Ne(),HH=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ha(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Ia(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Qe);function jH(r,e){return e=e||[0,0],$(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function WH(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ee(jH,r)}}}function $H(r,e){return e=e||[0,0],$([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function UH(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:ee($H,r)}}}function YH(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function XH(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ee(YH,r)}}}function ZH(r,e){return e=e||[0,0],$(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function KH(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ee(ZH,r)}}}function qH(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function gL(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||te(r,"text")))}function mL(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},te(a,"text")&&(o.text=a.text),te(a,"rich")&&(o.rich=a.rich),te(a,"textFill")&&(o.fill=a.textFill),te(a,"textStroke")&&(o.stroke=a.textStroke),te(a,"fontFamily")&&(o.fontFamily=a.fontFamily),te(a,"fontSize")&&(o.fontSize=a.fontSize),te(a,"fontStyle")&&(o.fontStyle=a.fontStyle),te(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=te(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),te(a,"textPosition")&&(n.position=a.textPosition),te(a,"textOffset")&&(n.offset=a.textOffset),te(a,"textRotation")&&(n.rotation=a.textRotation),te(a,"textDistance")&&(n.distance=a.textDistance)}return xS(o,r),L(o.rich,function(l){xS(l,l)}),{textConfig:n,textContent:i}}function xS(r,e){e&&(e.font=e.textFont||e.font,te(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),te(e,"textAlign")&&(r.align=e.textAlign),te(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),te(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),te(e,"textWidth")&&(r.width=e.textWidth),te(e,"textHeight")&&(r.height=e.textHeight),te(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),te(e,"textPadding")&&(r.padding=e.textPadding),te(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),te(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),te(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),te(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),te(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),te(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),te(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function _S(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";bS(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,L(e.rich,function(s){bS(s,s)}),a}function bS(r,e){e&&(te(e,"fill")&&(r.textFill=e.fill),te(e,"stroke")&&(r.textStroke=e.fill),te(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),te(e,"font")&&(r.font=e.font),te(e,"fontStyle")&&(r.fontStyle=e.fontStyle),te(e,"fontWeight")&&(r.fontWeight=e.fontWeight),te(e,"fontSize")&&(r.fontSize=e.fontSize),te(e,"fontFamily")&&(r.fontFamily=e.fontFamily),te(e,"align")&&(r.textAlign=e.align),te(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),te(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),te(e,"width")&&(r.textWidth=e.width),te(e,"height")&&(r.textHeight=e.height),te(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),te(e,"padding")&&(r.textPadding=e.padding),te(e,"borderColor")&&(r.textBorderColor=e.borderColor),te(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),te(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),te(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),te(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),te(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),te(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),te(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),te(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),te(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),te(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var yL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},SS=Pe(yL);ua(fa,function(r,e){return r[e]=1,r},{});fa.join(", ");var df=["","style","shape","extra"],Bo=Ne();function wy(r,e,t,a,n){var i=r+"Animation",o=Wo(r,a,n)||{},s=Bo(e).userDuring;return o.duration>0&&(o.during=s?ee(r9,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,t[i]),o}function wc(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Bo(r),u=e.style;l.userDuring=e.during;var c={},f={};if(n9(r,e,f),TS("shape",e,f),TS("extra",e,f),!i&&s&&(a9(r,e,c),wS("shape",r,e,c),wS("extra",r,e,c),i9(r,e,u,c)),f.style=u,JH(r,f,o),e9(r,e),s)if(i){var h={};L(df,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),H(d?h[d]:h,p.enterFrom))});var v=wy("enter",r,e,t,n);v.duration>0&&r.animateFrom(h,v)}else QH(r,e,n||0,t,c);xL(r,e),u?r.dirty():r.markRedraw()}function xL(r,e){for(var t=Bo(r).leaveToProps,a=0;a<df.length;a++){var n=df[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Bo(r).leaveToProps={}),n&&(t[n]=t[n]||{}),H(n?t[n]:t,i.leaveTo))}}function ph(r,e,t,a){if(r){var n=r.parent,i=Bo(r).leaveToProps;if(i){var o=wy("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function wi(r){return r==="all"}function JH(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function QH(r,e,t,a,n){if(n){var i=wy("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function e9(r,e){te(e,"silent")&&(r.silent=e.silent),te(e,"ignore")&&(r.ignore=e.ignore),r instanceof Mr&&te(e,"invisible")&&(r.invisible=e.invisible),r instanceof De&&te(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Jr={},t9={setTransform:function(r,e){return Jr.el[r]=e,this},getTransform:function(r){return Jr.el[r]},setShape:function(r,e){var t=Jr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Jr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Jr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Jr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Jr.el.extra||(Jr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Jr.el.extra;if(e)return e[r]}};function r9(){var r=this,e=r.el;if(e){var t=Bo(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Jr.el=e,a(t9)}}function wS(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),wi(l))H(o,i);else for(var u=Xe(l),c=0;c<u.length;c++){var f=u[c],h=i[f];o[f]=h}else if(wi(s)||Ce(s,r)>=0){!o&&(o=a[r]={});for(var v=Pe(i),c=0;c<v.length;c++){var f=v[c],h=i[f];o9(n[f],h)&&(o[f]=h)}}}}}function TS(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Pe(a),o=0;o<i.length;o++){var s=i[o];n[s]=Us(a[s])}}function a9(r,e,t){for(var a=e.transition,n=wi(a)?fa:Xe(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function n9(r,e,t){for(var a=0;a<SS.length;a++){var n=SS[a],i=yL[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<fa.length;a++){var s=fa[a];e[s]!=null&&(t[s]=e[s])}}function i9(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!wi(o)){var l=Xe(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(wi(s)||wi(o)||Ce(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Pe(t),u=0;u<d.length;u++){var c=d[u];if(v[c]){var f=n[c];i[c]=f}}}}}}}function o9(r,e){return zt(r)?r!==e:r!=null&&isFinite(r)}var _L=Ne(),s9=["percent","easing","shape","style","extra"];function bL(r){r.stopAnimation("keyframe"),r.attr(_L(r))}function pf(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(W(e)){L(e,function(s){pf(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=Wo("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=_L(r);L(df,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),L(a,function(u){var c=r.animators,f=s?u[s]:u;if(f){var h=Pe(f);if(s||(h=je(h,function(p){return Ce(s9,p)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;L(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,f,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var Pa="emphasis",cn="normal",Ty="blur",Cy="select",Tn=[cn,Pa,Ty,Cy],bd={normal:["itemStyle"],emphasis:[Pa,"itemStyle"],blur:[Ty,"itemStyle"],select:[Cy,"itemStyle"]},Sd={normal:["label"],emphasis:[Pa,"label"],blur:[Ty,"label"],select:[Cy,"label"]},l9=["x","y"],u9="e\0\0",gr={normal:{},emphasis:{},blur:{},select:{}},c9={cartesian2d:WH,geo:UH,single:XH,polar:KH,calendar:qH};function xg(r){return r instanceof De}function _g(r){return r instanceof Mr}function f9(r,e){e.copyTransform(r),_g(e)&&_g(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,xg(e)&&xg(r)&&e.setShape(r.shape))}var h9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=CS(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(f){wd(n,null,f,u(f,i),t,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&ph(h,Ia(h).option,t)}).update(function(f,h){var v=o.getItemGraphicEl(h);wd(n,v,f,u(f,i),t,l,s)}).execute();var c=t.get("clip",!0)?Zl(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=CS(a,s,n,i),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=t.start;f<t.end;f++){var h=wd(null,null,f,l(f,o),a,this.group,s);h&&(h.traverse(c),u.push(h))}},e.prototype.eachRendered=function(t){Cn(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(Ze);function Ay(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=TL(a);t=$f(i,null,n,a.layout||"center"),Ia(t).customPathData=i}else if(e==="image")t=new Lt({}),Ia(t).customImagePath=r.style.image;else if(e==="text")t=new Oe({});else if(e==="group")t=new ve;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=dm(e);if(!o){var s="";He(s)}t=new o}return Ia(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Dy(r,e,t,a,n,i,o){bL(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=l9);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;te(u,"textFill")&&(u.fill=u.textFill),te(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=xg(e)?l.decal:null;r&&f&&(f.dirty=!0,c=ko(f,r)),l.__decalPattern=c}if(_g(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}wc(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),pf(e,a.keyframeAnimation,i)}function SL(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Di(i)}}function v9(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<Tn.length;s++)d9(a,e,Tn[s])}}function d9(r,e,t){var a=t===cn,n=a?e:gf(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function CS(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):c9[i.type](i));for(var s=le({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:_,style:b,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:M,currentSeriesIndices:I,font:P},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:p9(r.getData())},u,c,f={},h={},v={},d={},p=0;p<Tn.length;p++){var g=Tn[p];v[g]=r.getModel(bd[g]),d[g]=r.getModel(Sd[g])}function m(k){return k===u?c||(c=e.getItemModel(k)):e.getItemModel(k)}function y(k,R){return e.hasItemOption?k===u?f[R]||(f[R]=m(k).getModel(bd[R])):m(k).getModel(bd[R]):v[R]}function x(k,R){return e.hasItemOption?k===u?h[R]||(h[R]=m(k).getModel(Sd[R])):m(k).getModel(Sd[R]):d[R]}return function(k,R){return u=k,c=null,f={},h={},n&&n(le({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:R?R.type:null},l),s)};function _(k,R){return R==null&&(R=u),e.getStore().get(e.getDimensionIndex(k||0),R)}function S(k,R){R==null&&(R=u),k=k||0;var E=e.getDimensionInfo(k);if(!E){var B=e.getDimensionIndex(k);return B>=0?e.getStore().get(B,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function b(k,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),B=E&&E.fill,O=E&&E.opacity,V=y(R,cn).getItemStyle();B!=null&&(V.fill=B),O!=null&&(V.opacity=O);var F={inheritColor:J(B)?B:"#000"},G=x(R,cn),j=Je(G,null,F,!1,!0);j.text=G.getShallow("show")?me(r.getFormattedLabel(R,cn),No(e,R)):null;var Y=$c(G,F,!1);return A(k,V),V=_S(V,j,Y),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var E=y(R,Pa).getItemStyle(),B=x(R,Pa),O=Je(B,null,null,!0,!0);O.text=B.getShallow("show")?sa(r.getFormattedLabel(R,Pa),r.getFormattedLabel(R,cn),No(e,R)):null;var V=$c(B,null,!0);return A(k,E),E=_S(E,O,V),k&&C(E,k),E.legacy=!0,E}function C(k,R){for(var E in R)te(R,E)&&(k[E]=R[E])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=u),te(yS,k)){var E=e.getItemVisual(R,"style");return E?E[yS[k]]:null}if(te(FH,k))return e.getItemVisual(R,k)}function M(k){if(i.type==="cartesian2d"){var R=i.getBaseAxis();return nB(le({axis:R},k))}}function I(){return t.getCurrentSeriesIndices()}function P(k){return pm(k,t)}}function p9(r){var e={};return L(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function wd(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=My(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&it(s,a.focus,a.blurScope,a.emphasisDisabled),s}function My(r,e,t,a,n,i){var o=-1,s=e;e&&wL(e,a,n)&&(o=Ce(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ay(a),s&&f9(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),gr.normal.cfg=gr.normal.conOpt=gr.emphasis.cfg=gr.emphasis.conOpt=gr.blur.cfg=gr.blur.conOpt=gr.select.cfg=gr.select.conOpt=null,gr.isLegacy=!1,m9(u,t,a,n,l,gr),g9(u,t,a,n,l),Dy(r,u,t,a,gr,n,l),te(a,"info")&&(Ia(u).info=a.info);for(var c=0;c<Tn.length;c++){var f=Tn[c];if(f!==cn){var h=gf(a,f),v=Ly(a,h,f);SL(f,u,h,v,gr)}}return v9(u,a,n),a.type==="group"&&y9(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function wL(r,e,t){var a=Ia(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&S9(i)&&TL(i)!==a.customPathData||n==="image"&&te(o,"image")&&o.image!==a.customImagePath}function g9(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&wL(o,i,a)&&(o=null),o||(o=Ay(i),r.setClipPath(o)),Dy(null,o,e,i,null,a,n)}}function m9(r,e,t,a,n,i){if(!r.isGroup){AS(t,null,i),AS(t,Pa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Ay(o),r.setTextContent(c)),Dy(null,c,e,o,null,a,n);for(var f=o&&o.style,h=0;h<Tn.length;h++){var v=Tn[h];if(v!==cn){var d=i[v].conOpt;SL(v,c,d,Ly(o,d,v),null)}}f?c.dirty():c.markRedraw()}}}}function AS(r,e,t){var a=e?gf(r,e):r,n=e?Ly(r,a,Pa):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?gf(s,e):s:null;if(n&&(t.isLegacy||gL(n,i,!!o,!!l))){t.isLegacy=!0;var u=mL(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?t[e]:t.normal;f.cfg=o,f.conOpt=l}function gf(r,e){return e?r?r[e]:null:r}function Ly(r,e,t){var a=e&&e.style;return a==null&&t===Pa&&r&&(a=r.styleEmphasis),a}function y9(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){_9({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],h=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),My(r,h,t,f,n,e)):h.ignore=!0}for(var v=e.childCount()-1;v>=c;v--){var d=e.childAt(v);x9(e,d,n)}}}function x9(r,e,t){e&&ph(e,Ia(r).option,t)}function _9(r){new Oa(r.oldChildren,r.newChildren,DS,DS,r).add(MS).update(MS).remove(b9).execute()}function DS(r,e){var t=r&&r.name;return t??u9+e}function MS(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;My(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function b9(r){var e=this.context,t=e.oldChildren[r];t&&ph(t,Ia(t).option,e.seriesModel)}function TL(r){return r&&(r.pathData||r.d)}function S9(r){return r&&(te(r,"pathData")||te(r,"d"))}function w9(r){r.registerChartView(h9),r.registerSeriesModel(HH)}var ii=Ne(),LS=ce,Td=ee,Iy=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ve,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var h=xe(IS,t,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}kS(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Jm(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=ii(e).pointerEl=new Ni[i.type](LS(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=ii(e).labelEl=new Oe(LS(t.label));e.add(i),PS(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=ii(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=ii(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),PS(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Hl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ka(u.event)},onmousedown:Td(this._onHandleDragMove,this,0,0),drift:Td(this._onHandleDragMove,this),ondragend:Td(this._onHandleDragEnd,this)}),a.add(n)),kS(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,qo(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){IS(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Cd(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Cd(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Cd(n)),ii(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),yl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function IS(r,e,t,a){CL(ii(t).lastProp,a)||(ii(t).lastProp=a,e?Ve(t,a,r):(t.stopAnimation(),t.attr(a)))}function CL(r,e){if(ue(r)&&ue(e)){var t=!0;return L(e,function(a,n){t=t&&CL(r[n],a)}),!!t}else return r===e}function PS(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Cd(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function kS(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function Py(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function AL(r,e,t,a,n){var i=t.get("value"),o=DL(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Yo(s.get("padding")||0),u=s.getFont(),c=El(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),T9(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Je(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function T9(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function DL(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Fm(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),J(o)?i=o.replace("{value}",i):se(o)&&(i=o(s))}return i}function ky(r,e,t){var a=cr();return ki(a,a,t.rotation),ca(a,a,t.position),Fr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function ML(r,e,t,a,n,i){var o=Xt.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),AL(e,a,n,i,{position:ky(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ry(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function LL(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function RS(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var C9=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=NS(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=Py(i),v=A9[u](s,f,c);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=eg(l.model,n);ML(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=eg(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ky(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=NS(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:d[c]}},e})(Iy);function NS(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var A9={line:function(r,e,t){var a=Ry([e,t[0]],[e,t[1]],ES(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:LL([e-a/2,t[0]],[a,n],ES(r))}}};function ES(r){return r.dim==="x"?0:1}var D9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e})(Ie),Aa=Ne(),M9=L;function IL(r,e,t){if(!Me.node){var a=e.getZr();Aa(a).records||(Aa(a).records={}),L9(a,e);var n=Aa(a).records[r]||(Aa(a).records[r]={});n.handler=t}}function L9(r,e){if(Aa(r).initialized)return;Aa(r).initialized=!0,t("click",xe(OS,"click")),t("mousemove",xe(OS,"mousemove")),t("globalout",P9);function t(a,n){r.on(a,function(i){var o=k9(e);M9(Aa(r).records,function(s){s&&n(s,i,o.dispatchAction)}),I9(o.pendings,e)})}}function I9(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function P9(r,e,t){r.handler("leave",null,t)}function OS(r,e,t,a){e.handler(r,t,a)}function k9(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function bg(r,e){if(!Me.node){var t=e.getZr(),a=(Aa(t).records||{})[r];a&&(Aa(t).records[r]=null)}}var R9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";IL("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){bg("axisPointer",a)},e.prototype.dispose=function(t,a){bg("axisPointer",a)},e.type="axisPointer",e})(nt);function PL(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Ci(i,r);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues($(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var BS=Ne();function N9(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||ee(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Tc(n)&&(n=PL({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Tc(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Tc(n),h={},v={},d={list:[],map:{}},p={showPointer:xe(O9,v),showTooltip:xe(B9,d)};L(s.coordSysMap,function(m,y){var x=l||m.containPoint(n);L(s.coordSysAxesInfo[y],function(_,S){var b=_.axis,w=F9(u,_);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(n)),C!=null&&zS(_,C,p,!1,h)}})});var g={};return L(c,function(m,y){var x=m.linkGroup;x&&!v[y]&&L(x.axesInfo,function(_,S){var b=v[S];if(_!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,VS(_),VS(m)))),g[m.key]=w}})}),L(g,function(m,y){zS(c[y],m,p,!0,h)}),z9(v,c,h),V9(d,n,r,o),G9(c,o,t),h}}function zS(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=E9(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function E9(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,t);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),L(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function O9(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function B9(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Cl(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function z9(r,e,t){var a=t.axesInfo=[];L(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function V9(r,e,t,a){if(Tc(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function G9(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=BS(a)[n]||{},o=BS(a)[n]={};L(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&L(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];L(i,function(u,c){!o[c]&&l.push(u)}),L(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function F9(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function VS(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Tc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function tu(r){zi.registerAxisPointerClass("CartesianAxisPointer",C9),r.registerComponentModel(D9),r.registerComponentView(R9),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!W(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=qV(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},N9)}function H9(r){Ae(iM),Ae(tu)}var j9=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=Py(i),d=$9[h](s,l,f,c);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=W9(a,n,i,l,p);AL(t,n,i,o,g)},e})(Iy);function W9(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=cr();ki(h,h,s),ca(h,h,[a.cx,a.cy]),u=Fr([o,-n],h);var v=e.getModel("axisLabel").get("rotate")||0,d=Xt.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,m=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var $9={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Ry(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:RS(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:RS(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},U9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Ie),Ny=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",vt).models[0]},e.type="polarAxis",e})(Ie);pt(Ny,Ul);var Y9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(Ny),X9=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(Ny),Ey=(function(r){z(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e})($r);Ey.prototype.dataToRadius=$r.prototype.dataToCoord;Ey.prototype.radiusToData=$r.prototype.coordToData;var Z9=Ne(),Oy=(function(r){z(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=El(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=Z9(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e})($r);Oy.prototype.dataToAngle=$r.prototype.dataToCoord;Oy.prototype.angleToData=$r.prototype.coordToData;var kL=["radius","angle"],K9=(function(){function r(e){this.dimensions=kL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ey,this._angleAxis=new Oy,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,h=this.r,v=this.r0;return h!==v&&f-o<=h*h&&f+o>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var n=GS(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=GS(t);return n===this?this.pointToData(a):null},r})();function GS(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function q9(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=K(a[0],n),r.cy=K(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:W(l)||(l=[0,l]);var u=[K(l[0],s),K(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function J9(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();L(rf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),L(rf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Ro(a.scale,a.model),Ro(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Q9(r){return r.mainType==="angleAxis"}function FS(r,e){var t;if(r.type=e.get("type"),r.scale=lh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Q9(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var ej={dimensions:kL,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new K9(n+"");i.update=J9;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");FS(o,l),FS(s,u),q9(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",vt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},tj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Zu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Ku(r){var e=r.getRadiusAxis();return e.inverse?0:1}function HS(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var rj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=$(n.getViewLabels(),function(c){c=ce(c);var f=n.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});HS(u),HS(s),L(tj,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&aj[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(zi),aj={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Ku(t),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new Ni[v]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new zl({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Ku(t)],u=$(a,function(c){return new St({shape:Zu(t,[l,l+s],c.coord)})});r.add(Tr(u,{style:le(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Ku(t)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new St({shape:Zu(t,[u,u+l],n[f][h].coord)}));r.add(Tr(c,{style:le(s.getModel("lineStyle").getLineStyle(),le(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");L(o,function(f,h){var v=l,d=f.tickValue,p=i[Ku(t)],g=t.coordToPoint([p+u,f.coord]),m=t.cx,y=t.cy,x=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",_=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var S=s[d];ue(S)&&S.textStyle&&(v=new $e(S.textStyle,l,l.ecModel))}var b=new Oe({silent:Xt.isLabelSilent(e),style:Je(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:_})});if(r.add(b),c){var w=Xt.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=f.rawLabel,de(b).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new St({shape:Zu(t,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Tr(c[f],{style:le({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new St({shape:Zu(t,i,n[u][c].coord)}));r.add(Tr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-a[0].coord*f,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,m=a.length;g<=m;g++){var y=g===m?a[0].coord:a[g].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new qt({shape:{cx:t.cx,cy:t.cy,r0:v,r:d,startAngle:h,endAngle:-y*f,clockwise:p},silent:!0})),h=-y*f}for(var g=0;g<c.length;g++)r.add(Tr(c[g],{style:le({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},nj=["axisLine","axisTickLabel","axisName"],ij=["splitLine","splitArea","minorSplitLine"],oj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new ve;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),v=lj(s,t,f),d=new Xt(t,v);L(nj,d.add,d),i.add(d.getGroup()),Fl(n,i,t),L(ij,function(p){t.get([p,"show"])&&!o.scale.isBlank()&&sj[p](this.group,t,s,f,h,u,c)},this)}},e.type="radiusAxis",e})(zi),sj={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Ni[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var p=0;p<d.length;p++)r.add(Tr(d[p],{style:le({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Fa({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Tr(u,{style:le({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new qt({shape:{cx:t.cx,cy:t.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)r.add(Tr(c[h],{style:le({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function lj(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function RL(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function NL(r,e){return e.dim+r.model.componentIndex}function uj(r,e,t){var a={},n=cj(je(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=NL(s,l),c=RL(i),f=n[u][c],h=f.offset,v=f.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var x=o.mapDimension(d.dim),_=o.mapDimension(l.dim),S=Sn(o,x),b=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,C=w.get("startValue"),A=d.dataToCoord(C||0),D=0,M=o.count();D<M;D++){var I=o.get(x,D),P=o.get(_,D),k=I>=0?"p":"n",R=A;S&&(a[c][P]||(a[c][P]={p:A,n:A}),R=a[c][P][k]);var E=void 0,B=void 0,O=void 0,V=void 0;if(d.dim==="radius"){var F=d.dataToCoord(I)-A,G=l.dataToCoord(P);Math.abs(F)<m&&(F=(F<0?-1:1)*m),E=R,B=R+F,O=G-h,V=O-v,S&&(a[c][P][k]=B)}else{var j=d.dataToCoord(I,b)-A,Y=l.dataToCoord(P);Math.abs(j)<y&&(j=(j<0?-1:1)*y),E=Y+h,B=E+v,O=R,V=R+j,S&&(a[c][P][k]=V)}o.setItemLayout(D,{cx:p,cy:g,r0:E,r:B,startAngle:-O*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:O>=V})}}})}function cj(r){var e={};L(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=NL(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var v=RL(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=K(a.get("barWidth"),c),p=K(a.get("barMaxWidth"),c),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var t={};return L(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=K(a.categoryGap,o),l=K(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),L(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,v;L(i,function(p,g){p.width||(p.width=f),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;L(i,function(p,g){t[n][g]=t[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),t}var fj={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},hj={splitNumber:5},vj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(nt);function dj(r){Ae(tu),zi.registerAxisPointerClass("PolarAxisPointer",j9),r.registerCoordinateSystem("polar",ej),r.registerComponentModel(U9),r.registerComponentView(vj),Eo(r,"angle",Y9,fj),Eo(r,"radius",X9,hj),r.registerComponentView(rj),r.registerComponentView(oj),r.registerLayout(xe(uj,"bar"))}function Sg(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=f[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Mt(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-h:h,n.z2=1,n}var pj=["axisLine","axisTickLabel","axisName"],gj=["splitArea","splitLine"],mj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ve;var l=Sg(t),u=new Xt(t,l);L(pj,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),L(gj,function(c){t.get([c,"show"])&&yj[c](this,this.group,this._axisGroup,t)},this),Fl(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){rM(this)},e.type="singleAxis",e})(zi),yj={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),f=[],h=0,v=n.getTicksCoords({tickModel:i}),d=[],p=[],g=0;g<v.length;++g){var m=n.toGlobalCoord(v[g].coord);c?(d[0]=m,d[1]=u.y,p[0]=m,p[1]=u.y+u.height):(d[0]=u.x,d[1]=m,p[0]=u.x+u.width,p[1]=m);var y=new St({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Io(y.shape,l);var x=h++%s.length;f[x]=f[x]||[],f[x].push(y)}for(var _=o.getLineStyle(["color"]),g=0;g<f.length;++g)e.add(Tr(f[g],{style:le({stroke:s[g%s.length]},_),silent:!0}))}},splitArea:function(r,e,t,a){tM(r,t,a,a)}},Cc=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})(Ie);pt(Cc,Ul.prototype);var xj=(function(r){z(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e})($r),EL=["single"],_j=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=EL,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=new xj(n,lh(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();L(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),Ro(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=yt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=jS(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=jS(t);return n===this?this.pointToData(a):null},r})();function jS(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function bj(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new _j(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",vt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var Sj={create:bj,dimensions:EL},WS=["x","y"],wj=["width","height"],Tj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Ad(l,1-mf(s)),c=l.dataToPoint(a)[0],f=i.get("type");if(f&&f!=="none"){var h=Py(i),v=Cj[f](s,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=Sg(n);ML(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Sg(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ky(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=mf(o),u=Ad(s,l),c=[t.x,t.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Ad(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(Iy),Cj={line:function(r,e,t){var a=Ry([e,t[0]],[e,t[1]],mf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:LL([e-a/2,t[0]],[a,n],mf(r))}}};function mf(r){return r.isHorizontal()?0:1}function Ad(r,e){var t=r.getRect();return[t[WS[e]],t[WS[e]]+t[wj[e]]]}var Aj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(nt);function Dj(r){Ae(tu),zi.registerAxisPointerClass("SingleAxisPointer",Tj),r.registerComponentView(Aj),r.registerComponentView(mj),r.registerComponentModel(Cc),Eo(r,"single",Cc,Cc.defaultOption),r.registerCoordinateSystem("single",Sj)}var Mj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=Xo(t);r.prototype.init.apply(this,arguments),$S(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),$S(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Ie);function $S(r,e){var t=r.cellSize,a;W(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=$([0,1],function(i){return XN(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});bn(r,e,{type:"box",ignoreSize:n})}var Lj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new Re({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,h=0;f.time<=a.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Qt({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return J(t)&&t?$N(t,a):se(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},m=this._formatterLabel(p,g),y=new Oe({z2:30,style:Je(o,{text:m}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],n,l,s)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],c=t[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||J(s))&&(s&&(a=Ip(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=o.get("silent"),g=0;g<f[h].length-1;g++){var m=f[h][g].slice(),y=this._firstDayOfMonth[g];if(d){var x=this._firstDayPoints[g];m[v]=(x[v]+f[0][g+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},w=this._formatterLabel(_,b),C=new Oe({z2:30,style:H(Je(o,{text:w}),this._monthTextPositionControl(m,d,n,u,l)),silent:p});i.add(C)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],c=t[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||J(c)){c&&(a=Ip(c)||a);var v=a.get(["time","dayOfWeekShort"]);c=v||$(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=K(f,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var g=s.get("silent"),m=0;m<7;m++){var y=l.getNextNDay(d,m),x=l.dataToRect([y.time],!1).center,_=m;_=Math.abs((m+h)%7);var S=new Oe({z2:30,style:H(Je(s,{text:c[_]}),this._weekTextPositionControl(x,i,u,f,p)),silent:g});o.add(S)}}},e.type="calendar",e})(nt),Dd=864e5,Ij=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=ha(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];L([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=yt(o,l);L([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){W(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,i=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+Dd))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=US(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=US(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(W(e)&&e.length===1&&(e=e[0]),W(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Dd)-Math.floor(t[0].time/Dd)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+t[0].day+6)/7),f=a?-c+1:c-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function US(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Pj(r){r.registerComponentModel(Mj),r.registerComponentView(Lj),r.registerCoordinateSystem("calendar",Ij)}function kj(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function YS(r,e){var t;return L(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function Rj(r,e,t){var a=H({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(be(n,a,!0),bn(n,a,{ignoreSize:!0}),DC(t,n),qu(t,n),qu(t,n,"shape"),qu(t,n,"style"),qu(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var OL=["transition","enterFrom","leaveTo"],Nj=OL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?OL:Nj,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function Ej(r,e){if(r&&(r.hv=e.hv=[YS(e,["left","right"]),YS(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var Oj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=wT(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];L(l,function(c,f){var h=c.newOption;h&&(u.push(h),kj(c,h),Rj(o,f,h),Ej(o[f],h))},this),n.elements=je(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,a,n){L(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Ie),XS={path:null,compoundPath:null,group:ve,image:Lt,text:Oe},br=Ne(),Bj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=ae()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");L(a,function(l){var u=mt(l.id,null),c=u!=null?n.get(u):null,f=mt(l.parentId,null),h=f!=null?n.get(f):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&gL(d,v,!!g,!!p)){var m=mL(d,v,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=zj(l),x=l.$action||"merge",_=x==="merge",S=x==="replace";if(_){var b=!c,w=c;b?w=ZS(u,h,l.type,n):(w&&(br(w).isNew=!1),bL(w)),w&&(wc(w,y,t,{isInit:b}),KS(w,l,o,s))}else if(S){Ac(c,l,n,t);var C=ZS(u,h,l.type,n);C&&(wc(C,y,t,{isInit:!0}),KS(C,l,o,s))}else x==="remove"&&(xL(c,l),Ac(c,l,n,t));var A=n.get(u);if(A&&p)if(_){var D=A.getTextContent();D?D.attr(p):A.setTextContent(new Oe(p))}else S&&A.setTextContent(new Oe(p));if(A){var M=l.clipPath;if(M){var I=M.type,P=void 0,b=!1;if(_){var k=A.getClipPath();b=!k||br(k).type!==I,P=b?wg(I):k}else S&&(b=!0,P=wg(I));A.setClipPath(P),wc(P,M,t,{isInit:b}),pf(P,M.keyframeAnimation,t)}var R=br(A);A.setTextConfig(g),R.option=l,Vj(A,t,l),Ri({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),pf(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],h=mt(f.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=br(v),m=br(d);g.width=K(g.option.width,p?s:m.width)||0,g.height=K(g.option.height,p?l:m.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],h=mt(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,m=br(d),y=d===i?{width:s,height:l}:{width:m.width,height:m.height},x={},_=Qf(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!br(v).isNew&&_){for(var S=f.transition,b={},w=0;w<u.length;w++){var C=u[w],A=x[C];S&&(wi(S)||Ce(S,C)>=0)?b[C]=A:v[C]=A}Ve(v,b,t,0)}else v.attr(x)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Ac(n,br(n).option,a,t._lastGraphicModel)}),this._elMap=ae()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(nt);function wg(r){var e=te(XS,r)?XS[r]:dm(r),t=new e({});return br(t).type=r,t}function ZS(r,e,t,a){var n=wg(t);return e.add(n),a.set(r,n),br(n).id=r,br(n).isNew=!0,n}function Ac(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Ac(i,e,t,a)}),ph(r,e,a),t.removeKey(br(r).id))}function KS(r,e,t,a){r.isGroup||L([["cursor",Mr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];te(e,i)?r[i]=me(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),L(Pe(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=se(i)?i:null}}),te(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function zj(r){return r=H({},r),L(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(AC),function(e){delete r[e]}),r}function Vj(r,e,t){var a=de(r).eventData;!r.silent&&!r.ignore&&!a&&(a=de(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function Gj(r){r.registerComponentModel(Oj),r.registerComponentView(Bj),r.registerPreprocessor(function(e){var t=e.graphic;W(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var qS=["x","y","radius","angle","single"],Fj=["cartesian2d","polar","singleAxis"];function Hj(r){var e=r.get("coordinateSystem");return Ce(Fj,e)>=0}function fn(r){return r+"Axis"}function jj(r,e){var t=ae(),a=[],n=ae();r.eachComponent({mainType:"dataZoom",query:e},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=t.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(t.get(f)||t.set(f,[]))[h]=!0})}return a}function BL(r){var e=r.ecModel,t={infoList:[],infoMap:ae()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(fn(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Md=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),Pl=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=JS(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=JS(t);be(this.option,t,!0),be(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;L([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=ae(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return L(qS,function(n){var i=this.getReferringComponents(fn(n),NR);if(i.specified){a=!0;var o=new Md;L(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Md;if(h.add(f.componentIndex),t.set(c,h),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",vt).models[0];v&&L(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",vt).models[0]&&h.add(d.componentIndex)})}}}i&&L(qS,function(u){if(i){var c=n.findComponents({mainType:fn(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Md;f.add(c[0].componentIndex),t.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");L([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(fn(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){L(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(fn(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;L([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;L(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Ie);function JS(r){var e={};return L(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Wj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Pl),By=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e})(nt),$j=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(By),po=L,QS=Ar,Uj=(function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Hj(t)){var a=fn(this._dimName),n=t.getReferringComponents(a,vt).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ce(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;po(["start","end"],function(h,v){var d=e[h],p=e[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(We(d,o,t))):(u=!0,p=p==null?t[v]:n.parse(p),d=We(p,t,o)),l[v]=p==null||isNaN(p)?t[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),QS(l),QS(s);var c=this._minMaxSpan;u?f(l,s,t,o,!1):f(s,l,o,t,!0);function f(h,v,d,p,g){var m=g?"Span":"ValueSpan";Vi(0,h,d,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)v[y]=We(h[y],d,p,!0),g&&(v[y]=n.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Yj(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;po(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var f=u.getStore(),h=$(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,m=0;m<c.length;m++){var y=f.get(h[m],v),x=!isNaN(y),_=y<o[0],S=y>o[1];if(x&&!_&&!S)return!0;x&&(g=!0),_&&(d=!0),S&&(p=!0)}return g&&d&&p})}else po(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});po(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;po(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=We(a[0]+o,a,[0,100],!0):i!=null&&(o=We(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=pT(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function Yj(r,e,t){var a=[1/0,-1/0];po(t,function(o){AB(a,o.getData(),e)});var n=r.getAxisModel(),i=tD(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Xj={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(fn(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Uj(n,i,s,r),t.push(o.__dzAxisProxy))});var a=ae();return L(t,function(n){L(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function Zj(r){r.registerAction("dataZoom",function(e,t){var a=jj(t,e);L(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var ew=!1;function zy(r){ew||(ew=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Xj),Zj(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Kj(r){r.registerComponentModel(Wj),r.registerComponentView($j),zy(r)}var wr=(function(){function r(){}return r})(),zL={};function go(r,e){zL[r]=e}function VL(r){return zL[r]}var qj=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;L(this.option.feature,function(a,n){var i=VL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),be(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})(Ie);function Jj(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=yt(a,i,n);bi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Qf(r,a,i,n)}function GL(r,e){var t=Yo(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new Re({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var Qj=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),f=[];L(u,function(d,p){f.push(p)}),new Oa(this._featureNames||[],f).add(h).update(h).remove(xe(h,null)).execute(),this._featureNames=f;function h(d,p){var g=f[d],m=f[p],y=u[g],x=new $e(y,t,t.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(eW(g))_={onclick:x.option.onclick,featureName:g};else{var S=VL(g);if(!S)return;_=new S}c[g]=_}else if(_=c[m],!_)return;_.uid=Uo("toolbox-feature"),_.model=x,_.ecModel=a,_.api=n;var b=_ instanceof wr;if(!g&&m){b&&_.dispose&&_.dispose(a,n);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(a,n);return}v(x,_,g),x.setIconStatus=function(w,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,D[w]&&(C==="emphasis"?Na:Ea)(D[w])},_ instanceof wr&&_.render&&_.render(x,a,n,i)}function v(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),x=p instanceof wr&&p.getIcons?p.getIcons():d.get("icon"),_=d.get("title")||{},S,b;J(x)?(S={},S[g]=x):S=x,J(_)?(b={},b[g]=_):b=_;var w=d.iconPaths={};L(S,function(C,A){var D=Hl(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new Oe({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:pm({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},a)},ignore:!0});D.setTextContent(I),Ri({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:b[A]}}),D.__title=b[A],D.on("mouseover",function(){var P=y.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Na:Ea)(D),o.add(D),D.on("click",ee(p.onclick,p,a,n,A)),w[A]=D})}Jj(o,t,n),o.add(GL(o.getBoundingRect(),t)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!se(x)&&p){var _=x.style||(x.style={}),S=El(p,Oe.makeFont(_)),b=d.x+o.x,w=d.y+o.y+s,C=!1;w+S.height>n.getHeight()&&(m.position="top",C=!0);var A=C?-5-S.height:s+10;b+S.width/2>n.getWidth()?(m.position=["100%",A],_.align="right"):b-S.width/2<0&&(m.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,a,n,i){L(this._features,function(o){o instanceof wr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){L(this._features,function(n){n instanceof wr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){L(this._features,function(n){n instanceof wr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e})(nt);function eW(r){return r.indexOf("my")===0}var tW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Me.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(d),S.close(),_.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(x)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e})(wr),tw="__ec_magicType_stack__",rW=[["line","bar"],["stack"]],aW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return L(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(rw[n]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=rw[n](h,v,f,i);d&&(le(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,vt).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var S=0;S<=_;S++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=n==="bar"}}};L(rW,function(f){Ce(f,n)>=0&&L(f,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=be({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e})(wr),rw={line:function(r,e,t,a){if(r==="bar")return be({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return be({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===tw;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),be({id:e,stack:n?"":tw},a.get(["option","stack"])||{},!0)}};pa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var gh=new Array(60).join("-"),zo=" ";function nW(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function iW(r){var e=[];return L(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat($(t.series,function(v){return v.name})),l=[n.model.getCategories()];L(t.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(zo)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(zo))}e.push(u.join(`
19
- `))}),e.join(`
20
-
21
- `+gh+`
22
-
23
- `)}function oW(r){return $(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+zo:"")+n.join(zo))}),a.join(`
24
- `)}).join(`
25
-
26
- `+gh+`
27
-
28
- `)}function sW(r){var e=nW(r);return{value:je([iW(e.seriesGroupByCategoryAxis),oW(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
29
-
30
- `+gh+`
31
-
32
- `),meta:e.meta}}function yf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lW(r){var e=r.slice(0,r.indexOf(`
33
- `));if(e.indexOf(zo)>=0)return!0}var Tg=new RegExp("["+zo+"]+","g");function uW(r){for(var e=r.split(/\n+/g),t=yf(e.shift()).split(Tg),a=[],n=$(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=yf(e[i]).split(Tg);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function cW(r){for(var e=r.split(/\n+/g),t=yf(e.shift()),a=[],n=0;n<e.length;n++){var i=yf(e[n]);if(i){var o=i.split(Tg),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function fW(r,e){var t=r.split(new RegExp(`
34
- *`+gh+`
35
- *`,"g")),a={series:[]};return L(t,function(n,i){if(lW(n)){var o=uW(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=cW(n);a.series.push(o)}}),a}var hW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),h=i.get("contentToOption"),v=sW(t);if(se(f)){var d=f(a.getOption());J(d)?u.innerHTML=d:Mo(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var S=this;function b(){n.removeChild(o),S._dom=null}rp(x,"click",b),rp(_,"click",function(){if(h==null&&f!=null||h!=null&&f==null){b();return}var w;try{se(h)?w=h(u,a.getOption()):w=fW(c.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),b()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=y,!i.get("readOnly")&&m.appendChild(_),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e})(wr);function vW(r,e){return $(r,function(t,a){var n=e&&e[a];if(ue(n)&&!W(n)){var i=ue(t)&&!W(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=le(t,n),o&&delete t.name,t}else return t})}pa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];L(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(H({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:vW(a.data,i)})}}),e.mergeOption(le({series:t},r.newOption))});var FL=L,HL=Ne();function dW(r,e){var t=Vy(r);FL(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function pW(r){var e=Vy(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return FL(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function gW(r){HL(r).snapshots=null}function mW(r){return Vy(r).length}function Vy(r){var e=HL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var yW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){gW(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e})(wr);pa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var xW=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Gy=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=aw(t,e);L(_W,function(o,s){(!a||!a.include||Ce(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Ld[a.brushType](0,i,n);a.__rangeOffset={offset:sw[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){L(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&L(i.coordSyses,function(o){var s=Ld[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){L(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Ld[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?sw[a.brushType](i.values,o.offset,bW(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return $(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:KM(n),isTargetByCursor:JM(n,e,a.coordSysModel),getLinearBrushOtherExtent:qM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&Ce(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=aw(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<nw.length;l++)if(nw[l](n,o))return o}return!0},r})();function Cg(r){return r[0]>r[1]&&r.reverse(),r}function aw(r,e){return Xs(r,e,{includeMainTypes:xW})}var _W={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=ae(),o={},s={};!t&&!a&&!n||(L(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),L(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),L(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];L(u.getCartesians(),function(f,h){(Ce(t,f.getAxis("x").model)>=0||Ce(a,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:iw.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){L(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:iw.geo})})}},nw=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],iw={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(_i(r)),e}},Ld={lineX:xe(ow,0),lineY:xe(ow,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Cg([n[0],i[0]]),Cg([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=$(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function ow(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Cg($([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var sw={lineX:xe(lw,0),lineY:xe(lw,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return $(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function lw(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function bW(r,e){var t=uw(r),a=uw(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function uw(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ag=L,SW=LR("toolbox-dataZoom_"),wW=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new vy(n.getZr()),this._brushController.on("brush",ee(this._onBrush,this)).mount()),AW(t,a,this,i,n),CW(t,a)},e.prototype.onclick=function(t,a,n){TW[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Gy(Fy(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),dW(i,n),this._dispatchZoomAction(n);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Vi(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var a=[];Ag(t,function(n,i){a.push(ce(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e})(wr),TW={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(pW(this.ecModel))}};function Fy(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function CW(r,e){r.setIconStatus("back",mW(e)>1?"emphasis":"normal")}function AW(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Gy(Fy(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}eE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=Fy(a),o=Xs(r,i);Ag(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Ag(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:SW+u+f};h[c]=f,n.push(h)}return n});function DW(r){r.registerComponentModel(qj),r.registerComponentView(Qj),go("saveAsImage",tW),go("magicType",aW),go("dataView",hW),go("dataZoom",wW),go("restore",yW),Ae(Kj)}var MW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e})(Ie);function jL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function WL(r){if(Me.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var $L=WL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),LW=WL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function UL(r,e){if(!r)return e;e=TC(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function IW(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var PW=UL(LW,"transition"),Hy=UL($L,"transform"),kW="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Me.transform3dSupported?"will-change:transform;":"");function RW(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function NW(r,e,t){if(!J(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=Mi(e);var i=RW(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Hy+":",u;Ce(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function EW(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=Me.transformSupported?","+Hy+a:",left"+a+",top"+a),PW+":"+n}function cw(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Me.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Me.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+Hy+":"+o+";":[["top",0],["left",0],[$L,o]]}function OW(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=me(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),L(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function BW(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=nA(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),e&&n&&a.push(EW(n,t)),i&&a.push("background-color:"+i),L(["width","color","radius"],function(v){var d="border-"+v,p=TC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(OW(c)),f!=null&&a.push("padding:"+Yo(f).join("px ")+"px"),a.join(";")+";"}function fw(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&s5(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var zW=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Me.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(J(i)?document.querySelector(i):Mo(i)?i:se(i)&&i(e.getDom()));fw(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();yr(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=IW(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=kW+BW(e,!this._firstShow,this._longHide)+cw(i[0],i[1],!0)+("border-color:"+Mi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(J(i)&&a.get("trigger")==="item"&&!jL(a)&&(s=NW(a,n,i)),J(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Mo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(fw(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=cw(a[0],a[1]);L(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Me.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r})(),VW=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),vw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;ue(e)&&He(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Oe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:nA(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=hw(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;vw(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Qa(i.borderWidth||0),s=hw(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Qa(r){return Math.max(0,r)}function hw(r){var e=Qa(r.shadowBlur||0),t=Qa(r.shadowOffsetX||0),a=Qa(r.shadowOffsetY||0);return{left:Qa(e-t),right:Qa(e+t),top:Qa(e-a),bottom:Qa(e+a)}}function vw(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var GW=new Re({shape:{x:-1,y:-1,width:2,height:2}}),FW=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(Me.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=OR(n.get("renderMode"));this._tooltipContent=i==="richText"?new VW(a):new zW(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(Me.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?qo(this,"_updatePosition",50,"fixRate"):yl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");IL("itemTooltip",this._api,ee(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||Me.node||!n.getDom())){var o=dw(i,n);this._ticket="";var s=i.dataByCoordSys,l=$W(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=GW;c.x=i.x,c.y=i.y,c.update(),de(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var f=PL(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(dw(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=As([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=de(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fi(n,function(c){if(de(c).dataIndex!=null)return l=c,!0;if(de(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=ee(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=As([a.tooltipOption],i),l=this._renderMode,u=[],c=At("section",{blocks:[],noHeader:!0}),f=[],h=new dv;L(t,function(y){L(y.dataByAxis,function(x){var _=n.getComponent(x.axisDim+"Axis",x.axisIndex),S=x.value;if(!(!_||S==null)){var b=DL(S,_.axis,n,x.seriesDataIndices,x.valueLabelOpt),w=At("section",{header:b,noHeader:!zr(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),L(x.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Fm(_.axis,{value:S}),M.axisValueLabel=b,M.marker=h.makeTooltipMarker("item",Mi(M.color),l);var I=Q1(A.formatTooltip(D,!0,null)),P=I.frag;if(P){var k=As([A],i).get("valueFormatter");w.blocks.push(k?H({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=ix(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
36
-
37
- `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=de(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=t.positionDefault,p=As([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new dv;m.marker=y.makeTooltipMarker("item",Mi(m.color),v);var x=Q1(u.formatTooltip(c,!1,f)),_=p.get("order"),S=p.get("valueFormatter"),b=x.frag,w=b?ix(S?H({valueFormatter:S},b):b,y,v,_,i.get("useUTC"),p.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,C,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=de(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=ce(l),l.content=Ut(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=t.positionDefault,d=As(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new dv;this._showOrMove(d,function(){var y=ce(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,a,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(h)if(J(h)){var g=t.ecModel.get("useUTC"),m=W(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Xf(m.axisValue,v,g)),v=CC(v,n,!0)}else if(se(h)){var x=ee(function(_,S){_===this._ticket&&(f.setContent(S,c,t,p,l),this._updatePosition(t,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,x)}else v=h;f.setContent(v,c,t,p,l),f.show(t,p),this._updatePosition(t,l,o,s,f,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||W(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!W(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||t.get("position");var f=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),se(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),W(a))n=K(a[0],u),i=K(a[1],c);else if(ue(a)){var p=a;p.width=f[0],p.height=f[1];var g=yt(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(J(a)&&l){var m=WW(a,d,f,t.get("borderWidth"));n=m[0],i=m[1]}else{var m=HW(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=pw(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=pw(v)?f[1]/2:v==="bottom"?f[1]:0),jL(t)){var m=jW(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&L(n,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&L(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&L(p,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),i&&L(h.seriesDataIndices,function(m){var y=m.seriesIndex,x=a[y],_=i[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Me.node||!a.getDom()||(yl(this,"_updatePosition"),this._tooltipContent.dispose(),bg("itemTooltip",a))},e.type="tooltip",e})(nt);function As(r,e,t){var a=e.ecModel,n;t?(n=new $e(t,a,a),n=new $e(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof $e&&(o=o.get("tooltip",!0)),J(o)&&(o={formatter:o}),o&&(n=new $e(o,n,a)))}return n}function dw(r,e){return r.dispatchAction||ee(e.dispatchAction,e)}function HW(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function jW(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function WW(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+c+o;break;case"left":s=e.x-n-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function pw(r){return r==="center"||r==="middle"}function $W(r,e,t){var a=rm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ol(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=de(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function UW(r){Ae(tu),r.registerComponentModel(MW),r.registerComponentView(FW),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ct),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ct)}var YW=["rect","polygon","keep","clear"];function XW(r,e){var t=Xe(r?r.brush:[]);if(t.length){var a=[];L(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;W(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),ZW(s),e&&!s.length&&s.push.apply(s,YW)}}function ZW(r){var e={};L(r,function(t){e[t]=1}),r.length=0,L(e,function(t,a){r.push(a)})}var gw=L;function mw(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Dg(r,e,t){var a={};return gw(e,function(i){var o=a[i]=n();gw(r[i],function(s,l){if(Tt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Tt(u),l==="opacity"&&(u=ce(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Tt(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function YL(r,e,t){var a;L(t,function(n){e.hasOwnProperty(n)&&mw(e[n])&&(a=!0)}),a&&L(t,function(n){e.hasOwnProperty(n)&&mw(e[n])?r[n]=ce(e[n]):delete r[n]})}function KW(r,e,t,a,n,i){var o={};L(r,function(f){var h=Tt.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return Pm(t,s,f)}function u(f,h){dA(t,s,f,h)}t.each(c);function c(f,h){s=f;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=a.call(n,f),p=e[d],g=o[d],m=0,y=g.length;m<y;m++){var x=g[m];p[x]&&p[x].applyVisual(f,l,u)}}}function qW(r,e,t,a){var n={};return L(r,function(i){var o=Tt.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(S){return Pm(s,f,S)}function c(S,b){dA(s,f,S,b)}for(var f,h=s.getStore();(f=o.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,f):f,p=t(d),g=e[p],m=n[p],y=0,x=m.length;y<x;y++){var _=m[y];g[_]&&g[_].applyVisual(d,u,c)}}}}}function JW(r){var e=r.brushType,t={point:function(a){return yw[e].point(a,t,r)},rect:function(a){return yw[e].rect(a,t,r)}};return t}var yw={lineX:xw(0),lineY:xw(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&ai(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(ai(a,n,i)||ai(a,n+o,i)||ai(a,n,i+s)||ai(a,n+o,i+s)||we.create(r).contain(l[0],l[1])||Es(n,i,n+o,i,a)||Es(n,i,n,i+s,a)||Es(n+o,i,n+o,i+s,a)||Es(n,i+s,n+o,i+s,a))return!0}}};function xw(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Ds(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Ds(s[0],o)||Ds(s[1],o)||Ds(o[0],s)||Ds(o[1],s)}}}}function Ds(r,e){return e[0]<=r&&r<=e[1]}var _w=["inBrush","outOfBrush"],Id="__ecBrushSelect",Mg="__ecInBrushSelectEvent";function XL(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Gy(e.option,r);t.setInputRanges(e.areas,r)})}function QW(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),XL(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ce(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,f=[],h=[],v=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=$(o.areas,function(S){var b=a$[S.brushType],w=le({boundingRect:b?b(S):void 0},S);return w.selectors=JW(w),w}),g=Dg(o.option,_w,function(S){S.mappingMethod="fixed"});W(c)&&L(c,function(S){f[S]=1});function m(S){return c==="all"||!!f[S]}function y(S){return!!S.length}r.eachSeries(function(S,b){var w=v[b]=[];S.subType==="parallel"?x(S,b):_(S,b,w)});function x(S,b){var w=S.coordinateSystem;d=d||w.hasAxisBrushed(),m(b)&&w.eachActiveState(S.getData(),function(C,A){C==="active"&&(h[A]=1)})}function _(S,b,w){if(!(!S.brushSelector||r$(o,b))&&(L(p,function(A){o.brushTargetManager.controlSeries(A,S,r)&&w.push(A),d=d||y(w)}),m(b)&&y(w))){var C=S.getData();C.each(function(A){bw(S,w,C,A)&&(h[A]=1)})}}r.eachSeries(function(S,b){var w={seriesId:S.id,seriesIndex:b,seriesName:S.name,dataIndex:[]};l.selected.push(w);var C=v[b],A=S.getData(),D=m(b)?function(M){return h[M]?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return bw(S,C,A,M)?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(b)?d:y(C))&&KW(_w,g,A,D)})}),e$(e,n,i,a,t)}function e$(r,e,t,a,n){if(n){var i=r.getZr();if(!i[Mg]){i[Id]||(i[Id]=t$);var o=qo(i,Id,t,e);o(r,a)}}}function t$(r,e){if(!r.isDisposed()){var t=r.getZr();t[Mg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[Mg]=!1}}function bw(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function r$(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(W(t)?Ce(t,e)<0:e!==t)}var a$={rect:function(r){return Sw(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&Sw(e)}};function Sw(r){return new we(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var n$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new vy(a.getZr())).on("brush",ee(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){XL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:ce(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:ce(n),$from:a})},e.type="brush",e})(nt),i$="#ddd",o$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&YL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:i$},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=$(t,function(a){return ww(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=ww(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e})(Ie);function ww(r,e){return be({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new $e(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var s$=["rect","polygon","lineX","lineY","keep","clear"],l$=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,L(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return L(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:s$.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e})(wr);function u$(r){r.registerComponentView(n$),r.registerComponentModel(o$),r.registerPreprocessor(XW),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,QW),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ct),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ct),go("brush",l$)}var c$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e})(Ie),f$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=me(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Oe({style:Je(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=t.get("subtext"),v=new Oe({style:Je(s,{text:h,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);c.silent=!d&&!g,v.silent=!p&&!g,d&&c.on("click",function(){Yc(d,"_"+t.get("target"))}),p&&v.on("click",function(){Yc(p,"_"+t.get("subtarget"))}),de(c).eventData=de(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),h&&i.add(v);var m=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=yt(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),i.x=x.x,i.y=x.y,i.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),v.setStyle(_),m=i.getBoundingRect();var S=x.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new Re({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e})(nt);function h$(r){r.registerComponentModel(c$),r.registerComponentView(f$)}var Tw=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],L(a,function(u,c){var f=mt(Ho(u),""),h;ue(u)?(h=ce(u),h.value=c):h=c,o.push(h),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Yt([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e})(Ie),ZL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=An(Tw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e})(Tw);pt(ZL,th.prototype);var v$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(nt),d$=(function(r){z(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})($r),Pd=Math.PI,Cw=Ne(),p$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return At("nameValue",{noName:!0,value:c})},L(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=m$(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":J(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Pd/2},f=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,m=t.get(["label","rotate"])||0;m=m*Pd/180;var y,x,_,S=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),C=v&&h.get("showNextBtn",!0),A=0,D=f;S==="left"||S==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(_=[D-d,0],D-=g)):(b&&(y=[D-d,0],D-=g),w&&(x=[0,0],A+=g),C&&(_=[D-d,0],D-=g));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=cr(),l=o.x,u=o.y+o.height;ca(s,s,[-l,-u]),ki(s,s,-Pd/2),ca(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(n.getBoundingRect()),h=y(i.getBoundingRect()),v=[n.x,n.y],d=[i.x,i.y];d[0]=v[0]=c[0][0];var p=t.labelPosOpt;if(p==null||J(p)){var g=p==="+"?0:1;x(v,f,c,1,g),x(d,h,c,1,1-g)}else{var g=p>=0?0:1;x(v,f,c,1,g),d[1]=v[1]+p}n.setPosition(v),i.setPosition(d),n.rotation=i.rotation=t.rotation,m(n),m(i);function m(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,S,b,w,C){_[w]+=b[w][C]-S[w][C]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=g$(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new d$("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ve;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new St({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new St({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:le({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],L(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:ee(o._changeTimeline,o,u.value)},g=Aw(f,h,a,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),xi(g);var m=de(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],L(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),m=new Oe({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:ee(o._changeTimeline,o,f),silent:!1,style:Je(v,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=Je(d),m.ensureState("progress").style=Je(p),a.add(m),xi(m),Cw(m).dataIndex=f,o._tickLabels.push(m)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);h(t.nextBtnPosition,"next",ee(this._changeTimeline,this,f?"-":"+")),h(t.prevBtnPosition,"prev",ee(this._changeTimeline,this,f?"+":"-")),h(t.playPosition,c?"stop":"play",ee(this._handlePlayClick,this,!c),!0);function h(v,d,p,g){if(v){var m=Hr(me(i.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=y$(i,d+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});x.ensureState("emphasis").style=u,a.add(x),xi(x)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ee(u._handlePointerDrag,u),f.ondragend=ee(u._handlePointerDragend,u),Dw(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){Dw(f,u._progressLine,s,n,i)}};this._currentPointer=Aw(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=Ar(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return Fr(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<n&&(n=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Cw(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(v$);function g$(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new sh({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Vm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Ba}}function m$(r,e){return yt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function y$(r,e,t,a){var n=a.style,i=Hl(r.get(["controlStyle",e]),a||{},new we(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function Aw(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=dt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=be({rectHover:!0,z2:100},a,!0);var u=Jo(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=Ei(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function Dw(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function x$(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),le({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function _$(r){var e=r&&r.timeline;W(e)||(e=e?[e]:[]),L(e,function(t){t&&b$(t)})}function b$(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),Mw(r),oi(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});oi(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!oi(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}L(r.data||[],function(n){ue(n)&&!W(n)&&(!oi(n,"value")&&oi(n,"name")&&(n.value=n.name),Mw(n))})}function Mw(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};L(a,function(o,s){!i[s]&&!oi(n,s)&&(n[s]=o)}),t.label&&!oi(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function oi(r,e){return r.hasOwnProperty(e)}function S$(r){r.registerComponentModel(ZL),r.registerComponentView(p$),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),x$(r),r.registerPreprocessor(_$)}function jy(r,e){if(!r)return!1;for(var t=W(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Ju(r){Ti(r,"label",["show"])}var Qu=Ne(),Va=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Me.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Qu(s)[o];if(!l||!l.data){Qu(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Ju(l),L(l.data,function(c){c instanceof Array?(Ju(c[0]),Ju(c[1])):Ju(c)}),u=this.createMarkerModelFromSeries(l,this,a),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Qu(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return At("section",{header:this.name,blocks:[At("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=th.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return Qu(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Ie);pt(Va,th.prototype);var w$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Va);function Lg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function T$(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ec(r,e,t,a,n,i){var o=[],s=Sn(e,a),l=s?e.getCalculationInfo("stackResultDimension"):a,u=Wy(e,l,r),c=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,c),o[i]=e.get(l,c);var f=e.get(a,c),h=aa(e.get(a,c));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,f]}var kd={min:xe(ec,"min"),max:xe(ec,"max"),average:xe(ec,"average"),median:xe(ec,"median")};function kl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!T$(e)&&!W(e.coord)&&W(n)){var i=KL(e,t,a,r);if(e=ce(e),e.type&&kd[e.type]&&i.baseAxis&&i.valueAxis){var o=Ce(n,i.baseAxis.dim),s=Ce(n,i.valueAxis.dim),l=kd[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!W(n))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)kd[u[c]]&&(u[c]=Wy(t,t.mapDimension(n[c]),u[c]));return e}}function KL(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(C$(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function C$(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Rl(r,e){return r&&r.containData&&e.coord&&!Lg(e)?r.containData(e.coord):!0}function A$(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Lg(e)&&!Lg(t)?r.containZone(e.coord,t.coord):!0}function qL(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return pn(o,e[i])}:function(t,a,n,i){return pn(t.value,e[i])}}function Wy(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Rd=Ne(),$y=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ae()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Rd(s).keep=!1}),a.eachSeries(function(s){var l=Va.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Rd(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){Rd(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;L(t,function(i){var o=Va.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?HT(l):um(l))})}})},e.type="marker",e})(nt);function Lw(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=K(i.get("x"),t.getWidth()),l=K(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var D$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markPoint");o&&(Lw(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Xl),f=M$(o,t,a);a.setData(f),Lw(a.getData(),t,i),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(se(d)||se(p)||se(g)||se(m)){var x=a.getRawValue(h),_=a.getDataParams(h);se(d)&&(d=d(x,_)),se(p)&&(p=p(x,_)),se(g)&&(g=g(x,_)),se(m)&&(m=m(x,_))}var S=v.getModel("itemStyle").getItemStyle(),b=Wl(l,"color");S.fill||(S.fill=b),f.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){de(v).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})($y);function M$(r,e,t){var a;r?a=$(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Yt(a,t),i=$(t.get("data"),xe(kl,e));r&&(i=je(i,xe(Rl,r)));var o=qL(!!r,a);return n.initData(i,null,o),n}function L$(r){r.registerComponentModel(w$),r.registerComponentView(D$),r.registerPreprocessor(function(e){jy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var I$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Va),tc=Ne(),P$=function(r,e,t,a){var n=r.getData(),i;if(W(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=Mt(a.yAxis,a.xAxis);else{var u=KL(a,n,e,r);s=u.valueAxis;var c=jA(n,u.valueDataDim);l=Wy(n,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=ce(a),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=t.get("precision");p>=0&&Be(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=d.coord[f]=l,i=[v,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[kl(r,i[0]),kl(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,be(g[2],g[0]),be(g[2],g[1]),g};function xf(r){return!isNaN(r)&&!isFinite(r)}function Iw(r,e,t,a){var n=1-r,i=a.dimensions[r];return xf(e[n])&&xf(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function k$(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(Iw(1,t,a,r)||Iw(0,t,a,r)))return!0}return Rl(r,e[0])&&Rl(r,e[1])}function Nd(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=K(o.get("x"),n.getWidth()),u=K(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,f=r.get(c[0],e),h=r.get(c[1],e);s=i.dataToPoint([f,h])}if(Bi(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),c=i.dimensions;xf(r.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):xf(r.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var R$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=tc(o).from,u=tc(o).to;l.each(function(c){Nd(l,c,!0,i,n),Nd(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hy);this.group.add(c.group);var f=N$(o,t,a),h=f.from,v=f.to,d=f.line;tc(a).from=h,tc(a).to=v,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),y=a.get("symbolOffset");W(p)||(p=[p,p]),W(g)||(g=[g,g]),W(m)||(m=[m,m]),W(y)||(y=[y,y]),f.from.each(function(_){x(h,_,!0),x(v,_,!1)}),d.each(function(_){var S=d.getItemModel(_).getModel("lineStyle").getLineStyle();d.setItemLayout(_,[h.getItemLayout(_),v.getItemLayout(_)]),S.stroke==null&&(S.stroke=h.getItemVisual(_,"style").fill),d.setItemVisual(_,{fromSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(_,"symbolOffset"),fromSymbolRotate:h.getItemVisual(_,"symbolRotate"),fromSymbolSize:h.getItemVisual(_,"symbolSize"),fromSymbol:h.getItemVisual(_,"symbol"),toSymbolKeepAspect:v.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(_,"symbolOffset"),toSymbolRotate:v.getItemVisual(_,"symbolRotate"),toSymbolSize:v.getItemVisual(_,"symbolSize"),toSymbol:v.getItemVisual(_,"symbol"),style:S})}),c.updateData(d),f.line.eachItemGraphicEl(function(_){de(_).dataModel=a,_.traverse(function(S){de(S).dataModel=a})});function x(_,S,b){var w=_.getItemModel(S);Nd(_,S,b,t,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Wl(l,"color")),_.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:me(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:me(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:me(w.get("symbolSize"),g[b?0:1]),symbol:me(w.get("symbol",!0),p[b?0:1]),style:C})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})($y);function N$(r,e,t){var a;r?a=$(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Yt(a,t),i=new Yt(a,t),o=new Yt([],t),s=$(t.get("data"),xe(P$,e,r,t));r&&(s=je(s,xe(k$,r)));var l=qL(!!r,a);return n.initData($(s,function(u){return u[0]}),null,l),i.initData($(s,function(u){return u[1]}),null,l),o.initData($(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function E$(r){r.registerComponentModel(I$),r.registerComponentView(R$),r.registerPreprocessor(function(e){jy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var O$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Va),rc=Ne(),B$=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=kl(r,n),s=kl(r,i),l=o.coord,u=s.coord;l[0]=Mt(l[0],-1/0),l[1]=Mt(l[1],-1/0),u[0]=Mt(u[0],1/0),u[1]=Mt(u[1],1/0);var c=$g([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function _f(r){return!isNaN(r)&&!isFinite(r)}function Pw(r,e,t,a){var n=1-r;return _f(e[n])&&_f(t[n])}function z$(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return Bi(r,"cartesian2d")?t&&a&&(Pw(1,t,a)||Pw(0,t,a))?!0:A$(r,n,i):Rl(r,n)||Rl(r,i)}function kw(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=K(o.get(t[0]),n.getWidth()),u=K(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),h=i.clampData(c),v=i.clampData(f),d=[];t[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],t[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Bi(i,"cartesian2d")){var y=i.getAxis("x"),x=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);_f(p)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):_f(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Rw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],V$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Va.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=$(Rw,function(f){return kw(s,l,f,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ve});this.group.add(c.group),this.markKeep(c);var f=G$(o,t,a);a.setData(f),f.each(function(h){var v=$(Rw,function(C){return kw(f,h,C,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),y=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],x=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];Ar(y),Ar(x);var _=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),S=!_;f.setItemLayout(h,{points:v,allClipped:S});var b=f.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Wl(l,"color");b.fill||(b.fill=w,J(b.fill)&&(b.fill=Ec(b.fill,.4))),b.stroke||(b.stroke=w),f.setItemVisual(h,"style",b)}),f.diff(rc(c).data).add(function(h){var v=f.getItemLayout(h);if(!v.allClipped){var d=new Jt({shape:{points:v.points}});f.setItemGraphicEl(h,d),c.group.add(d)}}).update(function(h,v){var d=rc(c).data.getItemGraphicEl(v),p=f.getItemLayout(h);p.allClipped?d&&c.group.remove(d):(d?Ve(d,{shape:{points:p.points}},a,h):d=new Jt({shape:{points:p.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=rc(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),p=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),Rt(h,Ct(d),{labelFetcher:a,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:J(p.fill)?Ec(p.fill,1):"#000"}),kt(h,d),it(h,null,null,d.get(["emphasis","disabled"])),de(h).dataModel=a}),rc(c).data=f,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})($y);function G$(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=$(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})});n=$(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new Yt(n,t)}else n=[{name:"value",type:"float"}],a=new Yt(n,t);var s=$(t.get("data"),xe(B$,e,r,t));r&&(s=je(s,xe(z$,r)));var l=r?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return pn(v,n[h])}:function(u,c,f,h){return pn(u.value,n[h])};return a.initData(s,null,l),a.hasItemOption=!0,a}function F$(r){r.registerComponentModel(O$),r.registerComponentView(V$),r.registerPreprocessor(function(e){jy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var H$=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Ig=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),W(a)&&L(a,function(i,o){J(i)&&(i={type:i}),a[o]=be(i,H$(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&tm(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ae(),s=$(i,function(l){return(J(l)||Be(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new $e(l,this,this.ecModel))},this);this._data=je(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;L(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;L(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;L(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&Ce(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e})(Ie),oo=xe,Pg=L,ac=ve,JL=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new ac),this.group.add(this._selectorGroup=new ac),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var c=t.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),v=yt(c,f,h),d=this.layoutInner(t,o,v,i,l,u),p=yt(le({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=GL(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),c=ae(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Pg(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
38
- `)){var g=new ac;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),S=y.getVisual("style"),b=this._createItem(m,p,d,v,a,t,x,S,_,f,i);b.on("click",oo(Nw,p,null,i,h)).on("mouseover",oo(kg,m.name,null,i,h)).on("mouseout",oo(Rg,m.name,null,i,h)),n.ssr&&b.eachChild(function(w){var C=de(w);C.seriesIndex=m.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(w){if(!c.get(p)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(p))return;var A=C.indexOfName(p),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=fr(D.fill);I&&I[3]===0&&(I[3]=.2,D=H(H({},D),{fill:La(I,"rgba")}));var P=this._createItem(w,p,d,v,a,t,{},D,M,f,i);P.on("click",oo(Nw,null,p,i,h)).on("mouseover",oo(kg,null,p,i,h)).on("mouseout",oo(Rg,null,p,i,h)),n.ssr&&P.eachChild(function(k){var R=de(k);R.seriesIndex=w.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Pg(t,function(u){var c=u.type,f=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Rt(f,{normal:h,emphasis:v},{defaultText:u.title}),xi(f)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,c,f,h){var v=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),x=i.get("icon");c=x||c||"roundRect";var _=j$(c,i,l,u,v,g,h),S=new ac,b=i.getModel("textStyle");if(se(t.getLegendIcon)&&(!x||x==="inherit"))S.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;S.add(W$({itemWidth:d,itemHeight:p,icon:c,iconRotate:w,itemStyle:_.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=a;J(D)&&D?M=D.replace("{name}",a??""):se(D)&&(M=D(a));var I=g?b.getTextColor():i.get("inactiveColor");S.add(new Oe({style:Je(b,{text:M,x:C,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Re({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Ri({el:P,componentModel:o,itemName:a,itemTooltipOption:k.option}),S.add(P),S.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(S),xi(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bi(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){bi("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+d+h[g],x[m]=Math.max(c[m],h[m]),x[y]=Math.min(0,h[y]+v[1-p]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(nt);function j$(r,e,t,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Pg(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:ko(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function W$(r){var e=r.icon||"roundRect",t=dt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Nw(r,e,t,a){Rg(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),kg(r,e,t,a)}function QL(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function kg(r,e,t,a){QL(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Rg(r,e,t,a){QL(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function $$(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Ms(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),Ew(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){L(n,function(l,u){s[l?"select":"unSelect"](u)}),Ew(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function Ew(r,e){var t=e||{};return L(r.getData(),function(a){var n=a.get("name");if(!(n===`
39
- `||n==="")){var i=r.isSelected(n);te(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function U$(r){r.registerAction("legendToggleSelect","legendselectchanged",xe(Ms,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xe(Ms,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xe(Ms,"inverseSelect")),r.registerAction("legendSelect","legendselected",xe(Ms,"select")),r.registerAction("legendUnSelect","legendunselected",xe(Ms,"unSelect"))}function eI(r){r.registerComponentModel(Ig),r.registerComponentView(JL),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,$$),r.registerSubTypeDefaulter("legend",function(){return"plain"}),U$(r)}var Y$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Xo(t);r.prototype.init.call(this,t,a,n),Ow(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Ow(this,this.option,t)},e.type="legend.scroll",e.defaultOption=An(Ig.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e})(Ig);function Ow(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,bn(e,t,{type:"box",ignoreSize:!!n})}var Bw=ve,Ed=["width","height"],Od=["x","y"],X$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Bw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bw)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=W(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=Hl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:ee(u._pageGo,u,m,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,c.add(y)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=Ed[u],f=Od[u],h=Ed[1-u],v=Od[1-u];o&&bi("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=ce(n);o&&(m[c]=n[c]-p[c]-d);var y=this._layoutContentAndController(t,i,m,u,c,h,v,f);if(o){if(s==="end")g[u]+=y[c]+d;else{var x=p[c]+d;g[u]-=x,y[f]-=x}y[c]+=p[c]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;bi(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),bi("horizontal",h,t.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],x=me(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var _=t.get("pageButtonPosition",!0);_==="end"?y[i]+=n[o]-d[o]:m[i]+=d[o]+x}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-x,0),b[s]=S[s],f.setClipPath(new Re({shape:b})),f.__rectSize=b[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Ve(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),S},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;L(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",J(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Ed[o],l=Od[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=_(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,x=null;g<=h;++g)x=_(c[g]),(!x&&y.e>m.s+i||x&&!S(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=x;for(var g=u-1,m=p,y=p,x=null;g>=-1;--g)x=_(c[g]),(!x||!S(y,x.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=x;return d;function _(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})(JL);function Z$(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function K$(r){Ae(eI),r.registerComponentModel(Y$),r.registerComponentView(X$),Z$(r)}function q$(r){Ae(eI),Ae(K$)}var J$=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=An(Pl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Pl),Uy=Ne();function Q$(r,e,t){Uy(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function eU(r,e){for(var t=Uy(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||tI(t,o))}}}function tI(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function tU(r,e){var t={model:e,containsPoint:xe(aU,e),dispatchAction:xe(rU,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Ql(r.getZr());return L(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function rU(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function aU(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function nU(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function iU(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Uy(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=ae());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=BL(i);L(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,tU(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ae());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){tI(n,i);return}var c=nU(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),qo(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var oU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Q$(n,t,{pan:ee(Bd.pan,this),zoom:ee(Bd.zoom,this),scrollMove:ee(Bd.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){eU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(By),Bd={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=zd[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Vi(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:zw(function(r,e,t,a,n,i){var o=zd[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:zw(function(r,e,t,a,n,i){var o=zd[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function zw(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(Vi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var zd={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function rI(r){zy(r),r.registerComponentModel(J$),r.registerComponentView(oU),iU(r)}var sU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=An(Pl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(Pl),Ls=Re,Vw=7,lU=1,Vd=30,uU=7,Is="horizontal",Gw="vertical",cU=5,fU=["line","bar","candlestick","scatter"],hU={easing:"cubicOut",duration:100,delay:0},vU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=ee(this._onBrush,this),this._onBrushEnd=ee(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),qo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){yl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ve;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?uU:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Is?{right:s.width-o.x-o.width,top:s.height-Vd-Vw-i,width:o.width,height:Vd}:{right:Vw,top:o.y,width:Vd,height:o.height},u=Xo(t.option);L(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=yt(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Gw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Is&&!o?{scaleY:l?1:-1,scaleX:1}:n===Is&&o?{scaleY:l?1:-1,scaleX:-1}:n===Gw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Ls({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ls({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:ee(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],m=d[1]/(o.count()-1),y=0,x=Math.round(o.count()/a[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=m;return}var M=A==null||isNaN(A)||A==="",I=M?0:We(A,f,v,!0);M&&!_&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&_&&(p.push([y,0]),g.push([y,0])),p.push([y,I]),g.push([y,I]),y+=m,_=M}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var S=this.dataZoomModel;function b(A){var D=S.getModel(A?"selectedDataBackground":"dataBackground"),M=new ve,I=new Jt({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Qt({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();L(l,function(u){if(!n&&!(a!==!0&&Ce(fU,u.get("type"))<0)){var c=i.getComponent(fn(o),s).axis,f=dU(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),n={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=a.filler=new Ls({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ls({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:lU,fill:"rgba(0,0,0,0)"}})),L([0,1],function(x){var _=l.get("handleIcon");!Kc[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var S=dt(_,-1,0,2,2,null,!0);S.attr({cursor:Fw(this._orient),draggable:!0,drift:ee(this._onDragMove,this,x),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(this._showDataInfo,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=K(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),xi(S);var C=l.get("handleColor");C!=null&&(S.style.fill=C),o.add(n[x]=S);var A=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;t.add(i[x]=new Oe({silent:!0,invisible:!M,style:Je(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=h;if(f){var d=K(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Re({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=a.moveHandleIcon=dt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new Re({invisible:!0,shape:{y:s[1]-y,height:d+y}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:Fw(this._orient),drift:ee(this._onDragMove,this,"all"),ondragstart:ee(this._showDataInfo,this,!0),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[We(t[0],[0,100],a,!0),We(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Vi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?We(s.minSpan,l,o,!0):null,s.maxSpan!=null?We(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ar([We(i[0],o,l,!0),We(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Ar(n.slice()),o=this._size;L([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new Re,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=Ar(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=_i(n.handles[d].parent,this.group),g=Uf(d===0?"right":"left",p),m=this._handleWidth/2+cU,y=Fr([h[d]+(d===0?-m:m),this._size[1]/2],p);i[d].setStyle({x:y[0],y:y[1],verticalAlign:o===Is?"middle":g,align:o===Is?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return se(i)?i(t,s):J(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,ka(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Fr([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new Se(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ar([We(n.x,o,s,!0),We(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ka(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Ls({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?hU:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=BL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(By);function dU(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Fw(r){return r==="vertical"?"ns-resize":"ew-resize"}function aI(r){r.registerComponentModel(sU),r.registerComponentView(vU),zy(r)}function pU(r){Ae(rI),Ae(aI)}var nI={get:function(r,e,t){var a=ce((gU[r]||{})[e]);return t&&W(a)?a[a.length-1]:a}},gU={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Hw=Tt.mapVisual,mU=Tt.eachVisual,yU=W,jw=L,xU=Ar,_U=We,bf=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&YL(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=ee(t,this),this.controllerVisuals=Dg(this.option.controller,a,t),this.targetVisuals=Dg(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Xe(t),a},e.prototype.eachTargetSeries=function(t,a){L(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],W(t)&&(t=t.slice(),u=!0);var c=a?t:u?[f(t[0]),f(t[1])]:f(t);if(J(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(se(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+c[1]:t[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=xU([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});be(i,n),be(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){yU(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},jw(d,function(g,m){if(Tt.isValidType(m)){var y=nI.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";jw(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?d:[d]}),x.symbol==null&&(x.symbol=h&&ce(h)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=v&&ce(v)||(s?y[0]:[y[0],y[0]])),x.symbol=Hw(x.symbol,function(b){return b==="none"?g:b});var _=x.symbolSize;if(_!=null){var S=-1/0;mU(_,function(b){b>S&&(S=b)}),x.symbolSize=Hw(_,function(b){return _U(b,[0,S],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e})(Ie),Ww=[20,140],bU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Ww[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Ww[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):W(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Ar((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=$w(this,"outOfRange",this.getExtent()),n=$w(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=An(bf.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e})(bf);function $w(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var iI=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Yo(a.get("padding")||0),i=t.getBoundingRect();t.add(new Re({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,d){s[v]=d}var f=o.controllerVisuals[i||o.getValueState(t)],h=Tt.prepareVisualTypes(f);return L(h,function(v){var d=f[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=f.__alphaForOpacity),Tt.dependsOn(v,a)&&d&&d.applyVisual(t,u,c)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;Qf(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(nt),Uw=[["left","right","width"],["top","bottom","height"]];function oI(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=Uw[o],l=[0,null,10],u={},c=0;c<3;c++)u[Uw[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],h=yt(u,i,a.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<i[f[1]]*.5?0:1]}function Dc(r,e){return L(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Qr=We,SU=L,Yw=Math.min,Gd=Math.max,wU=12,TU=6,CU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=ee(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ee(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Oe({style:Je(v,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=oI(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new ve;u.add(c),c.add(n.outOfRange=Xw()),c.add(n.inRange=Xw(null,s?Kw(this._orient):null,ee(this._dragHandle,this,"all",!1),ee(this._dragHandle,this,"all",!0))),c.setClipPath(new Re({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("国"),h=Gd(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=ee(this._dragHandle,this,n,!1),u=ee(this._dragHandle,this,n,!0),c=Hr(t.get("handleSize"),i[0]),f=dt(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=Kw(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){ka(m.event)}}),f.x=i[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ui(f,!0),a.add(f);var v=this.visualMapModel.textStyleModel,d=new Oe({cursor:h,draggable:!0,drift:l,onmousemove:function(m){ka(m.event)},ondragend:u,style:Je(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],g=this._shapes;g.handleThumbs[n]=f,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=Hr(t.get("indicatorSize"),n[0]),l=dt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Lt){var c=l.style;l.useStyle(H({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,h=new Oe({silent:!0,invisible:!0,style:Je(f,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:TU)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Zw(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Qr(a[0],n,i,!0),Qr(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];Vi(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Qr(i[0],o,s,!0),Qr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Gl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ve(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);SU([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=Qr(t[f],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=Fr(n.handleLabelPoints[f],_i(h,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=Qr(t,s,u,!0),g=l[0]-d/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var y=Fr(c.indicatorLabelPoint,_i(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),S=this._orient,b=S==="horizontal";x.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?_:"middle",align:b?"center":_});var w={x:g,y:p,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Yw(Gd(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=Yw(Gd(o[0],t),o[1]);var l=AU(n,s,o),u=[t-l,t+l],c=Qr(t,o,s,!0),f=[Qr(u[0],o,s,!0),Qr(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||Zw(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var d=kR(h,v);this._dispatchHighDown("downplay",Dc(d[0],n)),this._dispatchHighDown("highlight",Dc(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(fi(t.target,function(l){var u=de(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Dc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=_i(a,i?null:this.group);return W(t)?Fr(t,o,n):Uf(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(iI);function Xw(r,e,t,a){return new Jt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){ka(n.event)},ondragend:a})}function AU(r,e,t){var a=wU/2,n=r.get("hoverLinkDataSize");return n&&(a=Qr(n,e,t,!0)/2),a}function Zw(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Kw(r){return r==="vertical"?"ns-resize":"ew-resize"}var DU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},MU=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},LU=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(qW(a.stateList,a.targetVisuals,ee(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(ee(IU,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function IU(r,e,t,a){for(var n=e.targetVisuals[a],i=Tt.prepareVisualTypes(n),o={color:Wl(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,h)}return o.color;function f(v){return o[v]}function h(v,d){o[v]=d}}var qw=L;function PU(r){var e=r&&r.visualMap;W(e)||(e=e?[e]:[]),qw(e,function(t){if(t){so(t,"splitList")&&!so(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&W(a)&&qw(a,function(n){ue(n)&&(so(n,"start")&&!so(n,"min")&&(n.min=n.start),so(n,"end")&&!so(n,"max")&&(n.max=n.end))})}})}function so(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Jw=!1;function sI(r){Jw||(Jw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(DU,MU),L(LU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(PU))}function lI(r){r.registerComponentModel(bU),r.registerComponentView(CU),sI(r)}var kU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],RU[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ce(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=$(this._pieceList,function(l){return l=ce(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=Tt.listVisualTypes(),i=this.isCategory();L(t.pieces,function(s){L(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),L(a,function(s,l){var u=!1;L(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&L(this.stateList,function(c){(t[c]||(t[c]={}))[l]=nI.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,L(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;L(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ce(t)},e.prototype.getValueState=function(t){var a=Tt.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Tt.findPieceIndex(l,n);c===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,f){var h=i.getRepresentValue({interval:c});f||(f=i.getValueState(h));var v=t(h,f);c[0]===-1/0?n[0]=v:c[1]===1/0?n[1]=v:a.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return L(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=An(bf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(bf),RU={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),$0(r),L(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;L(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Qw(e,r)},pieces:function(r){var e=this.option;L(e.pieces,function(t,a){ue(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&o[f]==null;v++)o[f]=t[h[v]],s[f]=l[v],c[f]=v===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Tt.retrieveVisuals(t),r.push(n)},this),Qw(e,r),$0(r),L(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function Qw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var NU=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,h=Mt(a.get("showLabel",!0),!f),v=!a.get("selectedMode");f&&this._renderEndsText(t,f[0],u,h,l),L(c.viewPieceList,function(d){var p=d.piece,g=new ve;g.onclick=ee(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var m=a.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]],v),h){var y=this.visualMapModel.getValueState(m);g.add(new Oe({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1},silent:v}))}t.add(g)},this),f&&this._renderEndsText(t,f[1],u,h,l),bi(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Dc(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return oI(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ve,l=this.visualMapModel.textStyleModel;s.add(new Oe({style:Je(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=$(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=dt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ce(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,L(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(iI);function uI(r){r.registerComponentModel(kU),r.registerComponentView(NU),sI(r)}function EU(r){Ae(lI),Ae(uI)}var OU={label:{enabled:!0},decal:{show:!1}},e2=Ne(),BU={};function zU(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=ce(OU);be(a.label,r.getLocaleModel().get("aria"),!1),be(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),c=u.get("show");if(c){var f=ae();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),e2(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(se(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var y=Rp(h.ecModel,h.name,BU,r.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",_(x,y))}else{var d=h.getRawData(),p={},g=e2(h).scope;v.each(function(S){var b=v.getRawIndex(S);p[b]=S});var m=d.count();d.each(function(S){var b=p[S],w=d.getName(S)||S+"",C=Rp(h.ecModel,w,g,m),A=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",_(A,C))})}function _(S,b){var w=S?H(H({},b),S):b;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=le(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var x=[],_=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(_,{seriesCount:h}),r.eachSeries(function(C,A){if(A<p){var D=void 0,M=C.get("name"),I=M?"withName":"withoutName";D=h>1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>v){var k=f.get(["data","partialData"]);D+=o(k,{displayCnt:v})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),B=f.get(["data","excludeDimensionId"]),O=[],V=0;V<P.count();V++)if(V<v){var F=P.getName(V),G=B?je(P.getValues(V),function(Y,X){return Ce(B,X)===-1}):P.getValues(V),j=f.get(["data",F?"withName":"withoutName"]);O.push(o(j,{name:F,value:G.join(R)}))}D+=O.join(R)+E,x.push(D)}});var S=f.getModel(["series","multiple","separator"]),b=S.get("middle"),w=S.get("end");g+=x.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!J(u))return u;var f=u;return L(c,function(h,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function VU(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},L(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function GU(r){r.registerPreprocessor(VU),r.registerVisual(r.PRIORITY.VISUAL.ARIA,zU)}var t2={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},FU=(function(){function r(e){var t=this._condVal=J(e)?new RegExp(e):Jk(e)?e:null;if(t==null){var a="";He(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return J(t)?this._condVal.test(e):Be(t)?this._condVal.test(e+""):!1},r})(),HU=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),jU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),WU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),$U=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),UU=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function Yy(r,e){if(r===!0||r===!1){var t=new HU;return t.value=r,t}var a="";return cI(r)||He(a),r.and?r2("and",r,e):r.or?r2("or",r,e):r.not?YU(r,e):XU(r,e)}function r2(r,e,t){var a=e[r],n="";W(a)||He(n),a.length||He(n);var i=r==="and"?new jU:new WU;return i.children=$(a,function(o){return Yy(o,t)}),i.children.length||He(n),i}function YU(r,e){var t=r.not,a="";cI(t)||He(a);var n=new $U;return n.child=Yy(t,e),n.child||He(a),n}function XU(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Pe(r),o=r.parser,s=o?$C(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=te(t2,u)?t2[u]:u,f=r[u],h=s?s(f):f,v=EE(c,h)||c==="reg"&&new FU(h);v||He(t),n.push(v)}}n.length||He(t);var d=new UU;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function cI(r){return ue(r)&&!zt(r)}var ZU=(function(){function r(e,t){this._cond=Yy(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function KU(r,e){return new ZU(r,e)}var qU={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=KU(r.config,{valueGetterAttrMap:ae({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;te(s,"dimension")||He(l);var c=e.getDimensionInfo(u);return c||He(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},JU={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Xe(t);n.length||He(a);var i=[];L(n,function(c){var f=c.dimension,h=c.order,v=c.parser,d=c.incomparable;if(f==null&&He(a),h!=="asc"&&h!=="desc"&&He(a),d&&d!=="min"&&d!=="max"){var p="";He(p)}if(h!=="asc"&&h!=="desc"){var g="";He(g)}var m=e.getDimensionInfo(f);m||He(a);var y=v?$C(v):null;v&&!y&&He(a),i.push({dimIdx:m.index,parser:y,comparator:new YC(h,d)})});var o=e.sourceFormat;o!==Vt&&o!==Pr&&He(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var v=i[h],d=e.retrieveValueFromItem(c,v.dimIdx),p=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function QU(r){r.registerTransform(qU),r.registerTransform(JU)}var eY=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new qC(this),ax(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),ax(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:la},e})(Ie),tY=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(nt);function rY(r){r.registerComponentModel(eY),r.registerComponentView(tY)}var qr=va.CMD;function _o(r,e){return Math.abs(r-e)<1e-5}function Ng(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(P,k){n&&n.length>2&&a.push(n),n=[P,k]}function c(P,k,R,E){_o(P,R)&&_o(k,E)||n.push(P,k,R,E,R,E)}function f(P,k,R,E,B,O){var V=Math.abs(k-P),F=Math.tan(V/4)*4/3,G=k<P?-1:1,j=Math.cos(P),Y=Math.sin(P),X=Math.cos(k),Q=Math.sin(k),fe=j*B+R,he=Y*O+E,ne=X*B+R,q=Q*O+E,ie=B*F*G,Z=O*F*G;n.push(fe-ie*Y,he+Z*j,ne+ie*Q,q-Z*X,ne,q)}for(var h,v,d,p,g=0;g<t;){var m=e[g++],y=g===1;switch(y&&(i=e[g],o=e[g+1],s=i,l=o,(m===qr.L||m===qr.C||m===qr.Q)&&(n=[s,l])),m){case qr.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case qr.L:h=e[g++],v=e[g++],c(i,o,h,v),i=h,o=v;break;case qr.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case qr.Q:h=e[g++],v=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case qr.A:var x=e[g++],_=e[g++],S=e[g++],b=e[g++],w=e[g++],C=e[g++]+w;g+=1;var A=!e[g++];h=Math.cos(w)*S+x,v=Math.sin(w)*b+_,y?(s=h,l=v,u(s,l)):c(i,o,h,v),i=Math.cos(C)*S+x,o=Math.sin(C)*b+_;for(var D=(A?-1:1)*Math.PI/2,M=w;A?M>C:M<C;M+=D){var I=A?Math.max(M+D,C):Math.min(M+D,C);f(M,I,x,_,S,b)}break;case qr.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case qr.Z:n&&c(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function Eg(r,e,t,a,n,i,o,s,l,u){if(_o(r,t)&&_o(e,a)&&_o(n,o)&&_o(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=t-r,g=a-e,m=n-o,y=i-s,x=p*p+g*g,_=m*m+y*y;if(x<f&&_<f){l.push(o,s);return}var S=h*p+v*g,b=-h*m-v*y,w=x-S*S,C=_-b*b;if(w<f&&S>=0&&C<f&&b>=0){l.push(o,s);return}var A=[],D=[];xn(r,t,n,o,.5,A),xn(e,a,i,s,.5,D),Eg(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Eg(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function aY(r,e){var t=Ng(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];Eg(s,l,c,f,h,v,d,p,o,e),s=d,l=p}a.push(o)}return a}function fI(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function a2(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,c=l>Math.abs(u),f=fI([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var d=(c?u:s)/f[v],p=0;p<f[v];p++){var g={};c?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+h*v,g.r=a+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function nY(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=fI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*f,p[c]=d*v,p[s]=f,p[l]=v,p.x+=r.x,p.y+=r.y,t.push(p)}}function n2(r,e,t,a){return r*a-t*e}function iY(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,f=s-i,h=n2(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-n,d=e-i,p=n2(v,d,c,f)/h;return p<0||p>1?null:new Se(p*l+r,p*u+e)}function oY(r,e,t){var a=new Se;Se.sub(a,t,e),a.normalize();var n=new Se;Se.sub(n,r,e);var i=n.dot(a);return i}function lo(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function sY(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=iY(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:oY(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,m){return g.projPt-m.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],d=[h],p=[v],i=u.idx+1;i<=c.idx;i++)lo(d,r[i].slice());lo(d,v),lo(d,h);for(var i=c.idx+1;i<=u.idx+a;i++)lo(p,r[i%a].slice());return lo(p,h),lo(p,v),[{points:d},{points:p}]}function i2(r){var e=r.points,t=[],a=[];Gf(e,t,a);var n=new we(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new Se,c=new Se;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),sY(e,u,c)}function Sf(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Sf(r,i[0],n,a),Sf(r,i[1],t-n,a)}return a}function lY(r,e){for(var t=[],a=0;a<e;a++)t.push(fm(r));return t}function uY(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function cY(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function fY(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":nY(a,e,t),n=Re;break;case"sector":a2(a,e,t),n=qt;break;case"circle":a2({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=qt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=$(aY(r.getUpdatedPathProxy(),o),function(m){return cY(m)}),l=s.length;if(l===0)Sf(i2,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=$(s,function(m){var y=[],x=[];Gf(m,y,x);var _=(x[1]-y[1])*(x[0]-y[0]);return c+=_,{poly:m,area:_}});f.sort(function(m,y){return y.area-m.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/c*e);d<0||(Sf(i2,{points:v.poly},d,t),h-=d)}}n=Jt;break}if(!n)return lY(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),uY(r,g),p.push(g)}return p}function hY(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],m=o[v++],y=o[v++],x=o[v++],_=o[v++],S=o[v++];if(h<=0){f.push(g,m,y,x,_,S);continue}for(var b=Math.min(h,c-1)+1,w=1;w<=b;w++){var C=w/b;xn(d,g,y,_,C,n),xn(p,m,x,S,C,i),d=n[3],p=i[3],f.push(n[1],i[1],n[2],i[2],d,p),g=n[5],m=i[5],y=n[6],x=i[6]}h-=b-1}return o===r?[f,e]:[r,f]}function o2(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function vY(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=hY(l,u),c=t[0],f=t[1],a=c,n=f):(f=o2(n||l,l),c=l):(c=o2(a||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function s2(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,a+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function dY(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,d=r[v]-t[0],p=r[v+1]-t[1],g=e[h]-a[0],m=e[h+1]-a[1],y=g-d,x=m-p;f+=y*y+x*x}f<i&&(i=f,o=u)}return o}function pY(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function gY(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=s2(s),c=s2(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=pY(s));for(var m=dY(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var _=(m+x)%y+2;f[x+2]=s[_]-u[0],f[x+3]=s[_+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var S=a/t,b=-a/2;b<=a/2;b+=S){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x<s.length;x+=2){var D=f[x],M=f[x+1],I=l[x]-c[0],P=l[x+1]-c[1],k=I*C-P*w,R=I*w+P*C;p[x]=k,p[x+1]=R;var E=k-D,B=R-M;A+=E*E+B*B}if(A<d){d=A,v=b;for(var O=0;O<p.length;O++)h[O]=p[O]}}n.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return n}function wf(r){return r.__isCombineMorphing}var hI="__mOriginal_";function Tf(r,e,t){var a=hI+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function nl(r,e){var t=hI+e;r[t]&&(r[e]=r[t],r[t]=null)}function l2(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function vI(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=vY(Ng(t),Ng(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&l2(i,s),l&&l2(o,l),Tf(e,"updateTransform",{replace:u}),e.transform=null;var c=gY(i,o,10,Math.PI),f=[];Tf(e,"buildPath",{replace:function(h){for(var v=e.__morphT,d=1-v,p=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,_=m.rotation*v,S=m.fromCp,b=m.toCp,w=Math.sin(_),C=Math.cos(_);uc(p,S,b,v);for(var A=0;A<y.length;A+=2){var D=y[A],M=y[A+1],I=x[A],P=x[A+1],k=D*d+I*v,R=M*d+P*v;f[A]=k*C-R*w+p[0],f[A+1]=k*w+R*C+p[1]}var E=f[0],B=f[1];h.moveTo(E,B);for(var A=2;A<y.length;){var I=f[A++],P=f[A++],O=f[A++],V=f[A++],F=f[A++],G=f[A++];E===I&&B===P&&O===F&&V===G?h.lineTo(F,G):h.bezierCurveTo(I,P,O,V,F,G),E=F,B=G}}}})}function Xy(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;vI(r,e),e.__morphT=0;function i(){nl(e,"buildPath"),nl(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},le({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function mY(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Cf(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=$(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),a=Math.max(c,a),n=Math.max(f,n),[c,f]}),o=$(i,function(s,l){return{cp:s,z:mY(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function dI(r){return fY(r.path,r.count)}function Og(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yY(r,e,t){var a=[];function n(S){for(var b=0;b<S.length;b++){var w=S[b];wf(w)?n(w.childrenRef()):w instanceof De&&a.push(w)}}n(r);var i=a.length;if(!i)return Og();var o=t.dividePath||dI,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Og();a=Cf(a),s=Cf(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new Ca,h=0;h<i;h++){var v=a[h],d=s[h];d.parent=e,d.copyTransform(f),c||vI(v,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(S){for(var b=0;b<s.length;b++)s[b].addSelfToZr(S)}Tf(e,"addSelfToZr",{after:function(S){p(S)}}),Tf(e,"removeSelfFromZr",{after:function(S){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(S)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,nl(e,"addSelfToZr"),nl(e,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},h=0;h<m;h++){var _=c?le({delay:(t.delay||0)+c(h,m,a[h],s[h]),done:x},t):t;Xy(a[h],s[h],_)}else e.__morphT=0,e.animateTo({__morphT:1},le({during:function(S){for(var b=0;b<m;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(S)},done:function(){g();for(var S=0;S<r.length;S++)nl(r[S],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:m}}function xY(r,e,t){var a=e.length,n=[],i=t.dividePath||dI;function o(v){for(var d=0;d<v.length;d++){var p=v[d];wf(p)?o(p.childrenRef()):p instanceof De&&n.push(p)}}if(wf(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(fm(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Og()}n=Cf(n),e=Cf(e);for(var f=t.individualDelay,u=0;u<a;u++){var h=f?le({delay:(t.delay||0)+f(u,a,n[u],e[u])},t):t;Xy(n[u],e[u],h)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function u2(r){return W(r[0])}function c2(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var _Y={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=fm(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Fd(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Wo("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;u2(r)&&(u=r,c=e),u2(e)&&(u=e,c=r);function f(m,y,x,_,S){var b=m.many,w=m.one;if(b.length===1&&!S){var C=y?b[0]:w,A=y?w:b[0];if(wf(C))f({many:[C],one:A},!0,x,_,!0);else{var D=s?le({delay:s(x,_)},l):l;Xy(C,A,D),i(C,A,C,A,D)}}else for(var M=le({dividePath:_Y[t],individualDelay:s&&function(B,O,V,F){return s(B+x,_)}},l),I=y?yY(b,w,M):xY(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,E=0;E<R;E++){var D=s?le({delay:s(E,R)},l):l;i(P[E],k[E],y?b[E]:m.one,y?m.one:b[E],D)}}for(var h=u?u===r:r.length>e.length,v=u?c2(c,u):c2(h?e:r,[h?r:e]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],h,g,d),g+=v[p].many.length}function ri(r){if(!r)return[];if(W(r)){for(var e=[],t=0;t<r.length;t++)e.push(ri(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof De&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var pI=1e4,bY=0,f2=1,h2=2,SY=Ne();function wY(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function TY(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function v2(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=wY(r,n);if(i){var o=TY(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function d2(r){var e=[];return L(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>pI))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:v2(a,o,n,!1),childGroupId:v2(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Hd(r,e,t){r.traverse(function(a){a instanceof De&&at(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function jd(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function uo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function CY(r,e,t){var a=Wo("update",t,e);a&&r.traverse(function(n){if(n instanceof Mr){var i=yN(n);i&&n.animateFrom({style:i},a)}})}function AY(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function gI(r,e,t){var a=d2(r),n=d2(e);function i(x,_,S,b,w){(S||x)&&_.animateFrom({style:S&&S!==x?H(H({},S.style),x.style):x.style},w)}var o=!1,s=bY,l=ae(),u=ae();a.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=f2;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=h2;break}}function v(x,_){return function(S){var b=S.data,w=S.dataIndex;return _?b.getId(w):x?s===f2?S.childGroupId:S.groupId:s===h2?S.childGroupId:S.groupId}}var d=AY(a,n),p={};if(!d)for(var c=0;c<n.length;c++){var g=n[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(x,_){var S=a[_],b=n[x],w=b.data.hostModel,C=S.data.getItemGraphicEl(S.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(C===A){A&&CY(A,b.dataIndex,w);return}C&&p[C.id]||A&&(uo(A),C?(uo(C),jd(C),o=!0,Fd(ri(C),ri(A),b.divide,w,x,i)):Hd(A,w,x))}new Oa(a,n,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(x,_){var S=n[x],b=S.data,w=b.hostModel,C=b.getItemGraphicEl(S.dataIndex),A=je($(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==C&&!p[D.id]});C&&(uo(C),A.length?(L(A,function(D){uo(D),jd(D)}),o=!0,Fd(ri(A),ri(C),S.divide,w,x,i)):Hd(C,w,S.dataIndex))}).updateOneToMany(function(x,_){var S=a[_],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&p[b.id])){var w=je($(x,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==b}),C=n[x[0]].data.hostModel;w.length&&(L(w,function(A){return uo(A)}),b?(uo(b),jd(b),o=!0,Fd(ri(b),ri(w),S.divide,C,x[0],i)):L(w,function(A){return Hd(A,C,x[0])}))}}).updateManyToMany(function(x,_){new Oa(_,x,function(S){return a[S].data.getId(a[S].dataIndex)},function(S){return n[S].data.getId(n[S].dataIndex)}).update(function(S,b){y(x[S],_[b])}).execute()}).execute(),o&&L(e,function(x){var _=x.data,S=_.hostModel,b=S&&t.getViewOfSeriesModel(S),w=Wo("update",S,0);b&&S.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof De&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function p2(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function g2(r){return W(r)?r.sort().join(","):r}function tn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function DY(r,e){var t=ae(),a=ae(),n=ae();return L(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=p2(i),c=g2(u);a.set(c,{dataGroupId:s,data:l}),W(u)&&L(u,function(f){n.set(f,{key:c,dataGroupId:s,data:l})})}),L(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=p2(i),u=g2(l),c=a.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:tn(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:tn(s),data:s}]});else if(W(l)){var f=[];L(l,function(d){var p=a.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:tn(p.data),data:p.data})}),f.length&&t.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:tn(s)}]})}else{var h=n.get(l);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:tn(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:tn(s)})}}}}),t}function m2(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function MY(r,e,t,a){var n=[],i=[];L(Xe(r.from),function(o){var s=m2(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:tn(e.oldData[s]),groupIdDim:o.dimension})}),L(Xe(r.to),function(o){var s=m2(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:tn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&gI(n,i,a)}function LY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){L(Xe(a.seriesTransition),function(n){L(Xe(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][_c]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=SY(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)L(Xe(i),function(v){MY(v,n,a,t)});else{var o=DY(n,a);L(o.keys(),function(v){var d=o.get(v);gI(d.oldSeries,d.newSeries,t)})}L(a.updatedSeries,function(v){v[_c]&&(v[_c]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<pI&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}Ae([Vz]);Ae([Nz]);Ae([iV,_V,IV,u6,_6,oG,NG,mF,VF,$F,e7,X7,x8,I8,U8,K8,oH,vH,TH,IH,GH,w9]);Ae(H9);Ae(dj);Ae(dM);Ae(Dj);Ae(QM);Ae(Pj);Ae(Gj);Ae(DW);Ae(UW);Ae(tu);Ae(u$);Ae(h$);Ae(S$);Ae(L$);Ae(E$);Ae(F$);Ae(q$);Ae(pU);Ae(rI);Ae(aI);Ae(EU);Ae(lI);Ae(uI);Ae(GU);Ae(QU);Ae(rY);Ae(LY);Ae(ez);function IY(r,e){const t=Math.abs(r);let a;return t>=1e6?a=`${(r/1e6).toFixed(1).replace(/\.0$/,"")}M`:t>=1e3?a=`${(r/1e3).toFixed(1).replace(/\.0$/,"")}K`:a=String(r),e?`${a} ${e}`:a}function PY(r){const e=document.createElement("canvas");e.width=6,e.height=6;const t=e.getContext("2d");return t&&(t.globalAlpha=.12,t.fillStyle=r,t.fillRect(0,0,6,6),t.globalAlpha=.28,t.fillRect(0,0,1.5,6)),e}function kY(r){const e=Te.c(22),{points:t,xLabels:a,highlightIndex:n,calloutValue:i,tone:o,unit:s,yHeadroom:l}=r,u=o===void 0?"good":o,c=l===void 0?.08:l,f=Math.floor(t.length/2),h=NY,v=h(t.slice(f))>=h(t.slice(0,f))?"left":"right";let d;e[0]!==n||e[1]!==t||e[2]!==u||e[3]!==s||e[4]!==a||e[5]!==c?(d=C=>{if(!C)return;const A=ut[u],D=t.length,M=Math.min(Math.max(n,0),D-1),I={};a.forEach((G,j)=>{const Y=a.length===1?0:Math.round(j*(D-1)/(a.length-1));I[Y]=G});const P=[];let k=a[0]??"";for(let G=0;G<D;G++){const j=I[G];j&&(k=j),P[G]=k}const R=Math.min(...t),E=Math.max(...t),B=E-R||1,O=wO(C),V={backgroundColor:"transparent",animationDuration:1100,animationEasing:"cubicOut",tooltip:{trigger:"axis",backgroundColor:N.ink,borderWidth:0,padding:[8,12],textStyle:{color:N.bg,fontSize:12,fontFamily:"Switzer, 'Helvetica Neue', Helvetica, Arial, sans-serif"},axisPointer:{type:"line",lineStyle:{color:A,width:1,type:[5,4]},label:{show:!1}},formatter:G=>{const Y=(Array.isArray(G)?G[0]:G)?.dataIndex??0;return`<div style="font-weight:500">${P[Y]??""}</div><div style="opacity:.75;margin-top:2px">${IY(t[Y]??0,s)}</div>`}},grid:{left:0,right:0,top:12,bottom:34,containLabel:!1},xAxis:{type:"category",data:t.map(RY),boundaryGap:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,margin:14,color:N.ink,fontFamily:"Switzer, 'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:500,fontSize:12,alignMinLabel:"left",alignMaxLabel:"right",formatter:(G,j)=>I[j]??""}},yAxis:{type:"value",show:!1,min:R-B*.12,max:E+B*c},series:[{type:"line",data:t,smooth:.5,symbol:"circle",symbolSize:9,showSymbol:!1,itemStyle:{color:A},emphasis:{scale:1.3,itemStyle:{borderColor:N.bg,borderWidth:2}},lineStyle:{color:A,width:2.5},areaStyle:{color:{image:PY(A),repeat:"repeat"},origin:"start"},markLine:{symbol:"none",silent:!0,animation:!1,label:{show:!1},lineStyle:{color:A,width:1.5,type:"solid"},data:[[{coord:[M,R-B*.12]},{coord:[M,t[M]]}]]},markPoint:{silent:!0,animation:!1,symbol:"circle",symbolSize:11,itemStyle:{color:A},label:{show:!1},data:[{coord:[M,t[M]]}]}}]};O.setOption(V);const F=new ResizeObserver(()=>O.resize());return F.observe(C),()=>{F.disconnect(),O.dispose()}},e[0]=n,e[1]=t,e[2]=u,e[3]=s,e[4]=a,e[5]=c,e[6]=d):d=e[6];const p=d;let g;e[7]!==p?(g=T.jsx("div",{ref:p,className:"h-full w-full"}),e[7]=p,e[8]=g):g=e[8];const m=v==="left"?"justify-start":"justify-end";let y;e[9]!==m?(y=et("pointer-events-none absolute inset-x-0 top-0 flex px-5 pt-3 sm:px-10 sm:pt-6 lg:px-16",m),e[9]=m,e[10]=y):y=e[10];const x=ut[u];let _;e[11]!==x?(_={color:x,fontSize:"min(clamp(2.75rem,13vw,7.5rem), 13svh)"},e[11]=x,e[12]=_):_=e[12];let S;e[13]!==i||e[14]!==_?(S=T.jsx("span",{className:"font-light leading-none tracking-[-0.02em] tabular-nums whitespace-nowrap",style:_,children:i}),e[13]=i,e[14]=_,e[15]=S):S=e[15];let b;e[16]!==y||e[17]!==S?(b=T.jsx("div",{className:y,children:S}),e[16]=y,e[17]=S,e[18]=b):b=e[18];let w;return e[19]!==b||e[20]!==g?(w=T.jsxs("div",{className:"relative h-full w-full",children:[g,b]}),e[19]=b,e[20]=g,e[21]=w):w=e[21],w}function RY(r,e){return String(e)}function NY(r){return r.length?r.reduce(EY,0)/r.length:0}function EY(r,e){return r+e}function OY(r){const e=Te.c(21),{eyebrow:t,headline:a,annotation:n,points:i,xLabels:o,unit:s,callout:l,active:u}=r;let c;e[0]!==u||e[1]!==n||e[2]!==t||e[3]!==a?(c=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:u}),e[0]=u,e[1]=n,e[2]=t,e[3]=a,e[4]=c):c=e[4];const f=u?"true":"false",h=u?"120ms":"0ms";let v;e[5]!==h?(v={transitionDelay:h},e[5]=h,e[6]=v):v=e[6];const d=l.tone??"good";let p;e[7]!==l.index||e[8]!==l.value||e[9]!==i||e[10]!==d||e[11]!==s||e[12]!==o?(p=T.jsx(kY,{points:i,xLabels:o,highlightIndex:l.index,calloutValue:l.value,tone:d,unit:s}),e[7]=l.index,e[8]=l.value,e[9]=i,e[10]=d,e[11]=s,e[12]=o,e[13]=p):p=e[13];let g;e[14]!==f||e[15]!==v||e[16]!==p?(g=T.jsx("div",{className:"reveal relative mt-6 min-h-0 flex-1","data-show":f,style:v,children:p}),e[14]=f,e[15]=v,e[16]=p,e[17]=g):g=e[17];let m;return e[18]!==c||e[19]!==g?(m=T.jsxs("div",{className:"flex h-full flex-col",children:[c,g]}),e[18]=c,e[19]=g,e[20]=m):m=e[20],m}function BY(r){const e=Te.c(18),{eyebrow:t,headline:a,annotation:n,stats:i,active:o}=r,s=i.length<=2?"grid-cols-1":i.length===3?"grid-cols-1 sm:grid-cols-3":"grid-cols-2";let l;e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==a?(l=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:o}),e[0]=o,e[1]=n,e[2]=t,e[3]=a,e[4]=l):l=e[4];let u;e[5]!==s?(u=et("my-auto grid gap-3 sm:my-0 sm:h-full sm:auto-rows-fr sm:gap-4",s),e[5]=s,e[6]=u):u=e[6];let c;if(e[7]!==o||e[8]!==i){let v;e[10]!==o?(v=(d,p)=>{const g=String(d.value??""),m=g.length<=5?"text-[min(clamp(2rem,6vw,4rem),5svh)] sm:text-[clamp(2.25rem,6vw,4rem)]":g.length<=9?"text-[min(clamp(1.5rem,4.5vw,2.75rem),4svh)] sm:text-[clamp(1.75rem,4.5vw,2.75rem)]":"text-[min(clamp(1.125rem,3.5vw,1.875rem),3svh)] sm:text-[clamp(1.25rem,3.5vw,1.875rem)]";return T.jsxs("div",{className:"reveal flex min-w-0 flex-col justify-center gap-2 rounded-xl border px-5 py-[min(1.25rem,2svh)] sm:px-8 sm:py-6","data-show":o?"true":"false",style:{background:N.surface,borderColor:N.cardBorder,transitionDelay:o?`${60+p*70}ms`:"0ms"},children:[T.jsx("span",{className:et("break-words font-light leading-[1.05] tracking-[-0.02em] tabular-nums",m),style:{color:ut[d.tone??"neutral"]},children:g}),T.jsx("span",{className:"break-words text-sm tracking-[-0.015em] sm:text-base",style:{color:N.muted},children:d.label}),d.sub&&T.jsx("span",{className:"break-words text-sm",style:{color:N.muted,opacity:.7},children:d.sub})]},p)},e[10]=o,e[11]=v):v=e[11],c=i.map(v),e[7]=o,e[8]=i,e[9]=c}else c=e[9];let f;e[12]!==u||e[13]!==c?(f=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col px-5 pb-2 pt-6 sm:px-10 sm:pt-8 lg:px-16",children:T.jsx("div",{className:u,children:c})}),e[12]=u,e[13]=c,e[14]=f):f=e[14];let h;return e[15]!==l||e[16]!==f?(h=T.jsxs("div",{className:"flex h-full flex-col",children:[l,f]}),e[15]=l,e[16]=f,e[17]=h):h=e[17],h}const co={good:{solid:N.soft,tint:"rgba(140,170,37,0.16)"},warn:{solid:N.warn,tint:"rgba(240,182,19,0.16)"},poor:{solid:"#d43d3d",tint:"rgba(212,61,61,0.14)"}};function zY(r){const e=Te.c(59),{eyebrow:t,headline:a,annotation:n,value:i,metricLabel:o,ratio:s,thresholdRatio:l,thresholdLabel:u,active:c}=r,f=l??Math.min(s,.45),h=Math.min(.94,f+(1-f)*.55),v=f*100,d=VY,p=(s<f?co.good:s<h?co.warn:co.poor).solid;let g;e[0]!==f?(g={start:0,end:f,band:co.good},e[0]=f,e[1]=g):g=e[1];let m;e[2]!==f||e[3]!==h?(m={start:f,end:h,band:co.warn},e[2]=f,e[3]=h,e[4]=m):m=e[4];let y;e[5]!==h?(y={start:h,end:1,band:co.poor},e[5]=h,e[6]=y):y=e[6];let x;e[7]!==g||e[8]!==m||e[9]!==y?(x=[g,m,y],e[7]=g,e[8]=m,e[9]=y,e[10]=x):x=e[10];let _;e[11]!==s||e[12]!==x?(_=x.map(he=>({...he,fill:he.end>he.start?d((Math.min(s,he.end)-he.start)/(he.end-he.start)):0})),e[11]=s,e[12]=x,e[13]=_):_=e[13];const S=_;let b;e[14]!==c||e[15]!==n||e[16]!==t||e[17]!==a?(b=T.jsx(or,{eyebrow:t,headline:a,annotation:n,active:c}),e[14]=c,e[15]=n,e[16]=t,e[17]=a,e[18]=b):b=e[18];const w=c?"true":"false",C=c?"80ms":"0ms";let A;e[19]!==C?(A={transitionDelay:C},e[19]=C,e[20]=A):A=e[20];let D;e[21]!==p?(D={color:p},e[21]=p,e[22]=D):D=e[22];let M;e[23]!==D||e[24]!==i?(M=T.jsx("span",{className:"font-light leading-none tracking-[-0.02em] tabular-nums text-[min(clamp(2.5rem,11vw,7rem),9svh)] sm:text-[clamp(3.5rem,12vw,7rem)]",style:D,children:i}),e[23]=D,e[24]=i,e[25]=M):M=e[25];let I;e[26]!==o?(I=o&&T.jsx("span",{className:"text-base tracking-[-0.015em] sm:text-xl",style:{color:N.muted},children:o}),e[26]=o,e[27]=I):I=e[27];let P;e[28]!==M||e[29]!==I||e[30]!==w||e[31]!==A?(P=T.jsxs("div",{className:"reveal flex flex-col gap-1","data-show":w,style:A,children:[M,I]}),e[28]=M,e[29]=I,e[30]=w,e[31]=A,e[32]=P):P=e[32];const k=c?"true":"false",R=c?"180ms":"0ms";let E;e[33]!==R?(E={transitionDelay:R},e[33]=R,e[34]=E):E=e[34];let B;e[35]!==c||e[36]!==S?(B=S.map((he,ne)=>T.jsx("div",{className:"absolute inset-y-0",style:{left:`${he.start*100}%`,width:`${(he.end-he.start)*100}%`,background:he.band.tint},children:T.jsx("div",{className:"h-full transition-[width] duration-700 ease-out",style:{width:c?`${he.fill*100}%`:"0%",background:he.band.solid}})},ne)),e[35]=c,e[36]=S,e[37]=B):B=e[37];const O=`${v}%`;let V;e[38]!==O?(V=T.jsx("div",{className:"absolute inset-y-0 w-px -translate-x-1/2",style:{left:O,background:N.ink}}),e[38]=O,e[39]=V):V=e[39];let F;e[40]!==B||e[41]!==V?(F=T.jsxs("div",{className:"relative h-11 w-full overflow-hidden rounded-2xl sm:h-14",children:[B,V]}),e[40]=B,e[41]=V,e[42]=F):F=e[42];const G=`${v}%`;let j;e[43]!==G?(j={left:G,top:"100%",marginTop:10,color:N.muted},e[43]=G,e[44]=j):j=e[44];let Y;e[45]!==j||e[46]!==u?(Y=T.jsx("span",{className:"absolute -translate-x-1/2 whitespace-nowrap text-sm tracking-[-0.015em] opacity-60 sm:text-base",style:j,children:u}),e[45]=j,e[46]=u,e[47]=Y):Y=e[47];let X;e[48]!==k||e[49]!==E||e[50]!==F||e[51]!==Y?(X=T.jsxs("div",{className:"reveal relative w-full","data-show":k,style:E,children:[F,Y]}),e[48]=k,e[49]=E,e[50]=F,e[51]=Y,e[52]=X):X=e[52];let Q;e[53]!==P||e[54]!==X?(Q=T.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-6 sm:px-10 lg:px-16",children:T.jsxs("div",{className:"my-auto flex w-full flex-col gap-8 sm:gap-10",children:[P,X]})}),e[53]=P,e[54]=X,e[55]=Q):Q=e[55];let fe;return e[56]!==Q||e[57]!==b?(fe=T.jsxs("div",{className:"flex h-full flex-col",children:[b,Q]}),e[56]=Q,e[57]=b,e[58]=fe):fe=e[58],fe}function VY(r){return Math.min(1,Math.max(0,r))}function GY(r){const e=Te.c(80),{slide:t,deck:a,active:n,onNavigate:i}=r,o=t.template,s=t.eyebrow&&t.eyebrow!==a.meta.domain?t.eyebrow:t.title;let l;e[0]!==n||e[1]!==s||e[2]!==t.annotation||e[3]!==t.headline?(l={eyebrow:s,headline:t.headline,annotation:t.annotation,active:n},e[0]=n,e[1]=s,e[2]=t.annotation,e[3]=t.headline,e[4]=l):l=e[4];const u=l;if(t.key==="categorias"&&o.template==="gauges"){let c;return e[5]!==u||e[6]!==o?(c=T.jsx(IP,{...o,...u}),e[5]=u,e[6]=o,e[7]=c):c=e[7],c}if(t.key==="geo-dimensoes"&&o.template==="bars"){let c;return e[8]!==u||e[9]!==o?(c=T.jsx(fk,{...o,...u}),e[8]=u,e[9]=o,e[10]=c):c=e[10],c}if(t.key==="paginas"&&o.template==="table"){let c;return e[11]!==u||e[12]!==o?(c=T.jsx(Ck,{...o,...u}),e[11]=u,e[12]=o,e[13]=c):c=e[13],c}switch(o.template){case"cover":{let c;e[14]!==a.slides?(c=a.slides.filter(HY).map(FY).slice(0,6),e[14]=a.slides,e[15]=c):c=e[15];const f=c;let h;return e[16]!==n||e[17]!==u||e[18]!==a.meta.brand||e[19]!==a.meta.colors||e[20]!==a.meta.domain||e[21]!==a.meta.faviconUrl||e[22]!==a.meta.initial||e[23]!==f||e[24]!==i||e[25]!==o?(h=T.jsx(BP,{...o,...u,findings:f,colors:a.meta.colors,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain,brand:a.meta.brand,initial:a.meta.initial,active:n,onFindingClick:i}),e[16]=n,e[17]=u,e[18]=a.meta.brand,e[19]=a.meta.colors,e[20]=a.meta.domain,e[21]=a.meta.faviconUrl,e[22]=a.meta.initial,e[23]=f,e[24]=i,e[25]=o,e[26]=h):h=e[26],h}case"series":{let c;return e[27]!==u||e[28]!==o?(c=T.jsx(OY,{...o,...u}),e[27]=u,e[28]=o,e[29]=c):c=e[29],c}case"threshold":{let c;return e[30]!==u||e[31]!==o?(c=T.jsx(zY,{...o,...u}),e[30]=u,e[31]=o,e[32]=c):c=e[32],c}case"stats":{let c;return e[33]!==u||e[34]!==o?(c=T.jsx(BY,{...o,...u}),e[33]=u,e[34]=o,e[35]=c):c=e[35],c}case"bars":{let c;return e[36]!==u||e[37]!==o?(c=T.jsx(DP,{...o,...u}),e[36]=u,e[37]=o,e[38]=c):c=e[38],c}case"gauges":{let c;return e[39]!==u||e[40]!==o?(c=T.jsx(ok,{...o,...u}),e[39]=u,e[40]=o,e[41]=c):c=e[41],c}case"checklist":{let c;return e[42]!==u||e[43]!==o?(c=T.jsx(PP,{...o,...u}),e[42]=u,e[43]=o,e[44]=c):c=e[44],c}case"table":{let c;return e[45]!==u||e[46]!==o?(c=T.jsx(R2,{...o,...u}),e[45]=u,e[46]=o,e[47]=c):c=e[47],c}case"list":{const c=a.slides.findIndex(d=>d.key===t.key),f=a.slides[c+1]?.key;let h;e[48]!==f||e[49]!==i?(h=f&&i?()=>i(f):void 0,e[48]=f,e[49]=i,e[50]=h):h=e[50];let v;return e[51]!==u||e[52]!==a.meta.domain||e[53]!==o||e[54]!==h?(v=T.jsx(gk,{...o,...u,domain:a.meta.domain,onNext:h}),e[51]=u,e[52]=a.meta.domain,e[53]=o,e[54]=h,e[55]=v):v=e[55],v}case"keywords":{let c;return e[56]!==u||e[57]!==o?(c=T.jsx(pk,{...o,...u}),e[56]=u,e[57]=o,e[58]=c):c=e[58],c}case"products":{let c;return e[59]!==u||e[60]!==o?(c=T.jsx(Lk,{...o,...u}),e[59]=u,e[60]=o,e[61]=c):c=e[61],c}case"scorecard":{let c;return e[62]!==u||e[63]!==a.meta.faviconUrl||e[64]!==o?(c=T.jsx(Rk,{...o,...u,faviconUrl:a.meta.faviconUrl}),e[62]=u,e[63]=a.meta.faviconUrl,e[64]=o,e[65]=c):c=e[65],c}case"competitor":{let c;return e[66]!==u||e[67]!==a.meta.domain||e[68]!==a.meta.faviconUrl||e[69]!==o?(c=T.jsx(NP,{...o,...u,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain}),e[66]=u,e[67]=a.meta.domain,e[68]=a.meta.faviconUrl,e[69]=o,e[70]=c):c=e[70],c}case"cta":{const c=a.meta.scores?.coverage.checks_probed,f=a.meta.scores?.coverage.checks_total;let h;return e[71]!==u||e[72]!==a.meta.brand||e[73]!==a.meta.domain||e[74]!==a.meta.faviconUrl||e[75]!==a.meta.initial||e[76]!==o||e[77]!==c||e[78]!==f?(h=T.jsx(ek,{...o,...u,faviconUrl:a.meta.faviconUrl,domain:a.meta.domain,brand:a.meta.brand,initial:a.meta.initial,checksProbed:c,checksTotal:f}),e[71]=u,e[72]=a.meta.brand,e[73]=a.meta.domain,e[74]=a.meta.faviconUrl,e[75]=a.meta.initial,e[76]=o,e[77]=c,e[78]=f,e[79]=h):h=e[79],h}default:return o}}function FY(r){return{title:r.title,slideKey:r.key}}function HY(r){return r.template.template!=="cover"&&r.template.template!=="cta"}const nc=r=>String(r).padStart(2,"0"),ic=()=>hn()?bo.get_distinct_id():void 0;function jY({deck:r,sessionUser:e}){const t=xt(),[{language:a},n]=_2(),i=r.slides.length,[o,s]=ze.useState(0),[l,u]=ze.useState(null),[c,f]=ze.useState(!1),[h,v]=ze.useState(!1),[d,p]=ze.useState(""),[g,m]=ze.useState(!1),[y,x]=ze.useState(!1),_=ze.useRef(!1),S=ze.useRef(!1),[b,w]=ze.useState(!1),C=ze.useRef(null),[A,D]=ze.useState(!1),[M,I]=ze.useState(!1),P=ze.useRef(null),[k,R]=ze.useState(null),[E,B]=ze.useState("above"),[O,V]=ze.useState(""),F=I2(`https://${r.meta.domain}/`),G=r.slides[o],j=ze.useRef(!1),Y=ze.useRef(null),X=U=>{const oe=r.slides[U];oe&&(f(!1),v(!1),p(""),m(!1),x(!1),_.current=!1,rt("report_slide_viewed",{domain:r.meta.domain,slide_key:oe.key,slide_index:U,slides:i,slide_title:oe.title,template:oe.template.template,surface:"deck_v2"}),U===i-1&&!S.current&&(S.current=!0,rt("report_deck_completed",{domain:r.meta.domain,slides:i,surface:"deck_v2"})))},Q=()=>{w(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>w(!1),400)},fe=ze.useEffectEvent(U=>{const oe=Math.min(Math.max(U,0),i-1);oe!==o&&(history.pushState({slideIndex:oe},""),D(!1),s(oe),X(oe),Q())}),he=ze.useEffectEvent(U=>{j.current||U===0||(j.current=!0,fe(o+U),setTimeout(()=>{j.current=!1},650))}),ne=U=>{if(!U)return;rt("report_viewed",{domain:r.meta.domain,slides:i,surface:"deck_v2"});const oe=new URLSearchParams(window.location.search),Ge=oe.get("share_id");Ge&&hn()&&bo.setPersonProperties(void 0,{inbound_share_id:Ge});const _t=oe.get("d");if(_t&&oe.get("utm_source")==="email"){const tt=oe.get("email_run_id");rt("report_email_link_opened",{domain:r.meta.domain,surface:"deck_v2",...tt?{email_run_id:tt}:{}}),rP(_t).then(Ft=>{hn()&&bo.setPersonProperties(void 0,{...tt?{inbound_email_run_id:tt}:{},...Ft?{inbound_email_domain:Ft.domain}:{}})}).catch(()=>{tt&&hn()&&bo.setPersonProperties(void 0,{inbound_email_run_id:tt})})}X(0),history.replaceState({slideIndex:0},"");const st=tt=>{const Ft=tt.state?.slideIndex??0;D(!1),s(Ft),X(Ft),Q()};window.addEventListener("popstate",st);const Gt=tt=>{["ArrowDown","ArrowRight","PageDown"," "].includes(tt.key)?(tt.preventDefault(),fe(o+1)):["ArrowUp","ArrowLeft","PageUp"].includes(tt.key)&&(tt.preventDefault(),fe(o-1))};return window.addEventListener("keydown",Gt),()=>{window.removeEventListener("popstate",st),window.removeEventListener("keydown",Gt),C.current&&clearTimeout(C.current)}},q=U=>{if(!U)return;const oe=(Le,ke)=>{let Ye=Le;for(;Ye&&Ye!==U;){if(Ye.scrollHeight>Ye.clientHeight+1){const xa=getComputedStyle(Ye).overflowY;if(xa==="auto"||xa==="scroll"){const ts=Ye.scrollTop<=0,yI=Ye.scrollTop+Ye.clientHeight>=Ye.scrollHeight-1;if(ke?!yI:!ts)return!0}}Ye=Ye.parentElement}return!1},Ge=Le=>{let ke=Le;for(;ke&&ke!==U;){if(ke.scrollWidth>ke.clientWidth+1){const Ye=getComputedStyle(ke).overflowX;if(Ye==="auto"||Ye==="scroll")return!0}ke=ke.parentElement}return!1},_t=Le=>{const ke=Math.abs(Le.deltaY)>=Math.abs(Le.deltaX);if(ke&&oe(Le.target,Le.deltaY>0)||!ke&&Ge(Le.target))return;const Ye=ke?Le.deltaY:Le.deltaX;Math.abs(Ye)<12||(Le.preventDefault(),he(Ye>0?1:-1))};let st=0,Gt=0,tt=null;const Ft=Le=>{st=Le.touches[0]?.clientX??0,Gt=Le.touches[0]?.clientY??0,tt=Le.target},ma=Le=>{if(Le.touches.length>1)return;const ke=st-(Le.touches[0]?.clientX??0),Ye=Gt-(Le.touches[0]?.clientY??0);Math.abs(ke)>Math.abs(Ye)&&Ge(tt)||oe(tt,Ye>0)||Le.cancelable&&Le.preventDefault()},ya=Le=>{const ke=st-(Le.changedTouches[0]?.clientX??0),Ye=Gt-(Le.changedTouches[0]?.clientY??0),xa=Math.abs(Ye)>=Math.abs(ke)?Ye:ke;Math.abs(xa)<=50||tt?.closest?.("canvas")&&Math.abs(Ye)<Math.abs(ke)*1.5||Math.abs(Ye)>=Math.abs(ke)&&oe(tt,Ye>0)||Math.abs(ke)>Math.abs(Ye)&&Ge(tt)||he(xa>0?1:-1)};U.addEventListener("wheel",_t,{passive:!1}),U.addEventListener("touchstart",Ft,{passive:!0}),U.addEventListener("touchmove",ma,{passive:!1}),U.addEventListener("touchend",ya,{passive:!0});const Ur=document.documentElement,Gi=Ur.style.overscrollBehaviorY,gt=document.body.style.overscrollBehaviorY;return Ur.style.overscrollBehaviorY="none",document.body.style.overscrollBehaviorY="none",()=>{U.removeEventListener("wheel",_t),U.removeEventListener("touchstart",Ft),U.removeEventListener("touchmove",ma),U.removeEventListener("touchend",ya),Ur.style.overscrollBehaviorY=Gi,document.body.style.overscrollBehaviorY=gt}},ie=e?.name?e.name.split(" ").slice(0,2).map(U=>U[0]).join("").toUpperCase():e?.email?.[0]?.toUpperCase()??"U",Z=U=>{if(P.current=U,!U)return;const oe=Ge=>{P.current&&!P.current.contains(Ge.target)&&I(!1)};return document.addEventListener("pointerdown",oe),()=>document.removeEventListener("pointerdown",oe)},re=U=>{if(Y.current=U,!U)return;const oe=Ge=>{Y.current&&!Y.current.contains(Ge.target)&&D(!1)};return document.addEventListener("pointerdown",oe),()=>document.removeEventListener("pointerdown",oe)},ye=U=>`${r.meta.domain}:${U.key}:${Math.random().toString(36).slice(2,10)}`,ge=(U,oe)=>{const Ge=window.location.origin,_t=new URLSearchParams({share_id:oe,utm_source:"share",utm_medium:"deck",utm_campaign:"report"});return`${Ge}/report/${encodeURIComponent(r.meta.domain)}?${_t.toString()}#${U.key}`},pe=U=>`🔍 ${r.meta.brand}
40
-
41
- "${U.headline.replace(/\n/g," ")}"
42
-
43
- ${t("reports.signalDeck.shareText")}`,_e=async(U,oe)=>{if(window.matchMedia("(pointer: coarse)").matches&&typeof navigator<"u"&&navigator.share){try{const st=ye(oe),Gt=ge(oe,st);await navigator.share({title:`${r.meta.brand} — ${oe.title}`,text:pe(oe),url:Gt}),rt("report_slide_shared",{domain:r.meta.domain,slide_key:oe.key,slide_index:o,surface:"deck_v2",method:"web_share",share_id:st,sharer_person_id:ic()})}catch{}return}const _t=U.currentTarget.getBoundingClientRect();R(_t),B(_t.top<window.innerHeight/2?"below":"above"),V(ye(oe)),D(st=>!st)},Ee=async U=>{const oe=ye(U),Ge=ge(U,oe);try{await navigator.clipboard?.writeText(Ge),u(t("reports.signalDeck.linkCopied")),rt("report_slide_shared",{domain:r.meta.domain,slide_key:U.key,slide_index:o,surface:"deck_v2",method:"copy_link",share_id:oe,sharer_person_id:ic()})}catch{u(t("reports.signalDeck.copyError"))}D(!1),setTimeout(()=>u(null),1800)};return G?T.jsxs("div",{ref:U=>{const oe=ne(U),Ge=q(U);return()=>{oe?.(),Ge?.()}},className:"fixed inset-0 flex flex-col font-sans antialiased",style:{background:N.bg,color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",fontFeatureSettings:"normal"},children:[T.jsx("header",{className:"shrink-0 px-3 pt-3 sm:px-6 sm:pt-4",children:T.jsxs("div",{className:"mx-auto flex h-14 max-w-[1360px] items-center gap-3 rounded-full border pl-4 pr-3 backdrop-blur-md sm:h-[60px] sm:pl-6 sm:pr-4",style:{borderColor:N.cardBorder,background:"rgba(255,255,255,0.82)",boxShadow:"0 1px 2px rgba(40,37,36,0.05), 0 10px 30px -20px rgba(40,37,36,0.35)"},children:[T.jsx("a",{href:"https://decocms.com","aria-label":t("reports.signalDeck.decoHome"),className:"flex shrink-0 items-center opacity-95 transition-opacity hover:opacity-70",children:T.jsx("img",{src:"/logos/deco-logo.svg",alt:"deco",width:54,height:22,className:"h-[22px] w-auto"})}),T.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[T.jsx("div",{className:"flex h-9 shrink-0 items-center rounded-full border p-0.5",role:"group","aria-label":t("reports.signalDeck.languageLabel"),style:{borderColor:N.cardBorder,background:N.surface},children:bI.map(U=>{const oe=a===U;return T.jsx("button",{type:"button","aria-pressed":oe,onClick:()=>n(Ge=>({...Ge,language:U})),className:"h-8 rounded-full px-3 text-xs font-medium uppercase transition-colors",style:{background:oe?N.primary:"transparent",color:oe?N.primaryFg:N.muted},children:U==="pt-BR"?"PT":"EN"},U)})}),e&&T.jsxs("div",{className:"relative",ref:Z,children:[T.jsx("button",{type:"button","aria-label":t("reports.signalDeck.userMenuLabel"),"aria-expanded":M,onClick:()=>I(U=>!U),className:"flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full border text-sm font-medium transition-transform hover:scale-[1.03]",style:{borderColor:N.cardBorder,background:e.image?"transparent":N.surface,color:N.ink},children:e.image?T.jsx("img",{src:e.image,alt:"",className:"h-full w-full object-cover"}):T.jsx("span",{className:"text-[11px]",children:ie})}),M&&T.jsxs("div",{className:"absolute right-0 top-full z-50 mt-2 min-w-[180px] overflow-hidden rounded-xl border shadow-xl",style:{background:N.surface,borderColor:N.border},children:[e.email&&T.jsx("div",{className:"border-b px-4 py-3",style:{borderColor:N.border},children:T.jsx("p",{className:"truncate text-xs",style:{color:N.muted},children:e.email})}),T.jsxs("button",{type:"button",onClick:()=>{I(!1),b2.signOut()},className:"flex w-full items-center gap-2 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx(ft,{name:"logout",size:"medium"}),t("reports.signalDeck.signOut")]})]})]}),T.jsx("button",{type:"button",onClick:U=>_e(U,G),className:"inline-flex h-9 items-center rounded-full px-5 text-sm font-medium transition-transform hover:scale-[1.03]",style:{background:N.primary,color:N.primaryFg},children:t("reports.signalDeck.share")})]})]})}),T.jsxs("main",{className:"relative min-h-0 flex-1 overflow-hidden",children:[T.jsx("div",{className:"h-full w-full",style:{transform:`translateY(-${o*100}%)`,transition:"transform 620ms cubic-bezier(0.16,1,0.3,1)"},children:r.slides.map((U,oe)=>T.jsx("div",{className:"h-full w-full overflow-hidden",children:T.jsx("div",{className:et("mx-auto flex h-full w-full max-w-[1440px] flex-col sm:py-8",U.template.template==="cta"?"py-0":U.template.template==="cover"?"py-3":"py-6"),children:T.jsx(GY,{slide:U,deck:r,active:oe===o,onNavigate:Ge=>fe(r.slides.findIndex(_t=>_t.key===Ge))})})},U.key))}),T.jsx("nav",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 flex-col gap-1.5 transition-opacity duration-300 md:!opacity-100",style:{opacity:b?1:0},"aria-label":t("reports.signalDeck.slidesNav"),children:r.slides.map((U,oe)=>T.jsxs("button",{type:"button","aria-label":t("reports.signalDeck.goToSlide",{title:U.title}),onClick:()=>fe(oe),className:"group relative flex h-5 items-center justify-end",children:[T.jsx("span",{className:"pointer-events-none absolute right-9 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium opacity-0 transition-all duration-200 group-hover:opacity-100",style:{background:N.ink,color:N.bg},children:U.title}),T.jsx("span",{className:"rounded-full transition-all duration-300",style:{height:oe===o?3:2,width:oe===o?28:12,background:oe===o?N.ink:"rgba(40,37,36,0.22)"}})]},U.key))})]}),T.jsx("footer",{className:"flex shrink-0 items-center gap-2 px-4 py-4 sm:px-6",style:o===i-1?{borderTop:"1px solid rgba(255,255,255,0.14)",background:N.forest}:{borderTop:`1px solid ${N.border}`},children:o===i-1?T.jsxs(T.Fragment,{children:[T.jsxs("span",{className:"hidden text-sm tabular-nums opacity-50 lg:block",style:{color:N.ink},children:[nc(o+1),"/",nc(i)]}),T.jsx("button",{type:"button",onClick:U=>_e(U,G),"aria-label":t("reports.signalDeck.shareButton"),className:"grid h-12 w-12 shrink-0 place-items-center rounded-full border lg:hidden",style:{borderColor:"rgba(255,255,255,0.2)",color:"#ffffff",background:"rgba(255,255,255,0.08)"},children:T.jsx(ft,{name:"share",size:"large"})}),T.jsxs("a",{href:F,onClick:U=>Lf(U,{domain:r.meta.domain,placement:"deck_footer_mobile",slideKey:G.key,slideIndex:o}),className:"inline-flex h-12 flex-1 items-center justify-center gap-2 rounded-full px-6 text-base font-medium transition-transform duration-300 ease-out hover:scale-105 lg:hidden",style:{background:N.lime,color:N.forest},children:[T.jsx("span",{children:t("reports.signalDeck.viewFullDiagnostic")}),T.jsx(ft,{name:"arrow_forward",size:"large"})]}),T.jsxs("button",{type:"button",onClick:U=>_e(U,G),className:"ml-auto hidden h-12 items-center gap-2 rounded-full border px-6 text-sm font-medium lg:inline-flex",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(ft,{name:"share",size:"medium"}),T.jsx("span",{children:t("reports.signalDeck.shareButton")})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 sm:gap-2",children:[G.sources?.length?T.jsx("div",{className:"hidden items-center gap-1.5 sm:flex",children:G.sources.map(U=>T.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs",style:{borderColor:N.border,color:N.ink,background:N.surface},children:[e0(U.name,U.logoUrl)&&T.jsx("img",{src:e0(U.name,U.logoUrl),alt:"",width:14,height:14,className:"rounded-sm",onError:oe=>{oe.currentTarget.style.display="none"}}),T.jsx("span",{className:"whitespace-nowrap",children:U.name})]},U.name))}):null,G.methodology?T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":t("reports.signalDeck.methodology"),"aria-expanded":c,onClick:()=>{v(!1),f(U=>!U)},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:c?N.ink:N.muted},children:[T.jsx(ft,{name:"info",size:"medium"}),T.jsx("span",{className:"hidden whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90 sm:inline",children:t("reports.signalDeck.methodology")})]}),T.jsx("span",{className:et("absolute bottom-full left-0 mb-3 w-72 max-w-[calc(100vw-2rem)] rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200 group-hover:opacity-100",c?"opacity-100":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:G.methodology})]}):null,T.jsxs("span",{className:"group relative",children:[T.jsxs("button",{type:"button","aria-label":t("reports.signalDeck.reportError"),"aria-expanded":h,onClick:()=>{f(!1),v(U=>{const oe=!U;return oe&&rt("report_ai_feedback_opened",{domain:r.meta.domain,slide_key:G.key,slide_index:o,surface:"deck_v2"}),oe})},className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-2 text-[13px] transition-colors hover:bg-black/5 sm:text-sm",style:{color:h?N.ink:N.muted},children:[T.jsx(ft,{name:"flag",size:"medium"}),T.jsx("span",{className:"whitespace-nowrap underline decoration-1 underline-offset-2 opacity-90",children:t("reports.signalDeck.reportError")})]}),T.jsx("div",{className:et("absolute bottom-full left-0 mb-3 flex w-72 max-w-[calc(100vw-2rem)] flex-col gap-3 rounded-xl p-4 text-sm leading-relaxed shadow-sm transition-opacity duration-200",h?"opacity-100 pointer-events-auto":"pointer-events-none opacity-0"),style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},children:g?T.jsx("p",{style:{color:N.ink},children:t("reports.signalDeck.feedbackThanks")}):T.jsxs(T.Fragment,{children:[T.jsx("p",{children:t("reports.signalDeck.feedbackQuestion")}),T.jsx("textarea",{rows:3,value:d,onChange:U=>{p(U.target.value),!_.current&&U.target.value.length>0&&(_.current=!0,rt("report_ai_feedback_started",{domain:r.meta.domain,slide_key:G.key,slide_index:o,surface:"deck_v2"}))},placeholder:t("reports.signalDeck.feedbackPlaceholder"),className:"w-full resize-none rounded-xl border px-3 py-2 text-sm leading-relaxed outline-none focus:ring-1 focus:ring-[#282524]",style:{borderColor:N.border,background:N.bg,color:N.ink}}),T.jsxs("button",{type:"button",disabled:!d.trim()||y,onClick:()=>{x(!0),rt("report_ai_feedback_reported",{domain:r.meta.domain,slide_key:G.key,slide_index:o,slide_title:G.title,surface:"deck_v2",feedback_text:d.trim()}),m(!0),x(!1)},className:"inline-flex items-center gap-1.5 self-start rounded-full px-4 py-2 text-sm font-medium transition-opacity disabled:opacity-40",style:{background:N.primary,color:N.primaryFg},children:[T.jsx(ft,{name:"flag",size:"small"}),T.jsx("span",{children:t(y?"reports.signalDeck.sending":"reports.signalDeck.reportError")})]})]})})]}),T.jsxs("span",{className:"ml-1 hidden text-sm tabular-nums opacity-50 sm:inline",style:{color:N.ink},children:[nc(o+1),"/",nc(i)]})]}),T.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[r.meta.scores?T.jsxs("span",{className:"hidden items-center gap-1.5 rounded-full px-2.5 py-1 text-xs tabular-nums lg:inline-flex",style:{background:N.surface,border:`1px solid ${N.border}`,color:N.muted},title:t("reports.signalDeck.coverageTooltip",{probed:r.meta.scores.coverage.checks_probed,total:r.meta.scores.coverage.checks_total}),children:[T.jsxs("span",{style:{color:N.ink},children:[r.meta.scores.cover,"/100"]}),T.jsx("span",{"aria-hidden":!0,children:"·"}),T.jsx("span",{children:t("reports.signalDeck.measured",{probed:r.meta.scores.coverage.checks_probed,total:r.meta.scores.coverage.checks_total})})]}):null,T.jsxs("button",{type:"button",onClick:U=>_e(U,G),className:"inline-flex h-12 w-12 items-center justify-center gap-2 rounded-full border font-medium sm:w-auto sm:px-6 sm:text-sm",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:[T.jsx(ft,{name:"share",size:"large"}),T.jsx("span",{className:"hidden sm:inline",children:t("reports.signalDeck.shareButton")})]}),T.jsxs("div",{className:"flex items-center gap-1 sm:hidden",children:[T.jsx("button",{type:"button",onClick:()=>fe(o-1),disabled:o===0,"aria-label":t("reports.signalDeck.previousSlide"),className:"grid h-12 w-12 place-items-center rounded-full border disabled:opacity-30",style:{borderColor:N.inputBorder,color:N.ink,background:N.surface},children:T.jsx(ft,{name:"arrow_upward",size:"large"})}),T.jsx("button",{type:"button",onClick:()=>fe(o+1),"aria-label":t("reports.signalDeck.nextSlide"),className:"grid h-12 w-12 place-items-center rounded-full",style:{background:N.primary,color:N.primaryFg},children:T.jsx(ft,{name:"arrow_downward",size:"large"})})]}),T.jsxs("button",{type:"button",onClick:()=>fe(o+1),className:"hidden h-12 items-center gap-2 rounded-full px-6 text-sm font-medium sm:inline-flex",style:{background:N.primary,color:N.primaryFg},children:[T.jsx("span",{children:t("reports.signalDeck.next")}),T.jsx(ft,{name:"arrow_forward",size:"medium"})]})]})]})}),A&&k&&T.jsxs("div",{ref:re,role:"menu",className:"fixed z-50 flex min-w-[200px] flex-col overflow-hidden rounded-xl border shadow-xl",style:{background:N.surface,borderColor:N.border,...E==="below"?{top:k.bottom+8}:{bottom:window.innerHeight-k.top+8},left:k.left+k.width/2,transform:"translateX(-50%)"},children:[T.jsxs("button",{type:"button",role:"menuitem",onClick:()=>Ee(G),className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx(ft,{name:"link",size:"medium"}),t("reports.signalDeck.copyLink")]}),T.jsxs("a",{role:"menuitem",href:`https://twitter.com/intent/tweet?url=${encodeURIComponent(ge(G,O))}&text=${encodeURIComponent(pe(G))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{rt("report_slide_shared",{domain:r.meta.domain,slide_key:G.key,slide_index:o,surface:"deck_v2",method:"twitter",share_id:O,sharer_person_id:ic()}),D(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.748l7.73-8.835L1.254 2.25H8.08l4.261 5.635zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),t("reports.signalDeck.shareOnX")]}),T.jsxs("a",{role:"menuitem",href:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(ge(G,O))}&title=${encodeURIComponent(`${r.meta.brand} — ${G.title}`)}&summary=${encodeURIComponent(pe(G))}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>{rt("report_slide_shared",{domain:r.meta.domain,slide_key:G.key,slide_index:o,surface:"deck_v2",method:"linkedin",share_id:O,sharer_person_id:ic()}),D(!1)},className:"flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors hover:bg-black/5",style:{color:N.ink},children:[T.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:T.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),t("reports.signalDeck.shareOnLinkedIn")]})]}),l&&T.jsx("div",{className:"fixed bottom-20 left-1/2 z-50 -translate-x-1/2 rounded-full px-4 py-2 text-sm font-medium shadow-lg",style:{background:N.ink,color:N.bg},children:l})]}):null}const WY="#D0EC1A",mI="#07401A",$Y=()=>hn()?bo.get_distinct_id():void 0;function UY(r){const e=Te.c(19),{domain:t,initial:a,sessionEmail:n,sessionUser:i,lang:o}=r,[s,l]=ze.useState(a?.status==="ready"?a.deck:null);let u;e[0]!==t||e[1]!==a?.status?(u=()=>a?.status!=="ready"&&bP(t)?"pending":"scanning",e[0]=t,e[1]=a?.status,e[2]=u):u=e[2];const[c,f]=ze.useState(u);let h;e[3]!==t||e[4]!==a||e[5]!==o?(h=g=>{if(!g||(a&&oc(t,a.drops),a?.status==="ready"))return;const m=new AbortController;return wP(t,$Y(),m.signal,{onPhase:f,onDeck:l},o),()=>m.abort()},e[3]=t,e[4]=a,e[5]=o,e[6]=h):h=e[6];const v=h;if(s){let g;return e[7]!==s||e[8]!==i?(g=T.jsx(jY,{deck:s,sessionUser:i}),e[7]=s,e[8]=i,e[9]=g):g=e[9],g}if(c==="unauthorized"){let g;return e[10]!==t?(g=T.jsx(Lc,{domain:t}),e[10]=t,e[11]=g):g=e[11],g}let d;e[12]!==t||e[13]!==c||e[14]!==n?(d=T.jsx(XY,{domain:t,phase:c,email:n}),e[12]=t,e[13]=c,e[14]=n,e[15]=d):d=e[15];let p;return e[16]!==v||e[17]!==d?(p=T.jsx("div",{ref:v,children:d}),e[16]=v,e[17]=d,e[18]=p):p=e[18],p}const y2=[{id:"initiated",labelKey:"reports.scanGate.stageInitiated",detail:null},{id:"collecting",labelKey:"reports.scanGate.stageCollecting",detail:null},{id:"building",labelKey:"reports.scanGate.stageBuilding",detail:null},{id:"ready",labelKey:"reports.scanGate.stageReady",detail:null}];function YY(r){return r==="scanning"?["done","active","pending","pending"]:r==="pending"?["done","done","active","pending"]:["done","done","done","pending"]}function XY(r){const e=Te.c(30),{domain:t,phase:a,email:n}=r,i=xt(),o=a==="scanning"||a==="pending";let s;e[0]!==a?(s=YY(a),e[0]=a,e[1]=s):s=e[1];const l=s;let u;e[2]!==a||e[3]!==i?(u=a==="blocked"?i("reports.scanGate.errorBlocked"):a==="empty"?i("reports.scanGate.errorEmpty"):a==="error"?i("reports.scanGate.errorFailed"):null,e[2]=a,e[3]=i,e[4]=u):u=e[4];const c=u;let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f={color:N.ink,fontFamily:"Switzer, 'Inter var', Helvetica, Arial, sans-serif",WebkitFontSmoothing:"antialiased"},e[5]=f):f=e[5];let h;e[6]!==t?(h=T.jsx(Mf,{domain:t}),e[6]=t,e[7]=h):h=e[7];let v;e[8]===Symbol.for("react.memo_cache_sentinel")?(v=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[8]=v):v=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d={background:"rgba(255,255,255,0.15)"},e[9]=d):d=e[9];let p;e[10]!==o?(p=o&&T.jsx("div",{className:"animate-indeterminate h-full w-2/5",style:{background:WY}}),e[10]=o,e[11]=p):p=e[11];let g;e[12]!==p?(g=T.jsx("div",{className:"fixed inset-x-0 top-0 z-10 h-[2px] overflow-hidden",style:d,children:p}),e[12]=p,e[13]=g):g=e[13];let m;e[14]!==t||e[15]!==n||e[16]!==o||e[17]!==l||e[18]!==i?(m=o&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-2xl sm:rounded-3xl px-5 pt-5 pb-6 sm:px-8 sm:pt-8 sm:pb-9",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsxs("div",{className:"mb-4 sm:mb-6 inline-flex items-center gap-2 rounded-full border px-3 py-1.5",style:{borderColor:N.border,background:"#FAFAF9"},children:[T.jsx("img",{src:Af(t),alt:"",className:"h-4 w-4 rounded object-contain"}),T.jsxs("span",{className:"text-[13px]",style:{color:N.muted},children:[T.jsx("span",{style:{opacity:.5},children:"https://"}),t]})]}),T.jsxs("h1",{className:"text-[24px] sm:text-[32px] font-normal leading-[1.18] tracking-[-0.025em]",style:{color:N.ink},children:[i("reports.scanGate.headlineStart"),T.jsx("br",{}),T.jsx("span",{style:{color:N.soft},children:i("reports.scanGate.headlineEnd")})]}),T.jsx("p",{className:"mt-2 sm:mt-3 text-[13px] sm:text-[14px] leading-[1.6]",style:{color:N.muted},children:i("reports.scanGate.subtitle")}),T.jsxs("div",{className:"mt-4 sm:mt-5 rounded-xl sm:rounded-2xl px-4 sm:px-5 py-4 sm:py-5",style:{background:"#F2F1EF"},children:[T.jsx("p",{className:"mb-2.5 sm:mb-3 text-[15px] sm:text-[16px]",style:{color:N.ink},children:i("reports.scanGate.notificationLabel")}),T.jsx(KY,{email:n})]}),T.jsx("div",{className:"mt-5 sm:mt-7 rounded-xl sm:rounded-2xl overflow-hidden",style:{border:`1px solid ${N.border}`},children:y2.map((S,b)=>{const w=l[b]??"pending",C=b===y2.length-1;return T.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 px-4 sm:px-5 py-3 sm:py-4",style:{borderTop:b>0?`1px solid ${N.border}`:void 0,background:w==="active"?N.limeTint:void 0},children:[T.jsxs("div",{className:"flex flex-col items-center self-stretch pt-0.5",children:[T.jsx(ZY,{state:w}),!C&&T.jsx("div",{className:"w-px flex-1 mt-2",style:{background:w==="done"?N.soft:N.border,opacity:w==="done"?.5:1}})]}),T.jsxs("div",{className:"min-w-0 flex-1 py-0.5",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{className:"text-[13px] sm:text-[14px] leading-5",style:{color:w==="pending"?N.faint:N.ink,fontWeight:w==="active"?500:400},children:i(S.labelKey)}),w==="active"&&T.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded-md font-medium",style:{background:N.limeTint,color:mI,border:"1px solid rgba(7,64,26,0.15)"},children:i("reports.scanGate.stageNow")})]}),S.detail&&w!=="pending"&&T.jsx("p",{className:"mt-0.5 text-[12px] leading-4",style:{color:N.faint},children:S.detail})]})]},S.id)})}),T.jsx(T2,{})]}),e[14]=t,e[15]=n,e[16]=o,e[17]=l,e[18]=i,e[19]=m):m=e[19];let y;e[20]!==c||e[21]!==i?(y=c&&T.jsxs("div",{className:"w-full max-w-[460px] rounded-3xl px-8 py-10",style:{background:"#fff",boxShadow:"0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12)"},children:[T.jsx("div",{className:"mb-5 flex h-10 w-10 items-center justify-center rounded-full",style:{background:"rgba(212,61,61,0.08)"},children:T.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 22 22",fill:"none","aria-hidden":"true",children:[T.jsx("path",{d:"M11 7v5M11 15h.01",stroke:"#d43d3d",strokeWidth:"2",strokeLinecap:"round"}),T.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:"#d43d3d",strokeWidth:"1.5"})]})}),T.jsx("p",{className:"text-[20px] font-normal leading-snug tracking-[-0.02em]",style:{color:N.ink},children:c}),T.jsx("a",{href:"https://decocms.com/diagnostico",className:"mt-5 inline-flex items-center gap-2 rounded-xl px-4 py-2.5 text-[14px] font-medium transition-transform active:scale-[0.98]",style:{background:N.primary,color:N.primaryFg},children:i("reports.scanGate.tryAnother")})]}),e[20]=c,e[21]=i,e[22]=y):y=e[22];let x;e[23]!==y||e[24]!==m?(x=T.jsxs("div",{className:"relative z-10 flex min-h-full flex-col items-center justify-center px-3 py-4 sm:px-5 sm:py-16",children:[m,y]}),e[23]=y,e[24]=m,e[25]=x):x=e[25];let _;return e[26]!==x||e[27]!==h||e[28]!==g?(_=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",style:f,children:[h,v,g,x]}),e[26]=x,e[27]=h,e[28]=g,e[29]=_):_=e[29],_}function ZY(r){const e=Te.c(5),{state:t}=r;if(t==="done"){let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.soft},e[0]=n):n=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full",style:n,children:T.jsx("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M1.5 4.5l2 2L7.5 2.5",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[1]=i):i=e[1],i}if(t==="active"){let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=T.jsx("div",{className:"absolute h-full w-full rounded-full animate-ping opacity-30",style:{background:N.soft}}),e[2]=n):n=e[2];let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsxs("div",{className:"relative flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:[n,T.jsx("div",{className:"h-3 w-3 rounded-full",style:{background:N.soft}})]}),e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"h-[18px] w-[18px] shrink-0 rounded-full",style:{border:`1.5px solid ${N.border}`}}),e[4]=a):a=e[4],a}function KY(r){const e=Te.c(14),{email:t}=r,a=xt();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={background:N.limeTint},e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:N.soft},e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full",style:i,children:T.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:T.jsx("path",{d:"M2 6l2.5 2.5L10 3.5",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),e[2]=o):o=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={color:mI},e[3]=s):s=e[3];let l;e[4]!==t?(l=T.jsx("p",{className:"truncate text-[13px] font-medium",style:s,children:t}),e[4]=t,e[5]=l):l=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u={color:N.soft},e[6]=u):u=e[6];let c;e[7]!==a?(c=a("reports.scanGate.notificationHelp"),e[7]=a,e[8]=c):c=e[8];let f;e[9]!==c?(f=T.jsx("p",{className:"text-[12px]",style:u,children:c}),e[9]=c,e[10]=f):f=e[10];let h;return e[11]!==l||e[12]!==f?(h=T.jsxs("div",{className:"flex min-w-0 items-center gap-3 rounded-xl px-4 py-3",style:n,children:[o,T.jsxs("div",{className:"min-w-0",children:[l,f]})]}),e[11]=l,e[12]=f,e[13]=h):h=e[13],h}const x2=TI("/report/$domain");function qY(r,e,t){return a=>{if(!a||!r)return;const n=document.title;document.title=e;const i=t||Af(r,64),o=document.head,s=Array.from(o.querySelectorAll('link[rel~="icon"]')).filter(u=>!u.hasAttribute("data-domain-favicon"));s.forEach(u=>{u.dataset.prevRel=u.getAttribute("rel")??"",u.setAttribute("rel","decocms-icon-disabled")});const l=document.createElement("link");return l.rel="icon",l.href=i,l.setAttribute("data-domain-favicon",""),o.appendChild(l),()=>{document.title=n,l.remove(),s.forEach(u=>{u.setAttribute("rel",u.dataset.prevRel??"icon"),delete u.dataset.prevRel})}}}function JY(r){const e=Te.c(7),{domain:t,refreshSession:a}=r;let n;e[0]!==a?(n=l=>{!l||l.dataset.sessionRefreshStarted==="true"||(l.dataset.sessionRefreshStarted="true",a())},e[0]=a,e[1]=n):n=e[1];const i=n;let o;e[2]!==t?(o=T.jsx(Lc,{domain:t}),e[2]=t,e[3]=o):o=e[3];let s;return e[4]!==i||e[5]!==o?(s=T.jsx("div",{ref:i,children:o}),e[4]=i,e[5]=o,e[6]=s):s=e[6],s}function QY(r){const e=Te.c(26),{domain:t,retry:a}=r,n=xt();let i;e[0]!==t?(i=T.jsx(Mf,{domain:t}),e[0]=t,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"}),e[2]=o):o=e[2];let s;e[3]!==n?(s=n("routes.reports.failedToLoadReportAriaLabel"),e[3]=n,e[4]=s):s=e[4];let l;e[5]!==n?(l=n("routes.reports.failedToLoadReportTitle"),e[5]=n,e[6]=l):l=e[6];let u;e[7]!==l?(u=T.jsx("h1",{className:"text-xl font-medium leading-7",children:l}),e[7]=l,e[8]=u):u=e[8];let c;e[9]!==n?(c=n("routes.reports.failedToLoadReportDescription"),e[9]=n,e[10]=c):c=e[10];let f;e[11]!==c?(f=T.jsx("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:c}),e[11]=c,e[12]=f):f=e[12];let h;e[13]!==n?(h=n("routes.reports.retryButton"),e[13]=n,e[14]=h):h=e[14];let v;e[15]!==a||e[16]!==h?(v=T.jsx("button",{type:"button",onClick:a,className:"mt-6 inline-flex h-11 items-center justify-center rounded-lg bg-primary px-5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80",children:h}),e[15]=a,e[16]=h,e[17]=v):v=e[17];let d;e[18]!==s||e[19]!==u||e[20]!==f||e[21]!==v?(d=T.jsx("div",{className:"relative z-10 flex min-h-full items-center justify-center px-4 py-10",children:T.jsxs("section",{role:"alert","aria-label":s,className:"w-full max-w-[440px] rounded-3xl bg-background px-7 py-8 text-foreground shadow-2xl",children:[u,f,v]})}),e[18]=s,e[19]=u,e[20]=f,e[21]=v,e[22]=d):d=e[22];let p;return e[23]!==i||e[24]!==d?(p=T.jsxs("div",{className:"fixed inset-0 overflow-y-auto",children:[i,o,d]}),e[23]=i,e[24]=d,e[25]=p):p=e[25],p}function bX(){const r=Te.c(24),{domain:e}=x2.useParams(),{key:t}=x2.useSearch(),a=Bg(e),n=b2.useSession(),i=!!n.data?.user,[o]=_2(),{language:s}=o;Ud(!!t);const l=SI({queryKey:wI.report(a,t,s),queryFn:()=>Wd(a,t,s),enabled:i,staleTime:1/0,retry:tX});let u;r[0]!==l.error||r[1]!==l.isError?(u=l.isError&&zg(l.error),r[0]=l.error,r[1]=l.isError,r[2]=u):u=r[2];const c=u,f=l.data?.deck?.meta.brand?.trim()||JI(a),{title:h}=QI({brand:f,domain:a,score:l.data?.deck?.meta.scores?.cover});let v;r[3]!==t?(v=S=>{if(S)return Ud(!!t),eX},r[3]=t,r[4]=v):v=r[4];const d=v;let p;r[5]!==i||r[6]!==a||r[7]!==c?(p=S=>{if(!S||!i||c||S.dataset.authCompletionTracked==="true"||!hn())return;const b=dP(a);b&&(S.dataset.authCompletionTracked="true",rt("report_auth_succeeded",{domain:a,surface:"deck_v2",...$d(b),method:b.method??"unknown",time_to_auth_ms:Math.max(0,Date.now()-b.gate_shown_at),...b.provider?{provider:b.provider}:{},...b.auth_mode?{auth_mode:b.auth_mode}:{}}))},r[5]=i,r[6]=a,r[7]=c,r[8]=p):p=r[8];const g=p;let m;r[9]!==a||r[10]!==l||r[11]!==s||r[12]!==c||r[13]!==n?(m=n.isPending?T.jsx(Lc,{domain:a,loading:!0}):n.data?.user?c?T.jsx(JY,{domain:a,refreshSession:()=>{n.refetch()}}):l.isPending?T.jsxs("div",{className:"fixed inset-0 overflow-hidden","aria-busy":"true",children:[T.jsx(Mf,{domain:a}),T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-white/35"})]}):l.isError?T.jsx(QY,{domain:a,retry:()=>{l.refetch()}}):T.jsx(UY,{domain:a,initial:l.data,sessionEmail:n.data.user.email,sessionUser:n.data.user,lang:s}):T.jsx(Lc,{domain:a}),r[9]=a,r[10]=l,r[11]=s,r[12]=c,r[13]=n,r[14]=m):m=r[14];const y=m;let x;r[15]!==g||r[16]!==a||r[17]!==l.data?.deck?.meta.faviconUrl||r[18]!==d||r[19]!==h?(x=S=>{const b=qY(a,h,l.data?.deck?.meta.faviconUrl)(S),w=d(S);return g(S),()=>{b?.(),w?.()}},r[15]=g,r[16]=a,r[17]=l.data?.deck?.meta.faviconUrl,r[18]=d,r[19]=h,r[20]=x):x=r[20];let _;return r[21]!==y||r[22]!==x?(_=T.jsx("div",{ref:x,children:y}),r[21]=y,r[22]=x,r[23]=_):_=r[23],_}function eX(){return Ud(!1)}function tX(r,e){return!zg(e)&&r<1}export{bX as default};