@lobu/runtime-server 24.1.0 → 24.2.0

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 (284) hide show
  1. package/dist/catalogs/connectors.json +151 -37
  2. package/dist/catalogs/skills.json +2 -2
  3. package/dist/component.json +1 -1
  4. package/dist/connectors/google_gmail.ts +70 -41
  5. package/dist/connectors/google_gmail_references.ts +406 -0
  6. package/dist/connectors/linkedin-inbox-adapter.js +107 -36
  7. package/dist/connectors/linkedin-inbox.ts +13 -0
  8. package/dist/connectors/linkedin.ts +1 -1
  9. package/dist/connectors/postgres.ts +5 -3
  10. package/dist/connectors/reddit.ts +171 -5
  11. package/dist/connectors/whatsapp-web-adapter.js +147 -61
  12. package/dist/connectors/whatsapp-web-helpers.ts +6 -2
  13. package/dist/connectors/whatsapp_web.ts +48 -17
  14. package/dist/connectors/x-dm-adapter.js +252 -35
  15. package/dist/connectors/x.ts +189 -13
  16. package/dist/db/migrations/20261020140000_view_attachments_by_page.sql +3 -1
  17. package/dist/db/migrations/20261024050000_events_source_reference_arrival.sql +27 -0
  18. package/dist/db/migrations/20261026000000_turn_write_receipts.sql +36 -0
  19. package/dist/db/migrations/20261026190000_federated_relationship_endpoints.sql +143 -0
  20. package/dist/dependencies.bun.lock +81 -83
  21. package/dist/embeddings-server.mjs +81 -11
  22. package/dist/guest.bundle.js +62 -25
  23. package/dist/owletto/dist/assets/_-Cjvw31gU.js +2 -0
  24. package/dist/owletto/dist/assets/_-iToIRRFt.js +3 -0
  25. package/dist/owletto/dist/assets/_agentId-CLdj0X7j.js +2 -0
  26. package/dist/owletto/dist/assets/_agentId-D5cAWjrP.js +2 -0
  27. package/dist/owletto/dist/assets/_automationId-BhEZmkJU.js +2 -0
  28. package/dist/owletto/dist/assets/_connectorKey._connectionId-DZtLc3WW.js +2 -0
  29. package/dist/owletto/dist/assets/_connectorKey.index-BoYpah_l.js +2 -0
  30. package/dist/owletto/dist/assets/_conversationId-ML2TjCwN.js +2 -0
  31. package/dist/owletto/dist/assets/_eventId-BYc3I2EL.js +2 -0
  32. package/dist/owletto/dist/assets/_name-BsOZmvlH.js +2 -0
  33. package/dist/owletto/dist/assets/_owner-UuyQLJ-0.js +3 -0
  34. package/dist/owletto/dist/assets/_shape-BpnVAYWH.js +2 -0
  35. package/dist/owletto/dist/assets/_skillKey-CYrGvNn-.js +2 -0
  36. package/dist/owletto/dist/assets/_slug-MHQU8ftJ.js +2 -0
  37. package/dist/owletto/dist/assets/_viewKey-CGAJ1ucr.js +2 -0
  38. package/dist/owletto/dist/assets/_viewKey-CMkhfs1k.js +2 -0
  39. package/dist/owletto/dist/assets/accept-invitation-D2T_a2dj.js +2 -0
  40. package/dist/owletto/dist/assets/activity-route-view-_G_lDz5K.js +2 -0
  41. package/dist/owletto/dist/assets/agent-card-controls-ColL5rdd.js +2 -0
  42. package/dist/owletto/dist/assets/{agent-client-setup-list-BlXB4SE5.js → agent-client-setup-list-BgyLhJCo.js} +2 -2
  43. package/dist/owletto/dist/assets/agent-connect-pages-BryZas7Z.js +2 -0
  44. package/dist/owletto/dist/assets/{agent-editor-form-DsSoeQeF.js → agent-editor-form-C24p9LLg.js} +2 -2
  45. package/dist/owletto/dist/assets/agent-guardrails-route-D9PpDgR-.js +2 -0
  46. package/dist/owletto/dist/assets/{agent-loading-shells-B7v6Cffw.js → agent-loading-shells-jkf9DjdO.js} +2 -2
  47. package/dist/owletto/dist/assets/agent-permissions-matrix-C8j8kRB1.js +2 -0
  48. package/dist/owletto/dist/assets/{agent-skill-context-DFucg4c4.js → agent-skill-context-B9giw2u2.js} +2 -2
  49. package/dist/owletto/dist/assets/agent-skills-route-BMZ3r1bP.js +2 -0
  50. package/dist/owletto/dist/assets/agent-subpage-shell-D49f-bzP.js +2 -0
  51. package/dist/owletto/dist/assets/{agent-thread-D38STyeu.js → agent-thread-BGHYHWDO.js} +4 -4
  52. package/dist/owletto/dist/assets/agents-C05k-Xw6.js +2 -0
  53. package/dist/owletto/dist/assets/agents-workbench-D1YL3VAB.js +2 -0
  54. package/dist/owletto/dist/assets/app._appId-A51tx2jU.js +2 -0
  55. package/dist/owletto/dist/assets/automation-detail-content-DCAZBKle.js +2 -0
  56. package/dist/owletto/dist/assets/automations-C05k-Xw6.js +2 -0
  57. package/dist/owletto/dist/assets/callback-WmyCei3R.js +2 -0
  58. package/dist/owletto/dist/assets/{card-jzhQrMDP.js → card-Cspo-4M6.js} +2 -2
  59. package/dist/owletto/dist/assets/{claim-B-wq745Q.js → claim-CCKdBtFt.js} +2 -2
  60. package/dist/owletto/dist/assets/client-activity-scopes-CmK3DkSP.js +2 -0
  61. package/dist/owletto/dist/assets/client-rows-fFuxzFtE.js +2 -0
  62. package/dist/owletto/dist/assets/{code-editor-CEqoCky-.js → code-editor-C8FJbT2P.js} +3 -3
  63. package/dist/owletto/dist/assets/connect-BmCUJ3lr.js +2 -0
  64. package/dist/owletto/dist/assets/connect._clientId-B6StGCPK.js +2 -0
  65. package/dist/owletto/dist/assets/connected._clientId-CPiMA6Bx.js +2 -0
  66. package/dist/owletto/dist/assets/connected._clientId.activity-BialEDmu.js +2 -0
  67. package/dist/owletto/dist/assets/connected._clientId.index-X1wVi6v0.js +2 -0
  68. package/dist/owletto/dist/assets/{connection-CNm2ukrI.js → connection-DJd9bnEc.js} +2 -2
  69. package/dist/owletto/dist/assets/{connection-feed-detail-WcGCA6qY.js → connection-feed-detail-IO6G5QjL.js} +2 -2
  70. package/dist/owletto/dist/assets/connections-browser-CzdcZeiU.js +2 -0
  71. package/dist/owletto/dist/assets/{connector-provenance-D-ECOlMJ.js → connector-provenance-bmBJJ9B4.js} +2 -2
  72. package/dist/owletto/dist/assets/connector-scope-lists-B44Q9W-j.js +2 -0
  73. package/dist/owletto/dist/assets/{connectors-CH4KBZyT.js → connectors-CTWPDH8f.js} +2 -2
  74. package/dist/owletto/dist/assets/{consent-C9ZpHb7V.js → consent-C_WBfmQ8.js} +2 -2
  75. package/dist/owletto/dist/assets/copy-button-kcjg8Giw.js +2 -0
  76. package/dist/owletto/dist/assets/{core.esm-BupT3V0i.js → core.esm-CoJ5Splc.js} +2 -2
  77. package/dist/owletto/dist/assets/create-CQE5rD0i.js +2 -0
  78. package/dist/owletto/dist/assets/create-DQNlRTUX.js +2 -0
  79. package/dist/owletto/dist/assets/create-automation-form-y3tq2QIJ.js +3 -0
  80. package/dist/owletto/dist/assets/create-lOFSQV_5.js +2 -0
  81. package/dist/owletto/dist/assets/create._connectorKey-icyNicvn.js +2 -0
  82. package/dist/owletto/dist/assets/{cronstrue-CWImw-kf.js → cronstrue-CeUS_78Q.js} +2 -2
  83. package/dist/owletto/dist/assets/{device-D-7WBe9E.js → device-Br9JHadR.js} +2 -2
  84. package/dist/owletto/dist/assets/device-pin-tombstone-7UpeD4Sq.js +2 -0
  85. package/dist/owletto/dist/assets/device._deviceId-DGMmjr01.js +2 -0
  86. package/dist/owletto/dist/assets/elk-worker.min-BENGc9gn.js +23 -0
  87. package/dist/owletto/dist/assets/{entity-avatar-mdh7Kq5D.js → entity-avatar-BZIa-7i5.js} +2 -2
  88. package/dist/owletto/dist/assets/entity-options-BcTafZ2e.js +2 -0
  89. package/dist/owletto/dist/assets/entity-page-CY7PF3X9.js +2 -0
  90. package/dist/owletto/dist/assets/entity-type-page-BzMZttzh.js +2 -0
  91. package/dist/owletto/dist/assets/{event-detail-DV_zfWnC.js → event-detail-C25TvOb_.js} +2 -2
  92. package/dist/owletto/dist/assets/events-feed-C4VrjIc1.js +2 -0
  93. package/dist/owletto/dist/assets/filter-editors-oNjBX9a2.js +2 -0
  94. package/dist/owletto/dist/assets/{full-page-spinner-BVbcpW3R.js → full-page-spinner-DtmqQmgl.js} +2 -2
  95. package/dist/owletto/dist/assets/guardrails-Acfam-JF.js +2 -0
  96. package/dist/owletto/dist/assets/identity-BkK8ggdp.js +2 -0
  97. package/dist/owletto/dist/assets/index-BhBYXtEN.js +2 -0
  98. package/dist/owletto/dist/assets/{index-BTlx9K_t.js → index-Bhop_otG.js} +2 -2
  99. package/dist/owletto/dist/assets/index-Bw5iV_J7.js +2 -0
  100. package/dist/owletto/dist/assets/index-C3dpyynY.js +2 -0
  101. package/dist/owletto/dist/assets/index-C3zAbslo.js +2 -0
  102. package/dist/owletto/dist/assets/index-CGKN_WN_.js +2 -0
  103. package/dist/owletto/dist/assets/{index-DB1iWI_a.js → index-CgRaCOzW.js} +2 -2
  104. package/dist/owletto/dist/assets/{index-D7gHOpfg.js → index-DRbaESbJ.js} +2 -2
  105. package/dist/owletto/dist/assets/index-DfIoxD5Q.js +2 -0
  106. package/dist/owletto/dist/assets/index-DijuudSs.js +2 -0
  107. package/dist/owletto/dist/assets/index-Dr7bouPX.css +1 -0
  108. package/dist/owletto/dist/assets/index-JmEl29py.js +7950 -0
  109. package/dist/owletto/dist/assets/index-NK2VKPoL.js +2 -0
  110. package/dist/owletto/dist/assets/index-_5qsmBkt.js +2 -0
  111. package/dist/owletto/dist/assets/{index-B64PGxQm.js → index-qkOKpRYs.js} +2 -2
  112. package/dist/owletto/dist/assets/index-wHFQv1aT.js +12 -0
  113. package/dist/owletto/dist/assets/index-wzYkECAe.js +2 -0
  114. package/dist/owletto/dist/assets/json-diff-4sMmayDd.js +4 -0
  115. package/dist/owletto/dist/assets/linked-record-peek-B0_B4PnF.js +97 -0
  116. package/dist/owletto/dist/assets/{list-skeleton-CepswBka.js → list-skeleton-BafzvpOM.js} +2 -2
  117. package/dist/owletto/dist/assets/login-XL5XxN6y.js +2 -0
  118. package/dist/owletto/dist/assets/{logout-Bkzc7J44.js → logout-CMxdhLbM.js} +2 -2
  119. package/dist/owletto/dist/assets/{member-scope-gate-DD4YBFn-.js → member-scope-gate-Dit3MXBQ.js} +2 -2
  120. package/dist/owletto/dist/assets/memory-browse-page-DTlM_9MY.js +74 -0
  121. package/dist/owletto/dist/assets/{model-selector-CDrAjH31.js → model-selector-BeFuFH7p.js} +2 -2
  122. package/dist/owletto/dist/assets/models-BAVaDnKN.js +2 -0
  123. package/dist/owletto/dist/assets/new-1QLuS1o-.js +2 -0
  124. package/dist/owletto/dist/assets/{new-ktz9Cs_P.js → new-ChwqLmVY.js} +2 -2
  125. package/dist/owletto/dist/assets/new-D21LGMl6.js +2 -0
  126. package/dist/owletto/dist/assets/{oauth-workspace-access-lZNZ9gul.js → oauth-workspace-access-D15LYKSe.js} +2 -2
  127. package/dist/owletto/dist/assets/organization-CoUJYXx7.js +2 -0
  128. package/dist/owletto/dist/assets/peek-pane-content-BvkYk72J.js +2 -0
  129. package/dist/owletto/dist/assets/permissions-C6UFdvz2.js +2 -0
  130. package/dist/owletto/dist/assets/proposal-review-shell-CmLy1MZf.js +2 -0
  131. package/dist/owletto/dist/assets/public-shell-ready-_awBxu2Y.js +2 -0
  132. package/dist/owletto/dist/assets/record-activity-Doeu5kPO.js +2 -0
  133. package/dist/owletto/dist/assets/{record-session-Pbr5czGw.js → record-session-CJzFoVKc.js} +2 -2
  134. package/dist/owletto/dist/assets/{reset-password-CzZw6RcC.js → reset-password-Y-WO77iR.js} +2 -2
  135. package/dist/owletto/dist/assets/runs-B0zVYb-w.js +2 -0
  136. package/dist/owletto/dist/assets/runs-panel-Dkyybqos.js +2 -0
  137. package/dist/owletto/dist/assets/{runs-table-B1APZv7d.js → runs-table-9OVdfPXZ.js} +2 -2
  138. package/dist/owletto/dist/assets/schema-type-editor-panel-DcJqbCrU.js +2 -0
  139. package/dist/owletto/dist/assets/settings-Cfy9tCOF.js +2 -0
  140. package/dist/owletto/dist/assets/settings-Dg0D_l_w.js +2 -0
  141. package/dist/owletto/dist/assets/skills-oxA7P5Fe.js +2 -0
  142. package/dist/owletto/dist/assets/source-record-panels-BeAZeMLy.js +2 -0
  143. package/dist/owletto/dist/assets/status-dot-_LQZmEIX.js +2 -0
  144. package/dist/owletto/dist/assets/use-automations-DS3uz3pb.js +2 -0
  145. package/dist/owletto/dist/assets/{use-mention-search-Dcunv4L0.js → use-mention-search-CAFbh-Dk.js} +4 -4
  146. package/dist/owletto/dist/assets/use-scroll-sentinel-BpQ70c28.js +2 -0
  147. package/dist/owletto/dist/assets/view-param-filters-FuOZyjMg.js +2 -0
  148. package/dist/owletto/dist/assets/views-access-required-CWwlobOd.js +2 -0
  149. package/dist/owletto/dist/index.html +2 -2
  150. package/dist/server-main.bundle.mjs +44222 -40683
  151. package/npm-shrinkwrap.json +389 -402
  152. package/package.json +1 -1
  153. package/vendor/connector-sdk/dist/browser-requirement.js +1 -1
  154. package/vendor/connector-sdk/dist/connector-types.d.ts +5 -1
  155. package/vendor/connector-sdk/package.json +1 -1
  156. package/vendor/core/dist/agent-tooling.d.ts +8 -0
  157. package/vendor/core/dist/agent-tooling.js +9 -1
  158. package/vendor/core/dist/capabilities.d.ts +1 -1
  159. package/vendor/core/dist/capabilities.js +5 -0
  160. package/vendor/core/dist/contracts/entity-reference.d.ts +3 -0
  161. package/vendor/core/dist/contracts/entity-reference.js +31 -0
  162. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +3 -0
  163. package/vendor/core/dist/contracts/tools/manage-automations.js +3 -0
  164. package/vendor/core/dist/contracts/tools/manage-connections.js +1 -1
  165. package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
  166. package/vendor/core/dist/contracts/tools/manage-entity.d.ts +113 -34
  167. package/vendor/core/dist/contracts/tools/manage-entity.js +41 -14
  168. package/vendor/core/dist/contracts/tools/manage-operations.d.ts +13 -4
  169. package/vendor/core/dist/contracts/tools/manage-operations.js +19 -7
  170. package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +6 -1
  171. package/vendor/core/dist/contracts/tools/read-knowledge.js +20 -1
  172. package/vendor/core/dist/contracts/tools/view-attach.d.ts +1 -1
  173. package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -0
  174. package/vendor/core/dist/contracts/tools/view-runtime.js +3 -1
  175. package/vendor/core/dist/contracts/worker/device-automation.d.ts +4 -9
  176. package/vendor/core/dist/contracts/worker/device-automation.js +10 -15
  177. package/vendor/core/dist/contracts/worker/protocol.d.ts +20 -0
  178. package/vendor/core/dist/contracts/worker/protocol.js +20 -0
  179. package/vendor/core/dist/reserved.d.ts +6 -3
  180. package/vendor/core/dist/reserved.js +6 -3
  181. package/vendor/core/dist/worker/auth.d.ts +3 -2
  182. package/vendor/core/package.json +6 -1
  183. package/vendor/postgres/cf/src/query.js +3 -1
  184. package/vendor/postgres/cjs/src/query.js +3 -1
  185. package/vendor/postgres/src/query.js +3 -1
  186. package/vendor/views/dist/api.js +31 -7
  187. package/vendor/views/dist/bridge.d.ts +2 -1
  188. package/vendor/views/dist/bridge.js +10 -1
  189. package/vendor/views/package.json +1 -1
  190. package/dist/owletto/dist/assets/_-BorucF19.js +0 -3
  191. package/dist/owletto/dist/assets/_-CkGyNi0G.js +0 -2
  192. package/dist/owletto/dist/assets/_agentId-BrhcaxUk.js +0 -2
  193. package/dist/owletto/dist/assets/_agentId-DgRrCE2B.js +0 -2
  194. package/dist/owletto/dist/assets/_automationId-DSrZIYcs.js +0 -2
  195. package/dist/owletto/dist/assets/_connectorKey._connectionId-DWxv1uoi.js +0 -2
  196. package/dist/owletto/dist/assets/_connectorKey.index-BTP5ijdT.js +0 -2
  197. package/dist/owletto/dist/assets/_conversationId-98Y3RuRO.js +0 -2
  198. package/dist/owletto/dist/assets/_deploymentId-B1UWPY0i.js +0 -2
  199. package/dist/owletto/dist/assets/_eventId-BAnr8g8z.js +0 -2
  200. package/dist/owletto/dist/assets/_name-BUfFO_A0.js +0 -2
  201. package/dist/owletto/dist/assets/_owner-C79BwQ0I.js +0 -3
  202. package/dist/owletto/dist/assets/_shape-Ep6JpyFX.js +0 -2
  203. package/dist/owletto/dist/assets/_skillKey-B24alBfT.js +0 -2
  204. package/dist/owletto/dist/assets/_slug-DbPdDc-5.js +0 -2
  205. package/dist/owletto/dist/assets/_viewKey-DDUxjjFD.js +0 -2
  206. package/dist/owletto/dist/assets/_viewKey-hdpq3RoX.js +0 -2
  207. package/dist/owletto/dist/assets/accept-invitation-UXU5Fx2G.js +0 -2
  208. package/dist/owletto/dist/assets/activity-route-view-D7ORHntE.js +0 -2
  209. package/dist/owletto/dist/assets/agent-card-controls-CplnPhbv.js +0 -2
  210. package/dist/owletto/dist/assets/agent-connect-pages-BmknviTI.js +0 -2
  211. package/dist/owletto/dist/assets/agent-guardrails-route-TdvvIc_J.js +0 -2
  212. package/dist/owletto/dist/assets/agent-permissions-matrix-BkZu1LYE.js +0 -2
  213. package/dist/owletto/dist/assets/agent-skills-route-B3vvvZZe.js +0 -2
  214. package/dist/owletto/dist/assets/agent-subpage-shell-CZJvnjNC.js +0 -2
  215. package/dist/owletto/dist/assets/agents-DAOln24A.js +0 -2
  216. package/dist/owletto/dist/assets/agents-workbench-DJ67GZ93.js +0 -2
  217. package/dist/owletto/dist/assets/app._appId-Cp78oEZ9.js +0 -2
  218. package/dist/owletto/dist/assets/automation-detail-content-DSwbRpbx.js +0 -2
  219. package/dist/owletto/dist/assets/automations-DAOln24A.js +0 -2
  220. package/dist/owletto/dist/assets/callback-CBexCo3F.js +0 -2
  221. package/dist/owletto/dist/assets/client-rows-BYbsXGy9.js +0 -2
  222. package/dist/owletto/dist/assets/clients-BhNl1tVq.js +0 -2
  223. package/dist/owletto/dist/assets/connect-wx-qqLir.js +0 -2
  224. package/dist/owletto/dist/assets/connect._clientId-kk0_4Svo.js +0 -2
  225. package/dist/owletto/dist/assets/connected._clientId-QR8o-7M5.js +0 -2
  226. package/dist/owletto/dist/assets/connected._clientId.activity-BqprYeOX.js +0 -2
  227. package/dist/owletto/dist/assets/connected._clientId.index-DhRoSzBr.js +0 -2
  228. package/dist/owletto/dist/assets/connections-browser-CrtnAs0Q.js +0 -2
  229. package/dist/owletto/dist/assets/connector-scope-lists-CRFEpSvk.js +0 -2
  230. package/dist/owletto/dist/assets/conversations-table-D_HOe1jN.js +0 -2
  231. package/dist/owletto/dist/assets/create-C4lptGWj.js +0 -2
  232. package/dist/owletto/dist/assets/create-CCjZxIkK.js +0 -2
  233. package/dist/owletto/dist/assets/create-DkgUQAbB.js +0 -2
  234. package/dist/owletto/dist/assets/create-automation-form-Bpy92SM5.js +0 -3
  235. package/dist/owletto/dist/assets/create._connectorKey-D6Kc-YQ3.js +0 -2
  236. package/dist/owletto/dist/assets/deployments-C5hvipQh.js +0 -2
  237. package/dist/owletto/dist/assets/deployments-CPpFAd_w.js +0 -2
  238. package/dist/owletto/dist/assets/deployments-body-DGII20dQ.js +0 -2
  239. package/dist/owletto/dist/assets/device-pin-tombstone-2U0UMu3_.js +0 -2
  240. package/dist/owletto/dist/assets/device._deviceId-Bn37UpWH.js +0 -2
  241. package/dist/owletto/dist/assets/entity-options-Clz_WXK-.js +0 -2
  242. package/dist/owletto/dist/assets/entity-page-D3e4iPle.js +0 -2
  243. package/dist/owletto/dist/assets/entity-type-page-DebN1vCM.js +0 -2
  244. package/dist/owletto/dist/assets/events-feed-DO3IiJO2.js +0 -2
  245. package/dist/owletto/dist/assets/filter-editors-Bwhqj7lY.js +0 -2
  246. package/dist/owletto/dist/assets/guardrails-BiJollCA.js +0 -2
  247. package/dist/owletto/dist/assets/identity-HCFWtdaI.js +0 -2
  248. package/dist/owletto/dist/assets/index-8wxsyxqt.js +0 -2
  249. package/dist/owletto/dist/assets/index-9YuSRymd.js +0 -7950
  250. package/dist/owletto/dist/assets/index-B3c-0eZG.js +0 -2
  251. package/dist/owletto/dist/assets/index-BSH07yVD.css +0 -1
  252. package/dist/owletto/dist/assets/index-BX0EA_oB.js +0 -2
  253. package/dist/owletto/dist/assets/index-CDz3-ieP.js +0 -12
  254. package/dist/owletto/dist/assets/index-CdJJaQDX.js +0 -2
  255. package/dist/owletto/dist/assets/index-CfT_W8Vo.js +0 -2
  256. package/dist/owletto/dist/assets/index-CxF2XXzl.js +0 -2
  257. package/dist/owletto/dist/assets/index-D3WHeGql.js +0 -2
  258. package/dist/owletto/dist/assets/index-DMNzF8Lf.js +0 -2
  259. package/dist/owletto/dist/assets/index-DyB3IzOA.js +0 -2
  260. package/dist/owletto/dist/assets/index-Vcq4gwWv.js +0 -2
  261. package/dist/owletto/dist/assets/index-fgAJydgX.js +0 -2
  262. package/dist/owletto/dist/assets/json-diff-DIN5Jhfx.js +0 -4
  263. package/dist/owletto/dist/assets/login-DxGYyE4n.js +0 -2
  264. package/dist/owletto/dist/assets/memory-browse-page-BnuhLJ6X.css +0 -1
  265. package/dist/owletto/dist/assets/memory-browse-page-D_UlBa27.js +0 -103
  266. package/dist/owletto/dist/assets/models-BAVeysNq.js +0 -2
  267. package/dist/owletto/dist/assets/new-C2av0diq.js +0 -2
  268. package/dist/owletto/dist/assets/new-snm1ctHn.js +0 -2
  269. package/dist/owletto/dist/assets/organization-Cb0W823y.js +0 -2
  270. package/dist/owletto/dist/assets/peek-pane-content-BNR9ImQY.js +0 -2
  271. package/dist/owletto/dist/assets/permissions-Dv39zWKt.js +0 -2
  272. package/dist/owletto/dist/assets/proposal-review-shell-CFhOqCLf.js +0 -2
  273. package/dist/owletto/dist/assets/public-shell-ready-DqX8AXfw.js +0 -2
  274. package/dist/owletto/dist/assets/recent-QhnLDU1_.js +0 -2
  275. package/dist/owletto/dist/assets/record-activity-ZJntBfN_.js +0 -2
  276. package/dist/owletto/dist/assets/record-field-peek-Brh1IQGy.js +0 -2
  277. package/dist/owletto/dist/assets/runs-panel-C0_DNTcq.js +0 -2
  278. package/dist/owletto/dist/assets/schema-value-normalization-CKdPjdPC.js +0 -97
  279. package/dist/owletto/dist/assets/settings-CgZ5Z7wD.js +0 -2
  280. package/dist/owletto/dist/assets/settings-VDNiffKU.js +0 -2
  281. package/dist/owletto/dist/assets/skills-DgDGscm5.js +0 -2
  282. package/dist/owletto/dist/assets/source-record-panels-BdfOVPWn.js +0 -2
  283. package/dist/owletto/dist/assets/view-param-filters-B0quibBi.js +0 -2
  284. /package/vendor/postgres/{.bun-tag-2f292c6554a8475e → .bun-tag-22d644c2873790db} +0 -0
@@ -0,0 +1,97 @@
1
+ import{r as Be,j as k,B as Br,cO as oL,er as sL,es as lL,et as Fs,eu as wm,d8 as XB,ev as jB,ew as ZB,ex as uL,ey as Eu,T as ni,h as qB,C as KB,de as JB,d$ as QB,ez as eV,df as Pv,eA as Js,E as bm,eh as tV,U as rV,bn as nV,bo as aV,bp as iV,bq as oV,br as sV,eB as fL,eC as lV,eD as oc,eE as Yx,eF as uV,eG as Tp,eH as fV,b0 as Xx,d3 as jx,I as Q_,bc as cV,e5 as cL,e6 as vL,bz as vV,e7 as hL,cZ as dL,eI as pL,eJ as hV,cS as Zx,eK as dV,dK as pV,eL as gV,dC as yV,dE as mV,eM as _V,dD as SV,dL as xV,L as gL,eN as wV,du as bV,eO as CV,eP as TV,cP as AV,dQ as Cm,ak as yL,q as MV,u as DV,dV as IV,dW as LV,S as Ap,A as PV,eQ as RV}from"./index-JmEl29py.js";import{c as EV,d as kV,b as OV,a as NV,C as BV}from"./card-Cspo-4M6.js";const VV=r=>r!=null;function zV(r,t,e=VV){let n=r;for(const a of t.replace(/\[(\d+)\]/g,".$1").split(".")){if(!e(n))return;n=n[a]}return n}function FV(r,t,e){return typeof r!="string"?r:r.startsWith("@")?t?.[r.slice(1)]:r.startsWith("{{")&&r.endsWith("}}")&&r.indexOf("}}")===r.length-2?e(r.slice(2,-2).trim()):r.replace(/\{\{(.+?)\}\}/g,(n,a)=>{const i=e(a.trim());return i===void 0?"":String(i)})}const GV=new Set(["type","children","props","path","fallback","key"]);function HV(r,t){const e={};for(const[n,a]of Object.entries(r))GV.has(n)||(e[n]=a);return Object.assign(e,t)}const $V=/^\d{4}-\d{2}-\d{2}(?:[tT ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/,UV=/^\d{4}-\d{2}-\d{2}$/;function WV(r){return $V.test(r)}function qu(r){if(!/^https?:\/\//i.test(r))return!1;try{const t=new URL(r);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function mL(r){return r.replace(/[-_]/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase())}function qx(r){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:r>=1e3?"compact":"standard",maximumFractionDigits:r>=1e9?1:0}).format(r)}function Kx(r){return new Intl.NumberFormat("en-US",{maximumFractionDigits:Number.isInteger(r)?0:2}).format(r)}function Jx(r){const t=new Date(UV.test(r)?`${r}T00:00:00`:r);return Number.isNaN(t.getTime())?r:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function Qx(r){try{const t=new URL(r),e=t.hostname.replace(/^www\./i,""),n=t.pathname&&t.pathname!=="/"?t.pathname.replace(/\/$/,""):"";return`${e}${n}`}catch{return r}}function Tm(r){return r==null?"":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(Td(r)):Array.isArray(r)?r.some(t=>typeof t=="object"&&t!==null)?r.map((t,e)=>`${e+1}. ${Tm(t)}`).join(`
2
+ `):JSON.stringify(r):typeof r=="object"?Object.entries(r).filter(([,e])=>e!=null&&e!=="").map(([e,n])=>`${mL(e)}: ${Tm(n)}`).join("; "):JSON.stringify(r)}function Td(r,t){if(r==null)return"";if(typeof r=="boolean")return r?"Yes":"No";if(typeof r=="number")return t==="currency"?qx(r):t===void 0||t==="text"?String(r):Kx(r);if(typeof r!="string")return Tm(r);switch(t){case"currency":return qx(Number(r));case"date":return Jx(r);case"url":return Qx(r);case"enum":return mL(r);case"number":return Kx(Number(r));case"auto":return qu(r)?Qx(r):WV(r)?Jx(r):r;default:return r}}function YV(r){return r==null?null:typeof r=="string"||typeof r=="number"||typeof r=="boolean"?String(r):null}function _L(r,t){return typeof r!="string"||!r.startsWith("@")||r.length===1?null:{action:r.slice(1),value:YV(t)}}/*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var Am=function(r,t){return Am=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Am(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Am(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var XV=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),jV=(function(){function r(){this.browser=new XV,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})(),Le=new jV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Le.wxa=!0,Le.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Le.worker=!0:!Le.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Le.node=!0,Le.svgSupported=!0):ZV(navigator.userAgent,Le);function ZV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var eS=12,SL="sans-serif",ua=eS+"px "+SL,qV=20,KV=100,JV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function QV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-qV)/KV;t[n]=a}return t}var ez=QV(JV),rr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var a=rr.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||ua),r.measureText(e);e=e||"",n=n||ua;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||eS,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=ez[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}},xL=kn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),wL=kn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),_l=Object.prototype.toString,Ad=Array.prototype,tz=Ad.forEach,rz=Ad.filter,tS=Ad.slice,nz=Ad.map,ew=function(){}.constructor,sc=ew?ew.prototype:null,rS="__proto__",Mp=2311,az=Math.pow(2,53)-1;function bL(){return Mp>=az&&(Mp=0),Mp++}function nS(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function ae(r){if(r==null||typeof r!="object")return r;var t=r,e=_l.call(r);if(e==="[object Array]"){if(!ku(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=ae(r[n])}}else if(wL[e]){if(!ku(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!xL[e]&&!ku(r)&&!Qs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==rS&&(t[o]=ae(r[o]))}return t}function _e(r,t,e){if(!fe(t)||!fe(r))return e?ae(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==rS){var a=r[n],i=t[n];fe(i)&&fe(a)&&!$(i)&&!$(a)&&!Qs(i)&&!Qs(a)&&!tw(i)&&!tw(a)&&!ku(i)&&!ku(a)?_e(a,i,e):(e||!(n in r))&&(r[n]=ae(t[n]))}return r}function aS(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=_e(e,r[n],t);return e}function G(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==rS&&(r[e]=t[e]);return r}function iz(r,t,e){r=r||{};for(var n=0;n<e.length;n++){var a=e[n];r[a]=t[a]}return r}function le(r,t,e){for(var n=De(t),a=0,i=n.length;a<i;a++){var o=n[a];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function pe(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function oz(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function xt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else le(r,t,e)}function Wt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,t,e){if(r&&t)if(r.forEach&&r.forEach===tz)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function U(r,t,e){if(!r)return[];if(!t)return iS(r);if(r.map&&r.map===nz)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function kn(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function Fe(r,t,e){if(!r)return[];if(!t)return iS(r);if(r.filter&&r.filter===rz)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function di(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function De(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function sz(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(tS.call(arguments)))}}var q=sc&&ie(sc.bind)?sc.call.bind(sc.bind):sz;function xe(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(tS.call(arguments)))}}function $(r){return Array.isArray?Array.isArray(r):_l.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function j(r){return typeof r=="string"}function Mm(r){return _l.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function tw(r){return!!xL[_l.call(r)]}function dr(r){return!!wL[_l.call(r)]}function Qs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Md(r){return r.colorStops!=null}function lz(r){return r.image!=null}function uz(r){return _l.call(r)==="[object RegExp]"}function Ut(r){return r!==r}function tr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function Q(r,t){return r??t}function xr(r,t,e){return r??t??e}function iS(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return tS.apply(r,t)}function Dd(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Yt(r,t){if(!r)throw new Error(t)}function Vr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var CL="__ec_primitive__";function ih(r){r[CL]=!0}function ku(r){return r[CL]}var fz=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return De(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),TL=typeof Map=="function";function cz(){return TL?new Map:new fz}var vz=(function(){function r(t){var e=$(t);this.data=cz();var n=this;t instanceof r?t.each(a):t&&D(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return TL?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function K(r){return new vz(r)}function Ku(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function Id(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&G(e,t),e}function AL(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function J(r,t){return r.hasOwnProperty(t)}function ot(){}var Rv=180/Math.PI;/*! *****************************************************************************
16
+ Copyright (c) Microsoft Corporation.
17
+
18
+ Permission to use, copy, modify, and/or distribute this software for any
19
+ purpose with or without fee is hereby granted.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
22
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
23
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
24
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
+ PERFORMANCE OF THIS SOFTWARE.
28
+ ***************************************************************************** */var Dm=function(r,t){return Dm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Dm(r,t)};function Je(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Uo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Ht(r,t){return r[0]=t[0],r[1]=t[1],r}function na(r){return[r[0],r[1]]}function Xa(r,t,e){return r[0]=t,r[1]=e,r}function rw(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Im(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function io(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Lm(r){return Math.sqrt(hz(r))}function hz(r){return r[0]*r[0]+r[1]*r[1]}function Ev(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Sl(r,t){var e=Lm(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Pm(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ba=Pm;function dz(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var vo=dz;function kv(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function st(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function Va(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function za(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var is=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),pz=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new is(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new is(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new is(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new is(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new is(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new is(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Yr=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r})(),gz=Math.log(2);function Rm(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/gz);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*r[e][v]*Rm(r,t-1,f,u,a|d,i),h++)}return i[o]=c,c}function nw(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},a=Rm(e,8,0,0,0,n);if(a!==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)*Rm(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var oh="___zrEVENTSAVED",Dp=[];function yz(r,t,e,n,a){return Em(Dp,t,n,a,!0)&&Em(r,e,Dp[0],Dp[1])}function mz(r,t){r&&e(r),t&&e(t);function e(n){var a=n[oh];a&&(a.clearMarkers&&a.clearMarkers(),delete n[oh])}}function Em(r,t,e,n,a){if(t.getBoundingClientRect&&Le.domSupported&&!ML(t)){var i=t[oh]||(t[oh]={}),o=_z(t,i),s=Sz(o,i,a);if(s)return s(r,e,n),!0}return!1}function _z(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["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",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){D(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function Sz(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?nw(s,o):nw(o,s))}function ML(r){return r.nodeName.toUpperCase()==="CANVAS"}var xz=/([&<>"'])/g,wz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qt(r){return r==null?"":(r+"").replace(xz,function(t,e){return wz[e]})}var bz=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ip=[],Cz=Le.browser.firefox&&+Le.browser.version.split(".")[0]<39;function km(r,t,e,n){return e=e||{},n?aw(r,t,e):Cz&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):aw(r,t,e),e}function aw(r,t,e){if(Le.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(ML(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(Em(Ip,r,n,a)){e.zrX=Ip[0],e.zrY=Ip[1];return}}e.zrX=e.zrY=0}function oS(r){return r||window.event}function Lr(r,t,e){if(t=oS(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&km(r,o,t,e)}else{km(r,t,t,e);var i=Tz(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bz.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Tz(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function Om(r,t,e,n){r.addEventListener(t,e,n)}function Az(r,t,e,n){r.removeEventListener(t,e,n)}var fa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function iw(r){return r.which===2||r.which===3}var Mz=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=km(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Lp)if(Lp.hasOwnProperty(e)){var n=Lp[e](this._track,t);if(n)return n}},r})();function ow(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Dz(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Lp={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=ow(n)/ow(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Dz(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function nt(){return[1,0,0,1,0,0]}function xl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function xo(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function zr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function On(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function pi(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=a*c+s*f,r[1]=-a*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function sS(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Hr(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function Iz(r){var t=nt();return xo(t,r),t}var ue=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r})(),oo=Math.min,Es=Math.max,Nm=Math.abs,sw=["x","y"],Lz=["width","height"],_i=new ue,Si=new ue,xi=new ue,wi=new ue,mr=LL(),_u=mr.minTv,Bm=mr.maxTv,Ou=[0,0],se=(function(){function r(t,e,n,a){Pp(this,t,e,n,a)}return r.set=function(t,e,n,a,i){return a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),t.x=e,t.y=n,t.width=a,t.height=i,t},r.prototype.union=function(t){var e=oo(t.x,this.x),n=oo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Es(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Es(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){return DL(nt(),this,t)},r.prototype.intersect=function(t,e,n){return r.intersect(this,t,e,n)},r.intersect=function(t,e,n,a){n&&ue.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=Pp(Rz,t.x,t.y,t.width,t.height)),e instanceof r||(e=Pp(Ez,e.x,e.y,e.width,e.height));var s=!!n;mr.reset(a,s);var l=mr.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f<h||d<u||v<p||g<c);return(s||i)&&(Ou[0]=1/0,Ou[1]=0,lw(u,f,h,d,0,s,i,o),lw(c,v,p,g,1,s,i,o),s&&ue.copy(n,y?mr.useDir?mr.dirMinTv:_u:Bm)),y},r.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){el(this,t)},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(t){return new r(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,n){if(!n){t!==e&&el(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_i.x=xi.x=e.x,_i.y=wi.y=e.y,Si.x=wi.x=e.x+e.width,Si.y=xi.y=e.y+e.height,_i.transform(n),wi.transform(n),Si.transform(n),xi.transform(n),t.x=oo(_i.x,Si.x,xi.x,wi.x),t.y=oo(_i.y,Si.y,xi.y,wi.y);var l=Es(_i.x,Si.x,xi.x,wi.x),u=Es(_i.y,Si.y,xi.y,wi.y);t.width=l-t.x,t.height=u-t.y},r.calculateTransform=function(t,e,n){var a=n.width/e.width,i=n.height/e.height;return t=xl(t||[]),On(t,t,Xa(Rp,-e.x,-e.y)),sS(t,t,Xa(Rp,a,i)),On(t,t,Xa(Rp,n.x,n.y)),t},r})(),Ld=se.create,Pp=se.set,el=se.copy,DL=se.calculateTransform,IL=se.applyTransform,Pz=se.contain,Rz=new se(0,0,0,0),Ez=new se(0,0,0,0),Rp=[];function lw(r,t,e,n,a,i,o,s){var l=Nm(t-e),u=Nm(n-r),f=oo(l,u),c=sw[a],v=sw[1-a],h=Lz[a];t<e||n<r?l<u?(i&&(Bm[c]=-l),s&&(o[c]=t,o[h]=0)):(i&&(Bm[c]=u),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=Es(r,e),o[h]=oo(t,n)-o[c]),i&&(f<Ou[0]||mr.useDir)&&(Ou[0]=oo(f,Ou[0]),(l<u||!mr.bidirectional)&&(_u[c]=l,_u[v]=0,mr.useDir&&mr.calcDirMTV()),(l>=u||!mr.bidirectional)&&(_u[c]=-u,_u[v]=0,mr.useDir&&mr.calcDirMTV())))}function LL(){var r=0,t=new ue,e=new ue,n={minTv:new ue,maxTv:new ue,useDir:!1,dirMinTv:new ue,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=Es(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),e.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,a(e.x)&&a(e.y)){o.set(0,0);return}(n.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function a(i){return Nm(i)<1e-10}return n}var PL="silent";function kz(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Oz}}function Oz(){fa(this.event)}var Nz=(function(r){Je(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Yr),Vl=(function(){function r(t,e){this.x=t,this.y=e}return r})(),Bz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ep=new se(0,0,0,0),RL=(function(r){Je(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Vl(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new Nz,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new pz(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(Bz,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=EL(this,n,a),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 Vl(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Vl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=kz(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new Vl(e,n);if(uw(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new se(e-u,n-u,l,l),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ep.copy(v.getBoundingRect()),v.transform&&Ep.applyTransform(v.transform),Ep.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(uw(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new Mz);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Vl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t})(Yr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){RL.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=EL(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ba(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function Vz(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?PL:!0}return!1}function uw(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Vz(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==PL)){t.target=o;break}}}function EL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var kL=32,zl=7;function zz(r){for(var t=0;r>=kL;)t|=r&1,r>>=1;return r+t}function fw(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;Fz(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function Fz(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function cw(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-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 kp(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Op(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function Gz(r,t){var e=zl,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=Op(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=kp(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):v(d,p,g,y)))}function c(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,w,b,T;;){w=0,b=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],b++,w=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],w++,b=0,--d===1){T=!0;break}while((w|b)<x);if(T)break;do{if(w=Op(r[_],o,m,d,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=o[m+y];if(S+=w,m+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(b=kp(o[m],r,_,g,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(w>=zl||b>=zl);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,w=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,w=S+1,x=m+1,y=d-1;y>=0;y--)r[w+y]=r[x+y];r[S]=o[_];return}for(var b=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<b);if(A)break;do{if(T=d-Op(o[_],r,h,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,w=S+1,x=m+1,y=T-1;y>=0;y--)r[w+y]=r[x+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-kp(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,w=S+1,x=_+1,y=0;y<C;y++)r[w+y]=o[x+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}b--}while(T>=zl||C>=zl);if(A)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,w=S+1,x=m+1,y=d-1;y>=0;y--)r[w+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ov(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<kL){i=fw(r,e,n,t),cw(r,e,n,e+i,t);return}var o=Gz(r,t),s=zz(a);do{if(i=fw(r,e,n,t),i<s){var l=a;l>s&&(l=s),cw(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var cr=1,Su=2,Is=4,vw=!1;function Np(){vw||(vw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hw(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Hz=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hw}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Ov(n,hw)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),v=0;v<c.length;v++){var h=c[v];t.__dirty&&(h.__dirty|=cr),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Np(),d.z=0),isNaN(d.z2)&&(Np(),d.z2=0),isNaN(d.zlevel)&&(Np(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var a=pe(this._roots,t);a>=0&&this._roots.splice(a,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})(),sh;sh=Le.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Nu={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 t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Nu.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?Nu.bounceIn(r*2)*.5:Nu.bounceOut(r*2-1)*.5+.5}},lc=Math.pow,ja=Math.sqrt,lh=1e-8,OL=1e-4,dw=ja(3),uc=1/3,Sn=Uo(),kr=Uo(),Gs=Uo();function Fa(r){return r>-lh&&r<lh}function NL(r){return r>lh||r<-lh}function Ct(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function pw(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function uh(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Fa(f)&&Fa(c))if(Fa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Fa(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=ja(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-lc(-_,uc):_=lc(_,uc),S<0?S=-lc(-S,uc):S=lc(S,uc);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*c)/(2*ja(f*f*f)),w=Math.acos(x)/3,b=ja(f),T=Math.cos(w),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+dw*Math.sin(w)))/(3*o),C=(-s+b*(T-dw*Math.sin(w)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function BL(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Fa(o)){if(NL(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Fa(f))a[0]=-i/(2*o);else if(f>0){var c=ja(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function ai(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function VL(r,t,e,n,a,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;Sn[0]=l,Sn[1]=u;for(var m=0;m<1;m+=.05)kr[0]=Ct(r,e,a,o,m),kr[1]=Ct(t,n,i,s,m),g=vo(Sn,kr),g<h&&(c=m,h=g);h=1/0;for(var _=0;_<32&&!(v<OL);_++)d=c-v,p=c+v,kr[0]=Ct(r,e,a,o,d),kr[1]=Ct(t,n,i,s,d),g=vo(kr,Sn),d>=0&&g<h?(c=d,h=g):(Gs[0]=Ct(r,e,a,o,p),Gs[1]=Ct(t,n,i,s,p),y=vo(Gs,Sn),p<=1&&y<h?(c=p,h=y):v*=.5);return f&&(f[0]=Ct(r,e,a,o,c),f[1]=Ct(t,n,i,s,c)),ja(h)}function $z(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ct(r,e,a,o,d),g=Ct(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Lt(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function Vm(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Uz(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Fa(i)){if(NL(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Fa(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=ja(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function zL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ju(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function FL(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;Sn[0]=o,Sn[1]=s;for(var v=0;v<1;v+=.05){kr[0]=Lt(r,e,a,v),kr[1]=Lt(t,n,i,v);var h=vo(Sn,kr);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<OL);d++){var p=u-f,g=u+f;kr[0]=Lt(r,e,a,p),kr[1]=Lt(t,n,i,p);var h=vo(kr,Sn);if(p>=0&&h<c)u=p,c=h;else{Gs[0]=Lt(r,e,a,g),Gs[1]=Lt(t,n,i,g);var y=vo(Gs,Sn);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Lt(r,e,a,u),l[1]=Lt(t,n,i,u)),ja(c)}function Wz(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=Lt(r,e,a,v),d=Lt(t,n,i,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var Yz=/cubic-bezier\(([0-9,\.e ]+)\)/;function lS(r){var t=r&&Yz.exec(r);if(t){var e=t[1].split(","),n=+Vr(e[0]),a=+Vr(e[1]),i=+Vr(e[2]),o=+Vr(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:uh(0,n,i,1,l,s)&&Ct(0,a,o,1,s[0])}}}var Xz=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ot,this.ondestroy=t.ondestroy||ot,this.onrestart=t.onrestart||ot,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;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=a%n;this._startTime=t-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(t){this.easing=t,this.easingFunc=ie(t)?t:Nu[t]||lS(t)},r})(),GL=(function(){function r(t){this.value=t}return r})(),jz=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new GL(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),tl=(function(){function r(t){this._list=new jz,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new GL(e),s.key=t,n.insertEntry(s),a[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),gw={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 Jr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Zz(r){return r=Math.round(r),r<0?0:r>360?360:r}function Qu(r){return r<0?0:r>1?1:r}function Bp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Jr(parseFloat(t)/100*255):Jr(parseInt(t,10))}function Za(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Qu(parseFloat(t)/100):Qu(parseFloat(t))}function Vp(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ga(r,t,e){return r+(t-r)*e}function Dr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function zm(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var HL=new tl(20),fc=null;function os(r,t){fc&&zm(fc,t),fc=HL.put(r,fc||t.slice())}function hr(r,t){if(r){t=t||[];var e=HL.get(r);if(e)return zm(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in gw)return zm(t,gw[n]),os(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Dr(t,0,0,0,1);return}return Dr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),os(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Dr(t,0,0,0,1);return}return Dr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),os(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Dr(t,+u[0],+u[1],+u[2],1):Dr(t,0,0,0,1);f=Za(u.pop());case"rgb":if(u.length>=3)return Dr(t,Bp(u[0]),Bp(u[1]),Bp(u[2]),u.length===3?f:Za(u[3])),os(r,t),t;Dr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Dr(t,0,0,0,1);return}return u[3]=Za(u[3]),Fm(u,t),os(r,t),t;case"hsl":if(u.length!==3){Dr(t,0,0,0,1);return}return Fm(u,t),os(r,t),t;default:return}}Dr(t,0,0,0,1)}}function Fm(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Za(r[1]),a=Za(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Dr(t,Jr(Vp(o,i,e+1/3)*255),Jr(Vp(o,i,e)*255),Jr(Vp(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function qz(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,v=((i-n)/6+o/2)/o;t===i?l=v-c:e===i?l=1/3+f-v:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Gm(r,t){var e=hr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return An(e,e.length===4?"rgba":"rgb")}}function zp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=Jr(Ga(o[0],s[0],l)),e[1]=Jr(Ga(o[1],s[1],l)),e[2]=Jr(Ga(o[2],s[2],l)),e[3]=Qu(Ga(o[3],s[3],l)),e}}function Kz(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=hr(t[a]),s=hr(t[i]),l=n-a,u=An([Jr(Ga(o[0],s[0],l)),Jr(Ga(o[1],s[1],l)),Jr(Ga(o[2],s[2],l)),Qu(Ga(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function qa(r,t,e,n){var a=hr(r);if(r)return a=qz(a),t!=null&&(a[0]=Zz(ie(t)?t(a[0]):t)),e!=null&&(a[1]=Za(ie(e)?e(a[1]):e)),n!=null&&(a[2]=Za(ie(n)?n(a[2]):n)),An(Fm(a),"rgba")}function fh(r,t){var e=hr(r);if(e&&t!=null)return e[3]=Qu(t),An(e,"rgba")}function An(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function ch(r,t){var e=hr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var yw=new tl(100);function Hm(r){if(j(r)){var t=yw.get(r);return t||(t=Gm(r,-.1),yw.put(r,t)),t}else if(Md(r)){var e=G({},r);return e.colorStops=U(r.colorStops,function(n){return{offset:n.offset,color:Gm(n.color,-.1)}}),e}return r}var vh=Math.round;function ef(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=hr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var mw=1e-4;function Ha(r){return r<mw&&r>-mw}function cc(r){return vh(r*1e3)/1e3}function $m(r){return vh(r*1e4)/1e4}function Jz(r){return"matrix("+cc(r[0])+","+cc(r[1])+","+cc(r[2])+","+cc(r[3])+","+$m(r[4])+","+$m(r[5])+")"}var Qz={left:"start",right:"end",center:"middle",middle:"middle"};function eF(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function tF(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function rF(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function $L(r){return r&&!!r.image}function nF(r){return r&&!!r.svgElement}function uS(r){return $L(r)||nF(r)}function UL(r){return r.type==="linear"}function WL(r){return r.type==="radial"}function YL(r){return r&&(r.type==="linear"||r.type==="radial")}function Pd(r){return"url(#"+r+")"}function XL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function jL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Rv,a=Q(r.scaleX,1),i=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+vh(o*Rv)+"deg, "+vh(s*Rv)+"deg)"),l.join(" ")}var aF=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})(),Um=Array.prototype.slice;function Kn(r,t,e){return(t-r)*e+r}function Fp(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Kn(t[i],e[i],n);return r}function iF(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Kn(t[o][s],e[o][s],n)}return r}function vc(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function _w(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function oF(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function sF(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(e===1?a[l]:Um.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Bu(r){if(Wt(r)){var t=r.length;if(Wt(r[0])){for(var e=[],n=0;n<t;n++)e.push(Um.call(r[n]));return e}return Um.call(r)}return r}function Nv(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 lF(r){return Wt(r&&r[0])?2:1}var hc=0,Bv=1,ZL=2,xu=3,Wm=4,Ym=5,Sw=6;function xw(r){return r===Wm||r===Ym}function dc(r){return r===Bv||r===ZL}var Fl=[0,0,0,0],uF=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Sw,l=e;if(Wt(e)){var u=lF(e);s=u,(u===1&&!Ee(e[0])||u===2&&!Ee(e[0][0]))&&(o=!0)}else if(Ee(e)&&!Ut(e))s=hc;else if(j(e))if(!isNaN(+e))s=hc;else{var f=hr(e);f&&(l=f,s=xu)}else if(Md(e)){var c=G({},l);c.colorStops=U(e.colorStops,function(h){return{offset:h.offset,color:hr(h.color)}}),UL(e)?s=Wm:WL(e)&&(s=Ym),l=c}i===0?this.valType=s:(s!==this.valType||s===Sw)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=ie(n)?n:Nu[n]||lS(n)),a.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=dc(a),u=xw(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==i-1?sF(v,h,a):u&&oF(v.colorStops,h.colorStops))}if(!s&&a!==Ym&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<i;f++)a===hc?n[f].additiveValue=n[f].value-d:a===xu?n[f].additiveValue=vc([],n[f].value,d,-1):dc(a)&&(n[f].additiveValue=a===Bv?vc([],n[f].value,d,-1):_w([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===xu,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:v((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Fl:t[l];if((dc(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(dc(i))i===Bv?Fp(m,h[a],d[a],y):iF(m,h[a],d[a],y);else if(xw(i)){var _=h[a],S=d[a],x=i===Wm;t[l]={type:x?"linear":"radial",x:Kn(_.x,S.x,y),y:Kn(_.y,S.y,y),colorStops:U(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:Kn(b.offset,C.offset,y),color:Nv(Fp([],b.color,C.color,y))}}),global:S.global},x?(t[l].x2=Kn(_.x2,S.x2,y),t[l].y2=Kn(_.y2,S.y2,y)):t[l].r=Kn(_.r,S.r,y)}else if(u)Fp(m,h[a],d[a],y),n||(t[l]=Nv(m));else{var w=Kn(h[a],d[a],y);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===hc?t[n]=t[n]+a:e===xu?(hr(t[n],Fl),vc(Fl,Fl,a,1),t[n]=Nv(Fl)):e===Bv?vc(t[n],t[n],a,1):e===ZL&&_w(t[n],t[n],a,1)},r})(),fS=(function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){nS("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}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(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,De(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new uF(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===xu&&u&&(u=Nv(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Bu(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Bu(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Xz({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,h);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,h)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return U(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Bu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||De(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function ks(){return new Date().getTime()}var fF=(function(r){Je(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ks()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(sh(n),!e._paused&&e.update())}sh(n)},t.prototype.start=function(){this._running||(this._time=ks(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ks(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ks()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new fS(e,n.loop);return this.addAnimator(a),a},t})(Yr),cF=300,Gp=Le.domSupported,Hp=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=U(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}})(),ww={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bw=!1;function Xm(r){var t=r.pointerType;return t==="pen"||t==="touch"}function vF(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 $p(r){r&&(r.zrByTouch=!0)}function hF(r,t){return Lr(r.dom,new dF(r,t),!0)}function qL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var dF=(function(){function r(t,e){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Zr={mousedown:function(r){r=Lr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Lr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Lr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Lr(this.dom,r);var t=r.toElement||r.relatedTarget;qL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){bw=!0,r=Lr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){bw||(r=Lr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lr(this.dom,r),$p(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Zr.mousemove.call(this,r),Zr.mousedown.call(this,r)},touchmove:function(r){r=Lr(this.dom,r),$p(r),this.handler.processGesture(r,"change"),Zr.mousemove.call(this,r)},touchend:function(r){r=Lr(this.dom,r),$p(r),this.handler.processGesture(r,"end"),Zr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<cF&&Zr.click.call(this,r)},pointerdown:function(r){Zr.mousedown.call(this,r)},pointermove:function(r){Xm(r)||Zr.mousemove.call(this,r)},pointerup:function(r){Zr.mouseup.call(this,r)},pointerout:function(r){Xm(r)||Zr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Zr[r]=function(t){t=Lr(this.dom,t),this.trigger(r,t)}});var jm={pointermove:function(r){Xm(r)||jm.mousemove.call(this,r)},pointerup:function(r){jm.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function pF(r,t){var e=t.domHandlers;Le.pointerEventsSupported?D(Hp.pointer,function(n){Vv(t,n,function(a){e[n].call(r,a)})}):(Le.touchEventsSupported&&D(Hp.touch,function(n){Vv(t,n,function(a){e[n].call(r,a),vF(t)})}),D(Hp.mouse,function(n){Vv(t,n,function(a){a=oS(a),t.touching||e[n].call(r,a)})}))}function gF(r,t){Le.pointerEventsSupported?D(ww.pointer,e):Le.touchEventsSupported||D(ww.mouse,e);function e(n){function a(i){i=oS(i),qL(r,i.target)||(i=hF(r,i),t.domHandlers[n].call(r,i))}Vv(t,n,a,{capture:!0})}}function Vv(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Om(r.domTarget,t,e,n)}function Up(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Az(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Cw=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),yF=(function(r){Je(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Cw(e,Zr),Gp&&(a._globalHandlerScope=new Cw(document,jm)),pF(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Up(this._localHandlerScope),Gp&&Up(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Gp&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?gF(this,n):Up(n)}},t})(Yr),KL=1;Le.hasGlobalWindow&&(KL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var hh=KL,Zm=.4,qm="#333",Km="#ccc",mF="#eee",Tw=xl,Aw=5e-5;function bi(r){return r>Aw||r<-Aw}var Ci=[],ss=[],Wp=nt(),Yp=Math.abs,Un=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return ii(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return bi(this.rotation)||bi(this.x)||bi(this.y)||bi(this.scaleX-1)||bi(this.scaleY-1)||bi(this.skewX)||bi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Tw(n),this.invTransform=null);return}n=n||nt(),e?this.getLocalTransform(n):Tw(n),t&&(e?zr(n,t,n):xo(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||nt(),Hr(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ci);var n=Ci[0]<0?-1:1,a=Ci[1]<0?-1:1,i=((Ci[0]-n)*e+n)/Ci[0]||0,o=((Ci[1]-a)*e+a)/Ci[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||nt(),zr(ss,t.invTransform,e),e=ss);var n=this.originX,a=this.originY;(n||a)&&(Wp[4]=n,Wp[5]=a,zr(ss,e,Wp),ss[4]-=n,ss[5]-=a,e=ss),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&st(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&st(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Yp(t[0]-1)>1e-10&&Yp(t[3]-1)>1e-10?Math.sqrt(Yp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Nn(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;e[4]=-d*i-v*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=v*o,u&&pi(e,e,u),e[4]+=n+f,e[5]+=a+c,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),ii=Un.getLocalTransform;function Hs(){return new Un}var ca=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nn(r,t){return iz(r,t,ca)}function Mn(r){pc||(pc=new tl(100)),r=r||ua;var t=pc.get(r);return t||(t={font:r,strWidthCache:new tl(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:rr.measureText("国",r).width,asciiCharWidth:rr.measureText("a",r).width},pc.put(r,t)),t}var pc;function _F(r){if(!(Xp>=Mw)){r=r||ua;for(var t=[],e=+new Date,n=0;n<=127;n++)t[n]=rr.measureText(String.fromCharCode(n),r).width;var a=+new Date-e;return a>16?Xp=Mw:a>2&&Xp++,t}}var Xp=0,Mw=5;function JL(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=_F(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Dn(r,t){var e=r.strWidthCache,n=e.get(t);return n==null&&(n=rr.measureText(t,r.font).width,e.put(t,n)),n}function Dw(r,t,e,n){var a=Dn(Mn(t),r),i=Bf(t),o=rl(0,a,e),s=ho(0,i,n),l=new se(o,s,a,i);return l}function Rd(r,t,e,n){var a=((r||"")+"").split(`
29
+ `),i=a.length;if(i===1)return Dw(a[0],t,e,n);for(var o=new se(0,0,0,0),s=0;s<a.length;s++){var l=Dw(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function rl(r,t,e,n){return e==="right"?n?r+=t:r-=t:e==="center"&&(n?r+=t/2:r-=t/2),r}function ho(r,t,e,n){return e==="middle"?n?r+=t/2:r-=t/2:e==="bottom"&&(n?r+=t:r-=t),r}function Bf(r){return Mn(r).stWideCharWidth}function Bn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function dh(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=Bn(n[0],e.width),u+=Bn(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var jp="__zr_normal__",Zp=ca.concat(["ignore"]),SF=kn(ca,function(r,t){return r[t]=!0,r},{ignore:!1}),ls={},xF=new se(0,0,0,0),gc=[],zv=0,Ed=1,kd=(function(){function r(t){this.id=bL(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,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(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(e);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=xF,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ls,n,v):dh(ls,n,v),i.x=ls.x,i.y=ls.y,o=ls.align,s=ls.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=Bn(h[0],v.width),p=Bn(h[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new se(0,0,0,0);i.getLocalTransform(gc),Hr(gc,gc),se.copy(m,v),m.applyTransform(gc)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,x=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,x=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,x=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||w!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=w,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=cr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Km:qm},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&hr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,An(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},G(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(fe(t))for(var n=t,a=De(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==jp)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Zp)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(jp,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===jp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){nS("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,c=Iw(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(t,u,this._normalState,e,Pw(this,n,l),l);var v=this._textGuide;return f&&f.useState(t,e,n,!!c),v&&v.useState(t,e,n,!!c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=zv,this.__dirty&=~cr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],v=this._textContent,h=Iw(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,Pw(this,e,p),p);var g=this._textGuide;v&&v.useStates(t,e,!!h),g&&g.useStates(t,e,!!h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=zv,this.__dirty&=~cr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=pe(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=pe(a,t),o=pe(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];G(e,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){if(this.__inHover!==Ed){var s=!(e&&a);e&&e.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Zp.length;f++){var c=Zp[f],v=i&&SF[c];e&&e[c]!=null?v?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)}},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Un,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=cr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var a=t?this[t]:this,i=new fS(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=pe(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){qp(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){qp(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=qp(this,e,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=zv,t.__dirty=cr;function e(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();xt(kd,Yr);xt(kd,Un);function qp(r,t,e,n,a){e=e||{};var i=[];QL(r,"",r,t,e,n,i,a);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),e.force&&h.duration(e.duration),h.start(e.easing)}return i}function Kp(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function wF(r){return Wt(r[0])}function bF(r,t,e){if(Wt(t[e]))if(Wt(r[e])||(r[e]=[]),dr(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Kp(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(wF(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Kp(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Kp(i,a,o);i.length=a.length}else r[e]=t[e]}function CF(r,t){return r===t||Wt(r)&&Wt(t)&&TF(r,t)}function TF(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function QL(r,t,e,n,a,i,o,s){for(var l=De(n),u=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!fe(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(h||i[y]))if(fe(m)&&!Wt(m)&&!Md(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}QL(r,y,e[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var w=x.stopTracks(p);if(w){var b=pe(d,x);d.splice(b,1)}}}if(a.force||(p=Fe(p,function(M){return!CF(n[M],e[M])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=n[y]:e[y]=n[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=Bu(e[y]),bF(e,n,y)}}var x=new fS(e,!1,!1,c?Fe(d,function(L){return L.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),v&&T&&x.whenWithKeys(0,T,p),A&&x.whenWithKeys(0,A,p),x.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}function Iw(r,t,e,n){return!(e&&e.hoverLayer||n)||Lw(r)||t&&Lw(t)?zv:Ed}function Lw(r){return r.type==="text"||r.type==="tspan"}function Pw(r,t,e){return!t&&!r.__inHover&&e&&e.duration>0}var oe=(function(r){Je(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=pe(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=pe(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new se(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(se.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(kd);oe.prototype.type="group";/*!
30
+ * ZRender, a high performance 2d drawing library.
31
+ *
32
+ * Copyright (c) 2013, Baidu Inc.
33
+ * All rights reserved.
34
+ *
35
+ * LICENSE
36
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
37
+ */var Fv={},e2={};function AF(r){delete e2[r]}function MF(r){if(!r)return!1;if(typeof r=="string")return ch(r,1)<Zm;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=ch(t[a].color,1);return e/=n,e<Zm}return!1}var DF=(function(){function r(t,e,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Hz,o=n.renderer||"canvas";Fv[o]||(o=De(Fv)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Fv[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Le.node&&!Le.worker&&!l?new yF(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Le.touchEventsSupported:!!f,v=44,h;c&&(h=Q(n.pointerSize,v)),this.handler=new RL(i,s,u,s.root,h),this.animation=new fF({stage:{update:l?null:function(){return a._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=MF(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(t){var e,n=ks(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(e=!0,this._refresh({animUpdate:t,refresh:a,refreshHover:i}));var o=ks();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof oe&&t[e].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,AF(this.id))},r})();function Rw(r,t){var e=new DF(bL(),r,t);return e2[e.id]=e,e}function IF(r,t){Fv[r]=t}var Jm;function LF(r){if(typeof Jm=="function")return Jm(r)}function PF(r){Jm=r}var Ew=1e-4,t2=20,RF=14;function EF(r){return r.replace(/^\s+|\s+$/g,"")}var He=Math.min,we=Math.max,it=Math.abs,va=Math.round,nn=Math.floor,Wo=Math.ceil,Yo=Math.pow,tf=Math.log,Qm=Math.LN10,ph=Math.PI,kF=Math.random;function Ve(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var Z=OF;function OF(r,t,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 gh(r,t,e)}function gh(r,t,e){return j(r)?r2(r)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function NF(r){return j(r)&&r2(r)}function r2(r){return!!EF(r).match(/%$/)}function ke(r,t,e){return isNaN(t)?e?""+r:+r:(t=He(we(0,t),t2),r=(+r).toFixed(t),e?r:+r)}function Nt(r){return r.sort(function(t,e){return t-e}),r}function ta(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(va(r*t)/t===r)return e}return BF(r)}function BF(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return we(0,o-n)}function cS(r,t,e){var n=it(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var a=tf(2*it(e||1)*it(n))/Qm,i=tf(it(t))/Qm,o=we(0,Wo(-a+i));return isFinite(o)||(o=NaN),o}function VF(r,t){var e=kn(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Yo(10,t),a=U(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,o=U(a,function(h){return nn(h)}),s=kn(o,function(h,d){return h+d},0),l=U(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return U(o,function(h){return h/n})}function ji(r,t){var e=we(ta(r),ta(t)),n=r+t;return e>t2?n:ke(n,e)}var yh=Yo(2,53)-1;function n2(r){var t=ph*2;return(r%t+t)%t}function nl(r){return r>-Ew&&r<Ew}var zF=/^(?:(\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 Xo(r){if(r instanceof Date)return r;if(j(r)){var t=zF.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(va(r))}function a2(r){return Yo(10,vS(r))}function vS(r){if(r===0)return 0;var t=nn(tf(r)/Qm);return r/Yo(10,t)>=10&&t++,t}var i2=2;function hS(r,t){var e=vS(r),n=Yo(10,e),a=r/n,i;return t===i2?i=1:t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,ke(r,-e)}function Jp(r,t){var e=(r.length-1)*t+1,n=nn(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function kw(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-e),t=a[o],e=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ha(r){var t=parseFloat(r);return t==r&&(t!==0||!j(r)||r.indexOf("x")<=0)?t:NaN}function o2(r){return!isNaN(ha(r))}function dS(){return va(kF()*9)}function s2(r,t){return t===0?r:s2(t,r%t)}function Ow(r,t){return r==null?t:t==null?r:r*t/s2(r,t)}function $r(r){return r!=null&&isFinite(r)}var FF="[ECharts] ",GF=typeof console<"u"&&console.warn&&console.log;function HF(r,t,e){GF&&console[r](FF+t)}function l2(r,t){HF("error",r)}function ze(r){throw new Error(r)}function Nw(r,t,e){return(t-r)*e+r}var u2="series\0",f2="\0_ec_\0";function Ye(r){return r instanceof Array?r:r==null?[]:[r]}function wo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Bw=["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 wl(r){return fe(r)&&!$(r)&&!(r instanceof Date)?r.value:r}function $F(r){return fe(r)&&!(r instanceof Array)}function c2(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=K();D(t,function(l,u){if(!fe(l)){t[u]=null;return}});var s=UF(r,o,e);return(n||a)&&WF(s,r,o,t),n&&YF(s,t),n||a?XF(s,t,a):i&&jF(s,t),ZF(s),s}function UF(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||rf(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function WF(r,t,e,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=Vu(a.id),s=e.get(o);if(s!=null){var l=r[s];Yt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function YF(r,t){D(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!rf(e)&&!rf(i)&&v2("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function XF(r,t,e){D(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||rf(a.existing)||a.existing&&n.id!=null&&!v2("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function jF(r,t){D(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function ZF(r){var t=K();D(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),D(r,function(e){var n=e.newOption;Yt(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),D(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(fe(i)){if(o.name=i.name!=null?Vu(i.name):a?a.name:u2+n,a)o.id=Vu(a.id);else if(i.id!=null)o.id=Vu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function v2(r,t,e){var n=mt(t[r],null),a=mt(e[r],null);return n!=null&&a!=null&&n===a}function Vu(r){return mt(r,"")}function mt(r,t){return r==null?t:j(r)?r:Ee(r)||Mm(r)?r+"":t}function pS(r){var t=r.name;return!!(t&&t.indexOf(u2))}function rf(r){return r&&r.id!=null&&Vu(r.id).indexOf(f2)===0}function qF(r){return f2+r}function KF(r,t,e){D(r,function(n){var a=n.newOption;fe(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=JF(t,a,n.existing,e))})}function JF(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function QF(r,t){var e={},n={};return a(r||[],e),a(t||[],n,e),[i(e),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=mt(o[u].seriesId,null);if(c==null)return;for(var v=Ye(o[u].dataIndex),h=l&&l[c],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function bo(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return $(t.dataIndex)?U(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return $(t.name)?U(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function me(){var r="__ec_inner_"+e5++;return function(t){return t[r]||(t[r]={})}}var e5=dS();function $s(r,t,e){var n=gS(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=bl(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function gS(r,t){var e;if(j(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=K(),i={},o=!1;return D(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&pe(t.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var at={useDefault:!0,enableAll:!1,enableNone:!1},t5={useDefault:!1,enableAll:!0,enableNone:!0};function bl(r,t,e,n){n=n||at;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s}function yS(r,t,e){var n={};n[t+"Id"]=r[t+"Id"],n[t+"Index"]=r[t+"Index"],n[t+"Name"]=r[t+"Name"];var a={mainType:t,query:n};return e&&(a.subType=e),a}function h2(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function r5(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function n5(r){return r==="auto"?Le.domSupported?"html":"richText":r||"html"}function e0(r,t){var e=K(),n=[];return D(r,function(a){var i=t(a);(e.get(i)||(n.push(i),e.set(i,[]))).push(a)}),{keys:n,buckets:e}}function d2(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Ee(n)){var o=Nw(e||0,n,a);return ke(o,i?Math.max(ta(e||0),ta(n)):t)}else{if(j(n))return a<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=r.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=Nw(h,d,a);s[c]=ke(o,i?Math.max(ta(h),ta(d)):t)}}return s}}var Ka=(function(){function r(){}return r.prototype.reset=function(t,e,n,a){return this._list=t,this._step=a=a||1,this._idx=e,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function Qp(r){r.option=r.parentModel=r.ecModel=null}function Ot(){return[1/0,-1/0]}function t0(r,t){da(t)&&(t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t))}function p2(r,t){da(t)&&t<r[0]&&(r[0]=t)}function g2(r,t){da(t)&&t>r[1]&&(r[1]=t)}function a5(r,t){Co(t[0],t[1])&&(t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1]))}function da(r){return r!=null&&isFinite(r)}function Co(r,t){return da(r)&&da(t)&&r<=t}function i5(r){var t=r[1]-r[0];return isFinite(t)&&t>=0}function Gv(r){Co(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Cl(){var r="__ec_once_"+o5++;return function(t,e){J(t,r)||(t[r]=1,e())}}var o5=dS();function Od(r,t,e){var n=K(),a=0;D(r,function(i){var o=t(i),s=n.get(o)||0;e&&e(i,s),!s&&!e&&(r[a++]=i),n.set(o,s+1)}),e||(r.length=a)}function s5(r){return r.value+""}function l5(r){return r+""}function In(r,t){return Q(t,!0)?r.seriesIndex+2:0}function y2(r,t,e){var n=r.getData().count();return{progressiveRender:e.progressiveEnabled&&t.incrementalPrepareRender&&n>=e.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function wt(r,t){return{seriesType:r,overallReset:t}}function Vf(r){return{overallReset:r}}var u5=".",Ti="___EC__COMPONENT__CONTAINER___",m2="___EC__EXTENDED_CLASS___";function wn(r){var t={main:"",sub:""};if(r){var e=r.split(u5);t.main=e[0]||"",t.sub=e[1]||""}return t}function f5(r){Yt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function c5(r){return!!(r&&r[m2])}function mS(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return v5(n)?a=(function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(e.$constructor||n).apply(this,arguments)},oz(a,this)),G(a.prototype,e),a[m2]=!0,a.extend=this.extend,a.superCall=p5,a.superApply=g5,a.superClass=n,a}}function v5(r){return ie(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function _2(r,t){r.extend=t.extend}var h5=Math.round(Math.random()*10);function d5(r){var t=["__\0is_clz",h5++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function p5(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function g5(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Nd(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){f5(a),n.prototype.type=a;var i=wn(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Ti){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[Ti]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=wn(n),i=[],o=t[a.main];return o&&o[Ti]?D(o,function(s,l){l!==Ti&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=wn(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=wn(n),i=t[a.main];return i&&i[Ti]};function e(n){var a=t[n.main];return(!a||!a[Ti])&&(a=t[n.main]={},a[Ti]=!0),a}}function To(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&pe(a,l)>=0||i&&pe(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var y5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],m5=To(y5),_5=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return m5(this,t,e)},r})(),r0=new tl(50);function S5(r){if(typeof r=="string"){var t=r0.get(r);return t&&t.image}else return r}function _S(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=r0.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Bd(t)&&i.pending.push(o)):(t=rr.loadImage(r,Vw,Vw),t.__zrImageSrc=r,r0.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Vw(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Bd(r){return r&&r.width&&r.height}var eg=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function x5(r,t,e,n,a,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
38
+ `);i=S2(e,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)x2(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
39
+ `),r.isTruncated=s}function S2(r,t,e,n){n=n||{};var a=G({},n);e=Q(e,"..."),a.maxIterations=Q(n.maxIterations,2);var i=a.minChar=Q(n.minChar,0),o=a.fontMeasureInfo=Mn(t),s=o.asciiCharWidth;a.placeholder=Q(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Dn(o,e);return f>l&&(e="",f=0),l=r-f,a.ellipsis=e,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function x2(r,t,e){var n=e.containerWidth,a=e.contentWidth,i=e.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Dn(i,t);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?w5(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Dn(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function w5(r,t,e){for(var n=0,a=0,i=r.length;a<i&&n<t;a++)n+=JL(e,r.charCodeAt(a));return a}function b5(r,t,e,n){var a=SS(r),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=Bf(u),v=Q(t.lineHeight,c),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&e!=null&&(p=e-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?w2(a,t.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
40
+ `):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(a&&f&&p!=null)for(var S=S2(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},w=0;w<y.length;w++)x2(x,y[w],S),y[w]=x.textLine,d=d||x.isTruncated;for(var b=g,T=0,C=Mn(u),w=0;w<y.length;w++)T=Math.max(Dn(C,y[w]),T);p==null&&(p=T);var A=p;return b+=l,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:b,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var C5=(function(){function r(){}return r})(),zw=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),T5=(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 A5(r,t,e,n,a){var i=new T5,o=SS(r);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var v=t.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=eg.lastIndex=0,p;(p=eg.exec(o))!=null;){var g=p.index;g>d&&tg(i,o.substring(d,g),t,h),tg(i,p[2],t,h,p[1]),d=eg.lastIndex}d<o.length&&tg(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=v==="truncate",x=t.lineOverflow==="truncate",w={};function b(ye,Ne,ve){ye.width=Ne,ye.lineHeight=ve,m+=ve,_=Math.max(_,Ne)}e:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,M=0,L=0;L<C.tokens.length;L++){var I=C.tokens[L],P=I.styleName&&t.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,N=I.font=P.font||t.font;I.contentHeight=Bf(N);var O=Q(P.height,I.contentHeight);if(I.innerHeight=O,R&&(O+=R[0]+R[2]),I.height=O,I.lineHeight=xr(P.lineHeight,t.lineHeight,O),I.align=P&&P.align||a,I.verticalAlign=P&&P.verticalAlign||"middle",x&&c!=null&&m+I.lineHeight>c){var z=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),b(C,M,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<z;break e}var F=P.width,H=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")I.percentWidth=F,y.push(I),I.contentWidth=Dn(Mn(N),I.text);else{if(H){var W=P.backgroundColor,X=W&&W.image;X&&(X=S5(X),Bd(X)&&(I.width=Math.max(I.width,X.width*O/X.height)))}var Y=S&&f!=null?f-M:null;Y!=null&&Y<I.width?!H||Y<E?(I.text="",I.width=I.contentWidth=0):(x5(w,I.text,Y-E,N,t.ellipsis,{minChar:t.truncateMinChar}),I.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,I.width=I.contentWidth=Dn(Mn(N),I.text)):I.contentWidth=Dn(Mn(N),I.text)}I.width+=E,M+=I.width,P&&(A=Math.max(A,I.lineHeight))}b(C,M,A)}i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var I=y[T],ee=I.percentWidth;I.width=parseInt(ee,10)/100*i.width}return i}function tg(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Bn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
41
+ `),u=!0),n.accumWidth=d}else{var p=w2(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
42
+ `));for(var g=Mn(l),y=0;y<f.length;y++){var m=f[y],_=new C5;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:Dn(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new zw)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new zw([_]))}}function M5(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var D5=kn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function I5(r){return M5(r)?!!D5[r]:!0}function w2(r,t,e,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=Mn(t),v=0;v<r.length;v++){var h=r.charAt(v);if(h===`
43
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=JL(c,h.charCodeAt(0)),p=n?!1:!I5(h);if(i.length?f+d>e:a+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function Fw(r,t,e,n,a,i){if(r.baseX=e,r.baseY=n,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;se.set(Gw,rl(e,o,a),ho(n,s,i),o,s),se.intersect(t,Gw,null,Hw);var l=Hw.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=rl(l.x,l.width,a,!0),r.baseY=ho(l.y,l.height,i,!0)}}var Gw=new se(0,0,0,0),Hw={outIntersectRect:{},clamp:!0};function SS(r){return r!=null?r+="":r=""}function L5(r){var t=SS(r.text),e=r.font,n=Dn(Mn(e),t),a=Bf(e);return n0(r,n,a,null)}function n0(r,t,e,n){var a=new se(rl(r.x||0,t,r.textAlign),ho(r.y||0,e,r.textBaseline),t,e),i=n??(b2(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function b2(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var a0="__zr_style_"+Math.round(Math.random()*10),po={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Vd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};po[a0]=!0;var $w=["z","z2","invisible"],P5=["invisible"],Ur=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=De(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&R5(this,e,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){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},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(e,a,n):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new se(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:G(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Su,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Su)},t.prototype.styleUpdated=function(){this.__dirty&=~Su},t.prototype.createStyle=function(e){return Id(po,e)},t.prototype.useStyle=function(e){e[a0]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[a0]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,$w)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===Ed,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=De(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=De(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?P5:$w,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return G(e,n),e},t.prototype.getAnimationStyleProps=function(){return Vd},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=cr|Su})(),t})(kd),rg=new se(0,0,0,0),ng=new se(0,0,0,0);function R5(r,t,e){return rg.copy(r.getBoundingRect()),r.transform&&rg.applyTransform(r.transform),ng.width=t,ng.height=e,!rg.intersect(ng)}var ur=Math.min,fr=Math.max,ag=Math.sin,ig=Math.cos,Ai=Math.PI*2,yc=Uo(),mc=Uo(),_c=Uo();function zd(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=ur(a,n[0]),i=fr(i,n[0]),o=ur(o,n[1]),s=fr(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function Uw(r,t,e,n,a,i){a[0]=ur(r,e),a[1]=ur(t,n),i[0]=fr(r,e),i[1]=fr(t,n)}var Ww=[],Yw=[];function E5(r,t,e,n,a,i,o,s,l,u){var f=BL,c=Ct,v=f(r,e,a,o,Ww);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(r,e,a,o,Ww[h]);l[0]=ur(d,l[0]),u[0]=fr(d,u[0])}v=f(t,n,i,s,Yw);for(var h=0;h<v;h++){var p=c(t,n,i,s,Yw[h]);l[1]=ur(p,l[1]),u[1]=fr(p,u[1])}l[0]=ur(r,l[0]),u[0]=fr(r,u[0]),l[0]=ur(o,l[0]),u[0]=fr(o,u[0]),l[1]=ur(t,l[1]),u[1]=fr(t,u[1]),l[1]=ur(s,l[1]),u[1]=fr(s,u[1])}function k5(r,t,e,n,a,i,o,s){var l=zL,u=Lt,f=fr(ur(l(r,e,a),1),0),c=fr(ur(l(t,n,i),1),0),v=u(r,e,a,f),h=u(t,n,i,c);o[0]=ur(r,a,v),o[1]=ur(t,i,h),s[0]=fr(r,a,v),s[1]=fr(t,i,h)}function O5(r,t,e,n,a,i,o,s,l){var u=Va,f=za,c=Math.abs(a-i);if(c%Ai<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(yc[0]=ig(a)*e+r,yc[1]=ag(a)*n+t,mc[0]=ig(i)*e+r,mc[1]=ag(i)*n+t,u(s,yc,mc),f(l,yc,mc),a=a%Ai,a<0&&(a=a+Ai),i=i%Ai,i<0&&(i=i+Ai),a>i&&!o?i+=Ai:a<i&&o&&(a+=Ai),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(_c[0]=ig(h)*e+r,_c[1]=ag(h)*n+t,u(s,_c,s),f(l,_c,l))}var Xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Mi=[],Di=[],fn=[],Ca=[],cn=[],vn=[],og=Math.min,sg=Math.max,Ii=Math.cos,Li=Math.sin,Yn=Math.abs,i0=Math.PI,Ea=i0*2,lg=typeof Float32Array<"u",Gl=[];function ug(r){var t=Math.round(r/i0*1e8)/1e8;return t%2*i0}function Fd(r,t){var e=ug(r[0]);e<0&&(e+=Ea);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Ea?a=e+Ea:t&&e-a>=Ea?a=e-Ea:!t&&e>a?a=e+(Ea-ug(e-a)):t&&e<a&&(a=e-(Ea-ug(a-e))),r[0]=e,r[1]=a}var Vn=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(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(t,e,n){n=n||0,n>0&&(this._ux=Yn(n/hh/t)||0,this._uy=Yn(n/hh/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},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(t,e){return this._drawPendingPt(),this.addData(Xe.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Yn(t-this._xi),a=Yn(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Xe.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(Xe.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(Xe.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),Gl[0]=a,Gl[1]=i,Fd(Gl,o),a=Gl[0],i=Gl[1];var s=i-a;return this.addData(Xe.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=Ii(i)*n+t,this._yi=Li(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(Xe.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xe.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&lg&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,a=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(lg&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<e;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(t,e,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},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 t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,lg&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){fn[0]=fn[1]=cn[0]=cn[1]=Number.MAX_VALUE,Ca[0]=Ca[1]=vn[0]=vn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case Xe.M:e=a=t[o++],n=i=t[o++],cn[0]=a,cn[1]=i,vn[0]=a,vn[1]=i;break;case Xe.L:Uw(e,n,t[o],t[o+1],cn,vn),e=t[o++],n=t[o++];break;case Xe.C:E5(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],cn,vn),e=t[o++],n=t[o++];break;case Xe.Q:k5(e,n,t[o++],t[o++],t[o],t[o+1],cn,vn),e=t[o++],n=t[o++];break;case Xe.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(a=Ii(h)*c+u,i=Li(h)*v+f),O5(u,f,c,v,h,d,p,cn,vn),e=Ii(d)*c+u,n=Li(d)*v+f;break;case Xe.R:a=e=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Uw(a,i,a+g,i+y,cn,vn);break;case Xe.Z:e=a,n=i;break}Va(fn,fn,cn),za(Ca,Ca,vn)}return o===0&&(fn[0]=fn[1]=Ca[0]=Ca[1]=0),new se(fn[0],fn[1],Ca[0]-fn[0],Ca[1]-fn[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<e;){var h=t[v++],d=v===1;d&&(i=t[v],o=t[v+1],s=i,l=o);var p=-1;switch(h){case Xe.M:i=s=t[v++],o=l=t[v++];break;case Xe.L:{var g=t[v++],y=t[v++],m=g-i,_=y-o;(Yn(m)>n||Yn(_)>a||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Xe.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],w=t[v++],b=t[v++];p=$z(i,o,S,x,g,y,w,b,10),i=w,o=b;break}case Xe.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=Wz(i,o,S,x,g,y,10),i=g,o=y;break}case Xe.A:var T=t[v++],C=t[v++],A=t[v++],M=t[v++],L=t[v++],I=t[v++],P=I+L;v+=1,d&&(s=Ii(L)*A+T,l=Li(L)*M+C),p=sg(A,M)*og(Ea,Math.abs(I)),i=Ii(P)*A+T,o=Li(P)*M+C;break;case Xe.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case Xe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))e:for(var w=0;w<o;){var b=n[w++],T=w===1;switch(T&&(u=n[w],f=n[w+1],s=u,l=f),b!==Xe.L&&_>0&&(t.lineTo(S,x),_=0),b){case Xe.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case Xe.L:{c=n[w++],v=n[w++];var C=Yn(c-u),A=Yn(v-f);if(C>a||A>i){if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;t.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break e}g+=M}t.lineTo(c,v),u=c,f=v,_=0}else{var I=C*C+A*A;I>_&&(S=c,x=v,_=I)}break}case Xe.C:{var P=n[w++],R=n[w++],E=n[w++],N=n[w++],O=n[w++],z=n[w++];if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;ai(u,P,E,O,L,Mi),ai(f,R,N,z,L,Di),t.bezierCurveTo(Mi[1],Di[1],Mi[2],Di[2],Mi[3],Di[3]);break e}g+=M}t.bezierCurveTo(P,R,E,N,O,z),u=O,f=z;break}case Xe.Q:{var P=n[w++],R=n[w++],E=n[w++],N=n[w++];if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;Ju(u,P,E,L,Mi),Ju(f,R,N,L,Di),t.quadraticCurveTo(Mi[1],Di[1],Mi[2],Di[2]);break e}g+=M}t.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Xe.A:var F=n[w++],H=n[w++],W=n[w++],X=n[w++],Y=n[w++],ee=n[w++],ye=n[w++],Ne=!n[w++],ve=W>X?W:X,te=Yn(W-X)>.001,ge=Y+ee,re=!1;if(h){var M=d[y++];g+M>m&&(ge=Y+ee*(m-g)/M,re=!0),g+=M}if(te&&t.ellipse?t.ellipse(F,H,W,X,ye,Y,ge,Ne):t.arc(F,H,ve,Y,ge,Ne),re)break e;T&&(s=Ii(Y)*W+F,l=Li(Y)*X+H),u=Ii(ge)*W+F,f=Li(ge)*X+H;break;case Xe.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var he=n[w++],Ue=n[w++];if(h){var M=d[y++];if(g+M>m){var Pe=m-g;t.moveTo(c,v),t.lineTo(c+og(Pe,he),v),Pe-=he,Pe>0&&t.lineTo(c+he,v+og(Pe,Ue)),Pe-=Ue,Pe>0&&t.lineTo(c+sg(he-Pe,0),v+Ue),Pe-=he,Pe>0&&t.lineTo(c,v+sg(Ue-Pe,0));break e}g+=M}t.rect(c,v,he,Ue);break;case Xe.Z:if(h){var M=d[y++];if(g+M>m){var L=(m-g)/M;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Xe,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Oa(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function N5(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>r+c&&u>e+c&&u>a+c&&u>o+c||u<r-c&&u<e-c&&u<a-c&&u<o-c)return!1;var v=VL(r,t,e,n,a,i,o,s,u,f,null);return v<=c/2}function C2(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=FL(r,t,e,n,a,i,s,l,null);return f<=u/2}var Xw=Math.PI*2;function _r(r){return r%=Xw,r<0&&(r+=Xw),r}var Hl=Math.PI*2;function B5(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-a)%Hl<1e-4)return!0;if(i){var c=n;n=_r(a),a=_r(c)}else n=_r(n),a=_r(a);n>a&&(a+=Hl);var v=Math.atan2(l,s);return v<0&&(v+=Hl),v>=n&&v<=a||v+Hl>=n&&v+Hl<=a}function Jn(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var Ta=Vn.CMD,Pi=Math.PI*2,V5=1e-4;function z5(r,t){return Math.abs(r-t)<V5}var Kt=[-1,-1,-1],Rr=[-1,-1];function F5(){var r=Rr[0];Rr[0]=Rr[1],Rr[1]=r}function G5(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=uh(t,n,i,s,u,Kt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=Kt[p],y=g===0||g===1?.5:1,m=Ct(r,e,a,o,g);m<l||(v<0&&(v=BL(t,n,i,s,Rr),Rr[1]<Rr[0]&&v>1&&F5(),h=Ct(t,n,i,s,Rr[0]),v>1&&(d=Ct(t,n,i,s,Rr[1]))),v===2?g<Rr[0]?c+=h<t?y:-y:g<Rr[1]?c+=d<h?y:-y:c+=s<d?y:-y:g<Rr[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function H5(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=Uz(t,n,i,s,Kt);if(l===0)return 0;var u=zL(t,n,i);if(u>=0&&u<=1){for(var f=0,c=Lt(t,n,i,u),v=0;v<l;v++){var h=Kt[v]===0||Kt[v]===1?.5:1,d=Lt(r,e,a,Kt[v]);d<o||(Kt[v]<u?f+=c<t?h:-h:f+=i<c?h:-h)}return f}else{var h=Kt[0]===0||Kt[0]===1?.5:1,d=Lt(r,e,a,Kt[0]);return d<o?0:i<t?h:-h}}function $5(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Pi-1e-4){n=0,a=Pi;var f=i?1:-1;return o>=Kt[0]+r&&o<=Kt[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Pi,a+=Pi);for(var v=0,h=0;h<2;h++){var d=Kt[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Pi+p),(p>=n&&p<=a||p+Pi>=n&&p+Pi<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function T2(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Ta.M&&d>1&&(e||(s+=Jn(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case Ta.M:f=i[d++],c=i[d++],l=f,u=c;break;case Ta.L:if(e){if(Oa(l,u,i[d],i[d+1],t,n,a))return!0}else s+=Jn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ta.C:if(e){if(N5(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=G5(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ta.Q:if(e){if(C2(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=H5(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ta.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],w=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=v,c=h):s+=Jn(l,u,v,h,n,a);var T=(n-y)*S/_+y;if(e){if(B5(y,m,S,x,x+w,b,t,T,a))return!0}else s+=$5(y,m,S,x,x+w,b,T,a);l=Math.cos(x+w)*_+y,u=Math.sin(x+w)*S+m;break;case Ta.R:f=l=i[d++],c=u=i[d++];var C=i[d++],A=i[d++];if(v=f+C,h=c+A,e){if(Oa(f,c,v,c,t,n,a)||Oa(v,c,v,h,t,n,a)||Oa(v,h,f,h,t,n,a)||Oa(f,h,f,c,t,n,a))return!0}else s+=Jn(v,c,v,h,n,a),s+=Jn(f,h,f,c,n,a);break;case Ta.Z:if(e){if(Oa(l,u,f,c,t,n,a))return!0}else s+=Jn(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!z5(u,c)&&(s+=Jn(l,u,f,c,n,a)||0),s!==0}function U5(r,t,e){return T2(r,0,!1,t,e)}function W5(r,t,e,n){return T2(r,t,!0,e,n)}var mh=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},po),Y5={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Vd.style)},fg=ca.concat(["invisible","culling","z","z2","zlevel","parent"]),Ae=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<fg.length;++s)a[fg[s]]=this[fg[s]];a.__dirty|=cr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=De(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=e[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(j(e)){var n=ch(e,0);return n>.5?qm:n>.2?mF:Km}else if(e)return Km}return qm},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(j(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=ch(e,0)<Zm;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Is},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Vn(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Is)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??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 e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.contain(e,n)){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)),W5(s,l/u,e,n)))return!0}if(this.hasFill())return U5(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Is,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:G(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Is)},t.prototype.createStyle=function(e){return Id(mh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){if(r.prototype._applyStateObj.call(this,e,n,a,i,o,s),this.__inHover!==Ed){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var f={},c=De(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Y5},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=(function(i){Je(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ae(e.style)},o.prototype.getDefaultShape=function(){return ae(e.shape)},o})(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=cr|Su|Is})(),t})(Ur),X5=le({strokeFirst:!0,font:ua,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},mh),al=(function(r){Je(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return b2(this.style)},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Id(X5,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=L5(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Ur);al.prototype.type="tspan";var j5=le({x:0,y:0},po),Z5={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Vd.style)};function q5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Rt=(function(r){Je(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Id(j5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=q5(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Z5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new se(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Ur);Rt.prototype.type="image";function K5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Os=Math.round;function Gd(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(Os(n*2)===Os(a*2)&&(r.x1=r.x2=Sr(n,s,!0)),Os(i*2)===Os(o*2)&&(r.y1=r.y2=Sr(i,s,!0))),r}}function A2(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Sr(n,s,!0),r.y=Sr(a,s,!0),r.width=Math.max(Sr(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Sr(a+o,s,!1)-r.y,o===0?0:1)),r}}function Sr(r,t,e){if(!t)return r;var n=Os(r*2);return(n+Os(t))%2===0?n/2:(n+(e?1:-1))/2}var J5=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Q5={},be=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new J5},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=A2(Q5,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?K5(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Ae);be.prototype.type="rect";var jw={fill:"#000"},Zw=2,hn={},eG={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},Vd.style)},Re=(function(r){Je(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=jw,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,nG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new se(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||jw},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return G(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=De(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},G(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return eG},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||ua,a=e.padding,i=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||i.align||"left",u=e.verticalAlign||i.verticalAlign||"top";Fw(hn,i.overflowRect,o,s,l,u),o=hn.baseX,s=hn.baseY;var f=rb(e),c=b5(f,e,hn.outerWidth,hn.outerHeight),v=cg(e),h=!!e.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=ho(s,c.contentHeight,u);if(v||a){var S=rl(o,p,l),x=ho(s,d,u);v&&this._renderBackground(e,e,S,x,p,d)}_+=y/2,a&&(m=tb(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var w=0,b=!1,T=!1,C=eb("fill"in e?e.fill:(T=!0,i.fill)),A=Qw("stroke"in e?e.stroke:!h&&(!i.autoStroke||T)?(w=Zw,b=!0,i.stroke):null),M=e.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(al),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,M&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=A,P.fill=C,A&&(P.lineWidth=e.lineWidth||w,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=n,Kw(P,e),_+=y,I.setBoundingRect(n0(P,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,n=this._defaultStyle,a=e.align||n.align,i=e.verticalAlign||n.verticalAlign,o=e.x||0,s=e.y||0;Fw(hn,n.overflowRect,o,s,a,i),o=hn.baseX,s=hn.baseY;var l=rb(e),u=A5(l,e,hn.outerWidth,hn.outerHeight,a),f=u.width,c=u.outerWidth,v=u.outerHeight,h=e.padding;this.isTruncated=!!u.isTruncated;var d=rl(o,c,a),p=ho(s,v,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;cg(e)&&this._renderBackground(e,e,d,p,c,v);for(var _=!!e.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],w=x.tokens,b=w.length,T=x.lineHeight,C=x.width,A=0,M=g,L=m,I=b-1,P=void 0;A<b&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,e,T,y,M,"left",_),C-=P.width,M+=P.width,A++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(M+=(f-(M-g)-(m-L)-C)/2;A<=I;)P=w[A],this._placeToken(P,e,T,y,M+P.width/2,"center",_),M+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+a/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+a-e.height/2);var v=!e.isLineHolder&&cg(u);v&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=tb(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(al),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=eb("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Qw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Zw,S=!0,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||ua,g.opacity=xr(u.opacity,n.opacity,1),Kw(g,u),w&&(g.lineWidth=xr(u.lineWidth,n.lineWidth,_),g.lineDash=Q(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),x&&(g.fill=x),p.setBoundingRect(n0(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,v=l&&!c,h=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(be),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=Q(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Rt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Q(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=xr(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return D2(e)&&(n=[e.fontStyle,e.fontWeight,M2(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Vr(n)||e.textFont||e.font},t})(Ur),tG={left:!0,right:1,center:1},rG={top:1,bottom:1,middle:1},qw=["fontStyle","fontWeight","fontSize","fontFamily"];function M2(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?eS+"px":r+"px"}function Kw(r,t){for(var e=0;e<qw.length;e++){var n=qw[e],a=t[n];a!=null&&(r[n]=a)}}function D2(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function nG(r){return Jw(r),D(r.rich,Jw),r}function Jw(r){if(r){r.font=Re.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||tG[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||rG[e]?e:"top";var n=r.padding;n&&(r.padding=Dd(r.padding))}}function Qw(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function eb(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function tb(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function rb(r){var t=r.text;return t!=null&&(t+=""),t}function cg(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ce=me(),o0=function(r,t,e,n){if(n){var a=ce(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ce(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Tl="undefined",zn="series",I2=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),br="original",Pt="arrayRows",Cr="objectRows",on="keyedColumns",Ja="typedArray",L2="unknown",Qr="column",jo="row",P2="Roam",aG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],R2=(function(){function r(t){D(aG,function(e){this[e]=q(t[e],t)},this)}return r})();function E2(r,t){return t.mainType===zn?r.getViewOfSeriesModel(t):r.getViewOfComponentModel(t)}var nb=1,ab={},k2=me(),xS=me(),wS=0,zf=1,Hd=2,ir=["emphasis","blur","select"],nf=["normal","emphasis","blur","select"],Al=10,iG=9,go="highlight",Hv="downplay",_h="select",s0="unselect",Sh="toggleSelect",bS="selectchanged";function us(r){return r!=null&&r!=="none"}function $d(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function O2(r){$d(r,"emphasis",Hd)}function N2(r){r.hoverState===Hd&&$d(r,"normal",wS)}function CS(r){$d(r,"blur",zf)}function B2(r){r.hoverState===zf&&$d(r,"normal",wS)}function oG(r){r.selected=!0}function sG(r){r.selected=!1}function ib(r,t,e){t(r,e)}function Sa(r,t,e){ib(r,t,e),r.isGroup&&r.traverse(function(n){ib(n,t,e)})}function xh(r,t){switch(t){case"emphasis":r.hoverState=Hd;break;case"normal":r.hoverState=wS;break;case"blur":r.hoverState=zf;break;case"select":r.selected=!0}}function lG(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function uG(r,t,e,n){var a=e&&pe(e,"select")>=0,i=!1;if(r instanceof Ae){var o=k2(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(us(s)||us(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!us(u.fill)&&us(s)?(i=!0,n=G({},n),u=G({},u),u.fill=Hm(s)):!us(u.stroke)&&us(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=Hm(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Al)}return n}function fG(r,t,e){if(e&&e.z2==null){e=G({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??iG)}return e}function cG(r,t,e){var n=pe(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:lG(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=G({},e),o=G({opacity:n?a:i.opacity*.1},o),e.style=o),e}function vg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return uG(this,r,t,e);if(r==="blur")return cG(this,r,e);if(r==="select")return fG(this,r,e)}return e}function Ao(r){r.stateProxy=vg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=vg),e&&(e.stateProxy=vg)}function ob(r,t){!G2(r,t)&&!r.__highByOuter&&Sa(r,O2)}function sb(r,t){!G2(r,t)&&!r.__highByOuter&&Sa(r,N2)}function pa(r,t){r.__highByOuter|=1<<(t||0),Sa(r,O2)}function ga(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Sa(r,N2)}function V2(r){Sa(r,CS)}function TS(r){Sa(r,B2)}function z2(r){Sa(r,oG)}function F2(r){Sa(r,sG)}function G2(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function H2(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=xS(i),s=E2(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){B2(u)}),l&&e.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function l0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&TS(v)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||CS(g)}),Wt(t))i(u.getData(),t);else if(fe(t))for(var d=De(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),xS(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function u0(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){xS(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){CS(i)})}}}function vG(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=bo(a,t);i=($(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ce(o);l0(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&l0(n,f,c,e)}}}function AS(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function hG(r,t,e){var n=ce(r),a=AS(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&u0(n.componentMainType,n.componentIndex,e),D(i,function(s){return ob(s,t)})):(l0(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&u0(n.componentMainType,n.componentIndex,e),ob(r,t))}function dG(r,t,e){H2(e);var n=ce(r),a=AS(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?D(a,function(i){return sb(i,t)}):sb(r,t)}function pG(r,t,e){if(c0(t)){var n=t.dataType,a=r.getData(n),i=bo(a,t);$(i)||(i=[i]),r[t.type===Sh?"toggleSelect":t.type===_h?"select":"unselect"](i,n)}}function lb(r){var t=r.getAllData();D(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?z2(i):F2(i)})})}function gG(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();D(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function yo(r,t,e){so(r,!0),Sa(r,Ao),f0(r,t,e)}function yG(r){so(r,!1)}function et(r,t,e,n){n?yG(r):yo(r,t,e)}function f0(r,t,e){var n=ce(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var ub=["emphasis","blur","select"],mG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _t(r,t,e,n){e=e||"itemStyle";for(var a=0;a<ub.length;a++){var i=ub[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[mG[e]]()}}function so(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function af(r){return!!(r&&r.__highDownDispatcher)}function _G(r,t,e){var n=ce(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function SG(r){var t=ab[r];return t==null&&nb<=32&&(t=ab[r]=nb++),t}function c0(r){var t=r.type;return t===_h||t===s0||t===Sh}function fb(r){var t=r.type;return t===go||t===Hv}function xG(r){var t=k2(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var fs=Vn.CMD,wG=[[],[],[]],cb=Math.sqrt,bG=Math.atan2;function $2(r,t){if(t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=fs.M,c=fs.C,v=fs.L,h=fs.R,d=fs.A,p=fs.Q;for(o=0,s=0;o<n;){switch(a=e[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=cb(t[0]*t[0]+t[1]*t[1]),_=cb(t[2]*t[2]+t[3]*t[3]),S=bG(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case h:u[0]=e[o++],u[1]=e[o++],st(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],st(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var x=wG[l];x[0]=e[o++],x[1]=e[o++],st(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var hg=Math.sqrt,Sc=Math.sin,xc=Math.cos,$l=Math.PI;function vb(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function v0(r,t){return(r[0]*t[0]+r[1]*t[1])/(vb(r)*vb(t))}function hb(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(v0(r,t))}function db(r,t,e,n,a,i,o,s,l,u,f){var c=l*($l/180),v=xc(c)*(r-e)/2+Sc(c)*(t-n)/2,h=-1*Sc(c)*(r-e)/2+xc(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=hg(d),s*=hg(d));var p=(a===i?-1:1)*hg((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(r+e)/2+xc(c)*g-Sc(c)*y,_=(t+n)/2+Sc(c)*g+xc(c)*y,S=hb([1,0],[(v-g)/o,(h-y)/s]),x=[(v-g)/o,(h-y)/s],w=[(-1*v-g)/o,(-1*h-y)/s],b=hb(x,w);if(v0(x,w)<=-1&&(b=$l),v0(x,w)>=1&&(b=0),b<0){var T=Math.round(b/$l*1e6)/1e6;b=$l*2+T%2*$l}f.addData(u,m,_,o,s,S,b,c,i)}var CG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,TG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function AG(r){var t=new Vn;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=Vn.CMD,l=r.match(CG);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(TG)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=e,C=n,A=void 0,M=void 0;switch(c){case"l":e+=h[g++],n+=h[g++],v=s.L,t.addData(v,e,n);break;case"L":e=h[g++],n=h[g++],v=s.L,t.addData(v,e,n);break;case"m":e+=h[g++],n+=h[g++],v=s.M,t.addData(v,e,n),a=e,i=n,c="l";break;case"M":e=h[g++],n=h[g++],v=s.M,t.addData(v,e,n),a=e,i=n,c="L";break;case"h":e+=h[g++],v=s.L,t.addData(v,e,n);break;case"H":e=h[g++],v=s.L,t.addData(v,e,n);break;case"v":n+=h[g++],v=s.L,t.addData(v,e,n);break;case"V":n=h[g++],v=s.L,t.addData(v,e,n);break;case"C":v=s.C,t.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),e=h[g-2],n=h[g-1];break;case"c":v=s.C,t.addData(v,h[g++]+e,h[g++]+n,h[g++]+e,h[g++]+n,h[g++]+e,h[g++]+n),e+=h[g-2],n+=h[g-1];break;case"S":y=e,m=n,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),v=s.C,T=h[g++],C=h[g++],e=h[g++],n=h[g++],t.addData(v,y,m,T,C,e,n);break;case"s":y=e,m=n,A=t.len(),M=t.data,o===s.C&&(y+=e-M[A-4],m+=n-M[A-3]),v=s.C,T=e+h[g++],C=n+h[g++],e+=h[g++],n+=h[g++],t.addData(v,y,m,T,C,e,n);break;case"Q":T=h[g++],C=h[g++],e=h[g++],n=h[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"q":T=h[g++]+e,C=h[g++]+n,e+=h[g++],n+=h[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"T":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-3]),e=h[g++],n=h[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"t":y=e,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=e-M[A-4],m+=n-M[A-3]),e+=h[g++],n+=h[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=e,C=n,e=h[g++],n=h[g++],v=s.A,db(T,C,e,n,w,b,_,S,x,v,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=e,C=n,e+=h[g++],n+=h[g++],v=s.A,db(T,C,e,n,w,b,_,S,x,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),e=a,n=i),o=v}return t.toStatic(),t}var U2=(function(r){Je(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(Ae);function W2(r){return r.setData!=null}function Y2(r,t){var e=AG(r),n=G({},t);return n.buildPath=function(a){var i=W2(a);if(i&&a.canSave()){a.appendPath(e);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&e.rebuildPath(o,1)}},n.applyTransform=function(a){$2(e,a),this.dirtyShape()},n}function X2(r,t){return new U2(Y2(r,t))}function MG(r,t){var e=Y2(r,t),n=(function(a){Je(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i})(U2);return n}function DG(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new Ae(t);return o.createPathProxy(),o.buildPath=function(s){if(W2(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function MS(r,t){t=t||{};var e=new Ae;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?$2(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var IG=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),xa=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new IG},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(Ae);xa.prototype.type="circle";var LG=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Ud=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LG},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t})(Ae);Ud.prototype.type="ellipse";var j2=Math.PI,dg=j2*2,Ri=Math.sin,cs=Math.cos,PG=Math.acos,zt=Math.atan2,pb=Math.abs,zu=Math.sqrt,wu=Math.max,dn=Math.min,jr=1e-4;function RG(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=c*l-f*u;if(!(v*v<jr))return v=(f*(t-i)-c*(r-a))/v,[r+v*l,t+v*u]}function wc(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/zu(s*s+l*l),f=u*l,c=-u*s,v=r+f,h=t+c,d=e+f,p=n+c,g=(v+d)/2,y=(h+p)/2,m=d-v,_=p-h,S=m*m+_*_,x=a-i,w=v*p-d*h,b=(_<0?-1:1)*zu(wu(0,x*x*S-w*w)),T=(w*_-m*b)/S,C=(-w*m-_*b)/S,A=(w*_+m*b)/S,M=(-w*m+_*b)/S,L=T-g,I=C-y,P=A-g,R=M-y;return L*L+I*I>P*P+R*R&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/x-1),y1:C*(a/x-1)}}function EG(r){var t;if($(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function kG(r,t){var e,n=wu(t.r,0),a=wu(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=pb(u-l),d=h>dg&&h%dg;if(d>jr&&(h=d),!(n>jr))r.moveTo(f,c);else if(h>dg-jr)r.moveTo(f+n*cs(l),c+n*Ri(l)),r.arc(f,c,n,l,u,!v),a>jr&&(r.moveTo(f+a*cs(u),c+a*Ri(u)),r.arc(f,c,a,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0,T=void 0,C=void 0,A=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=n*cs(l),E=n*Ri(l),N=a*cs(u),O=a*Ri(u),z=h>jr;if(z){var F=t.cornerRadius;F&&(e=EG(F),p=e[0],g=e[1],y=e[2],m=e[3]);var H=pb(n-a)/2;if(_=dn(H,y),S=dn(H,m),x=dn(H,p),w=dn(H,g),C=b=wu(_,S),A=T=wu(x,w),(b>jr||T>jr)&&(M=n*cs(u),L=n*Ri(u),I=a*cs(l),P=a*Ri(l),h<j2)){var W=RG(R,E,I,P,M,L,N,O);if(W){var X=R-W[0],Y=E-W[1],ee=M-W[0],ye=L-W[1],Ne=1/Ri(PG((X*ee+Y*ye)/(zu(X*X+Y*Y)*zu(ee*ee+ye*ye)))/2),ve=zu(W[0]*W[0]+W[1]*W[1]);C=dn(b,(n-ve)/(Ne+1)),A=dn(T,(a-ve)/(Ne-1))}}}if(!z)r.moveTo(f+R,c+E);else if(C>jr){var te=dn(y,C),ge=dn(m,C),re=wc(I,P,R,E,n,te,v),he=wc(M,L,N,O,n,ge,v);r.moveTo(f+re.cx+re.x0,c+re.cy+re.y0),C<b&&te===ge?r.arc(f+re.cx,c+re.cy,C,zt(re.y0,re.x0),zt(he.y0,he.x0),!v):(te>0&&r.arc(f+re.cx,c+re.cy,te,zt(re.y0,re.x0),zt(re.y1,re.x1),!v),r.arc(f,c,n,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),!v),ge>0&&r.arc(f+he.cx,c+he.cy,ge,zt(he.y1,he.x1),zt(he.y0,he.x0),!v))}else r.moveTo(f+R,c+E),r.arc(f,c,n,l,u,!v);if(!(a>jr)||!z)r.lineTo(f+N,c+O);else if(A>jr){var te=dn(p,A),ge=dn(g,A),re=wc(N,O,M,L,a,-ge,v),he=wc(R,E,I,P,a,-te,v);r.lineTo(f+re.cx+re.x0,c+re.cy+re.y0),A<T&&te===ge?r.arc(f+re.cx,c+re.cy,A,zt(re.y0,re.x0),zt(he.y0,he.x0),!v):(ge>0&&r.arc(f+re.cx,c+re.cy,ge,zt(re.y0,re.x0),zt(re.y1,re.x1),!v),r.arc(f,c,a,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),v),te>0&&r.arc(f+he.cx,c+he.cy,te,zt(he.y1,he.x1),zt(he.y0,he.x0),!v))}else r.lineTo(f+N,c+O),r.arc(f,c,a,u,l,v)}r.closePath()}}}var OG=(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})(),Xt=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new OG},t.prototype.buildPath=function(e,n){kG(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Ae);Xt.prototype.type="sector";var NG=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Ff=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NG},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t})(Ae);Ff.prototype.type="ring";function BG(r,t,e,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=r.length;v<h;v++)Va(f,f,r[v]),za(c,c,r[v]);Va(f,f,n[0]),za(c,c,n[1])}for(var v=0,h=r.length;v<h;v++){var d=r[v];if(e)l=r[v?v-1:h-1],u=r[(v+1)%h];else if(v===0||v===h-1){a.push(na(r[v]));continue}else l=r[v-1],u=r[v+1];io(i,u,l),Ev(i,i,t);var p=Pm(d,l),g=Pm(d,u),y=p+g;y!==0&&(p/=y,g/=y),Ev(o,i,-p),Ev(s,i,g);var m=rw([],d,o),_=rw([],d,s);n&&(za(m,m,f),Va(m,m,c),za(_,_,f),Va(_,_,c)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function Z2(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=BG(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var VG=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),jt=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new VG},t.prototype.buildPath=function(e,n){Z2(e,n,!0)},t})(Ae);jt.prototype.type="polygon";var zG=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Bt=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zG},t.prototype.buildPath=function(e,n){Z2(e,n,!1)},t})(Ae);Bt.prototype.type="polyline";var FG={},GG=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),dt=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GG},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=Gd(FG,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t})(Ae);dt.prototype.type="line";var lr=[],HG=(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 gb(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?pw:Ct)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?pw:Ct)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Vm:Lt)(r.x1,r.cpx1,r.x2,t),(e?Vm:Lt)(r.y1,r.cpy1,r.y2,t)]}var Gf=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HG},t.prototype.buildPath=function(e,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(e.moveTo(a,i),f==null||c==null?(v<1&&(Ju(a,l,o,v,lr),l=lr[1],o=lr[2],Ju(i,u,s,v,lr),u=lr[1],s=lr[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(ai(a,l,f,o,v,lr),l=lr[1],f=lr[2],o=lr[3],ai(i,u,c,s,v,lr),u=lr[1],c=lr[2],s=lr[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return gb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=gb(this.shape,e,!0);return Sl(n,n)},t})(Ae);Gf.prototype.type="bezier-curve";var $G=(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})(),Wd=(function(r){Je(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $G},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);e.moveTo(f*o+a,c*o+i),e.arc(a,i,o,s,l,!u)},t})(Ae);Wd.prototype.type="arc";var Yd=(function(r){Je(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ae.prototype.getBoundingRect.call(this)},t})(Ae),q2=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Ml=(function(r){Je(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t})(q2),K2=(function(r){Je(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t})(q2),pg=Math.min,UG=Math.max,bc=Math.abs,Ei=[0,0],ki=[0,0],It=LL(),Cc=It.minTv,Tc=It.maxTv,J2=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ue;for(var n=0;n<2;n++)this._axes[n]=new ue;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);ue.sub(a[0],n[1],n[0]),ue.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e,n){var a=!0,i=!e;return e&&ue.set(e,0,0),It.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!It.negativeSize&&ue.copy(e,a?It.useDir?It.dirMinTv:Cc:Tc),a},r.prototype._intersectCheckOneSide=function(t,e,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Ei),t._getProjMinMaxOnAxis(o,e._corners,ki),It.negativeSize||Ei[1]<ki[0]||Ei[0]>ki[1]){if(i=!1,It.negativeSize||n)return i;var l=bc(ki[0]-Ei[1]),u=bc(Ei[0]-ki[1]);pg(l,u)>Tc.len()&&(l<u?ue.scale(Tc,s,-l*a):ue.scale(Tc,s,u*a))}else if(!n){var l=bc(ki[0]-Ei[1]),u=bc(Ei[0]-ki[1]);(It.useDir||pg(l,u)<Cc.len())&&((l<u||!It.bidirectional)&&(ue.scale(Cc,s,l*a),It.useDir&&It.calcDirMTV()),(l>=u||!It.bidirectional)&&(ue.scale(Cc,s,-u*a),It.useDir&&It.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=pg(f,s),l=UG(f,l)}n[0]=s+It.touchThreshold,n[1]=l-It.touchThreshold,It.negativeSize=n[1]<n[0]},r})(),Q2=0,WG=1,YG=2,XG=1,$v=0,jG=[],ZG=(function(r){Je(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=WG,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(jG)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t})(Ur),eP=me();function Dl(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),ie(c)&&(c=c(e,a)),ie(u)&&(u=u(e));var v={duration:u||0,delay:c,easing:f};return v}else return null}function DS(r,t,e,n,a,i,o){var s=!1,l;ie(a)?(o=i,i=a,a=null):fe(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Dl(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Oe(r,t,e,n,a,i){DS("update",r,t,e,n,a,i)}function Ke(r,t,e,n,a,i){DS("enter",r,t,e,n,a,i)}function Us(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function oi(r,t,e,n,a,i){Us(r)||DS("leave",r,t,e,n,a,i)}function yb(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),oi(r,{style:{opacity:0}},t,e,n)}function aa(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||yb(a,t,e,n)}):yb(r,t,e,n)}function Wr(r){eP(r).oldStyle=r.style}function qG(r){return eP(r).oldStyle}var h0={},de=["x","y"],lt=["width","height"],tP=0,rP=1,Il=2;function KG(r){return Ae.extend(r)}var JG=MG;function QG(r,t){return JG(r,t)}function sn(r,t){h0[r]=t}function wh(r){if(h0.hasOwnProperty(r))return h0[r]}function of(r,t,e,n){var a=X2(r,t);return e&&(n==="center"&&(e=aP(e,a.getBoundingRect())),iP(a,e)),a}function nP(r,t,e){var n=new Rt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(aP(t,i))}}});return n}function aP(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Or=DG;function iP(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function il(r,t){return Gd(r,r,{lineWidth:t}),r}function e3(r,t){return A2(r,r,t),r}var Uv=Sr;function Ws(r,t){for(var e=xl([]);r&&r!==t;)zr(e,r.getLocalTransform(),e),r=r.parent;return e}function en(r,t,e){return t&&!Wt(t)&&(t=Un.getLocalTransform(t)),e&&(t=Hr([],t)),st([],r,t)}function Xd(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:it(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:it(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=en(i,t,e),it(i[0])>it(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function mb(r){return!r.isGroup}function t3(r){return r.shape!=null}function Hf(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){mb(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return t3(o)&&(s.shape=ae(o.shape)),s}var i=n(r);t.traverse(function(o){if(mb(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Oe(o,l,e,ce(o).dataIndex)}}})}function oP(r,t){return U(r,function(e){var n=e[0];n=we(n,t.x),n=He(n,t.x+t.width);var a=e[1];return a=we(a,t.y),a=He(a,t.y+t.height),[n,a]})}function r3(r,t){var e=we(r.x,t.x),n=He(r.x+r.width,t.x+t.width),a=we(r.y,t.y),i=He(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $f(r,t,e){var n=G({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),le(a,e),new Rt(n)):of(r.replace("path://",""),n,e,"center")}function bu(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(sP(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function sP(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=gg(f,c,l,u);if(n3(v))return!1;var h=r-a,d=t-i,p=gg(h,d,l,u)/v;if(p<0||p>1)return!1;var g=gg(h,d,f,c)/v;return!(g<0||g>1)}function gg(r,t,e,n){return r*n-e*t}function n3(r){return r<=1e-6&&r>=-1e-6}function Mo(r,t,e,n,a){return t==null||(Ee(t)?rt[0]=rt[1]=rt[2]=rt[3]=t:(rt[0]=t[0],rt[1]=t[1],rt[2]=t[2],rt[3]=t[3]),n&&(rt[0]=we(0,rt[0]),rt[1]=we(0,rt[1]),rt[2]=we(0,rt[2]),rt[3]=we(0,rt[3])),e&&(rt[0]=-rt[0],rt[1]=-rt[1],rt[2]=-rt[2],rt[3]=-rt[3]),_b(r,rt,"x","width",3,1,a&&a[0]||0),_b(r,rt,"y","height",0,2,a&&a[1]||0)),r}var rt=[0,0,0,0];function _b(r,t,e,n,a,i,o){var s=t[i]+t[a],l=r[n];r[n]+=s,o=we(0,He(o,l)),r[n]<o?(r[n]=o,r[e]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:it(s)>1e-8?(l-o)*t[a]/s:0):r[e]-=t[a]}function wa(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=j(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&D(De(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ce(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function d0(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function gi(r,t){if(r)if($(r))for(var e=0;e<r.length;e++)d0(r[e],t);else d0(r,t)}function IS(r){return!r||it(r[1])<Ac&&it(r[2])<Ac||it(r[0])<Ac&&it(r[3])<Ac}var Ac=1e-5;function sf(r,t){return r?se.copy(r,t):t.clone()}function LS(r,t){return t?xo(r||nt(),t):void 0}function Do(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function lP(r){var t=-1/0,e=1/0;d0(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function jd(r,t,e){uP(r,t,e,-1/0)}function uP(r,t,e,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=we(uP(s[l],t,e,n),n);else r.z=t,r.zlevel=e,n=we(r.z2||0,n);if(a&&(a.z=t,a.zlevel=e,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function PS(r){return r.animation={duration:0},r}function Zd(r,t){return t?xo(Cu.transform,t):xl(Cu.transform),Cu.decomposeTransform(),Nn(r,Cu),r}var Cu=new Un;Cu.transform=nt();function p0(r){var t=r.getZr().painter;return t.getType()==="canvas"?t:null}sn("circle",xa);sn("ellipse",Ud);sn("sector",Xt);sn("ring",Ff);sn("polygon",jt);sn("polyline",Bt);sn("rect",be);sn("line",dt);sn("bezierCurve",Gf);sn("arc",Wd);const Zo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Wd,BezierCurve:Gf,BoundingRect:se,Circle:xa,CompoundPath:Yd,Ellipse:Ud,Group:oe,HOVER_LAYER_FOR_INCREMENTAL:Il,HOVER_LAYER_FROM_THRESHOLD:rP,HOVER_LAYER_NO:tP,Image:Rt,IncrementalDisplayable:ZG,Line:dt,LinearGradient:Ml,OrientedBoundingRect:J2,Path:Ae,Point:ue,Polygon:jt,Polyline:Bt,RadialGradient:K2,Rect:be,Ring:Ff,Sector:Xt,Text:Re,WH:lt,XY:de,applyTransform:en,calcZ2Range:lP,clipPointsByRect:oP,clipRectByRect:r3,createIcon:$f,decomposeTransform:Zd,ensureCopyRect:sf,ensureCopyTransform:LS,expandOrShrinkRect:Mo,extendPath:QG,extendShape:KG,getCurrentCanvasPainter:p0,getShapeClass:wh,getTransform:Ws,groupTransition:Hf,initProps:Ke,isBoundingRectAxisAligned:IS,isElementRemoved:Us,lineLineIntersect:sP,linePolygonIntersect:bu,makeImage:nP,makePath:of,mergePath:Or,payloadDisableAnimation:PS,registerShape:sn,removeElement:oi,removeElementWithFadeOut:aa,resizePath:iP,retrieveZInfo:Do,setTooltipConfig:wa,subPixelOptimize:Uv,subPixelOptimizeLine:il,subPixelOptimizeRect:e3,transformDirection:Xd,traverseElements:gi,traverseUpdateZ:jd,updateProps:Oe},Symbol.toStringTag,{value:"Module"}));var qd={};function fP(r,t){for(var e=0;e<ir.length;e++){var n=ir[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function g0(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=ie(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<ir.length;u++){var f=ir[u],c=t[f];l[f]=Q(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Mt(r,t,e,n){e=e||qd;for(var a=r instanceof Re,i=!1,o=0;o<nf.length;o++){var s=t[nf[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Re,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=g0(e,t),f=t.normal,c=!!f.getShallow("show"),v=je(f,n&&n.normal,e,!1,!a);v.text=u.normal,a||r.setTextConfig(bh(f,e,!1));for(var o=0;o<ir.length;o++){var h=ir[o],s=t[h];if(s){var d=l.ensureState(h),p=!!Q(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=je(s,n&&n[h],e,!0,!a),d.style.text=u[h],!a){var g=r.ensureState(h);g.textConfig=bh(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),e.enableTextSetter&&(Ll(l).setLabelText=function(y){var m=g0(e,t,y);fP(l,m)})}else l&&(l.ignore=!0);r.dirty()}function St(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<ir.length;n++){var a=ir[n];e[a]=r.getModel([a,t])}return e}function je(r,t,e,n,a){var i={};return a3(i,r,e,n,a),t&&G(i,t),i}function bh(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=Q(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function a3(r,t,e,n,a){e=e||qd;var i=t.ecModel,o=i&&i.option.textStyle,s=i3(t),l;if(s){l={};var u="richInheritPlainLabel",f=Q(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=t.getModel(["rich",c]);bb(l[c]={},v,o,t,f,e,n,a,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=t.get("minMargin");if(g!=null)g=Ee(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Ns.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=Dd(y),p.__marginType=Ns.textMargin)}bb(r,t,o,null,null,e,n,a,!0,!1)}function i3(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||qd).rich;if(e){t=t||{};for(var n=De(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var Sb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xb=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bb(r,t,e,n,a,i,o,s,l,u){e=!o&&e||qd;var f=i&&i.inheritColor,c=t.getShallow("color"),v=t.getShallow("textBorderColor"),h=Q(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||e.color,v=v||e.textBorderColor),c!=null&&(r.fill=c),v!=null&&(r.stroke=v);var d=Q(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Q(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var g=Q(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<Sb.length;y++){var m=Sb[y],_=a!==!1&&n?xr(t.getShallow(m),n.getShallow(m),e[m]):Q(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var y=0;y<xb.length;y++){var m=xb[y],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<wb.length;y++){var m=wb[y],_=t.getShallow(m);_!=null&&(r[m]=_)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function RS(r,t){var e=t&&t.getModel("textStyle");return Vr([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ll=me();function cP(r,t,e,n){if(r){var a=Ll(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function vP(r,t,e,n,a){var i=Ll(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Q(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=d2(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var v=g0({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);fP(r,v)}r.percent=0,(i.prevValue==null?Ke:Oe)(r,{percent:1},n,t,null,u)}var Ns={minMargin:1,textMargin:2},o3=["textStyle","color"],yg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mg=new Re,s3=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(o3):null)},r.prototype.getFont=function(){return RS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<yg.length;n++)e[yg[n]]=this.getShallow(yg[n]);return mg.useStyle(e),mg.update(),mg.getBoundingRect()},r})(),hP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],l3=To(hP),u3=(function(){function r(){}return r.prototype.getLineStyle=function(t){return l3(this,t)},r})(),dP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],f3=To(dP),c3=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return f3(this,t,e)},r})(),Ie=(function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){_e(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ae(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r})();mS(Ie);d5(Ie);xt(Ie,u3);xt(Ie,c3);xt(Ie,_5);xt(Ie,s3);var v3=Math.round(Math.random()*10);function qo(r){return[r||"",v3++].join("_")}function h3(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=wn(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=wn(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function d3(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,v={};for(D(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),D(d.successor,p?y:g)}D(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(v){pe(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);pe(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){pe(o,l)>=0&&s.push(l)}),s}}function yi(r,t){return _e(_e({},r,!0),t,!0)}const p3={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:". "}}}},g3={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 Ch="ZH",ES="EN",Ys=ES,Wv={},kS={},pP=Le.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ys).toUpperCase();return r.indexOf(Ch)>-1?Ch:Ys})():Ys;function gP(r,t){r=r.toUpperCase(),kS[r]=new Ie(t),Wv[r]=t}function y3(r){if(j(r)){var t=Wv[r.toUpperCase()]||{};return r===Ch||r===ES?ae(t):_e(ae(t),ae(Wv[Ys]),!1)}else return _e(ae(r),ae(Wv[Ys]),!1)}function y0(r){return kS[r]}function m3(){return kS[Ys]}gP(ES,p3);gP(Ch,g3);var m0=null;function _3(r){m0||(m0=r)}function ct(){return m0}function yP(r,t){var e=ct(),n=t.breakOption,a=t.breakParsed;return!a&&e&&(a=e.parseAxisBreakOption(n,r)),a}function Th(r){var t=r.brk;return t?t.breaks:[]}function Ah(r){var t=r.brk;return t?t.hasBreaks():!1}var OS=1e3,NS=OS*60,Fu=NS*60,Nr=Fu*24,Cb=Nr*365,S3={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Yv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},x3="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Mc="{yyyy}-{MM}-{dd}",Tb={year:"{yyyy}",month:"{yyyy}-{MM}",day:Mc,hour:Mc+" "+Yv.hour,minute:Mc+" "+Yv.minute,second:Mc+" "+Yv.second,millisecond:x3},yr=["year","month","day","hour","minute","second","millisecond"],w3=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function b3(r){return!j(r)&&!ie(r)?C3(r):r}function C3(r){r=r||{};var t={},e=!0;return D(yr,function(n){e&&(e=r[n]==null)}),D(yr,function(n,a){var i=r[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=yr[s],u=fe(i)&&!$(i)?i[l]:i,f=void 0;$(u)?(f=u.slice(),o=f[0]||""):j(u)?(o=u,f=[o]):(o==null?o=Yv[n]:S3[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function Aa(r,t){return r+="","0000".substr(0,t-r.length)+r}function Gu(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 T3(r){return r===Gu(r)}function A3(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Kd(r,t,e,n){var a=Xo(r),i=a[mP(e)](),o=a[BS(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[VS(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[zS(e)](),c=(f-1)%12+1,v=a[FS(e)](),h=a[GS(e)](),d=a[HS(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Ie?n:y0(n||pP)||m3(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Aa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Aa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Aa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Aa(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Aa(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Aa(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Aa(d,3)).replace(/{S}/g,d+"")}function M3(r,t,e,n,a){var i=null;if(j(e))i=e;else if(ie(e)){var o={time:r.time,level:r.time?r.time.level:0},s=ct();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Xs(r.value,a);i=e[f][f][0]}}return Kd(new Date(r.value),i,a,n)}function Xs(r,t){var e=Xo(r),n=e[BS(t)]()+1,a=e[VS(t)](),i=e[zS(t)](),o=e[FS(t)](),s=e[GS(t)](),l=e[HS(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&a===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function _0(r,t,e){switch(t){case"year":r[_P(e)](0);case"month":r[SP(e)](1);case"day":r[xP(e)](0);case"hour":r[wP(e)](0);case"minute":r[bP(e)](0);case"second":r[CP(e)](0)}return r}function mP(r){return r?"getUTCFullYear":"getFullYear"}function BS(r){return r?"getUTCMonth":"getMonth"}function VS(r){return r?"getUTCDate":"getDate"}function zS(r){return r?"getUTCHours":"getHours"}function FS(r){return r?"getUTCMinutes":"getMinutes"}function GS(r){return r?"getUTCSeconds":"getSeconds"}function HS(r){return r?"getUTCMilliseconds":"getMilliseconds"}function D3(r){return r?"setUTCFullYear":"setFullYear"}function _P(r){return r?"setUTCMonth":"setMonth"}function SP(r){return r?"setUTCDate":"setDate"}function xP(r){return r?"setUTCHours":"setHours"}function wP(r){return r?"setUTCMinutes":"setMinutes"}function bP(r){return r?"setUTCSeconds":"setSeconds"}function CP(r){return r?"setUTCMilliseconds":"setMilliseconds"}function TP(r){if(!o2(r))return j(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function AP(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Uf=Dd;function S0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Vr(f)?f:"-"}function i(f){return $r(f)}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Xo(r):r;if(isNaN(+l)){if(s)return"-"}else return Kd(l,n,e)}if(t==="ordinal")return Mm(r)?a(r):Ee(r)&&i(r)?r+"":"-";var u=ha(r);return i(u)?TP(u):Mm(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ab=["a","b","c","d","e","f","g"],_g=function(r,t){return"{"+r+(t??"")+"}"};function MP(r,t,e){$(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Ab[i];r=r.replace(_g(o),_g(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(_g(Ab[l],s),e?Qt(u):u)}return r}function DP(r,t,e){return D(t,function(n,a){r=r.replace("{"+a+"}",n)}),r}function I3(r,t){var e=j(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Qt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qt(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Io(r,t){return t=t||"transparent",j(r)?r:fe(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Xv={},Sg={},Wf=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(Xv),this._normalMasterList=n(Sg);function n(a,i){var o=[];return D(a,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){D(this._normalMasterList,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Xv[t]=e;return}Sg[t]=e},r.get=function(t){return Sg[t]||Xv[t]},r})();function L3(r){return!!Xv[r]}var P3=1,IP=2;function R3(r){LP.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var LP=K();function PP(r){var t=r.getShallow("coord",!0),e=P3;if(t==null){var n=LP.get(r.type);n&&n.getCoord2&&(e=IP,t=n.getCoord2(r))}return{coord:t,from:e}}var js=0,jv=1,RP=2;function EP(r,t){var e=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=js;if(e){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=jv,i||(a=js)):n==="box"&&(a=RP,!i&&!L3(e)&&(a=js))}return{coordSysType:e,kind:a}}function Yf(r){var t=r.targetModel,e=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=EP(t),o=i.kind,s=i.coordSysType;if(a&&o!==jv&&(o=jv,s=e),o===js||s!==e)return js;var l=n(e,t);return l?(o===jv?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):js}var kP=function(r,t){var e=t.getReferringComponents(r,at).models[0];return e&&e.coordinateSystem},Zv=D,OP=["left","right","top","bottom","width","height"],lo=[["width","left","right"],["height","top","bottom"]];function $S(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var mo=$S;xe($S,"vertical");xe($S,"horizontal");function NP(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function E3(r,t){var e=bt(r,t,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(e.type===Tu.point)i=e.refPoint,a=tt(n,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=$(o)?o:[o,o];a=tt(n,e.refContainer),i=e.boxCoordFrom===IP?e.refPoint:[Z(s[0],a.width)+a.x,Z(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function BP(r,t){var e=E3(r,t),n=e.viewRect,a=e.center,i=r.get("radius");$(i)||(i=[0,i]);var o=Z(n.width,t.getWidth()),s=Z(n.height,t.getHeight()),l=Math.min(o,s),u=Z(i[0],l/2),f=Z(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function tt(r,t,e){e=Uf(e||0);var n=t.width,a=t.height,i=Z(r.left,n),o=Z(r.top,a),s=Z(r.right,n),l=Z(r.bottom,a),u=Z(r.width,n),f=Z(r.height,a),c=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new se((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function VP(r,t,e){var n=r.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(a))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return a>e&&!l||a<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),tt(s,t)}var Tu={rect:1,point:2};function bt(r,t,e){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=PP(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Tu.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Tu.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=Tu.rect),i===Tu.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function Jd(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.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 se(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=tt(le({width:u.width,height:u.height},t),e,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===r&&r.markRedraw(),!0}function k3(r,t){return r[lo[t][0]]!=null||r[lo[t][1]]!=null&&r[lo[t][2]]!=null}function lf(r){var t=r.layoutMode||r.constructor.layoutMode;return fe(t)?t:t?{type:t}:null}function Fn(r,t,e){var n=e&&e.ignoreSize;!$(n)&&(n=[n,n]);var a=o(lo[0],0),i=o(lo[1],1);l(lo[0],r,a),l(lo[1],r,i);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Zv(u,function(m){h[m]=r[m]}),Zv(u,function(m){J(t,m)&&(c[m]=h[m]=t[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!J(c,y)&&J(r,y)){c[y]=r[y];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Zv(u,function(v){f[v]=c[v]})}}function Ko(r){return zP({},r)}function zP(r,t){return t&&r&&Zv(OP,function(e){J(t,e)&&(r[e]=t[e])}),r}var O3=me(),Me=(function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=qo("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=lf(this),i=a?Ko(e):{},o=n.getTheme();_e(e,o.get(this.mainType)),_e(e,this.getDefaultOption()),a&&Fn(e,i,a)},t.prototype.mergeOption=function(e,n){_e(this.option,e,!0);var a=lf(this);a&&Fn(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!c5(e))return e.defaultOption;var n=O3(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=_e(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return bl(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return NP(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(Ie);_2(Me,Ie);Nd(Me);h3(Me);d3(Me,N3);function N3(r){var t=[];return D(Me.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return wn(e).main}),r!=="dataset"&&pe(t,"dataset")<=0&&t.unshift("dataset"),t}var B={color:{},darkColor:{},size:{}},ut=B.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};G(ut,{primary:ut.neutral80,secondary:ut.neutral70,tertiary:ut.neutral60,quaternary:ut.neutral50,disabled:ut.neutral20,border:ut.neutral30,borderTint:ut.neutral20,borderShade:ut.neutral40,background:ut.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ut.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ut.neutral70,axisLineTint:ut.neutral40,axisTick:ut.neutral70,axisTickMinor:ut.neutral60,axisLabel:ut.neutral70,axisSplitLine:ut.neutral15,axisMinorSplitLine:ut.neutral05});for(var Oi in ut)if(ut.hasOwnProperty(Oi)){var Mb=ut[Oi];Oi==="theme"?B.darkColor.theme=ut.theme.slice():Oi==="highlight"?B.darkColor.highlight="rgba(255,231,130,0.4)":Oi.indexOf("accent")===0?B.darkColor[Oi]=qa(Mb,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):B.darkColor[Oi]=qa(Mb,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}B.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var FP="";typeof navigator<"u"&&(FP=navigator.platform||"");var vs="rgba(0, 0, 0, 0.2)",GP=B.color.theme[0],B3=qa(GP,null,null,.9);const HP={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[B3,GP],aria:{decal:{decals:[{color:vs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:FP.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 Et={Must:1,Might:2,Not:3},$P=me();function V3(r){$P(r).datasetMap=K()}function UP(r,t,e){var n={},a=WS(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=$P(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),D(r,function(p,g){var y=fe(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function US(r,t,e){var n={},a=WS(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Cr||i===on)&&D(o,function(f,c){(fe(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,e);h<d;h++){var p=YP(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Et.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===Et.Not)&&(f.n=h),y(f)&&v[f.n]!==Et.Not)return f;g||(p===Et.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function WS(r){var t=r.get("data",!0);if(!t)return bl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},at).models[0]}function z3(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:bl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},at).models}function WP(r,t){return YP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function YP(r,t,e,n,a,i){var o,s=5;if(dr(r))return Et.Not;var l,u;if(n){var f=n[i];fe(f)?(l=f.name,u=f.type):j(f)&&(l=f)}if(u!=null)return u==="ordinal"?Et.Must:Et.Not;if(t===Pt){var c=r;if(e===jo){for(var v=c[i],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Cr){var p=r;if(!l)return Et.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===on){var y=r;if(!l)return Et.Not;var v=y[l];if(!v||dr(v))return Et.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(t===br)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=wl(g);if(!$(_))return Et.Not;if((o=S(_[i]))!=null)return o}function S(x){var w=j(x);if(x!=null&&isFinite(Number(x))&&x!=="")return w?Et.Might:Et.Not;if(w&&x!=="-")return Et.Must}return Et.Not}var x0=K();function F3(r,t){Yt(x0.get(r)==null&&t),x0.set(r,t)}function G3(r,t,e){var n=x0.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var Db=me(),H3=me(),YS=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=Ye(this.get("color",!0)),i=this.get("colorLayer",!0);return XP(this,Db,a,i,t,e,n)},r.prototype.clearColorPalette=function(){U3(this,Db)},r})();function w0(r,t,e,n){var a=Ye(r.get(["aria","decal","decals"]));return XP(r,H3,a,null,t,e,n)}function $3(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function XP(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:$3(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function U3(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Dc,Ul,Ib,Lb="\0_ec_inner",W3=1,XS=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ie(i),this._locale=new Ie(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=Eb(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Eb(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Ib(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=n&&n.replaceMergeMainTypeMap;V3(this),D(e,function(c,v){c!=null&&(Me.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?ae(c):_e(a[v],c,!0))}),u&&u.each(function(c,v){Me.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Me.topologicalTravel(s,Me.getAllClassMainTypes(),f,this);function f(c){var v=G3(this,c,Ye(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=c2(h,v,d);KF(p,c,Me),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(p,function(S,x){var w=S.existing,b=S.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=c==="series",C=Me.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var A=G({componentIndex:x},S.keyInfo);w=new C(b,this,this,A),G(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&Dc(this)}this._seriesIndices||Dc(this)},t.prototype.getOption=function(){var e=ae(this.option);return D(e,function(n,a){if(Me.hasClass(a)){for(var i=Ye(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!rf(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Lb],e},t.prototype.setTheme=function(e){this._theme=new Ie(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(Ye(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Pb("id",i,s):o!=null?l=Pb("name",o,s):l=Fe(s,function(u){return!!u}),Rb(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):Fe(this._componentsMap.get(a),function(u){return!!u});return l(Rb(o,e));function s(u){var f=a+"Index",c=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[c],name:u[v]}:null}function l(u){return e.filter?Fe(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(ie(e)){var o=n,s=e;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=j(e)?i.get(e):fe(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=mt(e,null);return Fe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Ul(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){D(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){Ul(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return D(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return Ul(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Ul(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=K(a)},t.prototype.restoreData=function(e){Dc(this);var n=this._componentsMap,a=[];n.each(function(i,o){Me.hasClass(o)&&a.push(o)}),Me.topologicalTravel(a,Me.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!Y3(o,e))&&o.restoreData()})})},t.internalField=(function(){Dc=function(e){var n=e._seriesIndices=[];D(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=K(n)},Ul=function(e){},Ib=function(e,n){e.option={},e.option[Lb]=W3,e._componentsMap=K({series:[]}),e._componentsCount=K();var a=n.aria;fe(a)&&a.enabled==null&&(a.enabled=!0),X3(n,e._theme.option),_e(n,HP,!1),e._mergeOption(n,null)}})(),t})(Ie);function Y3(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function X3(r,t){var e=r.color&&!r.colorLayer;D(t,function(n,a){a==="colorLayer"&&e||a==="color"&&r.color||Me.hasClass(a)||(typeof n=="object"?r[a]=r[a]?_e(r[a],n,!1):ae(n):r[a]==null&&(r[a]=n))})}function Pb(r,t,e){if($(t)){var n=K();return D(t,function(i){if(i!=null){var o=mt(i,null);o!=null&&n.set(i,!0)}}),Fe(e,function(i){return i&&n.get(i[r])})}else{var a=mt(t,null);return Fe(e,function(i){return i&&a!=null&&i[r]===a})}}function Rb(r,t){return t.hasOwnProperty("subType")?Fe(r,function(e){return e&&e.subType===t.subType}):r}function Eb(r){var t=K();return r&&D(Ye(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}xt(XS,YS);var j3=/^(min|max)?(.+)$/,Z3=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(D(Ye(t.series),function(o){o&&o.data&&dr(o.data)&&ih(o.data)}),D(Ye(t.dataset),function(o){o&&o.source&&dr(o.source)&&ih(o.source)})),t=ae(t);var a=this._optionBackup,i=q3(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ae(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=ae(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)K3(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Q3(o,this._currentMediaIndices)&&(s=U(o,function(f){return ae(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function q3(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&$(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),D(l,function(h){return v(h)}),D(n,function(h){return v(h.option)});function v(h){D(t,function(d){d(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function K3(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return D(r,function(i,o){var s=o.match(j3);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();J3(n[u],i,l)||(a=!1)}}),a}function J3(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Q3(r,t){return r.join(",")===t.join(",")}var Xr=D,uf=fe,kb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function xg(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=kb.length;e<n;e++){var a=kb[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?_e(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?_e(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function $t(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,le(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Au(r){$t(r,"itemStyle"),$t(r,"lineStyle"),$t(r,"areaStyle"),$t(r,"label"),$t(r,"labelLine"),$t(r,"upperLabel"),$t(r,"edgeLabel")}function ht(r,t){var e=uf(r)&&r[t],n=uf(e)&&e.textStyle;if(n)for(var a=0,i=Bw.length;a<i;a++){var o=Bw[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Pr(r){r&&(Au(r),ht(r,"label"),r.emphasis&&ht(r.emphasis,"label"))}function eH(r){if(uf(r)){xg(r),Au(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 t=r.markPoint;t&&(xg(t),Pr(t));var e=r.markLine;e&&(xg(e),Pr(e));var n=r.markArea;n&&Pr(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!dr(i))for(var o=0;o<i.length;o++)Pr(i[o]);D(r.categories,function(u){Au(u)})}if(a&&!dr(a))for(var o=0;o<a.length;o++)Pr(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Pr(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)$(l[o])?(Pr(l[o][0]),Pr(l[o][1])):Pr(l[o]);r.type==="gauge"?(ht(r,"axisLabel"),ht(r,"title"),ht(r,"detail")):r.type==="treemap"?($t(r.breadcrumb,"itemStyle"),D(r.levels,function(u){Au(u)})):r.type==="tree"&&Au(r.leaves)}}function Xn(r){return $(r)?r:r?[r]:[]}function Ob(r){return($(r)?r[0]:r)||{}}function tH(r,t){Xr(Xn(r.series),function(n){uf(n)&&eH(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xr(e,function(n){Xr(Xn(r[n]),function(a){a&&(ht(a,"axisLabel"),ht(a.axisPointer,"label"))})}),Xr(Xn(r.parallel),function(n){var a=n&&n.parallelAxisDefault;ht(a,"axisLabel"),ht(a&&a.axisPointer,"label")}),Xr(Xn(r.calendar),function(n){$t(n,"itemStyle"),ht(n,"dayLabel"),ht(n,"monthLabel"),ht(n,"yearLabel")}),Xr(Xn(r.radar),function(n){ht(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Xr(Xn(r.geo),function(n){uf(n)&&(Pr(n),Xr(Xn(n.regions),function(a){Pr(a)}))}),Xr(Xn(r.timeline),function(n){Pr(n),$t(n,"label"),$t(n,"itemStyle"),$t(n,"controlStyle",!0);var a=n.data;$(a)&&D(a,function(i){fe(i)&&($t(i,"label"),$t(i,"itemStyle"))})}),Xr(Xn(r.toolbox),function(n){$t(n,"iconStyle"),Xr(n.feature,function(a){$t(a,"iconStyle")})}),ht(Ob(r.axisPointer),"label"),ht(Ob(r.tooltip).axisPointer,"label")}function rH(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function nH(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=e)}function Nb(r){r&&D(aH,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var aH=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],iH=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Wl(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<wg.length;e++){var n=wg[e][1],a=wg[e][0];t[n]!=null&&(t[a]=t[n])}}function Bb(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Vb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function oH(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function jP(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&jP(r[e].children,t)}function ZP(r,t){tH(r,t),r.series=Ye(r.series),D(r.series,function(e){if(fe(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Bb(e.label);var a=e.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)Bb(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=rH(e,"pointer.color");o!=null&&nH(e,"itemStyle.color",o)}else if(n==="bar"){Wl(e),Wl(e.backgroundStyle),Wl(e.emphasis);var a=e.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Wl(a[i]),Wl(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Vb(e),jP(e.data,Vb)}else n==="graph"||n==="sankey"?oH(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&le(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Nb(e)}}),r.dataRange&&(r.visualMap=r.dataRange),D(iH,function(e){var n=r[e];n&&($(n)||(n=[n]),D(n,function(a){Nb(a)}))})}var sH=Vf(lH);function lH(r){var t=K();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(e){if(e.length!==0){var n=e[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&e.reverse(),D(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),uH(e)}})}function uH(r){D(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return a;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=ji(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var Qd=(function(){function r(t){this.data=t.data||(t.sourceFormat===on?{}:[]),this.sourceFormat=t.sourceFormat||L2,this.seriesLayoutBy=t.seriesLayoutBy||Qr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var a=e[n];a.type==null&&WP(this,n)===Et.Must&&(a.type="ordinal")}}return r})();function jS(r){return r instanceof Qd}function b0(r,t,e){e=e||qP(r);var n=t.seriesLayoutBy,a=cH(r,e,n,t.sourceHeader,t.dimensions),i=new Qd({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ae(t)});return i}function ZS(r){return new Qd({data:r,sourceFormat:dr(r)?Ja:br})}function fH(r){return new Qd({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ae(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function qP(r){var t=L2;if(dr(r))t=Ja;else if($(r)){r.length===0&&(t=Pt);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if($(a)||dr(a)){t=Pt;break}else if(fe(a)){t=Cr;break}}}}else if(fe(r)){for(var i in r)if(J(r,i)&&Wt(r[i])){t=on;break}}return t}function cH(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:zb(a),startIndex:o,dimensionsDetectedCount:i};if(t===Pt){var s=r;n==="auto"||n==null?Fb(function(u){u!=null&&u!=="-"&&(j(u)?o==null&&(o=1):o=0)},e,s,10):o=Ee(n)?n:n?1:0,!a&&o===1&&(a=[],Fb(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===jo?s.length:s[0]?s[0].length:null}else if(t===Cr)a||(a=vH(r));else if(t===on)a||(a=[],D(r,function(u,f){a.push(f)}));else if(t===br){var l=wl(r[0]);i=$(l)&&l.length||1}return{startIndex:o,dimensionsDefine:zb(a),dimensionsDetectedCount:i}}function vH(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return De(e)}function zb(r){if(r){var t=K();return U(r,function(e,n){e=fe(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function Fb(r,t,e,n){if(t===jo)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function KP(r){var t=r.sourceFormat;return t===Cr||t===on}var Ni,Bi,Vi,zi,Gb,Hb,JP=(function(){function r(t,e){var n=jS(t)?t:ZS(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Ja&&(this._offset=0,this._dimSize=e,this._data=a),Hb(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Hb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=Gb[qS(u,f)];if(G(o,h),u===Ja)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=QP(u,f);o.getItem=q(d,null,s,c,v);var p=eR(u,f);o.count=q(p,null,s,c,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Gb=(t={},t[Pt+"_"+Qr]={pure:!0,appendData:i},t[Pt+"_"+jo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Cr]={pure:!0,appendData:i},t[on]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[br]={appendData:i},t[Ja]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Ic=function(r){$(r)||l2("series.data or dataset.source must be an array.")};Ni={},Ni[Pt+"_"+Qr]=Ic,Ni[Pt+"_"+jo]=Ic,Ni[Cr]=Ic,Ni[on]=function(r,t){for(var e=0;e<t.length;e++){var n=t[e].name;n==null&&l2("dimension name must not be null/undefined.")}},Ni[br]=Ic;var $b=function(r,t,e,n){return r[n]},hH=(Bi={},Bi[Pt+"_"+Qr]=function(r,t,e,n){return r[n+t]},Bi[Pt+"_"+jo]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Bi[Cr]=$b,Bi[on]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Bi[br]=$b,Bi);function QP(r,t){var e=hH[qS(r,t)];return e}var Ub=function(r,t,e){return r.length},dH=(Vi={},Vi[Pt+"_"+Qr]=function(r,t,e){return Math.max(0,r.length-t)},Vi[Pt+"_"+jo]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Vi[Cr]=Ub,Vi[on]=function(r,t,e){var n=e[0].name,a=n!=null?r[n]:null;return a?a.length:0},Vi[br]=Ub,Vi);function eR(r,t){var e=dH[qS(r,t)];return e}var bg=function(r,t,e){return r[t]},pH=(zi={},zi[Pt]=bg,zi[Cr]=function(r,t,e){return r[e]},zi[on]=bg,zi[br]=function(r,t,e){var n=wl(r);return n instanceof Array?n[t]:n},zi[Ja]=bg,zi);function tR(r){var t=pH[r];return t}function qS(r,t){return r===Pt?r+"_"+t:r}function ol(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return tR(i)(n,o,s)}else{var l=n;return i===br&&(l=wl(n)),l}}}}var gH=/\{@(.+?)\}/g,ep=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&$(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(ie(i))return l.status=e,l.dimensionIndex=a,i(l);if(j(i)){var f=MP(i,l);return f.replace(gH,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=ol(s,t,d);if(o&&$(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return ol(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r})();function Wb(r){var t,e;return fe(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Hu(r){return new yH(r)}var yH=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if($(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}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(t,e,n,a,i){Yb.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Yb.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),$(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),Yb=(function(){var r,t,e,n,a,i={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}})();function Qa(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Ee(r)&&r!=null&&r!=="-"&&(r=+Xo(r)),r==null||r===""?NaN:Number(r))}var mH=K({number:function(r){return parseFloat(r)},time:function(r){return+Xo(r)},trim:function(r){return j(r)?Vr(r):r}});function rR(r){return mH.get(r)}var nR={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},_H=(function(){function r(t,e){if(!Ee(e)){var n="";ze(n)}this._opFn=nR[t],this._rvalFloat=ha(e)}return r.prototype.evaluate=function(t){return Ee(t)?this._opFn(t,this._rvalFloat):this._opFn(ha(t),this._rvalFloat)},r})(),aR=(function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Ee(t)?t:ha(t),a=Ee(e)?e:ha(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=j(t),l=j(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),SH=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ha(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=ha(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function xH(r,t){return r==="eq"||r==="ne"?new SH(r==="eq",t):J(nR,r)?new _H(r,t):null}function iR(r){var t="",e=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(t+="G"+r.g,e=r.g),r.ge!=null&&(t+="GE"+r.ge,n=r.ge),r.l!=null&&(t+="L"+r.l,a=r.l),r.le!=null&&(t+="LE"+r.le,i=r.le)),{key:t,g:e,ge:n,l:a,le:i}}function oR(r,t){return t>r.g&&t>=r.ge&&t<r.l&&t<=r.le}var wH=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Qa(t,e)},r})();function bH(r,t){var e=new wH,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Qr&&ze(o);var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&ze(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=QP(a,Qr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,i,s,p)},e.getRawData=q(CH,null,r)),e.cloneRawData=q(TH,null,r);var v=eR(a,Qr);e.count=q(v,null,n,i,s);var h=tR(a);e.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return e.getDimensionInfo=q(AH,null,s,l),e.cloneAllDimensionInfo=q(MH,null,s),e}function CH(r){var t=r.sourceFormat;if(!KS(t)){var e="";ze(e)}return r.data}function TH(r){var t=r.sourceFormat,e=r.data;if(!KS(t)){var n="";ze(n)}if(t===Pt){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===Cr){for(var a=[],i=0,o=e.length;i<o;i++)a.push(G({},e[i]));return a}}function AH(r,t,e){if(e!=null){if(Ee(e)||!isNaN(e)&&!J(t,e))return r[e];if(J(t,e))return t[e]}}function MH(r){return ae(r)}var sR=K();function DH(r){r=ae(r);var t=r.type,e="";t||ze(e);var n=t.split(":");n.length!==2&&ze(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,sR.set(t,r)}function IH(r,t,e){var n=Ye(r),a=n.length,i="";a||ze(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=LH(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function LH(r,t,e,n){var a="";t.length||ze(a),fe(r)||ze(a);var i=r.type,o=sR.get(i);o||ze(a);var s=U(t,function(u){return bH(u,o)}),l=Ye(o.transform({upstream:s[0],upstreamList:s,config:ae(r.config)}));return U(l,function(u,f){var c="";fe(u)||ze(c),u.data||ze(c);var v=qP(u.data);KS(v)||ze(c);var h,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Qr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Qr,sourceHeader:0,dimensions:u.dimensions};return b0(u.data,h,null)})}function KS(r){return r===Pt||r===Cr}var PH=typeof Uint32Array===Tl?Array:Uint32Array,RH=typeof Uint16Array===Tl?Array:Uint16Array,lR=typeof Int32Array===Tl?Array:Int32Array,Xb=typeof Float64Array===Tl?Array:Float64Array,uR={float:Xb,int:lR,ordinal:Array,number:Array,time:Xb},Cg;function hs(r){return r>65535?PH:RH}function EH(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function jb(r,t,e,n,a){var i=uR[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var C0=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Cg[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],KP(a),this._dimensions=U(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new uR[e||"float"](this._rawCount),this._rawExtent[i]=Ot(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Ot());for(var l=i[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];jb(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var f=a[d],p=Cg.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=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(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Ot()),jb(i,f,c.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var v=[],h=t;h<e;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)}),Nt(e);var n=this.count();return n===0?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=hs(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=hs(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=e(v);else if(l===1){var p=c[f][d];h=e(p,v)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=v,h=e.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=De(t),i=a.length;if(!i)return this;var o=e.count(),s=hs(e._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],v=t[f][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var m=g[y],w=_[y];(m>=c&&m<=v||isNaN(m))&&(w>=S&&w<=x||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var b=e.getRawIndex(y),m=h[a[0]][b];(m>=c&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=e.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=h[A][b];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Ot();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=a[e[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=a[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,v,h=new(hs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[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),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var w=d,b=Math.min(d+l,o),T=d-1,C=i[u];f=-1,v=w;for(var A=-1,M=0,_=w;_<b;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){M++,A<0&&(A=S);continue}c=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),c>f&&(f=c,v=S)}M>0&&M<b-w&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/e),o=a[t],s=this.count(),l=new(hs(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,c=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=Ot(),v=new(hs(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t,e){var n=this._chunks[t],a=Ot();if(!n)return a;var i=this.count(),o=!this._indices&&!e;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=iR(e),f=u.key,c=l[f];if(c)return c.slice();for(var v=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!e||oR(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&kn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?EH(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ae(this._extent),t._rawExtent=ae(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var a=0;a<n;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,n,a,i){return Qa(e[i],this._dimensions[i])}Cg={arrayRows:t,objectRows:function(e,n,a,i){return Qa(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return Qa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}})(),r})(),fR=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,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 t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Lc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=dr(s)?Ja:br,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Q(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(c.sourceHeader,v.sourceHeader),p=Q(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[b0(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[b0(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&qb(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&qb(c),s.push(f),l.push(u._getVersionSign())}),n?o=IH(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[fH(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Lc(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new C0,s.initData(new JP(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Lc(t)){var e=WS(t);return e?[e.getSourceManager()]:[]}else return U(z3(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(Lc(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r})();function Zb(r){var t=r.option.transform;t&&ih(r.option.transform)}function Lc(r){return r.mainType==="series"}function qb(r){throw new Error(r)}var kH="line-height:1";function cR(r){var t=r.lineHeight;return t==null?kH:"line-height:"+Qt(t+"")+"px"}function vR(r,t){var e=r.color||B.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Qt(n+"")+"px;color:"+Qt(e)+";font-weight:"+Qt(a+""),valueStyle:"font-size:"+Qt(o+"")+"px;color:"+Qt(i)+";font-weight:"+Qt(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var OH=[0,10,20,30],NH=["",`
44
+ `,`
45
+
46
+ `,`
47
+
48
+
49
+ `];function pt(r,t){return t.type=r,t}function T0(r){return r.type==="section"}function hR(r){return T0(r)?BH:VH}function dR(r){if(T0(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return D(r.blocks,function(a){var i=dR(a);i>=t&&(t=i+ +(n&&(!i||T0(a)&&!a.noHeader)))}),t}return 0}function BH(r,t,e,n){var a=t.noHeader,i=zH(dR(t)),o=[],s=t.blocks||[];Yt(!s||$(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new aR(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=t.valueFormatter,m=hR(p)(y?G(G({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):A0(n,o.join(""),a?e:i.html);if(a)return c;var v=S0(t.header,"ordinal",r.useUTC),h=vR(n,r.renderMode).nameStyle,d=cR(n);return r.renderMode==="richText"?pR(r,v,h)+i.richText+c:A0(n,'<div style="'+h+";"+d+';">'+Qt(v)+"</div>"+c,e)}function VH(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=$(S)?S:[S],U(S,function(x,w){return S0(x,$(h)?h[w]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||B.color.secondary,a),v=i?"":S0(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),p=!s||!i,g=!s&&i,y=vR(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":pR(r,v,m))+(o?"":HH(r,d,p,g,_)):A0(n,(s?"":c)+(i?"":FH(v,!s,m))+(o?"":GH(d,p,g,_)),e)}}function Kb(r,t,e,n,a,i){if(r){var o=hR(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function zH(r){return{html:OH[r],richText:NH[r]}}function A0(r,t,e){var n='<div style="clear:both"></div>',a="margin: "+e+"px 0 0",i=cR(r);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function FH(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Qt(r)+"</span>"}function GH(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=$(r)?r:[r],'<span style="'+i+";"+n+'">'+U(r,function(o){return Qt(o)}).join("&nbsp;&nbsp;")+"</span>"}function pR(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function HH(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle($(t)?t.join(" "):t,i)}function gR(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Io(n)}function yR(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Tg=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=dS()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=I3({color:e,type:t,renderMode:n,markerId:a});return j(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};$(e)?D(e,function(i){return G(n,i)}):G(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r})();function mR(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=$(s),u=gR(t,e),f,c,v,h;if(o>1||l&&!o){var d=$H(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=ol(a,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=pS(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return pt("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[pt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Vr(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(e)})].concat(v||[])})}function $H(r,t,e,n,a){var i=t.getData(),o=kn(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(ol(i,e,c),c)}):D(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(pt("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ma=me();function Pc(r,t){return r.getName(t)||r.getId(t)}var qv="__universalTransitionEnabled",Ze=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Hu({count:WH,reset:YH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Ma(this).sourceManager=new fR(this);i.prepareSource();var o=this.getInitialData(e,a);Qb(o,this),this.dataTask.context.data=o,Ma(this).dataBeforeProcessed=o,Jb(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=lf(this),i=a?Ko(e):{},o=this.subType;Me.hasClass(o)&&(o+="Series"),_e(e,n.getTheme().get(this.subType)),_e(e,this.getDefaultOption()),wo(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Fn(e,i,a)},t.prototype.mergeOption=function(e,n){e=_e(this.option,e,!0),this.fillDataTextStyle(e.data);var a=lf(this);a&&Fn(this.option,e,a);var i=Ma(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Qb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ma(this).dataBeforeProcessed=o,Jb(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!dr(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&wo(e[a],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=M0(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return Ma(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=M0(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}Ma(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Ma(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ma(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,x=Math.abs(S);x<=i&&((x<c||x===c&&S>=0&&v<0)&&(c=x,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},t.prototype.formatTooltip=function(e,n,a){return mR({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Le.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=YS.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Pc(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=De(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Pc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qv])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){fe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Pc(e,c);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Pc(e,h);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Me.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(Me);xt(Ze,ep);xt(Ze,YS);_2(Ze,Me);function Jb(r){var t=r.name;pS(r)||(r.name=UH(r)||t)}function UH(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return D(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function WH(r){return r.model.getRawData().count()}function YH(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),XH}function XH(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Qb(r,t){D(Ku(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xe(jH,t))})}function jH(r,t){var e=M0(r);return e&&e.setOutputEnd((t||this).count()),t}function M0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Qe=(function(){function r(){this.group=new oe,this.uid=qo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();mS(Qe);Nd(Qe);function Jo(){var r=me();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var _R=me(),ZH=Jo(),$e=(function(){function r(){this.group=new oe,this.uid=qo("viewChart"),this.renderTask=Hu({plan:qH,reset:KH}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&tC(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&tC(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){gi(this.group,t)},r.markUpdateMethod=function(t,e){_R(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function eC(r,t,e){r&&af(r)&&(t==="emphasis"?pa:ga)(r,e)}function tC(r,t,e){var n=bo(r,t),a=t&&t.highlightKey!=null?SG(t.highlightKey):null;n!=null?D(Ye(n),function(i){eC(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){eC(i,e,a)})}mS($e);Nd($e);function qH(r){return ZH(r.model)}function KH(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&_R(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),JH[l]}var JH={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Dh="\0__throttleOriginMethod",rC="\0__throttleRate",nC="\0__throttleType";function JS(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||e;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Pl(r,t,e,n){var a=r[t];if(a){var i=a[Dh]||a,o=a[nC],s=a[rC];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=JS(i,e,n==="debounce"),a[Dh]=i,a[nC]=n,a[rC]=e}return a}}function ff(r,t){var e=r[t];e&&e[Dh]&&(e.clear&&e.clear(),r[t]=e[Dh])}var aC=me(),iC={itemStyle:To(dP,!0),lineStyle:To(hP,!0)},QH={lineStyle:"stroke",itemStyle:"fill"};function SR(r,t){var e=r.visualStyleMapper||iC[t];return e||(console.warn("Unknown style type '"+t+"'."),iC.itemStyle)}function xR(r,t){var e=r.visualDrawType||QH[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var e4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=SR(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=xR(r,n),u=o[l],f=ie(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=G({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},Yl=new Ie,t4={createOnAllSeries:!0,reset:function(r,t){if(!r.ignoreStyleOnData){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=SR(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Yl.option=l[n];var u=a(Yl),f=o.ensureUniqueItemVisual(s,"style");G(f,u),Yl.option.decal&&(o.setItemVisual(s,"decal",Yl.option.decal),Yl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},r4={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+"-"+e.getColorBy();aC(e).scope=t.get(n)||t.set(n,{})}}),r.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.getRawData(),a={},i=e.getData(),o=aC(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=xR(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},Rc=Math.PI;function n4(r,t){t=t||{},le(t,{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new oe,n=new be({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Re({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new be({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Wd({shape:{startAngle:-Rc/2,endAngle:-Rc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Rc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Rc*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var wR=(function(){function r(t,e,n,a){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.__preparePipelineContext?t.__preparePipelineContext(e,n):y2(t,e,n);t.pipelineContext=n.context=a},r.prototype.restorePipelines=function(t,e){var n=this,a=n._pipelineMap=K();e.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Yt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(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(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Hu({plan:l4,reset:u4,count:c4}));h.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||Hu({reset:a4});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=t.seriesType,f=t.getTargetSeries,c=t.dirtyOnOverallProgress,v=!1,h="";Yt(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):D(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Hu({reset:i4,onDirty:s4})));y.context={model:p,dirtyOnOverallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return ie(t)&&(t={overallReset:t,seriesType:v4(t)}),t.uid=qo("stageHandler"),e&&(t.visualType=e),t},r})();function a4(r){r.overallReset(r.ecModel,r.api,r.payload)}function i4(r){return r.dirtyOnOverallProgress&&o4}function o4(){this.agent.dirty(),this.getDownstream().dirty()}function s4(){this.agent&&this.agent.dirty()}function l4(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function u4(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ye(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?U(t,function(e,n){return bR(n)}):f4}var f4=bR(0);function bR(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function c4(r){return r.data.count()}function v4(r){Ih=null;try{r(cf,CR)}catch{}return Ih}var cf={},CR={},Ih;TR(cf,XS);TR(CR,R2);cf.eachSeriesByType=cf.eachRawSeriesByType=function(r){Ih=r};cf.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ih=r.subType)};function TR(r,t){for(var e in t.prototype)r[e]=ot}var ne=B.darkColor,oC=ne.background,Xl=function(){return{axisLine:{lineStyle:{color:ne.axisLine}},splitLine:{lineStyle:{color:ne.axisSplitLine}},splitArea:{areaStyle:{color:[ne.backgroundTint,ne.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ne.axisMinorSplitLine}},axisLabel:{color:ne.axisLabel},axisName:{}}},sC={label:{color:ne.secondary},itemStyle:{borderColor:ne.borderTint},dividerLineStyle:{color:ne.border}},AR={darkMode:!0,color:ne.theme,backgroundColor:oC,axisPointer:{lineStyle:{color:ne.border},crossStyle:{color:ne.borderShade},label:{color:ne.tertiary}},legend:{textStyle:{color:ne.secondary},pageTextStyle:{color:ne.tertiary}},textStyle:{color:ne.secondary},title:{textStyle:{color:ne.primary},subtextStyle:{color:ne.quaternary}},toolbox:{iconStyle:{borderColor:ne.accent50},feature:{dataView:{backgroundColor:oC,textColor:ne.primary,textareaColor:ne.background,textareaBorderColor:ne.border,buttonColor:ne.accent50,buttonTextColor:ne.neutral00}}},tooltip:{backgroundColor:ne.neutral20,defaultBorderColor:ne.border,textStyle:{color:ne.tertiary}},dataZoom:{borderColor:ne.accent10,textStyle:{color:ne.tertiary},brushStyle:{color:ne.backgroundTint},handleStyle:{color:ne.neutral00,borderColor:ne.accent20},moveHandleStyle:{color:ne.accent40},emphasis:{handleStyle:{borderColor:ne.accent50}},dataBackground:{lineStyle:{color:ne.accent30},areaStyle:{color:ne.accent20}},selectedDataBackground:{lineStyle:{color:ne.accent50},areaStyle:{color:ne.accent30}}},visualMap:{textStyle:{color:ne.secondary},handleStyle:{borderColor:ne.neutral30}},timeline:{lineStyle:{color:ne.accent10},label:{color:ne.tertiary},controlStyle:{color:ne.accent30,borderColor:ne.accent30}},calendar:{itemStyle:{color:ne.neutral00,borderColor:ne.neutral20},dayLabel:{color:ne.tertiary},monthLabel:{color:ne.secondary},yearLabel:{color:ne.secondary}},matrix:{x:sC,y:sC,backgroundColor:{borderColor:ne.axisLine},body:{itemStyle:{borderColor:ne.borderTint}}},timeAxis:Xl(),logAxis:Xl(),valueAxis:Xl(),categoryAxis:Xl(),line:{symbol:"circle"},graph:{color:ne.theme},gauge:{title:{color:ne.secondary},axisLine:{lineStyle:{color:[[1,ne.neutral05]]}},axisLabel:{color:ne.axisLabel},detail:{color:ne.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ne.background}},radar:(function(){var r=Xl();return r.axisName={color:ne.axisLabel},r.axisLine.lineStyle.color=ne.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:ne.neutral20,textStyle:{color:ne.secondary}},emphasis:{itemStyle:{color:ne.neutral30}}}},sunburst:{itemStyle:{borderColor:ne.background}},map:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},label:{color:ne.tertiary},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}}},geo:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{color:ne.highlight}}}};AR.categoryAxis.splitLine.show=!1;var h4=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(j(t)){var i=wn(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),D0=["symbol","symbolSize","symbolRotate","symbolOffset"],lC=D0.concat(["symbolKeepAspect"]),d4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<D0.length;o++){var s=D0[o],l=r.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(G({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=De(a);function f(c,v){for(var h=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,a[g](h,d))}}return{dataEach:i?f:null}}},p4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<lC.length;s++){var l=lC[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function QS(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Xf(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function MR(r,t,e,n){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function DR(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}D([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=G({},a),o.dispatchAction(G(a,{type:n[1],seriesIndex:e(i,a)}))})})}function ds(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=bo(c,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:$(v)?c.getName(v[0]):c.getName(v),selected:j(l)?l:G({},l)})}})}function g4(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(ds("map","selectchanged",t,a,n),ds("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ds("map","selected",t,a,n),ds("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ds("map","unselected",t,a,n),ds("pie","unselected",t,a,n))})}function uo(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var Ir=new Yr,IR={};function y4(r,t){IR[r]=t}function m4(r){return IR[r]}var LR={};function _4(r,t){LR[r]=t}function S4(r){return LR[r]}var tp=me();function x4(r){tp(r).prepare={}}function w4(r){tp(r).fullUpdate={}}function PR(r){return tp(r).prepare}function Rl(r){return tp(r).fullUpdate}var b4=Math.round(Math.random()*9),C4=typeof Object.defineProperty=="function",T4=(function(){function r(){this._id="__ec_inner_"+b4++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return C4?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),A4=Ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),M4=Ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),D4=Ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*h,l+s+v*h,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*h,l+s+v*h,e-f,l+s),r.closePath()}}),I4=Ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),L4={line:dt,rect:be,roundRect:be,square:be,circle:xa,diamond:M4,pin:D4,arrow:I4,triangle:A4},P4={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},Lh={};D(L4,function(r,t){Lh[t]=new r});var R4=Ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=dh(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=Lh[n];a||(n="rect",a=Lh[n]),P4[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function E4(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||B.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function gt(r,t,e,n,a,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=nP(r.slice(8),new se(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=of(r.slice(7),{},new se(t,e,n,a),o?"center":"cover"):l=new R4({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=E4,i&&l.setColor(i),l}function El(r){return $(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Qo(r,t){if(r!=null)return $(r)||(r=[r,r]),[Z(r[0],t[0])||0,Z(Q(r[1],r[0]),t[1])||0]}function fo(r){return isFinite(r)}function k4(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=fo(n)?n:0,a=fo(a)?a:1,i=fo(i)?i:0,o=fo(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function O4(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*a+e.y,l=l*i),o=fo(o)?o:.5,s=fo(s)?s:.5,l=l>=0&&fo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function I0(r,t,e){for(var n=t.type==="radial"?O4(r,t,e):k4(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function N4(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Ec(r){return parseInt(r,10)}function Bs(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Ec(s[n])||Ec(r.style[n]))-(Ec(s[i])||0)-(Ec(s[o])||0)||0}function B4(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ee(r)?[r]:$(r)?r:null}function e1(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&B4(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=U(e,function(i){return i/a}),n/=a)}return[e,n]}var V4=new Vn(!0);function Ph(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function uC(r){return typeof r=="string"&&r!=="none"}function Rh(r){var t=r.fill;return t!=null&&t!=="none"}function fC(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function cC(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function L0(r,t,e){var n=_S(t.image,t.__image,e);if(Bd(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Rv),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function z4(r,t,e,n,a){var i,o=Ph(e),s=Rh(e),l=e.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var c=t.path||V4,v=t.__dirty;if(!n){var h=e.fill,d=e.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,x=void 0,w=void 0,b=void 0;(p||g)&&(b=t.getBoundingRect()),p&&(_=v?I0(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=v?I0(r,d,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(x=v||!t.__canvasFillPattern?L0(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(w=v||!t.__canvasStrokePattern?L0(r,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(w?r.strokeStyle=w:o=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,A;r.setLineDash&&e.lineDash&&(i=e1(t),C=i[0],A=i[1]);var M=!0;(f||v&Is)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=A),n?(a.batchFill=s,a.batchStroke=o):e.strokeFirst?(o&&cC(r,e),s&&fC(r,e)):(s&&fC(r,e),o&&cC(r,e)),C&&r.setLineDash([])}function F4(r,t,e){var n=t.__image=_S(e.image,t.__image,t,t.onload);if(!(!n||!Bd(n))){var a=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,a,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,v=s-f;r.drawImage(n,u,f,c,v,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function G4(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||ua,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=e1(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Ph(e)&&r.strokeText(a,e.x,e.y),Rh(e)&&r.fillText(a,e.x,e.y)):(Rh(e)&&r.fillText(a,e.x,e.y),Ph(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var vC=["shadowBlur","shadowOffsetX","shadowOffsetY"],hC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function RR(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){er(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?po.opacity:o}(n||t.blend!==e.blend)&&(i||(er(r,a),i=!0),r.globalCompositeOperation=t.blend||po.blend);for(var s=0;s<vC.length;s++){var l=vC[s];(n||t[l]!==e[l])&&(i||(er(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(er(r,a),i=!0),r.shadowColor=t.shadowColor||po.shadowColor),i}function dC(r,t,e,n,a){var i=t.style,o=n?null:e&&e.style||{};if(i===o)return!1;var s=RR(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(er(r,a),s=!0),uC(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(er(r,a),s=!0),uC(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(er(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(er(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<hC.length;f++){var c=hC[f],v=c[0];(n||i[v]!==o[v])&&(s||(er(r,a),s=!0),r[v]=i[v]||c[1])}return s}function H4(r,t,e,n,a){return RR(r,t.style,e&&e.style,n,a)}function ER(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function $4(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),ER(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function U4(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var pC=1,gC=2,yC=3,mC=4;function W4(r){var t=Rh(r),e=Ph(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function er(r,t){t.batchFill&&(t.batchFill=!1,r.fill()),t.batchStroke&&(t.batchStroke=!1,r.stroke())}function kR(r,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};co(r,t,e),Zs(r,e)}function co(r,t,e){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~cr,t.__isRendered=!1;return}var a=t.__clipPaths,i=e.prevElClipPaths,o=t.style,s=!1,l=!1;if((!i||N4(a,i))&&(i&&(er(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(er(r,e),r.save(),$4(a,r,e),s=!0,e.prevElClipPaths=a)),e.allClipped){t.__dirty&=~cr,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Ae&&t.autoBatch&&W4(o);s||U4(n,u.transform)?(er(r,e),ER(r,t)):f||er(r,e),t instanceof Ae?(e.lastDrawType!==pC&&(l=!0,e.lastDrawType=pC),dC(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),z4(r,t,o,f,e)):t instanceof al?(e.lastDrawType!==yC&&(l=!0,e.lastDrawType=yC),dC(r,t,u,l,e),G4(r,t,o)):t instanceof Rt?(e.lastDrawType!==gC&&(l=!0,e.lastDrawType=gC),H4(r,t,u,l,e),F4(r,t,o)):t.getTemporalDisplayables&&(e.lastDrawType!==mC&&(l=!0,e.lastDrawType=mC),Y4(r,t,e)),t.innerAfterBrush(),t.afterBrush&&(f&&er(r,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Zs(r,t){er(r,t),t.prevElClipPaths&&r.restore()}function Y4(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),co(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Zs(r,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),co(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Zs(r,i),t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Ag=new T4,_C=new tl(100),SC=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&Ag.delete(r);var i=Ag.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=a?1:1/e,Ag.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,v=0;v<SC.length;++v){var h=o[SC[v]];if(h!=null&&!$(h)&&!j(h)&&!Ee(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=_C.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=NR(o.dashArrayX),y=X4(o.dashArrayY),m=OR(o.symbol),_=j4(g),S=BR(y),x=!a&&rr.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;x&&(x.width=b.width*e,x.height=b.height*e,T=x.getContext("2d")),A(),c&&_C.put(d,x||w),u.image=x,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var M=1,L=0,I=_.length;L<I;++L)M=Ow(M,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=Ow(P,m[L].length);M*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var M=0,L=0;L<y.length;++L)M+=y[L];if(M<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var N=R/2%m.length,O=0,z=0,F=0;O<b.width*2;){for(var H=0,L=0;L<g[E].length;++L)H+=g[E][L];if(H<=0)break;if(z%2===0){var W=(1-o.symbolSize)*.5,X=O+g[E][z]*W,Y=I+y[P]*W,ee=g[E][z]*o.symbolSize,ye=y[P]*o.symbolSize,Ne=F/2%m[N].length;ve(X,Y,ee,ye,m[N][Ne])}O+=g[E][z],++F,++z,z===g[E].length&&(z=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function ve(te,ge,re,he,Ue){var Pe=a?1:e,Ge=gt(Ue,te*Pe,ge*Pe,re*Pe,he*Pe,o.color,o.symbolKeepAspect);if(a){var We=n.painter.renderOneToVNode(Ge);We&&w.children.push(We)}else kR(T,Ge)}}}}function OR(r){if(!r||r.length===0)return[["rect"]];if(j(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!j(r[e])){t=!1;break}if(t)return OR([r]);for(var n=[],e=0;e<r.length;++e)j(r[e])?n.push([r[e]]):n.push(r[e]);return n}function NR(r){if(!r||r.length===0)return[[0,0]];if(Ee(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Ee(r[n])){e=!1;break}if(e)return NR([r]);for(var a=[],n=0;n<r.length;++n)if(Ee(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=U(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function X4(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ee(r)){var t=Math.ceil(r);return[t,t]}var e=U(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function j4(r){return U(r,function(t){return BR(t)})}function BR(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}var Z4=Vf(q4);function q4(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=sl(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=sl(a,t)}}})}var K4=1,J4=800,Q4=900,e$=920,t$=1e3,r$=2e3,xC=5e3,VR=1e3,n$=1100,t1=2e3,zR=3e3,a$=4e3,rp=4500,i$=4600,o$=5e3,s$=6e3,FR=7e3,l$={PROCESSOR:{SERIES_FILTER:J4,AXIS_STATISTICS:e$,FILTER:t$,STATISTIC:xC,STATISTICS:xC},VISUAL:{LAYOUT:VR,PROGRESSIVE_LAYOUT:n$,GLOBAL:t1,CHART:zR,POST_CHART_LAYOUT:i$,COMPONENT:a$,BRUSH:o$,CHART_ITEM:rp,ARIA:s$,DECAL:FR}},yt="__flagInMainProcess",kc="__mainProcessVersion",Dt="__pendingUpdate",Mg="__needsUpdateStatus",wC=/^[a-zA-Z0-9_]+$/,Dg="__connectUpdateStatus",bC=0,u$=1,f$=2;function GR(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return $R(this,r,t)}}function HR(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $R(this,r,t)}}function $R(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Yr.prototype[t].apply(r,e)}var UR=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Yr),WR=UR.prototype;WR.on=HR("on");WR.off=HR("off");var Fi,Ig,Oc,jn,Nc,Lg,Pg,ps,gs,CC,TC,Rg,AC,Bc,MC,YR,Tr,DC,ys,XR=(function(r){V(t,r);function t(e,n,a){var i=r.call(this,new h4)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=e;var o="canvas",s="auto",l=!1;i[kc]=1,a.ssr&&PF(function(v){var h=ce(v),d=h.dataIndex;if(d!=null){var p=K();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=Rw(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Q(a.useDirtyRect,l),useCoarsePointer:Q(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=JS(q(u.flush,u),17),i._updateTheme(n),i._locale=y3(a.locale||pP),i._coordSysMgr=new Wf;var f=i._api=MC(i);function c(v,h){return v.__prio-h.__prio}return Ov(kh,c),Ov(E0,c),i._scheduler=new wR(i,f,E0,kh),i._messageCenter=new UR,i._initEvents(),i.resize=q(i.resize,i),u.animation.on("frame",i._onframe,i),CC(u,i),TC(u,i),ih(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,n=this._model,a=this._api;if(DC(this),this[Dt]){var i=this[Dt].silent;this[yt]=!0,ys(this);try{Fi(this),jn.update.call(this,null,this[Dt].updateParams)}catch(l){throw this[yt]=!1,this[Dt]=null,l}this._zr.flush(),this[yt]=!1,this[Dt]=null,ps.call(this,i),gs.call(this,i)}else if(e.unfinished){var o=K4;do{e.unfinished=!1;var s=rr.getTime();e.performSeriesTasks(n),e.performDataProcessorTasks(n),Lg(this,n),e.performVisualTasks(n),Bc(this,this._model,a,"remain",{}),o-=rr.getTime()-s}while(o>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[yt]){if(this._disposed){this.id;return}var i,o,s;if(fe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yt]=!0,ys(this),!this._model||n){var l=new Z3(this._api),u=this._theme,f=this._model=new XS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},k0);var c={seriesTransition:s,optionChanged:!0};if(a)this[Dt]={silent:i,updateParams:c},this[yt]=!1,this.getZr().wakeUp();else{try{Fi(this),jn.update.call(this,null,c)}catch(v){throw this[Dt]=null,this[yt]=!1,v}this._ssr||this._zr.flush(),this[Dt]=null,this[yt]=!1,ps.call(this,i),gs.call(this,i)}}},t.prototype.setTheme=function(e,n){if(!this[yt]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Dt]&&(i==null&&(i=this[Dt].silent),o=this[Dt].updateParams,this[Dt]=null),this[yt]=!0,ys(this);try{this._updateTheme(e),a.setTheme(this._theme),Fi(this),jn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[yt]=!1,s}this[yt]=!1,ps.call(this,i),gs.call(this,i)}}},t.prototype._updateTheme=function(e){j(e)&&(e=jR[e]),e&&(e=ae(e),e&&ZP(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Le.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,n=e.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(IC[a]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();D($u,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(e)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=rr.createCanvas(),y=Rw(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return D(v,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new be({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),D(v,function(_){var S=new Rt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n,a){return Nc(this,"convertToPixel",e,n,a)},t.prototype.convertToLayout=function(e,n,a){return Nc(this,"convertToLayout",e,n,a)},t.prototype.convertFromPixel=function(e,n,a){return Nc(this,"convertFromPixel",e,n,a)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=$s(a,e);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=$s(a,e,{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?QS(s,l,n):Xf(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;D(c$,function(a){var i=function(o){var s=e.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&uo(l,function(p){var g=ce(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=G({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(a,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(a,i,e)});var n=this._messageCenter;D(R0,function(a,i){n.on(i,function(o){e.trigger(i,o)})}),g4(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&h2(this.getDom(),n1,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete $u[n.id]},t.prototype.resize=function(e){if(!this[yt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Dt]&&(i==null&&(i=this[Dt].silent),a=!0,this[Dt]=null),this[yt]=!0,ys(this);try{a&&Fi(this),jn.update.call(this,{type:"resize",animation:G({duration:0},e&&e.animation)})}catch(o){throw this[yt]=!1,o}this[yt]=!1,ps.call(this,i),gs.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(fe(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!O0[e]){var a=O0[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=G({},e);return n.type=P0[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(fe(n)||(n={silent:!!n}),!!Eh[e.type]&&this._model){if(this[yt]){this._pendingActions.push(e);return}var a=n.silent;Pg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Le.browser.weChat&&this._throttledZrFlush(),ps.call(this,a),gs.call(this,a)}},t.prototype.updateLabelLayout=function(){Ir.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Fi=function(c){x4(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),Ig(c,!0),Ig(c,!1),v.plan()},Ig=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(w,b){w!=="series"&&S(b)}):h.eachSeries(S);function S(w){var b=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,C=!b&&g[T];if(!C){var A=wn(w.type),M=v?Qe.getClass(A.main,A.sub):$e.getClass(A.sub);C=new M,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}w.__viewId=C.__id=T,C.__alive=!0,C.__model=w,C.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(C,w,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!v&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Oc=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){D([].concat(c._componentsViews).concat(c._chartsViews),S);return}var y=yS(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=K(),D(Ye(m),function(x){var w=mt(x,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(y,function(x){var w=_&&_.get(x.id)!=null;if(!w)if(fb(h))if(x instanceof Ze)h.type===go&&!h.notBlur&&!x.get(["emphasis","disabled"])&&vG(x,h,c._api);else{var b=AS(x.mainType,x.componentIndex,h.name,c._api),T=b.focusSelf,C=b.dispatchers;h.type===go&&T&&!h.notBlur&&u0(x.mainType,x.componentIndex,c._api),C&&D(C,function(A){h.type===go?pa(A):ga(A)})}else c0(h)&&x instanceof Ze&&(pG(x,h,c._api),lb(x),Tr(c))},c),g&&g.eachComponent(y,function(x){var w=_&&_.get(x.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function S(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,c._api,h)}},jn={prepareAndUpdate:function(c){Fi(this),jn.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){w4(h),h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),g.create(h,d),Ir.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,c),Lg(this,h),g.update(h,d),n(h),y.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Rg(this,h,d,c,v),Ir.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(y,m){if(y!==zn){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=K();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,c);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Bc(v,h,d,c,{},g),Ir.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),$e.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),Rg(this,v,this._api,c,{}),Ir.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),$e.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Ir.trigger("afterupdate",h,this._api))},updateLayout:function(c){jn.update.call(this,c)}};function e(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=$s(g,h),S=0;S<y.length;S++){var x=y[S];if(x[v]&&(m=x[v](g,_,d,p))!=null)return m}}Nc=e,Lg=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Pg=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Eh[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&wn(m[0]);this[yt]=!0,ys(this);var x=[c],w=!1;c.batch&&(w=!0,x=U(c.batch,function(E){return E=le(G({},E),c),E.batch=null,E}));var b=[],T,C=[],A=y.nonRefinedEventType,M=c0(c),L=fb(c);if(L&&H2(this._api),D(x,function(E){var N=y.action(E,d,h._api);if(y.refineEvent?C.push(N):T=N,T=T||G({},E),T.type=A,b.push(T),L){var O=gS(c),z=O.queryOptionMap,F=O.mainTypeSpecified,H=F?z.keys()[0]:"series";Oc(h,_,E,H),Tr(h)}else M?(Oc(h,_,E,"series"),Tr(h)):S&&Oc(h,_,E,S.main,S.sub)}),_!=="none"&&!L&&!M&&!S)try{this[Dt]?(Fi(this),jn.update.call(this,c),this[Dt]=null):jn[_].call(this,c)}catch(E){throw this[yt]=!1,E}if(w?T={type:A,escapeConnect:g,batch:b}:T=b[0],this[yt]=!1,!v){var I=void 0;if(y.refineEvent){var P=y.refineEvent(C,c,d,this._api).eventContent;Yt(fe(P)),I=le({type:y.refinedEventType},P),I.fromAction=c.type,I.fromActionPayload=c,I.escapeConnect=!0}var R=this._messageCenter;R.trigger(T.type,T),I&&R.trigger(I.type,I)}},ps=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();Pg.call(this,h,c)}},gs=function(c){!c&&this.trigger("updated")},CC=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[Dt]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},TC=function(c,v){c.on("mouseover",function(h){var d=h.target,p=uo(d,af);p&&(hG(p,h,v._api),Tr(v))}).on("mouseout",function(h){var d=h.target,p=uo(d,af);p&&(dG(p,h,v._api),Tr(v))}).on("click",function(h){var d=h.target,p=uo(d,function(m){return ce(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ce(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?h:v).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:w})}),d){var p=v.concat(h),g,y;Ov(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Rg=function(c,v,h,d,p){a(v),AC(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive=!1}),Bc(c,v,h,d,p),D(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},AC=function(c,v,h,d,p,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),l(m,y),f(m,y)})},Bc=function(c,v,h,d,p,g){var y=c._scheduler;p=G(p||{},{updatedSeries:v.getSeries()}),Ir.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),lb(_)}),y.unfinished=m||y.unfinished,Ir.trigger("series:layoutlabels",v,h,p),Ir.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Ir.trigger("series:afterupdate",v,h,p)},Tr=function(c){c[Mg]=!0,c.getZr().wakeUp()},ys=function(c){c[kc]=(c[kc]+1)%1e6},DC=function(c){c[Mg]&&(c.getZr().storage.traverse(function(v){Us(v)||i(v)}),c[Mg]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Hd&&c.states.emphasis?v.push("emphasis"):c.hoverState===zf&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>Q(v.get("hoverLayerThreshold"),HP.hoverLayerThreshold)&&!Le.node&&!Le.worker;(c._usingTHL||g)&&(v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=c._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Il&&(S.hoverLayer=g?rP:tP)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Do(c);v.eachRendered(function(d){return jd(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!Us(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Us(y))return;if(y instanceof Ae&&xG(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}MC=function(c){return new((function(v){V(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){pa(d,p),Tr(c)},h.prototype.leaveEmphasis=function(d,p){ga(d,p),Tr(c)},h.prototype.enterBlur=function(d){V2(d),Tr(c)},h.prototype.leaveBlur=function(d){TS(d),Tr(c)},h.prototype.enterSelect=function(d){z2(d),Tr(c)},h.prototype.leaveSelect=function(d){F2(d),Tr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[kc]},h.prototype.usingTHL=function(){return c._usingTHL},h})(R2))(c)},YR=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Dg]=d}}D(P0,function(h,d){c._messageCenter.on(d,function(p){if(IC[c.group]&&c[Dg]!==bC){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];D($u,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,bC),D(y,function(m){m[Dg]!==u$&&m.dispatchAction(g)}),v(y,f$)}})})}})(),t})(Yr),r1=XR.prototype;r1.on=GR("on");r1.off=GR("off");r1.one=function(r,t,e){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var c$=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Eh={},P0={},R0={},E0=[],k0=[],kh=[],jR={},O0={},$u={},IC={},v$=+new Date-0,n1="_echarts_instance_";function h$(r,t,e){{var n=d$(r);if(n)return n}var a=new XR(r,t,e);return a.id="ec_"+v$++,$u[a.id]=a,h2(r,n1,a.id),YR(a),Ir.trigger("afterinit",a),a}function d$(r){return $u[r5(r,n1)]}function ZR(r,t){jR[r]=t}function qR(r){pe(k0,r)<0&&k0.push(r)}function KR(r,t){i1(E0,r,t,r$)}function p$(r){a1("afterinit",r)}function g$(r){a1("afterupdate",r)}function a1(r,t){Ir.on(r,t)}function Wn(r,t,e){var n,a,i,o,s;ie(t)&&(e=t,t=""),fe(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(n=r,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Eh[n]||(Yt(wC.test(n)&&wC.test(a)),i&&Yt(a!==n),Eh[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:e,refineEvent:i},R0[a]=1,i&&s&&(R0[u]=1),P0[u]=n)}function y$(r,t){Wf.register(r,t)}function m$(r,t){i1(kh,r,t,VR,"layout")}function es(r,t){i1(kh,r,t,zR,"visual")}var LC=[];function i1(r,t,e,n,a,i){if((ie(t)||fe(t))&&(e=t,t=n),!(pe(LC,e)>=0)){LC.push(e);var o=wR.wrapStageHandler(e,a);o.__prio=t,o.__raw=e,r.push(o)}}function JR(r,t){O0[r]=t}function _$(r,t,e){var n=m4("registerMap");n&&n(r,t,e)}var S$=DH;es(t1,e4);es(rp,t4);es(rp,r4);es(t1,d4);es(rp,p4);es(FR,Z4);qR(ZP);KR(Q4,sH);JR("default",n4);Wn({type:go,event:go,update:go},ot);Wn({type:Hv,event:Hv,update:Hv},ot);Wn({type:_h,event:bS,update:_h,action:ot,refineEvent:o1,publishNonRefinedEvent:!0});Wn({type:s0,event:bS,update:s0,action:ot,refineEvent:o1,publishNonRefinedEvent:!0});Wn({type:Sh,event:bS,update:Sh,action:ot,refineEvent:o1,publishNonRefinedEvent:!0});function o1(r,t,e,n){return{eventContent:{selected:gG(e),isFromClick:t.isFromClick||!1}}}ZR("default",{});ZR("dark",AR);var PC=[],x$={registerPreprocessor:qR,registerProcessor:KR,registerPostInit:p$,registerPostUpdate:g$,registerUpdateLifecycle:a1,registerAction:Wn,registerCoordinateSystem:y$,registerLayout:m$,registerVisual:es,registerTransform:S$,registerLoading:JR,registerMap:_$,registerImpl:y4,PRIORITY:l$,ComponentModel:Me,ComponentView:Qe,SeriesModel:Ze,ChartView:$e,registerComponentModel:function(r){Me.registerClass(r)},registerComponentView:function(r){Qe.registerClass(r)},registerSeriesModel:function(r){Ze.registerClass(r)},registerChartView:function(r){$e.registerClass(r)},registerCustomSeries:function(r,t){_4(r,t)},registerSubTypeDefaulter:function(r,t){Me.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){IF(r,t)}};function Se(r){if($(r)){D(r,function(t){Se(t)});return}pe(PC,r)>=0||(PC.push(r),ie(r)&&(r={install:r}),r.install(x$))}function jl(r){return r==null?0:r.length||1}function RC(r){return r}var ya=(function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||RC,this._newKeyGetter=a||RC,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=jl(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=jl(u),v=jl(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=jl(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);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=jl(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),w$=(function(){function r(t,e){this._encode=t,this._schema=e}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 b$(r,t){var e={},n=e.encode={},a=K(),i=[],o=[],s={};D(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;Eg(n,d)[p]=v,h.isExtraCoord||(a.set(d,1),C$(h.type)&&(i[0]=v),Eg(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}I2.each(function(g,y){var m=Eg(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=U(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new w$(s,t),e}function Eg(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Oh(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function C$(r){return!(r==="ordinal"||r==="time")}var Kv=(function(){function r(t){this.otherDims={},t!=null&&G(this,t)}return r})(),T$=me(),A$={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},QR=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=tE(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Q(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=KP(this.source),n=!rE(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=A$[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function eE(r){return r instanceof QR}function s1(r){for(var t=K(),e=0;e<(r||[]).length;e++){var n=r[e],a=fe(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function tE(r){var t=T$(r);return t.dimNameMap||(t.dimNameMap=s1(r.dimensionsDefine))}function rE(r){return r>30}var Zl=fe,Da=U,M$=typeof Int32Array>"u"?Array:Int32Array,D$="e\0\0",EC=-1,I$=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],L$=["_approximateExtent"],kC,Vc,ql,Kl,kg,Jl,Og,nr=(function(){function r(t,e){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 n,a=!1;eE(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=j(c)?new Kv({name:c}):c instanceof Kv?c:new Kv(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),a&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();D(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Ee(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var a=this,i;if(t instanceof C0&&(i=t),!i){var o=this.dimensions,s=jS(t)||Wt(t)?new JP(t,o.length):t;i=new C0;var l=Da(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=b$(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Og(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ja&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===br;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&$F(c)&&(this.hasItemOption=!0),c){var v=c.name;i[f]==null&&v!=null&&(i[f]=mt(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=mt(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Og(this,f);kC(this)}},r.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Zl(t)?G(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=ql(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return Vc(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,a=this._store;return $(t)?a.getValues(Da(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],a=n&&n[e];return a==null||isNaN(a)?EC:a},r.prototype.each=function(t,e,n){ie(t)&&(n=e,e=t,t=[]);var a=n||this,i=Da(Kl(t),this._getStoreDimIndex,this);this._store.each(i,a?q(e,a):e)},r.prototype.filterSelf=function(t,e,n){ie(t)&&(n=e,e=t,t=[]);var a=n||this,i=Da(Kl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?q(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=De(t);return D(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){ie(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=Da(Kl(t),this._getStoreDimIndex,this),s=Jl(this);return s._store=this._store.map(o,i?q(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=Da(Kl(t),this._getStoreDimIndex,this);this._store.modify(o,i?q(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=Jl(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.minmaxDownSample=function(t,e){var n=Jl(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Jl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ie(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new ya(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Vc(t,n)},function(n){return Vc(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Zl(t)?G(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),$(i)?i=i.slice():Zl(i)&&(i=G({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Zl(e)?G(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Zl(t)?G(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;o0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){D(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Da(this.dimensions,this._getDimInfo,this),this.hostModel)),kg(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(iS(arguments)))})},r.internalField=(function(){kC=function(t){var e=t._invertedIndicesMap;D(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new M$(o.categories.length);for(var l=0;l<n.length;l++)n[l]=EC;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},ql=function(t,e,n){return mt(t._getCategory(e,n),null)},Vc=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=ql(t,t._idDimIdx,e)),n==null&&(n=D$+e),n},Kl=function(t){return $(t)||(t=t!=null?[t]:[]),t},Jl=function(t){var e=new r(t._schema?t._schema:Da(t.dimensions,t._getDimInfo,t),t.hostModel);return kg(e,t),e},kg=function(t,e){D(I$.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,D(L$,function(n){t[n]=ae(e[n])}),t._calculationInfo=G({},e._calculationInfo)},Og=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=ql(t,i,e)),l==null&&o!=null&&(a[e]=l=ql(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}})(),r})();function jf(r,t){jS(r)||(r=ZS(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=K(),i=[],o=P$(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&rE(o),l=n===r.dimensionsDefine,u=l?tE(r):s1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=K(f),v=new lR(o),h=0;h<v.length;h++)v[h]=-1;function d(C){var A=v[C];if(A<0){var M=n[C],L=fe(M)?M:{name:M},I=new Kv,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return v[C]=R,I.storeDimIndex=C,i.push(I),I}return i[A]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(C,A){var M=Ye(C).slice();if(M.length===1&&!j(M[0])&&M[0]<0){c.set(A,!1);return}var L=c.set(A,[]);D(M,function(I,P){var R=j(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),A,P))})});var p=0;D(e,function(C){var A,M,L,I;if(j(C))A=C,I={};else{I=C,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,M=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=c.get(A);if(R!==!1){if(R=Ye(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++)}D(R,function(N,O){var z=d(N);if(l&&I.type!=null&&(z.type=I.type),g(le(z,I),A,O),z.name==null&&M){var F=M[O];!fe(F)&&(F={name:F}),z.name=z.displayName=F.name,z.defaultTooltip=F.defaultTooltip}L&&le(z.otherDims,L)})}});function g(C,A,M){I2.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)D(i,function(C){x(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),T=b.coordDim;T==null&&(b.coordDim=R$(S,a,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),x(b),b.type==null&&(WP(r,w)===Et.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Od(i,function(C){return C.name},function(C,A){A>0&&(C.name=C.name+(A-1))}),new QR({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function P$(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return D(t,function(i){var o;fe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function R$(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var E$=(function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r})();function k$(r){var t=r.get("coordinateSystem"),e=new E$(t),n=O$[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var O$={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",at).models[0],i=r.getReferringComponents("yAxis",at).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),ms(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ms(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",at).models[0];t.coordSysDims=["single"],e.set("single",a),ms(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",at).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),ms(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),ms(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ms(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,n){var a=r.getReferringComponents("matrix",at).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");e.set("x",i),e.set("y",o),n.set("x",i),n.set("y",o)}};function ms(r){return r.get("type")==="category"}function N$(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;B$(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(D(i,function(S,x){j(S)&&(i[x]=S={name:S}),d(S)||(h=!1)}),D(i,function(S,x){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;D(i,function(S){S.coordDim===p&&y++});var m={name:c,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:v,coordDim:v,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function B$(r){return!eE(r.schema)}function si(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function nE(r,t){return si(r,t)?r.getCalculationInfo("stackResultDimension"):t}function V$(r,t){var e=r.get("coordinateSystem"),n=Wf.get(e),a;return t&&t.coordSysDims&&(a=U(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Oh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function z$(r,t,e){var n,a;return e&&D(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ba(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=ZS(r)):(a=n.getSource(),i=a.sourceFormat===br);var o=k$(t),s=V$(t,o),l=e.useEncodeDefaulter,u=ie(l)?l:l?xe(UP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=jf(a,f),v=z$(c.dimensions,e.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=N$(t,{schema:c,store:h}),p=new nr(c,t);p.setCalculationInfo(d);var g=v!=null&&F$(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function F$(r){if(r.sourceFormat===br){var t=G$(r.data||[]);return!$(wl(t))}}function G$(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var ln=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Nd(ln);var H$=0,vf=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++H$,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&U(n,$$);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!j(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r})();function $$(r){return fe(r)&&r.value!=null?r.value:r+""}var vr=0,hf=1,U$={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},aE=De(U$),ia=2,iE=3;function l1(r,t,e){var n;r=r||{};var a=ct();if(a){var i=a.createBreakScaleMapper(t,e);i.hasBreaks()&&(D(aE,function(o){i[o]&&(r[o]=q(i[o],i))}),n=i)}return n==null&&N0(r,e),{brk:n,mapper:r}}function u1(r,t){D(aE,function(e){r[e]=t[e]})}function f1(r,t){r.freeze=ot}function df(r){return r.getExtentUnsafe(vr,ia)}function Nh(r,t){return r.getExtentUnsafe(hf,t)||r.getExtentUnsafe(vr,t)}function W$(r){var t=Nh(r,iE);return t[1]-t[0]}function np(r){var t=r.getExtentUnsafe(vr,iE);return t[1]-t[0]}function N0(r,t){var e=r||{},n=[];return e._extents=n,n[vr]=t?t.slice():Ot(),G(e,Y$),e}var Y$={needTransform:function(){return!1},normalize:function(r){var t=this._extents[hf]||this._extents[vr];return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])},scale:function(r){var t=this._extents[hf]||this._extents[vr];return r*(t[1]-t[0])+t[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var t=Nh(this,null);return r>=t[0]&&r<=t[1]},getExtent:function(){return this._extents[vr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,t){OC(this._extents,vr,r,t)},setExtent2:function(r,t,e){var n=this._extents;n[r]||(n[r]=n[vr].slice()),OC(n,r,t,e)},freeze:function(){}};function OC(r,t,e,n){Co(e,n)&&(r[t][0]=e,r[t][1]=n)}function oE(r){return Bh(r)||ll(r)}function Bh(r){return r.type==="interval"}function Zf(r){return r.type==="time"}function ll(r){return r.type==="log"}function Zt(r){return r.type==="ordinal"}function X$(r){var t=vS(r),e=Yo(10,t),n=va(r/e);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ke(n*e,-t)}function Lo(r){return ta(r)+2}function zc(r,t){return tf(r)/tf(t)}function Ng(r,t,e){var n=e&&e.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return Yo(t,r)}function sE(r,t,e){var n=r.slice();if(n[0]===n[1]){var a=e&&e.ctnShp;if(n[0]!==0){var i=it(n[0]);t[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!da(n[0])||!da(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function j$(r,t){return[r[0]!==t[0],r[1]!==t[1]]}function ap(r,t){return r=r||t,va(we(r,1))}function lE(r,t,e){var n=df(r),a=n[0],i=r.count(),o=Math.max((t||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){e({value:u,offInterval:f},c)}}var pf=(function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="ordinal",n.parse=t.parse,u1(n,t.decoratedMethods);var a=e.ordinalMeta;a||(a=new vf({})),$(a)&&(a=new vf({categories:U(a,function(o){return fe(o)?o.value:o})})),n._ordinalMeta=a;var i=l1(null,null,e.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,f1(n),n}return t.parse=function(e){return e==null?e=NaN:j(e)?(e=this._ordinalMeta.getOrdinal(e),e==null&&(e=NaN)):e=va(e),e},t.prototype.getTicks=function(){var e=[];return lE(this,0,function(n){e.push(n)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=He(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){var e=df(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(va(this._mapper.scale(e)))},transformIn:function(e,n){return this._mapper.transformIn(this._getTickNumber(e),n)},transformOut:function(e,n){return this.getRawOrdinalNumber(this._mapper.transformOut(e,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,n){return this._mapper.getExtentUnsafe(e,n)},setExtent:function(e,n){return this._mapper.setExtent(e,n)},setExtent2:function(e,n,a){return this._mapper.setExtent2(e,n,a)}},t})(ln);ln.registerClass(pf);function c1(r,t,e,n){for(var a=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/t,d=Lo(h);f<t-1;){var p=ke(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=ct();g&&g.pruneTicksByBreak("auto",c,e,function(y){return y},n,o),i.push(c)}}return i}var ei=(function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="interval",n.parse=t.parse,e=e||{};var a=yP(n,e),i=l1(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.getConfig=function(){return ae(this._cfg)},t.prototype.setConfig=function(e){var n=df(this);this._cfg=e=ae(e),e.niceExtent==null&&(e.niceExtent=n.slice()),e.intervalPrecision==null&&(e.intervalPrecision=Lo(e.interval))},t.prototype.getTicks=function(e){e=e||{};var n=this._cfg,a=n.interval,i=df(this),o=n.niceExtent,s=n.intervalPrecision,l=ct(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(e.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,i),c;var v=3e3;i[0]<o[0]&&c.push({value:e.expandToNicedExtent?ke(o[0]-a,s):i[0]});for(var h=function(_,S){return va((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=He(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=ke(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=ke(p+y*a,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var m=c.length?c[c.length-1].value:o[1];return i[1]>m&&c.push({value:e.expandToNicedExtent?ke(m+a,s):i[1]}),f&&l.pruneTicksByBreak(e.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,i),f&&e.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},t.prototype.getMinorTicks=function(e){return c1(this,e,Th(this),this._cfg.interval)},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=ta(e.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=ke(e.value,a,!0);return TP(i)},t.type="interval",t})(ln);ln.registerClass(ei);var Z$=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},uE=(function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="time",n.parse=t.parse,n._locale=e.locale,n._useUTC=e.useUTC,n._interval=0;var a=yP(n,e),i=l1(n,a,null);return n.brk=i.brk,n}return t.prototype.getLabel=function(e){return Kd(e.value,Tb[A3(Gu(this._minLevelUnit))]||Tb.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,n,a){return M3(e,n,a,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e=e||{};var n=this._interval,a=df(this),i=ct(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&e.breakTicks==="only_break")return ct().addBreaksToTicks(l,o.breaks,a),l;l=rU(this._minLevelUnit,this._approxInterval,u,a,np(this),o);var f=yr.length-1,c=0;return D(l,function(v){v.time&&(f=Math.min(f,pe(yr,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&ct().pruneTicksByBreak(e.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,a),s&&e.breakTicks!=="none"&&ct().addBreaksToTicks(l,o.breaks,a,function(v){for(var h=Math.max(pe(yr,Xs(v.vmin,u)),pe(yr,Xs(v.vmax,u))),d=0,p=0;p<yr.length;p++)if(!fE(yr[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:c,lowerTimeUnit:yr[y],upperTimeUnit:yr[g]}}),l},t.prototype.getMinorTicks=function(e){return c1(this,e,Th(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Ee(e)?Math.round(e):+Xo(e)},t.type="time",t})(ln),Fc=[["second",OS],["minute",NS],["hour",Fu],["quarter-day",Fu*6],["half-day",Fu*12],["day",Nr*1.2],["half-week",Nr*3.5],["week",Nr*7],["month",Nr*31],["quarter",Nr*95],["half-year",Cb/2],["year",Cb]];function fE(r,t,e,n){return _0(new Date(t),r,n).getTime()===_0(new Date(e),r,n).getTime()}function q$(r,t){return r/=Nr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function K$(r){var t=30*Nr;return r/=t,r>6?6:r>3?3:r>2?2:1}function J$(r){return r/=Fu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function NC(r,t){return r/=t?NS:OS,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Q$(r){return we(hS(r,!0),1)}function eU(r,t,e){var n=Math.max(0,pe(yr,t)-1);return _0(new Date(r),yr[n],e).getTime()}function tU(r,t){var e=new Date(0);e[r](1);var n=e.getTime();e[r](1+t);var a=e.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function rU(r,t,e,n,a,i){var o=3e3,s=w3,l=0;function u(E,N,O,z,F,H,W){for(var X=tU(F,E),Y=N,ee=new Date(Y);Y<O&&Y<=n[1]&&(W.push({value:Y}),!(l++>o));)if(ee[F](ee[z]()+E),Y=ee.getTime(),i){var ye=i.calcNiceTickMultiple(Y,X);ye>0&&(ee[F](ee[z]()+ye*E),Y=ee.getTime())}W.push({value:Y,notAdd:Y>n[1]})}function f(E,N,O){var z=[],F=!N.length;if(!fE(Gu(E),n[0],n[1],e)){F&&(N=[{value:eU(n[0],E,e)},{value:n[1]}]);for(var H=0;H<N.length-1;H++){var W=N[H].value,X=N[H+1].value;if(W!==X){var Y=void 0,ee=void 0,ye=void 0,Ne=!1;switch(E){case"year":Y=Math.max(1,Math.round(t/Nr/365)),ee=mP(e),ye=D3(e);break;case"half-year":case"quarter":case"month":Y=K$(t),ee=BS(e),ye=_P(e);break;case"week":case"half-week":case"day":Y=q$(t),ee=VS(e),ye=SP(e),Ne=!0;break;case"half-day":case"quarter-day":case"hour":Y=J$(t),ee=zS(e),ye=xP(e);break;case"minute":Y=NC(t,!0),ee=FS(e),ye=wP(e);break;case"second":Y=NC(t,!1),ee=GS(e),ye=bP(e);break;case"millisecond":Y=Q$(t),ee=HS(e),ye=CP(e);break}X>=n[0]&&W<=n[1]&&u(Y,W,X,ee,ye,Ne,z),E==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-Y})}}for(var H=0;H<z.length;H++)O.push(z[H])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=Gu(s[p]);if(T3(s[p])){f(s[p],c[c.length-1]||[],v);var y=s[p+1]?Gu(s[p+1]):null;if(g!==y){if(v.length){d=h,v.sort(function(E,N){return E.value-N.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var x=a/t;if(h>x*1.5&&d>x/1.5||(c.push(m),h>x||r===s[p]))break}v=[]}}}for(var w=Fe(U(c,function(E){return Fe(E,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(E){return E.length>0}),b=w.length-1,T=[],p=0;p<w.length;++p)for(var C=w[p],A=0;A<C.length;++A){var M=Xs(C[A].value,e);T.push({value:C[A].value,time:{level:b-p,upperTimeUnit:M,lowerTimeUnit:M}})}Od(T,s5,null),T.sort(function(E,N){return E.value-N.value});var L=T[0],I=T[T.length-1],P=Xs(n[0],e),R=Xs(n[1],e);return(!L||L.value>n[0])&&T.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.value<n[1])&&T.push({value:n[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),T}var nU=function(r,t){var e=r.getExtent();if(e[0]===e[1]&&(e[0]-=Nr,e[1]+=Nr),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Nr}r.setExtent(e[0],e[1]);var a=ap(t.splitNumber,10),i=np(r)/a,o=t.minInterval,s=t.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Fc.length,u=Math.min(Z$(Fc,i,0,l),l-1),f=Fc[u][1],c=Fc[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})};ln.registerClass(uE);var Gc=0,Hc=1,aU=2,cE=(function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="log",n.parse=ei.parse,n.base=e.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[Gc]=a[Hc]=i[Gc]=i[Hc]=NaN,u1(n,t.mapperMethods);var s=ct(),l=e.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},aU,u),n.powStub=new ei({breakParsed:u.original}),n.intervalStub=new ei({breakParsed:u.transformed}),f1(n,n.intervalStub),n}return t.prototype.getTicks=function(e){var n=this.base,a=this.powStub,i=ct(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(e||{}),function(f){var c=f.value,v=Ng(c,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,Th(a),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},t.prototype.getMinorTicks=function(e){return c1(this,e,Th(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,n){return this.intervalStub.getLabel(e,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(zc(e,this.base))},scale:function(e){return Ng(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,n){return e=zc(e,this.base),n&&n.depth===ia?e:this.intervalStub.transformIn(e,n)},transformOut:function(e,n){var a=n?n.depth:null;return BC.depth=a,VC.lookup=this._lookup,Ng(a===ia?e:this.intervalStub.transformOut(e,BC),this.base,VC)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,n){this.setExtent2(vr,e,n)},setExtent2:function(e,n,a){if(!(!Co(n,a)||n<=0||a<=0)){var i=zC,o=zC;if(e===vr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(e,i[Gc]=n,i[Hc]=a);var l=this.base;this.intervalStub.setExtent2(e,o[Gc]=zc(n,l),o[Hc]=zc(a,l))}},getFilter:function(){return{g:0}},sanitize:function(e,n){return Co(n[0],n[1])&&$r(e)&&e<=0&&(e=n[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,n){return n===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,n)}},t})(ln);ln.registerClass(cE);var BC={},VC={},zC=[],vE={value:1,category:1,time:1,log:1},hE=me();function ip(r){var t=r.get("type");return(t==null||!J(vE,t)&&!ln.getClass(t))&&(t="value"),t}function qf(r,t,e){var n=ct(),a;switch(n&&(a=dE(r,t,e)),t){case"category":return new pf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ot()});case"time":return new uE({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new cE({logBase:r.get("logBase"),breakOption:a});case"value":return new ei({breakOption:a});default:return new(ln.getClass(t)||ei)({})}}function iU(r,t,e){var n=r.getExtentUnsafe(vr,null),a=n[0],i=n[1];return Co(a,i)?a===t||i===t?sU:a<t&&i>t?oU:B0:B0}var oU=1,sU=2,B0=3;function lU(r){hE(r).noOnMyZero=!0}function uU(r){return hE(r).noOnMyZero}function Kf(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=b3(t);return function(a,i){return r.scale.getFormattedLabel(a,i,e)}}else{if(j(t))return function(a){var i=r.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(ie(t)){if(r.type==="category")return function(a,i){return t(Vh(r,a),a.value-r.scale.getExtent()[0],null)};var n=ct();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Vh(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Vh(r,t){var e=r.scale;return Zt(e)?e.getLabel(t):t.value}function v1(r){var t=r.get("interval");return t??"auto"}function fU(r){return r.type==="category"&&v1(r.getLabelModel())===0}function cU(r,t){var e={};return D(r.mapDimensionsAll(t),function(n){e[nE(r,n)]=!0}),De(e)}function ul(r){return r==="middle"||r==="center"}function gf(r){return r.getShallow("show")}function dE(r,t,e){var n=r.get("breaks",!0);if(n!=null)return!ct()||!e||!vU(t)?void 0:n}function vU(r){return r!=="category"}function pE(r,t,e,n,a,i){var o=ll(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:ia},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),v=j$(e,n);t[0]&&!v[0]&&(f=a[0]),t[1]&&!v[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(i)}function kl(r,t){return Zt(r)?r.getRawOrdinalNumber(t.value):t.value}function Jf(r,t){return Zt(r)&&!!t.get("boundaryGap")}var Qf=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),hU=Cl(),zh="|&",Ol=me(),gE=-2,dU=-1,pU=me();function h1(r,t){var e=r.model,n=Ol(Rl(e.ecModel)).keyed,a=n&&n.get(t);return a&&a.get(e.uid)}function gU(r,t){return mE(h1(r,t))}function yU(r,t){var e=[];return yE(r.model.ecModel,function(n){for(var a=0;a<t.length;a++)t[a]&&n.serByIdx[t[a].seriesIndex]&&e.push(mE(n))}),e}function yE(r,t){var e=Ol(Rl(r)).keyed;e&&e.each(function(n,a){n.each(function(i,o){t(i,a,o)})})}function mE(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function mU(r,t){var e=r.model.ecModel,n=Ol(Rl(e)).axSer;n&&op(e,n.get(r.model.uid),t)}function Po(r,t,e){var n=h1(r,t);n&&op(r.model.ecModel,n.sers,e)}function op(r,t,e){if(t)for(var n=0;n<t.length;n++){var a=t[n];r.isSeriesFiltered(a)||e(a)}}function _U(r,t){var e=h1(r,t);if(!e||!e.sers.length)return 0;var n=0;return op(r.model.ecModel,e.sers,function(){n++}),n}function d1(r,t,e){var n=Ol(Rl(r)).keyed,a=n&&n.get(t);a&&a.each(function(i){e(i.axis)})}function _E(r,t){var e=r.model,n=Ol(Rl(e.ecModel)).keys;n&&D(n.get(e.uid),function(a){t(a)})}function SU(r){var t=pU(PR(r)),e=t.keyed||(t.keyed=K());yE(r,function(n,a,i){var o=e.get(a)||e.set(a,K()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&SE.liPosMinGap(r,n,s)})}function xU(r,t){SE[r]=t}var SE={};function Ro(r,t,e){if(r){var n=t.ecModel,a=Ol(Rl(n)),i=r.model.uid,o=a.axSer||(a.axSer=K()),s=o.get(i)||o.set(i,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===r,f=z0.get(V0(l,u,e))||z0.get(V0(l,u,null));if(f){var c=a.keyed||(a.keyed=K()),v=a.keys||(a.keys=K()),h=f.key,d=c.get(h)||c.set(h,K()),p=d.get(i);p||(p=d.set(i,{axis:r,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(r),(v.get(i)||v.set(i,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function V0(r,t,e){return r+zh+Q(t,!0)+zh+(e||"")}function p1(r,t){var e=V0(t.seriesType,t.baseAxis,t.coordSysType);z0.set(e,t),hU(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:SU})})}var z0=K(),wU=me(),fl=1,bU=2,CU=3,xE=(function(){function r(t,e,n,a,i){var o=Zt(t),s=o?e.getCategories().length:null,l;if(o){var u=e.getCategories(!0);l=u&&!u.length}var f=n.slice();(Bh(t)||ll(t)||Zf(t))&&(p2(f,Ql(t,e.get("dataMin",!0))),g2(f,Ql(t,e.get("dataMax",!0)))),i5(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=e.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Ql(t,ie(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=e.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Ql(t,ie(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=TU(t,e),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!da(c[0])&&(c[0]=NaN),!da(c[1])&&(c[1]=NaN);var y=l||Ut(c[0])||Ut(c[1])||o&&!s,m=Bh(t),_=m&&e.needIncludeZero&&e.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var x=Ql(t,e.get("startValue",!0)),w=x!=null;!$r(x)&&a&&(x=t.getDefaultStartValue?t.getDefaultStartValue():0),$r(x)&&(w||!m||_)&&(x<c[0]&&!v[0]?(c[0]=x,v[0]=!0):x>c[1]&&!v[1]&&(c[1]=x,v[1]=!0));var b=this._i={scale:t,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};FC(b,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,a=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return e[0]!=null&&(s[0]=e[0],i[0]=a[0]=!0),e[1]!=null&&(s[1]=e[1],i[1]=a[1]=!0),FC(t,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},r})();function FC(r,t){var e=r.scale,n=r.dataMM;e.sanitize&&(t[0]=e.sanitize(t[0],n),t[1]=e.sanitize(t[1],n),Gv(t))}function Ql(r,t){return t==null?null:Ut(t)?NaN:r.parse(t)}function TU(r,t){var e;if(Zt(r))e=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),e=$(n)?n:[n,n]}return[GC(e[0]),GC(e[1])]}function GC(r){return Bn(typeof r=="boolean"?0:r,1)||0}function wE(r){var t=wU(r.scale);return t.extent||(t.extent=Ot()),t}function AU(r,t){wE(r).dimIdxInCoord=t.get(r.dim)}function Eo(r,t){var e=r.scale,n=r.model,a=r.dim;e.rawExtentInfo||MU(e,r,a,n,t)}function MU(r,t,e,n,a){var i=wE(t),o=i.extent,s=!1;mU(t,function(f){if(f.boxCoordinateSystem){var c=PP(f).coord,v=i.dimIdxInCoord;if(v>=0){if($(c)){var h=c[v];h!=null&&!$(h)&&t0(o,r.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;D(cU(d,e),function(g){a5(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=IU(r,t,n),u=new xE(r,n,o,s,l);bE(r,u,a),i.extent=null}function DU(r,t){var e=r.scale;bE(e,new xE(e,r.model,t,!1,!1),CU)}function bE(r,t,e){r.rawExtentInfo=t,t.from=e}function sp(r,t){g1.set(r,t)}var g1=K();function CE(r,t,e,n,a){r.rawExtentInfo||DU({scale:r,model:t},Ot());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),n&&i.tggAxInv&&e&&!e.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function IU(r,t,e){var n=Jf(r,e),a=e.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return _E(t,function(o){i=!!g1.get(o)||i}),i}function LU(r,t,e,n){if(e.ctnShp){var a;if(_E(r,function(s){var l=g1.get(s);if(l){var u=l(r,n);u&&(a=a||[0,0],p2(a,u[0]),g2(a,u[1]),lU(r))}}),!!a){var i=t.getExtent();if(Zt(t))r.onBand||t.setExtent2(hf,He(i[0],i[0]+a[0]),we(i[1],i[1]+a[1]));else{var o=i.slice();e.zoomFixMM[0]||(o[0]=He(o[0],t.transformOut(t.transformIn(o[0],null)+a[0],null))),e.zoomFixMM[1]||(o[1]=we(o[1],t.transformOut(t.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&t.setExtent2(hf,o[0],o[1])}}}}function HC(r,t){var e=ll(r),n=e?r.intervalStub:r,a=t.fixMinMax||[],i=e?r.getExtent():null,o=n.getExtent(),s=sE(o,a,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=e?RU(n,t):PU(n,t),u=l.intervalPrecision,f=l.interval,c=t.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Lo(c)),a[0]||(s[0]=ke(nn(s[0]/f)*f,u)),a[1]||(s[1]=ke(Wo(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),pE(r,a,o,s,i,l)}function PU(r,t){var e=ap(t.splitNumber,5),n=np(r),a=t.minInterval,i=t.maxInterval,o=hS(n/e,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Lo(o),l=r.getExtent(),u=[ke(Wo(l[0]/o)*o,s),ke(nn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function RU(r,t){var e=ap(t.splitNumber,10),n=r.getExtent(),a=np(r),i=we(a2(a),1),o=e/a*i;o<=.5&&(i*=10);var s=Lo(i),l=[ke(Wo(n[0]/i)*i,s),ke(nn(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function cl(r){var t=r.scale,e=r.model,n=e.axis,a=e.ecModel;EU(t,e,n,a)}function EU(r,t,e,n,a){var i=CE(r,t,n,e),o=Bh(r)||Zf(r);TE(r,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),e&&n&&LU(e,r,i,n)}function TE(r,t){kU[r.type](r,t)}var kU={interval:HC,log:HC,time:nU,ordinal:ot},OU=1e-8;function $C(r,t){return Math.abs(r-t)<OU}function to(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Jn(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!$C(a[0],s[0])||!$C(a[1],s[1]))&&(n+=Jn(a[0],a[1],s[0],s[1],t,e)),n!==0}var NU=[];function Bg(r,t){for(var e=0;e<r.length;e++)st(r[e],r[e],t)}function UC(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Va(t,t,i),za(e,e,i))}}function BU(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var AE=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})(),WC=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})(),YC=(function(){function r(t){this.type="linestring",this.points=t}return r})(),ME=(function(r){V(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return BU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?UC(s.exterior,a,i,e):D(s.points,function(l){UC(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(to(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(to(u[f],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new se(e,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(Bg(v.exterior,u),D(v.interiors,function(h){Bg(h,u)})):D(v.points,function(h){Bg(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t})(AE),VU=(function(r){V(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=xl(NU),o=e;o&&!o.isGeoSVGGraphicRoot;)zr(i,o.getLocalTransform(),i),o=o.parent;return Hr(i,i),st(a,a,i),a},t})(AE);function zU(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=DE(s,o,e);break;case"Polygon":Vg(s,o,e);break;case"MultiLineString":Vg(s,o,e);break;case"MultiPolygon":D(s,function(l,u){return Vg(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Vg(r,t,e){for(var n=0;n<r.length;n++)r[n]=DE(r[n],t[n],e)}function DE(r,t,e){for(var n=[],a=t[0],i=t[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+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function FU(r,t){return r=zU(r),U(Fe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new WC(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new WC(l[0],l.slice(1)))});break;case"LineString":i.push(new YC([a.coordinates]));break;case"MultiLineString":i.push(new YC(a.coordinates))}var s=new ME(n[t||"name"],i,n.cp);return s.properties=n,s})}var GU=me(),Uu=me(),an={estimate:1,determine:2};function Fh(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function HU(r,t){var e=r.getLabelModel().get("customValues");if(e){var n=r.scale;return{labels:U(IE(e,n),function(a,i){return{formattedLabel:Kf(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?UU(r,t):YU(r)}function $U(r,t,e){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:IE(a,n)}:r.type==="category"?WU(r,t):{ticks:n.getTicks(e)}}function IE(r,t){var e=t.getExtent(),n=[];return D(r,function(a){a=t.parse(a),a>=e[0]&&a<=e[1]&&n.push(a)}),Od(n,l5,null),Nt(n),U(n,function(a){return{value:a}})}function UU(r,t){var e=r.getLabelModel(),n=LE(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:n}function LE(r,t,e){var n=jU(r),a=v1(t),i=e.kind===an.estimate;if(!i){var o=RE(n,a);if(o)return o}var s,l;ie(a)?s=Gh(r,a,!1):(l=a==="auto"?ZU(r,e):a,s=Gh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return F0(n,a,u),!0}):F0(n,a,u),u}function WU(r,t){var e=XU(r),n=v1(t),a=RE(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),ie(n))i=Gh(r,n,!0);else if(n==="auto"){var s=LE(r,r.getLabelModel(),Fh(an.determine));o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tick})}else o=n,i=Gh(r,o,!0);return F0(e,n,{ticks:i,tickCategoryInterval:o})}function YU(r){var t=r.scale.getTicks(),e=Kf(r);return{labels:U(t,function(n,a){return{formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var XU=PE("axisTick"),jU=PE("axisLabel");function PE(r){return function(e){return Uu(e)[r]||(Uu(e)[r]={list:[]})}}function RE(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function F0(r,t,e){return r.list.push({key:t,value:e}),e}function ZU(r,t){if(t.kind===an.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Uu(r).autoInterval=e,!0}),e}var n=Uu(r).autoInterval;return n??(Uu(r).autoInterval=r.calculateCategoryInterval(t))}function qU(r,t){var e=t.kind,n=JU(r),a=Kf(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=Rd(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(S,x)));if(e===an.estimate)return t.out.noPxChangeTryDetermine.push(q(KU,null,r,w,l)),w;var b=EE(r,w,l);return b??w}function KU(r,t,e){return EE(r,t,e)==null}function EE(r,t,e){var n=GU(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=e,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function JU(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Gh(r,t,e){var n=Kf(r),a=r.scale,i=[],o=ie(t);return lE(a,o?0:t,function(s,l){var u=a.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(e?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var QU=.8;function Vt(r,t){t=t||{};var e={w:NaN,w2:NaN},n=r.scale,a=t.fromStat,i=t.min,o=W$(n);$r(o)||(o=NaN);var s=r.getExtent(),l=it(s[1]-s[0]);return Zt(n)?eW(e,r,o,l):a&&tW(e,r,o,l,a),i!=null&&(e.w=$r(e.w)?we(i,e.w):i),e}function eW(r,t,e,n){var a=t.onBand,i=e+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&e&&n&&(r.w2=r.w*e/n)}function tW(r,t,e,n,a){var i=!1,o=-1/0;D(a.key?[gU(t,a.key)]:yU(t,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===gE&&(i=!0))}),$r(e)&&e>0&&$r(o)?(r.w=n/e*o,r.w2=o):i&&(r.w=n*QU,r.w2=r.w*e/n)}var XC=[0,1],un=(function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this.scale;return t=n.normalize(n.parse(t)),Ve(t,XC,jC(this),e)},r.prototype.coordToData=function(t,e){var n=Ve(t,jC(this),XC,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=$U(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=U(n.ticks,function(s){return{coord:this.dataToCoord(kl(this.scale,s)),tick:s}},this),i=e.get("alignWithLabel"),o=rW(this,a,i);return U(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Zt(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=U(n,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(t){return t=t||Fh(an.determine),HU(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Vt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(t){return t=t||Fh(an.determine),qU(this,t)},r})();function jC(r){var t=r.getExtent();if(r.onBand){var e=t[1]-t[0],n=e/r.scale.count()/2;t[0]+=n,t[1]-=n}return t}function rW(r,t,e){var n=t.length;if(!r.onBand||e||!n)return!1;var a=Vt(r).w;if(!a)return!1;D(t,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}var eu=Math.PI*2,Gi=Vn.CMD,nW=["top","right","bottom","left"];function aW(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function iW(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-a)%eu<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var v=n;n=_r(a),a=_r(v)}else n=_r(n),a=_r(a);n>a&&(a+=eu);var h=Math.atan2(s,o);if(h<0&&(h+=eu),h>=n&&h<=a||h+eu>=n&&h+eu<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Hh(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function kE(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var qr=[];function oW(r,t,e){var n=kE(t.x,t.y,t.width,t.height,r.x,r.y,qr);return e.set(qr[0],qr[1]),n}function sW(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,v=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case Gi.M:i=f[h++],o=f[h++],n=i,a=o;break;case Gi.L:p=Hh(n,a,f[h],f[h+1],c,v,qr,!0),n=f[h++],a=f[h++];break;case Gi.C:p=VL(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,qr),n=f[h++],a=f[h++];break;case Gi.Q:p=FL(n,a,f[h++],f[h++],f[h],f[h+1],c,v,qr),n=f[h++],a=f[h++];break;case Gi.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],x=f[h++];h+=1;var w=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var b=(c-g)*_/m+g;p=iW(g,y,_,S,S+x,w,b,v,qr),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case Gi.R:i=n=f[h++],o=a=f[h++];var T=f[h++],C=f[h++];p=kE(i,o,T,C,c,v,qr);break;case Gi.Z:p=Hh(n,a,i,o,c,v,qr,!0),n=i,a=o;break}p<u&&(u=p,e.set(qr[0],qr[1]))}return u}var Kr=new ue,qe=new ue,ft=new ue,bn=new ue,xn=new ue;function ZC(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||nW,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&Hr([],f),v=t.get("length2")||0;u&&ft.copy(u);for(var h=0;h<o.length;h++){var d=o[h];aW(d,0,s,Kr,bn),ue.scaleAndAdd(qe,Kr,bn,v),qe.transform(c);var p=r.getBoundingRect(),g=u?u.distance(qe):r instanceof Ae?sW(qe,r.path,ft):oW(qe,p,ft);g<l&&(l=g,qe.transform(f),ft.transform(f),ft.toArray(i[0]),qe.toArray(i[1]),Kr.toArray(i[2]))}OE(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var $h=[],Jt=new ue;function OE(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Kr.fromArray(r[0]),qe.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(bn,Kr,qe),ue.sub(xn,ft,qe);var e=bn.len(),n=xn.len();if(!(e<.001||n<.001)){bn.scale(1/e),xn.scale(1/n);var a=bn.dot(xn),i=Math.cos(t);if(i<a){var o=Hh(qe.x,qe.y,ft.x,ft.y,Kr.x,Kr.y,$h,!1);Jt.fromArray($h),Jt.scaleAndAdd(xn,o/Math.tan(Math.PI-t));var s=ft.x!==qe.x?(Jt.x-qe.x)/(ft.x-qe.x):(Jt.y-qe.y)/(ft.y-qe.y);if(isNaN(s))return;s<0?ue.copy(Jt,qe):s>1&&ue.copy(Jt,ft),Jt.toArray(r[1])}}}}function lW(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Kr.fromArray(r[0]),qe.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(bn,qe,Kr),ue.sub(xn,ft,qe);var n=bn.len(),a=xn.len();if(!(n<.001||a<.001)){bn.scale(1/n),xn.scale(1/a);var i=bn.dot(t),o=Math.cos(e);if(i<o){var s=Hh(qe.x,qe.y,ft.x,ft.y,Kr.x,Kr.y,$h,!1);Jt.fromArray($h);var l=Math.PI/2,u=Math.acos(xn.dot(t)),f=l+u-e;if(f>=l)ue.copy(Jt,ft);else{Jt.scaleAndAdd(xn,s/Math.tan(Math.PI/2-f));var c=ft.x!==qe.x?(Jt.x-qe.x)/(ft.x-qe.x):(Jt.y-qe.y)/(ft.y-qe.y);if(isNaN(c))return;c<0?ue.copy(Jt,qe):c>1&&ue.copy(Jt,ft)}Jt.toArray(r[1])}}}}function zg(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function uW(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Ba(n[0],n[1]),i=Ba(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=kv([],n[1],n[0],o/a),l=kv([],n[1],n[2],o/i),u=kv([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function y1(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<nf.length;l++){var u=nf[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:Q(a.states[u]&&a.states[u].ignore,s);if(h||!Q(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&zg(n,!0,u,f);continue}n||(n=new Bt,r.setTextGuideLine(n),!c&&(s||!o)&&zg(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),zg(n,!1,u,f)}}if(n){le(n.style,e),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=uW}}function m1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<ir.length;n++){var a=ir[n];e[a]=r.getModel([a,t])}return e}var qC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],fW=1,Uh=2,NE=fW|Uh;function Wh(r,t,e){e=e||NE,t?r.dirty|=e:r.dirty&=~e}function BE(r,t){return t=t||NE,r.dirty==null||!!(r.dirty&t)}function Gn(r){if(r)return BE(r)&&VE(r,r.label,r),r}function VE(r,t,e){var n=t.getComputedTransform();r.transform=LS(r.transform,n);var a=r.localRect=sf(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=Ns.textMargin);for(var c=0;c<4;c++)Fg[c]=f===Ns.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Ns.textMargin&&Mo(a,Fg,!1,!1);var v=r.rect=sf(r.rect,a);return n&&v.applyTransform(n),f===Ns.minMargin&&Mo(v,Fg,!1,!1),r.axisAligned=IS(n),(r.label=r.label||{}).ignore=t.ignore,Wh(r,!1),Wh(r,!0,Uh),r}var Fg=[0,0,0,0];function cW(r,t,e){return r.transform=LS(r.transform,e),r.localRect=sf(r.localRect,t),r.rect=sf(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=IS(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function G0(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var n=r.rect;n&&(n.x+=t.x,n.y+=t.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,e)}}function H0(r,t){for(var e=0;e<qC.length;e++){var n=qC[e];r[n]==null&&(r[n]=t[n])}return Gn(r)}function KC(r){var t=r.obb;return(!t||BE(r,Uh))&&(r.obb=t=t||new J2,t.fromBoundingRect(r.localRect,r.transform),Wh(r,!1,Uh)),t}function $0(r,t,e,n,a){var i=r.length,o=de[t],s=lt[t];if(i<2)return!1;r.sort(function(b,T){return b.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var v=r[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=r[0],p=r[i-1],g,y;m(),g<0&&x(-g,.8),y<0&&x(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&w(-g),y<0&&w(y);function m(){g=d.rect[o]-e,y=n-p.rect[o]-p.rect[s]}function _(b,T,C){if(b<0){var A=Math.min(T,-b);if(A>0){S(A*C,0,i);var M=A+b;M<0&&x(-M*C,1)}else x(-b*C,1)}}function S(b,T,C){b!==0&&(f=!0);for(var A=T;A<C;A++){var M=r[A],L=M.rect;L[o]+=b,M.label[o]+=b}}function x(b,T){for(var C=[],A=0,M=1;M<i;M++){var L=r[M-1].rect,I=Math.max(r[M].rect[o]-L[o]-L[s],0);C.push(I),A+=I}if(A){var P=Math.min(Math.abs(b)/A,T);if(b>0)for(var M=0;M<i-1;M++){var R=C[M]*P;S(R,0,M+1)}else for(var M=i-1;M>0;M--){var R=C[M-1]*P;S(-R,M,i)}}}function w(b){var T=b<0?-1:1;b=Math.abs(b);for(var C=Math.ceil(b/(i-1)),A=0;A<i-1;A++)if(T>0?S(C,0,A+1):S(-C,i-A-1,i),b-=C,b<=0)return}return f}function vW(r){for(var t=0;t<r.length;t++){var e=r[t],n=e.defaultAttr,a=e.labelLine;e.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function zE(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Gn(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(lp(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(a)}}}function lp(r,t,e,n){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,n)?!1:r.axisAligned&&t.axisAligned?!0:KC(r).intersect(KC(t),e,n)}function hW(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function dW(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:hW(n&&n.shape.points)}}var JC=["align","verticalAlign","width","height","fontSize"],qt=new Un,Gg=me(),pW=me();function $c(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var Uc=["x","y","rotation"],gW=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();se.applyTransform(f,f,u),u?qt.setLocalTransform(u):(qt.x=qt.y=qt.rotation=qt.originX=qt.originY=0,qt.scaleX=qt.scaleY=1),qt.rotation=_r(qt.rotation);var c=a.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();se.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:qt.x,y:qt.y,scaleX:qt.scaleX,scaleY:qt.scaleY,rotation:qt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(ie(a)||De(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ce(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){ZC(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ie(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(dW(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=Z(f.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Z(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=Gg(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<JC.length;p++){var g=JC[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=[];D(this._labelList,function(l){l.defaultAttr.ignore||a.push(H0({},l))});var i=Fe(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Fe(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});$0(i,0,0,e),$0(o,1,0,n);var s=Fe(a,function(l){return l.layoutOption.hideOverlap});vW(s),zE(s)},r.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Gg(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=ce(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");y1(t,m1(s),l),ZC(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Us(t))){var i=Gg(n),o=i.oldLayout,s=ce(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(pe(v,"select")>=0&&n.attr(i.oldLayoutSelect),pe(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Oe(n,u,e,l)}else if(n.attr(u),!Ll(n).valueAnimation){var c=Q(n.style.opacity,1);n.style.opacity=0,Ke(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};$c(h,u,Uc),$c(h,n.states.select,Uc)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};$c(d,u,Uc),$c(d,n.states.emphasis,Uc)}vP(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=pW(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Oe(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Ke(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r})(),Hg=me();function yW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Hg(e).labelManager;a||(a=Hg(e).labelManager=new gW),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Hg(e).labelManager;D(n.updatedSeries,function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var $g=Math.sin,Ug=Math.cos,FE=Math.PI,Hi=Math.PI*2,mW=180/FE,GE=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){this._add("C",t,e,n,a,i,o)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,o){this.ellipse(t,e,n,n,0,a,i,o)},r.prototype.ellipse=function(t,e,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Ha(c-Hi)||(f?u>=Hi:-u>=Hi),h=u>0?u%Hi:u%Hi+Hi,d=!1;v?d=!0:Ha(c)?d=!1:d=h>=FE==!!f;var p=t+n*Ug(o),g=e+a*$g(o);this._start&&this._add("M",p,g);var y=Math.round(i*mW);if(v){var m=1/this._p,_=(f?1:-1)*(Hi-m);this._add("A",n,a,y,1,+f,t+n*Ug(o+_),e+a*$g(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*Ug(s),x=e+a*$g(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),_1="none",_W=Math.round;function SW(r){var t=r.fill;return t!=null&&t!==_1}function xW(r){var t=r.stroke;return t!=null&&t!==_1}var U0=["lineCap","miterLimit","lineJoin"],wW=U(U0,function(r){return"stroke-"+r.toLowerCase()});function bW(r,t,e,n){var a=t.opacity==null?1:t.opacity;if(e instanceof Rt){r("opacity",a);return}if(SW(t)){var i=ef(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",_1);if(xW(t)){var s=ef(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&r("stroke-width",u),c&&r("paint-order",c?"stroke":"fill"),f<1&&r("stroke-opacity",f),t.lineDash){var v=e1(e),h=v[0],d=v[1];h&&(d=_W(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}for(var p=0;p<U0.length;p++){var g=U0[p];if(t[g]!==mh[g]){var y=t[g]||mh[g];y&&r(wW[p],y)}}}}var HE="http://www.w3.org/2000/svg",$E="http://www.w3.org/1999/xlink",CW="http://www.w3.org/2000/xmlns/",TW="http://www.w3.org/XML/1998/namespace",QC="ecmeta_";function UE(r){return document.createElementNS(HE,r)}function Tt(r,t,e,n,a){return{tag:r,attrs:e||{},children:n,text:a,key:t}}function AW(r,t){var e=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function MW(r){return"</"+r+">"}function S1(r,t){t=t||{};var e=t.newline?`
50
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return AW(o,s)+(o!=="style"?Qt(l):l||"")+(i?""+e+U(i,function(u){return n(u)}).join(e)+e:"")+MW(o)}return n(r)}function DW(r,t,e){e=e||{};var n=e.newline?`
51
+ `:"",a=" {"+n,i=n+"}",o=U(De(r),function(l){return l+a+U(De(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=U(De(t),function(l){return"@keyframes "+l+a+U(De(t[l]),function(u){return u+a+U(De(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function W0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function eT(r,t,e,n){return Tt("svg","root",{width:r,height:t,xmlns:HE,"xmlns:xlink":$E,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var IW=0;function WE(){return IW++}var tT={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"},Zi="transform-origin";function LW(r,t,e){var n=G({},r.shape);G(n,t),r.buildPath(e,n);var a=new GE;return a.reset(XL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function PW(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Zi]=e+"px "+n+"px")}var RW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function YE(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function EW(r,t,e){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=W0(e.zrId);u.animation=!0,up(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=De(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=YE(a,e);return i.replace(o,s)}}function rT(r){return j(r)?tT[r]?"cubic-bezier("+tT[r]+")":lS(r)?r:"":""}function up(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof Yd){var s=EW(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],v=rT(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},w={},b={},T="animation-timing-function";function C(ve,te,ge){for(var re=ve.getTracks(),he=ve.getMaxTime(),Ue=0;Ue<re.length;Ue++){var Pe=re[Ue];if(Pe.needsAnimate()){var Ge=Pe.keyframes,We=Pe.propName;if(ge&&(We=ge(We)),We)for(var vt=0;vt<Ge.length;vt++){var pr=Ge[vt],sr=Math.round(pr.time/he*100)+"%",mi=rT(pr.easing),as=pr.rawValue;(j(as)||Ee(as))&&(te[sr]=te[sr]||{},te[sr][We]=pr.rawValue,mi&&(te[sr][T]=mi))}}}}for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L?L==="shape"&&C(M,w):!n&&C(M,x)}for(var I in x){var P={};Nn(P,r),G(P,x[I]);var R=jL(P),E=x[I][T];b[I]=R?{transform:R}:{},PW(b[I],P),E&&(b[I][T]=E)}var N,O=!0;for(var I in w){b[I]=b[I]||{};var z=!N,E=w[I][T];z&&(N=new Vn);var F=N.len();N.reset(),b[I].d=LW(r,w[I],N);var H=N.len();if(!z&&F!==H){O=!1;break}E&&(b[I][T]=E)}if(!O)for(var I in b)delete b[I].d;if(!n)for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L==="style"&&C(M,b,function(re){return RW[re]})}for(var W=De(b),X=!0,Y,A=1;A<W.length;A++){var ee=W[A-1],ye=W[A];if(b[ee][Zi]!==b[ye][Zi]){X=!1;break}Y=b[ee][Zi]}if(X&&Y){for(var I in b)b[I][Zi]&&delete b[I][Zi];t[Zi]=Y}if(Fe(W,function(ve){return De(b[ve]).length>0}).length){var Ne=YE(b,e);return Ne+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+WE();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function kW(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};nT(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.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=Hm(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),nT(n,t,e)}}function nT(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+WE(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var yf=Math.round;function XE(r){return r&&j(r.src)}function jE(r){return r&&ie(r.toDataURL)}function x1(r,t,e,n){bW(function(a,i){var o=a==="fill"||a==="stroke";o&&YL(i)?qE(t,r,a,n):o&&uS(i)?KE(e,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),GW(e,r,n)}function w1(r,t){var e=LF(t);e&&(e.each(function(n,a){n!=null&&(r[(QC+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[QC+"silent"]="true"))}function aT(r){return Ha(r[0]-1)&&Ha(r[1])&&Ha(r[2])&&Ha(r[3]-1)}function OW(r){return Ha(r[4])&&Ha(r[5])}function b1(r,t,e){if(t&&!(OW(t)&&aT(t))){var n=1e4;r.transform=aT(t)?"translate("+yf(t[4]*n)/n+" "+yf(t[5]*n)/n+")":Jz(t)}}function iT(r,t,e){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(yf(n[i][0]*e)/e),a.push(yf(n[i][1]*e)/e);t.points=a.join(" ")}function oT(r){return!r.smooth}function NW(r){var t=U(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(n[o[1]]=yf(s*a)/a)}}}var BW={circle:[NW(["cx","cy","r"])],polyline:[iT,oT],polygon:[iT,oT]};function VW(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function ZE(r,t){var e=r.style,n=r.shape,a=BW[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&XL(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&VW(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;c&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var h=v.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new GE),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return b1(i,r.transform),x1(i,e,r,t),w1(i,r),t.animation&&up(r,i,t),t.emphasis&&kW(r,i,t),Tt(s,r.id+"",i)}function zW(r,t){var e=r.style,n=e.image;if(n&&!j(n)&&(XE(n)?n=n.src:jE(n)&&(n=n.toDataURL())),!!n){var a=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),b1(l,r.transform),x1(l,e,r,t),w1(l,r),t.animation&&up(r,l,t),Tt("image",r.id+"",l)}}function FW(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var a=e.font||ua,i=e.x||0,o=eF(e.y||0,Bf(a),e.textBaseline),s=Qz[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(D2(e)){var u="",f=e.fontStyle,c=M2(e.fontSize);if(!parseFloat(c))return;var v=e.fontFamily||SL,h=e.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),b1(l,r.transform),x1(l,e,r,t),w1(l,r),t.animation&&up(r,l,t),Tt("text",r.id+"",l,void 0,n)}}function sT(r,t){if(r instanceof Ae)return ZE(r,t);if(r instanceof Rt)return zW(r,t);if(r instanceof al)return FW(r,t)}function GW(r,t,e){var n=r.style;if(tF(n)){var a=rF(r),i=e.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=ef(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Tt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=Pd(o)}}function qE(r,t,e,n){var a=r[e],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(UL(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(WL(a))i="radialGradient",o.cx=Q(a.x,.5),o.cy=Q(a.y,.5),o.r=Q(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=$m(s[u].offset)*100+"%",v=s[u].color,h=ef(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Tt("stop",u+"",g))}var y=Tt(i,"",o,l),m=S1(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Tt(i,S,o,l)),t[e]=Pd(S)}function KE(r,t,e,n){var a=r.style[e],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if($L(a)){var v=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(j(p)?d=p:XE(p)?d=p.src:jE(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Yt(v,g),Yt(h,g)}else if(v==null||h==null){var y=function(A,M){if(A){var L=A.elm,I=v||M.width,P=h||M.height;A.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),A.attrs.width=I,A.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=_S(d,null,r,function(A){l||y(w,A),y(c,A)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=Tt("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else a.svgElement&&(c=ae(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=jL(a);x&&(o.patternTransform=x);var w=Tt("pattern","",o,[c]),b=S1(w),T=n.patternCache,C=T[b];C||(C=n.zrId+"-p"+n.patternIdx++,T[b]=C,o.id=C,w=n.defs[C]=Tt("pattern",C,o,[c])),t[e]=Pd(C)}}function HW(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Tt("clipPath",i,o,[ZE(r,e)])}t["clip-path"]=Pd(i)}function lT(r){return document.createTextNode(r)}function ro(r,t,e){r.insertBefore(t,e)}function uT(r,t){r.removeChild(t)}function fT(r,t){r.appendChild(t)}function JE(r){return r.parentNode}function QE(r){return r.nextSibling}function Wg(r,t){r.textContent=t}var cT=58,$W=120,UW=Tt("","");function Y0(r){return r===void 0}function _n(r){return r!==void 0}function WW(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function Mu(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function mf(r){var t,e=r.children,n=r.tag;if(_n(n)){var a=r.elm=UE(n);if(C1(UW,r),$(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&fT(a,mf(i))}else _n(r.text)&&!fe(r.text)&&fT(a,lT(r.text))}else r.elm=lT(r.text);return r.elm}function ek(r,t,e,n,a){for(;n<=a;++n){var i=e[n];i!=null&&ro(r,mf(i),t)}}function Yh(r,t,e,n){for(;e<=n;++e){var a=t[e];if(a!=null)if(_n(a.tag)){var i=JE(a.elm);uT(i,a.elm)}else uT(r,a.elm)}}function C1(r,t){var e,n=t.elm,a=r&&r.attrs||{},i=t.attrs||{};if(a!==i){for(e in i){var o=i[e],s=a[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==$W?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(CW,e,o):e.charCodeAt(3)===cT?n.setAttributeNS(TW,e,o):e.charCodeAt(5)===cT?n.setAttributeNS($E,e,o):n.setAttribute(e,o))}for(e in a)e in i||n.removeAttribute(e)}}function YW(r,t,e){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],c,v,h,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=e[++a]:f==null?f=e[--l]:Mu(o,u)?(Ls(o,u),o=t[++n],u=e[++a]):Mu(s,f)?(Ls(s,f),s=t[--i],f=e[--l]):Mu(o,f)?(Ls(o,f),ro(r,o.elm,QE(s.elm)),o=t[++n],f=e[--l]):Mu(s,u)?(Ls(s,u),ro(r,s.elm,o.elm),s=t[--i],u=e[++a]):(Y0(c)&&(c=WW(t,n,i)),v=c[u.key],Y0(v)?ro(r,mf(u),o.elm):(h=t[v],h.tag!==u.tag?ro(r,mf(u),o.elm):(Ls(h,u),t[v]=void 0,ro(r,h.elm,o.elm))),u=e[++a]);(n<=i||a<=l)&&(n>i?(d=e[l+1]==null?null:e[l+1].elm,ek(r,d,e,a,l)):Yh(r,t,n,i))}function Ls(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(C1(r,t),Y0(t.text)?_n(n)&&_n(a)?n!==a&&YW(e,n,a):_n(a)?(_n(r.text)&&Wg(e,""),ek(e,null,a,0,a.length-1)):_n(n)?Yh(e,n,0,n.length-1):_n(r.text)&&Wg(e,""):r.text!==t.text&&(_n(n)&&Yh(e,n,0,n.length-1),Wg(e,t.text)))}function XW(r,t){if(Mu(r,t))Ls(r,t);else{var e=r.elm,n=JE(e);mf(t),n!==null&&(ro(n,t.elm,QE(e)),Yh(n,[r],0,0))}return t}var jW=0,ZW=(function(){function r(t,e,n){if(this.type="svg",this.configLayer=qW(),this.storage=e,this._opts=n=G({},n),this.root=t,this._id="zr"+jW++,this._oldVNode=eT(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=UE("svg");C1(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",XW(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return sT(t,W0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=W0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=KW(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Tt("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=U(De(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(Tt("defs","defs",{},u)),t.animation){var f=DW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=Tt("style","stl",{},[],f);o.push(c)}}return eT(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},S1(this.renderToVNode({animation:Q(t.cssAnimation,!0),emphasis:Q(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};HW(v[y],m,e);var _=Tt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var S=sT(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),a&&i&&(i.style.display="none",t=Bs(a,0,n),e=Bs(a,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(uS(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},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(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=aF(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r})();function qW(r){return function(){}}function KW(r,t,e,n){var a;if(e&&e!=="none")if(a=Tt("rect","bg",{width:r,height:t,x:"0",y:"0"}),YL(e))qE({fill:e},a.attrs,"fill",n);else if(uS(e))KE({style:{fill:e},dirty:ot,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",n);else{var i=ef(e),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function JW(r){r.registerPainter("svg",ZW)}function vT(r,t,e){var n=rr.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}function Yg(r){return!r.__cursors.get(Q2)}function hT(r){var t=r.__cursors.get(Q2);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var tk=(function(r){Je(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=$v,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||hh,typeof e=="string"?o=vT(e,n,a):fe(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(AL(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.afterBrush=function(){this.__prevIdx=hT(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=vT("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new se(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new se(0,0,0,0);x.copy(S),o.push(x)}else{for(var w=!1,b=1/0,T=0,C=0;C<o.length;++C){var A=o[C];if(A.intersect(S)){var M=new se(0,0,0,0);M.copy(A),M.union(S),o[C]=M,w=!0;break}else if(l){u.copy(S),u.union(A);var L=S.width*S.height,I=A.width*A.height,P=u.width*u.height,R=P-L-I;R<b&&(b=R,T=C)}}if(l&&(o[T].union(S),w=!0),!w){var x=new se(0,0,0,0);x.copy(S),o.push(x)}l||(l=o.length>=s)}}for(var c=hT(this),v=c.startIdx;v<c.endIdx;++v){var h=e[v];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&cr||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&cr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,v=y.startIdx;v<y.endIdx;++v){var h=n[v],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(m=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Md(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||I0(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else lz(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=L0(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t})(Yr),dT=1e5,$i=314159,Xg=void 0,QW=1,jg=2;function eY(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function tY(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}function pT(r,t,e,n){var a=new tk(r,t,t.dpr);return a.zlevel=e,a.zlevel2=n,a.__builtin__=!0,rk(a),a}function rk(r){r.__cursorStack=[],r.__cursors=K()}function rY(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function nY(r,t){var e=r.__cursors,n=+t;return e.get(n)||(r.__cursorStack.push(n),e.set(n,rY({key:n})))}function Wc(r,t){for(var e=r.__cursorStack,n=0;n<e.length;n++)t(r.__cursors.get(e[n]))}function Zg(r,t){var e=r.layers;return e[t]||(e[t]=new Array(3))}function Ft(r,t,e){for(var n=r.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=r.layers[i][o];(!e||(!(e&Wu)||s.__builtin__)&&(!(e&X0)||!s.__builtin__)&&(!(e&nk)||s!==r.hoverlayer))&&t(s,i,o,a)}}var Wu=1,X0=2,nk=4,Yc=Wu|nk,aY=(function(){function r(t,e,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||hh,this._singleCanvas=i,this.root=t;var o=t.style;if(o&&(AL(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],i){var l=t,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=pT(l,this,$i,$v);c.initContext(),this._insertLayer(c,$i,$v,!0),this._domRoot=t}else{this._width=Bs(t,0,n),this._height=Bs(t,1,n);var s=this._domRoot=tY(this._width,this._height);t.appendChild(s)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e;t&&!fe(t)?e={paintAll:!!t}:e=t||{};var n=Q(e.refresh,!0),a=Q(e.refreshHover,!1);if(a&&(this._hoverLayerDirty=jg),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return Ft(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},X0),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Xg,n!==Xg&&(!e&&n===jg&&(e=this._i.hoverlayer=this._ensureLayer(dT)),!!e)){e.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){i||(i=e.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),co(i,l,a),u&&(l.style=f)}}i&&(Zs(i,a),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(dT)},r.prototype.paintOne=function(t,e){kR(t,e)},r.prototype._paintList=function(t,e,n){if(this._redrawId===n){var a=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),a)Ft(this._i,function(o){o.afterBrush&&o.afterBrush()},Yc),this._paintHoverList(t);else{var i=this;sh(function(){i._paintList(t,e,n)})}}},r.prototype._compositeManually=function(){var t=this._ensureLayer($i).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),Ft(this._i,function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)},Wu)},r.prototype._doPaintList=function(t,e){var n=this,a=!0;return Ft(this._i,function(i){var o=!1;if(Wc(i,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!Yg(i)?i.createRepaintRects(t,e,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}Wc(i,function(c){var v=n._paintPerCursor(i,c,t,s,u);a=a&&v})}},Yc),Le.wxa&&Ft(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},r.prototype._paintPerCursor=function(t,e,n,a,i){var o=t.ctx;if(a)if(!a.length)e.drawIdx=e.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,e,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(t,e,n,null,i),o.restore();return e.drawIdx>=e.endIdx},r.prototype._paintPerCursorInRect=function(t,e,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=t.ctx,l=Yg(t),u=l&&rr.getTime(),f=e.drawIdx,c=e.notClearIdx,v=c>=0?Math.min(c,f):f;v<e.endIdx;v++){var h=n[v];if(!(v<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=jg),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(co(s,h,o),h.setPrevPaintRect(d))}else co(s,h,o);if(l){var p=rr.getTime()-u;if(p>15){v++;break}}}}Zs(s,o),e.drawIdx=Math.max(v,f)},r.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},r.prototype._ensureLayer=function(t,e,n){e=e||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(t=$i,e=0);var i=Zg(this._i,t)[e];return i||(i=pT("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&_e(i,this._layerConfig[t],!0),(n||a&&t!==$i)&&(i.virtual=!0),this._insertLayer(i,t,e,!1),i.initContext()),i},r.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},r.prototype._insertLayer=function(t,e,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[e]&&o[e][n])&&eY(t)){for(var f=s.length,c=0;c<f&&(s[c].zl<e||s[c].zl===e&&s[c].zl2<n);)c++;if(c>0&&(u=Zg(i,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:e,zl2:n}),Zg(i,e)[n]=t,!a&&!t.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(t.dom,v.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(t,e){return Ft(this._i,function(n,a){t.call(e,n,a)})},r.prototype.eachBuiltinLayer=function(t,e){return Ft(this._i,function(n,a){t.call(e,n,a)},Wu)},r.prototype.eachOtherLayer=function(t,e){return Ft(this._i,function(n,a){t.call(e,n,a)},X0)},r.prototype.getLayers=function(){var t={};return Ft(this._i,function(e,n,a){t[e.id]=e}),t},r.prototype._updateLayerStatus=function(t,e){var n=this;if(n._singleCanvas)for(var a=1;a<t.length;a++){var i=t[a];if(i.zlevel!==t[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}Ft(n._i,function(g){g.__dirty=!1,Wc(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Yc);for(var o,s=null,l=null,u=!1,f=0,c=t.length;f<c;f++){var i=t[f],v=i.zlevel,h=i.incremental,d=void 0;if(o!==v&&(o=v,u=!1),h?(u=!0,d=XG):d=u?YG:$v,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){nS("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=nY(s,h),!l.used))if(l.used=!0,!e&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&cr&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Ft(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var x=S.endIdxNew;(Yg(g)?x<S.drawIdx:x!==S.endIdx||!x||t[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?t[x-1].id:NaN}}g.__dirty&&(Wc(g,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Xg&&(n._hoverLayerDirty=QW))},Yc)},r.prototype.clear=function(){return Ft(this._i,function(t){t.clear(),rk(t)},Wu),this},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Ft(this._i,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?_e(n[t],e,!0):n[t]=e,Ft(this._i,function(a,i){_e(a,n[i],!0)})}},r.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,a=e.length-1;a>=0;a--){var i=e[a];if(i.zl===t){var o=n[t][i.zl2];if(o.__builtin__)continue;if(e.splice(a,1),n[t][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;t!=null&&(a.width=t),e!=null&&(a.height=e),t=Bs(i,0,a),e=Bs(i,1,a),n.style.display="",(this._width!==t||e!==this._height)&&(n.style.width=t+"px",n.style.height=e+"px",Ft(this._i,function(o){o.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this._ensureLayer($i).resize(t,e)}return this},r.prototype.clearLayer=function(t){D(this._i.layers[t],function(e){e&&!e.__builtin__&&e.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[$i][0].dom;var e=new tk("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,i=e.dom.height;Ft(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];co(n,f,o)}Zs(n,o)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function iY(r){r.registerPainter("canvas",aY)}var oY=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ba(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new oe,a=gt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=gt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=B.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t})(Ze);function vl(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=ol(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(ol(r,t,e[o]));return i.join(" ")}}function ak(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!$(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var ec=(function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o,s){this.removeAll();var l=gt(e,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=sY,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){pa(this.childAt(0))},t.prototype.downplay=function(){ga(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=t.getSymbolZ2(e,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Oe(h,d,s,n),Wr(h)}if(this._updateCommon(e,n,l,a,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ke(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=St(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Qo(e.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var w=e.getItemVisual(n,"style"),b=w.fill;if(s instanceof Rt){var T=s.style;s.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(G({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Mt(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:w.opacity});function L(R){return M?e.getName(R):vl(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),et(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=ce(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&oi(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();oi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return El(e.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(e,n){return e.getItemVisual(n,"z2")},t})(oe);function sY(r,t){this.parent.drift(r,t)}function Xc(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n&&n.isIgnore&&n.isIgnore(e))&&!(n&&n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function gT(r){return r!=null&&!fe(r)&&(r={isIgnore:r}),r||{}}function yT(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:St(t),cursorStyle:t.get("cursor")}}function mT(r,t,e,n,a,i,o){var s=new r(t,e,n,a);return s.setPosition(i),t.setItemGraphicEl(e,s),o.add(s),s}var tc=(function(){function r(t){this.group=new oe,this._SymbolCtor=t||ec}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=gT(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=this._seriesScope=yT(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var v=f(c);Xc(t,v,c,e)&&mT(o,t,c,l,u,v,n)}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!Xc(t,d,c,e)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Oe(h,y,a)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,a=e.getStore(),i=0,o=a.count();i<o;i++){var s=e.getItemGraphicEl(i),l=n._getSymbolPoint(i);Xc(e,l,i,t)?(s=s||mT(n._SymbolCtor,e,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),e.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n,a){this._progressiveEls=[],a=gT(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Il)}for(var o=t.start;o<t.end;o++){var s=e.getItemLayout(o);if(Xc(e,s,o,a)){var l=new this._SymbolCtor(e,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),e.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(t){gi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r})();function ik(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=lY(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=U(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return si(t,c[0])&&(v=!0,c[0]=h),si(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function lY(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Ee(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function ok(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function Fr(r,t){return!isFinite(r)||!isFinite(t)}var uY=typeof Float32Array!==Tl?Float32Array:void 0,fY=typeof Float64Array!==Tl?Float64Array:void 0;function Cn(r){return T1({ctor:uY},r).arr}function T1(r,t){var e=r.arr,n=r.ctor;if(t>yh&&(t=yh),!e||r.typed&&e.length<t){var a=void 0;if(n)try{a=new n(t),r.typed=!0,e&&a.set(e)}catch{}if(!a&&(a=[],r.typed=!1,e))for(var i=0,o=e.length;i<o;i++)a[i]=e[i];r.arr=a}return r}function cY(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function vY(r,t,e,n,a,i,o,s){for(var l=cY(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=ik(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,w=void 0,b=void 0;switch(S.cmd){case"=":w=S.idx*2,b=S.idx1*2;var T=y[w],C=y[w+1],A=m[b],M=m[b+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(e[w],e[w+1]),v.push(n[b],n[b+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);b=L*2,u.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=ok(g,a,t,L);c.push(R[0],R[1]),v.push(n[b],n[b+1]),p.push(t.getRawIndex(L));break;case"-":x=!1}x&&(h.push(S),d.push(d.length))}d.sort(function(ee,ye){return p[ee]-p[ye]});for(var E=u.length,N=Cn(E),O=Cn(E),z=Cn(E),F=Cn(E),H=[],_=0;_<d.length;_++){var W=d[_],X=_*2,Y=W*2;N[X]=u[Y],N[X+1]=u[Y+1],O[X]=f[Y],O[X+1]=f[Y+1],z[X]=c[Y],z[X+1]=c[Y+1],F[X]=v[Y],F[X+1]=v[Y+1],H[_]=h[W]}return{current:N,next:O,stackedOnCurrent:z,stackedOnNext:F,status:H}}var Ia=Math.min,La=Math.max;function j0(r,t,e,n,a,i,o,s,l){for(var u,f,c,v,h,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(Fr(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,w=t[x*2],b=t[x*2+1];w===y&&b===m&&g<n;)g++,x+=i,p+=i,w=t[x*2],b=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;Fr(w,b)&&T<n;)T++,x+=i,w=t[x*2],b=t[x*2+1];var C=.5,A=0,M=0,L=void 0,I=void 0;if(T>=n||Fr(w,b))h=y,d=m;else{A=w-u,M=b-f;var P=y-u,R=w-y,E=m-f,N=b-m,O=void 0,z=void 0;if(s==="x"){O=Math.abs(P),z=Math.abs(R);var F=A>0?1:-1;h=y-F*O*o,d=m,L=y+F*z*o,I=m}else if(s==="y"){O=Math.abs(E),z=Math.abs(N);var H=M>0?1:-1;h=y,d=m-H*O*o,L=y,I=m+H*z*o}else O=Math.sqrt(P*P+E*E),z=Math.sqrt(R*R+N*N),C=z/(z+O),h=y-A*o*(1-C),d=m-M*o*(1-C),L=y+A*o*C,I=m+M*o*C,L=Ia(L,La(w,y)),I=Ia(I,La(b,m)),L=La(L,Ia(w,y)),I=La(I,Ia(b,m)),A=L-y,M=I-m,h=y-A*O/z,d=m-M*O/z,h=Ia(h,La(u,y)),d=Ia(d,La(f,m)),h=La(h,Ia(u,y)),d=La(d,Ia(f,m)),A=y-h,M=m-d,L=y+A*z/O,I=m+M*z/O}r.bezierCurveTo(c,v,h,d,y,m),c=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var sk=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),hY=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Fr(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Fr(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=j0(e,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Vn.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var v=i[c++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var x=u?uh(s,h,p,y,e,f):uh(l,d,g,m,e,f);if(x>0)for(var w=0;w<x;w++){var b=f[w];if(b<=1&&b>=0){var S=u?Ct(l,d,g,m,b):Ct(s,h,p,y,b);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t})(Ae),dY=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(sk),lk=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new dY},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Fr(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Fr(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=j0(e,a,o,s,s,1,n.smooth,l,n.connectNulls);j0(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t})(Ae);function uk(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new be({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ie(a)?function(g){a(g,c)}:null;Ke(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function fk(r,t,e){var n=r.getArea(),a=ke(n.r0,1),i=ke(n.r,1),o=new Xt({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ke(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function ko(r,t,e,n,a){if(r){if(r.type==="polar")return fk(r,t,e);if(r.type==="cartesian2d")return uk(r,t,e,n,a)}else return null;return null}var _f=0,Sf=1,xf=2;function Vs(r,t,e){r?t.setClipPath(e):t.removeClipPath()}function ck(r){var t=r.coordinateSystem;if(r.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Oo(r,t){return r.type===t}function _T(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!r.getViewRect}function vk(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||J(r,"text")))}function hk(r,t,e){var n=r,a,i,o;if(t==="text")o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=J(n,"textPosition");e?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),J(n,"textPosition")&&(a.position=n.textPosition),J(n,"textOffset")&&(a.offset=n.textOffset),J(n,"textRotation")&&(a.rotation=n.textRotation),J(n,"textDistance")&&(a.distance=n.textDistance)}return ST(o,r),D(o.rich,function(l){ST(l,l)}),{textConfig:a,textContent:i}}function ST(r,t){t&&(t.font=t.textFont||t.font,J(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),J(t,"textAlign")&&(r.align=t.textAlign),J(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),J(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),J(t,"textWidth")&&(r.width=t.textWidth),J(t,"textHeight")&&(r.height=t.textHeight),J(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),J(t,"textPadding")&&(r.padding=t.textPadding),J(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),J(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),J(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),J(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),J(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),J(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),J(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function xT(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;wT(n,t);var o=n.textFill==null;return a?o&&(n.textFill=e.insideFill||B.color.neutral00,!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||B.color.neutral00),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){wT(s,s)}),n}function wT(r,t){t&&(J(t,"fill")&&(r.textFill=t.fill),J(t,"stroke")&&(r.textStroke=t.fill),J(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),J(t,"font")&&(r.font=t.font),J(t,"fontStyle")&&(r.fontStyle=t.fontStyle),J(t,"fontWeight")&&(r.fontWeight=t.fontWeight),J(t,"fontSize")&&(r.fontSize=t.fontSize),J(t,"fontFamily")&&(r.fontFamily=t.fontFamily),J(t,"align")&&(r.textAlign=t.align),J(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),J(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),J(t,"width")&&(r.textWidth=t.width),J(t,"height")&&(r.textHeight=t.height),J(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),J(t,"padding")&&(r.textPadding=t.padding),J(t,"borderColor")&&(r.textBorderColor=t.borderColor),J(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),J(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),J(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),J(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),J(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),J(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),J(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),J(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),J(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),J(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}function bT(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function CT(r){for(var t=Ot(),e=Ot(),n=0;n<r.length;){var a=r[n++],i=r[n++];Fr(a,i)||(t0(t,a),t0(e,i))}return[t,e]}function TT(r,t){var e=CT(r),n=e[0],a=e[1],i=CT(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function AT(r){return Ee(r)?r:r?.5:0}function pY(r,t,e){if(e.valueDim==null)return[];for(var n=t.count(),a=Cn(n*2),i=0;i<n;i++){var o=ok(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Pa(r,t,e,n,a){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(a){for(l=0;l<r.length;l+=2){var h=t||r;Fr(h[l],h[l+1])||v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function gY(r,t){var e=[],n=r.length,a,i;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=Kz(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function yY(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=U(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=gY(u,a==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";D(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new Ml(0,0,0,0,v,!0);return m[a]=p,m[a+"2"]=g,m}}}function mY(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&_Y(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){l.tick.offInterval||(s[kl(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function _Y(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(ec.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function SY(r){for(var t=r.length/2;t>0&&Fr(r[t*2-2],r[t*2-1]);t--);return t-1}function MT(r,t){return[r[t*2],r[t*2+1]]}function xY(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!Fr(o,r[u*2+1-a])){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function dk(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ir.length;t++)if(r.get([ir[t],"endLabel","show"]))return!0;return!1}function qg(r,t,e,n){if(Oo(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=dk(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=uk(t,e,n,function(){var h=r._endLabel;h&&e&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return fk(t,e,n)}function wY(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var bY=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new oe,n=new tc;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=q(this._changePolyState,this)},t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=ik(i,s,_),x=m&&pY(i,s,S),w=e.get("showSymbol"),b=e.get("connectNulls"),T=w&&!c&&mY(e,s,i),C=this._data;C&&C.eachItemGraphicEl(function(te,ge){te.__temp&&(o.remove(te),C.setItemGraphicEl(ge,null))}),w||h.remove(),o.add(g);var A=c?!1:e.get("step"),M;i&&i.getArea&&e.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 L=yY(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&A===this._step))w&&h.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),A&&(x&&(x=Pa(x,f,i,A,b)),f=Pa(f,null,i,A,b)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Io(L)),g.setClipPath(qg(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Io(L));var I=g.getClipPath();if(I){var P=qg(this,i,!1,e);Ke(I,{shape:P.shape},e)}else g.setClipPath(qg(this,i,!0,e));w&&h.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!bT(this._stackedOnPoints,x)||!bT(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,a,A,_,b):(A&&(x&&(x=Pa(x,f,i,A,b)),f=Pa(f,null,i,A,b)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var R=e.getModel("emphasis"),E=R.get("focus"),N=R.get("blurScope"),O=R.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),_t(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}ce(d).seriesIndex=e.seriesIndex,et(d,E,N,O);var F=AT(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:H,connectNulls:b}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(le(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=AT(W.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:H,connectNulls:b}),_t(p,e,"areaStyle"),ce(p).seriesIndex=e.seriesIndex,et(p,E,N,O)}var Y=this._changePolyState;s.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=Y)}),this._polyline.onHoverStateChange=Y,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=A,this._valueOrigin=_;var ee=e.get("triggerEvent"),ye=e.get("triggerLineEvent"),Ne=ye===!0||ee===!0||ee==="line",ve=ye===!0||ee===!0||ee==="area";this.packEventData(e,d,Ne),p&&this.packEventData(e,p,ve)},t.prototype.packEventData=function(e,n,a){ce(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=bo(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 f=l[s*2],c=l[s*2+1];if(Fr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new ec(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $e.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=bo(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 $e.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;xh(this._polyline,e),n&&xh(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new hY({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new lk({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");ie(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ie(c)?c(null):c;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var w=a;i?(y=w.x,m=w.x+w.width,_=h.x):(y=w.y+w.height,m=w.y,_=h.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=ie(c)?c(d):f*b+v,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(dk(e)){var o=e.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 Re({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=SY(l);f>=0&&(Mt(s,St(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?ak(o,h):vl(o,c)},enableTextSetter:!0},wY(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),v=a.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),w=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=xY(c,S,b),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!h){var L=MT(c,C[0]);u.attr({x:L[0]+x,y:L[1]+w}),o&&(M=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+x,y:L[1]+w});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(M=d2(a,d,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,L=MT(c,R);o&&(M=v.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+w})}if(o){var E=Ll(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=vY(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Pa(v.stackedOnCurrent,v.current,a,o,l),h=Pa(v.current,null,a,o,l),g=Pa(v.stackedOnNext,v.next,a,o,l),p=Pa(v.next,null,a,o,l)),TT(h,p)>3e3||f&&TT(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Oe(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Oe(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=b[A],C.y=b[A+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})($e);function rc(r,t){return{seriesType:r,plan:Jo(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(a){var s=U(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");si(n,s[0])&&(s[0]=u),si(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Cn(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var w=f.get(c,_);x=a.dataToPoint(w,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),x=a.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var CY={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},TY=function(r){return Math.round(r.length/2)};function pk(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;j(i)?d=CY[i]:ie(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,d,TY))}}}}}function AY(r){r.registerChartView(bY),r.registerSeriesModel(oY),r.registerLayout(rc("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,pk("line"))}var gk=(function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(un),Z0=null;function MY(r){Z0||(Z0=r)}function nc(){return Z0}var fp="expandAxisBreak",yk="collapseAxisBreak",mk="toggleAxisBreak",A1="axisbreakchanged",DY={type:fp,event:A1,update:"update",refineEvent:M1},IY={type:yk,event:A1,update:"update",refineEvent:M1},LY={type:mk,event:A1,update:"update",refineEvent:M1};function M1(r,t,e,n){var a=[];return D(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function PY(r){r.registerAction(DY,t),r.registerAction(IY,t),r.registerAction(LY,t);function t(e,n){var a=[],i=$s(n,e);function o(s,l){D(i[s],function(u){var f=u.updateAxisBreaks(e);D(f.breaks,function(c){var v;a.push(le((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var $a=Math.PI,RY=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],EY=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],No=me(),_k=me(),Sk=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[e]||(a[e]=[]);return i[n]||(i[n]={ready:{}})},r})();function kY(r,t,e,n){var a=e.axis,i=t.ensureRecord(e),o=[],s,l=D1(r.axisName)&&ul(r.nameLocation);D(n,function(d){var p=Gn(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Hr(tu,g.transform):xl(tu),p.transform&&zr(tu,tu,p.transform),se.copy(jc,p.localRect),jc.applyTransform(tu),s?s.union(jc):se.copy(s=new se(0,0,0,0),jc))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new se(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var tu=nt(),jc=new se(0,0,0,0),xk=function(r,t,e,n,a,i){if(ul(r.nameLocation)){var o=i.stOccupiedRect;o&&wk(cW({},o,i.transGroup.transform),n,a)}else bk(i.labelInfoList,i.dirVec,n,a)};function wk(r,t,e){var n=new ue;lp(r,t,n,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&G0(t,n)}function bk(r,t,e,n){for(var a=ue.dot(n,t)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||wk(s,e,n)}}var ar=(function(){function r(t,e,n,a){this.group=new oe,this._axisModel=t,this._api=e,this._local={},this._shared=a||new Sk(xk),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},a=Q(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Q(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:Q(t.nameDirection,1),tickDirection:Q(t.tickDirection,1),labelDirection:Q(t.labelDirection,1),labelOffset:Q(t.labelOffset,0),silent:Q(t.silent,!0),axisName:a,nameLocation:xr(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:D1(a)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new oe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new ue(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D(OY,function(a){t[a]&&NY[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},r.innerTextLayout=function(t,e,n){var a=n2(e-t),i,o;return nl(a)?(o=n>0?"top":"bottom",i="center"):nl(a-$a)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<$a?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),OY=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],NY={axisLine:function(r,t,e,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(st(f,f,u),st(c,c,u));var h=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&Ah(n.axis.scale))nc().buildAxisBreakLine(n,a,i,d);else{var p=new dt(G({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));il(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);j(g)&&(g=[g,g]),(j(y)||Ee(y))&&(y=[y,y]);var m=Qo(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];D([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(x,w){if(g[w]!=="none"&&g[w]!=null){var b=gt(g[w],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=v?c:f;b.attr({rotation:x.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(b)}})}}},axisTickLabelEstimate:function(r,t,e,n,a,i,o,s){var l=IT(t,a,s);l&&DT(r,t,e,n,a,i,o,an.estimate)},axisTickLabelDetermine:function(r,t,e,n,a,i,o,s){var l=IT(t,a,s);l&&DT(r,t,e,n,a,i,o,an.determine);var u=FY(r,a,i,n);zY(r,t.labelLayoutList,u),GY(r,a,i,n,r.tickDirection)},axisName:function(r,t,e,n,a,i,o,s){var l=e.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(D1(u)){var f=r.nameLocation,c=r.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ue(0,0),y=new ue(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var m=nt();y.transform(pi(m,m,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*$a/180);var S,x;ul(f)?S=ar.innerTextLayout(r.rotation,_??r.rotation,c):(S=BY(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var w=v.getFont(),b=n.get("nameTruncate",!0)||{},T=b.ellipsis,C=tr(r.raw.nameTruncateMaxWidth,b.maxWidth,x),A=s.nameMarginLevel||0,M=new Re({x:g.x,y:g.y,rotation:S.rotation,silent:ar.isLabelSilent(n),style:je(v,{text:u,font:w,overflow:"truncate",width:C,ellipsis:T,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(wa({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var L=ar.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ce(M).eventData=L}i.add(M),M.updateTransform(),t.nameEl=M;var I=l.nameLayout=Gn({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:ul(f)?RY[A]:EY[A]});if(l.nameLocation=f,a.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=e.ensureRecord(n);e.resolveAxisNameOverlap(r,e,n,I,y,P)}}}};function DT(r,t,e,n,a,i,o,s){Tk(t)||HY(r,t,a,s,n,o);var l=t.labelLayoutList;$Y(r,n,l,i),YY(n,r.rotation,l);var u=r.optionHideOverlap;VY(n,l,u),u&&zE(Fe(l,function(f){return f&&!f.label.ignore})),kY(r,e,n,l)}function BY(r,t,e,n){var a=n2(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return nl(a-$a/2)?(o=l?"bottom":"top",i="center"):nl(a-$a*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<$a*1.5&&a>$a/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function VY(r,t,e){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(fU(n))return;function i(u,f,c){var v=Gn(t[f]),h=Gn(t[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!e&&a)return;var p=No(v.label).labelInfo.tick;if(Zf(d)&&p.notNice||Zt(d)&&p.offInterval){Ps(v.label);return}}if(u===!1||v.suggestIgnore){Ps(v.label);return}if(h.suggestIgnore){Ps(h.label);return}var g=.1;if(!e){var y=[0,0,0,0];v=H0({marginForce:y},v),h=H0({marginForce:y},h)}lp(v,h,null,{touchThreshold:g})&&Ps(u?h.label:v.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=t.length;i(o,0,1),i(s,l-1,l-2)}function zY(r,t,e){r.showMinorTicks||D(t,function(n){if(n&&n.label.ignore)for(var a=0;a<e.length;a++){var i=e[a],o=_k(i),s=No(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ps(i);return}}})}function Ps(r){r&&(r.ignore=!0)}function Ck(r,t,e,n,a){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]=e,t&&(st(o,o,t),st(s,s,t));var f=new dt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});il(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var c=_k(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function FY(r,t,e,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=Ck(u,e.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function GY(r,t,e,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=le(l.getLineStyle(),le(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=Ck(s[c],e.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)t.add(v[h])}}function IT(r,t,e){if(Tk(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(r.labelGroup),q0(r,null,null,null))}return!0}function HY(r,t,e,n,a,i){var o=a.axis,s=tr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new oe;e.add(l);var u=Fh(n);if(!s||o.scale.isBlank()){q0(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),v=(tr(r.raw.labelRotate,f.get("rotate"))||0)*$a/180,h=ar.innerTextLayout(r.rotation,v,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;D(c,function(S,x){var w,b=S.tick,T=S.formattedLabel,C=S.rawLabel,A=f,M=kl(o.scale,b);if(d&&d[M]){var L=d[M];fe(L)&&L.textStyle&&(A=new Ie(L.textStyle,f,a.ecModel))}var I=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=A.getShallow("align",!0)||h.textAlign,R=Q(A.getShallow("alignMinLabel",!0),P),E=Q(A.getShallow("alignMaxLabel",!0),P),N=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,O=Q(A.getShallow("verticalAlignMinLabel",!0),N),z=Q(A.getShallow("verticalAlignMaxLabel",!0),N),F=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);y=Math.min(y,F),m=Math.max(m,F);var H=new Re({x:0,y:0,rotation:0,silent:ar.isLabelSilent(a),z2:F,style:je(A,{text:T,align:x===0?R:x===c.length-1?E:P,verticalAlign:x===0?O:x===c.length-1?z:N,fill:ie(I)?I(o.type==="category"?C:o.type==="value"?M+"":M,x):I})});H.anid="label_"+M;var W=No(H);if(W.labelInfo=S,W.layoutRotation=h.rotation,wa({el:H,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:C,tickIndex:x}}),g){var X=ar.makeAxisEventDataBase(a);X.targetType="axisLabel",X.value=C,X.tickIndex=x;var Y=S.tick.break;if(Y){var ee=Y.parsedBreak;X.break={start:ee.vmin,end:ee.vmax}}o.type==="category"&&(X.dataIndex=M),ce(H).eventData=X,Y&&WY(a,i,H,Y)}p.push(H),l.add(H)});var _=U(p,function(S){return{label:S,priority:No(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});q0(t,_,l,u)}function Tk(r){return!!r.labelLayoutList}function q0(r,t,e,n){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=n}function $Y(r,t,e,n){var a=t.get(["axisLabel","margin"]);D(e,function(i,o){var s=Gn(i);if(s){var l=s.label,u=No(l);s.suggestIgnore=l.ignore,l.ignore=!1,Nn(Zn,UY);var f=t.axis;Zn.x=f.dataToCoord(kl(f.scale,u.labelInfo.tick)),Zn.y=r.labelOffset+r.labelDirection*a,Zn.rotation=u.layoutRotation,n.add(Zn),Zn.updateTransform(),n.remove(Zn),Zn.decomposeTransform(),Nn(l,Zn),l.markRedraw(),Wh(s,!0),Gn(s)}})}var Zn=new be,UY=new be;function D1(r){return!!r}function WY(r,t,e,n){e.on("click",function(a){var i={type:fp,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function YY(r,t,e){var n=ct();if(n){var a=n.retrieveAxisBreakPairs(e,function(o){return o&&No(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&D(a,function(o){nc().adjustBreakLabelPair(r.axis.inverse,t,[Gn(e[o[0]]),Gn(e[o[1]])])})}}function Xh(r,t,e){e=e||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function XY(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function jY(r){var t={xAxisModel:null,yAxisModel:null};return D(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,at).models[0];t[n]=i}),t}function ZY(r,t,e,n,a,i){for(var o=Xh(r,e),s=!1,l=!1,u=0;u<t.length;u++)oE(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ar(e,n,o,a)}function qY(r,t,e){var n=Xh(t,e);r.updateCfg(n)}function KY(r){return r.dim+"_"+r.index}function JY(){xU("liPosMinGap",QY)}function QY(r,t,e){var n=K(),a=e.serUids,i=e.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=iR(f);function v(_){op(r,t.sers,function(S){var x=S.getRawData(),w=x.getDimensionIndex(x.mapDimension(s.dim));w>=0&&_(w,S,x.getStore())})}var h=0;if(v(function(_,S,x){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=x.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){t.liPosMinGap=i;return}T1(Ui,h);var d=0;v(function(_,S,x){for(var w=0,b=x.count();w<b;++w){var T=x.get(_,w);isFinite(T)&&(!f||oR(c,T))&&(u&&(T=l.transformIn(T,null)),Ui.arr[d++]=T)}});var p=Ui.typed?Ui.arr.subarray(0,d):(Ui.arr.length=d,Ui.arr);Ui.typed?p.sort():Nt(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}e.liPosMinGap=t.liPosMinGap=$r(g)?g:d>0?gE:dU,e.serUids=n}var Ui=T1({ctor:fY},50);function cp(r){return function(t,e){var n=Vt(t,{fromStat:{key:r}});if($r(n.w2))return[-n.w2/2,n.w2/2]}}function _o(r){return r+zh}function ts(r,t){return r+zh+t}function I1(r){return JY(),{liPosMinGap:!Zt(r.scale)}}var Ln="bar",wf="pictorialBar";function Ak(r,t,e,n){p1(r,{key:t,seriesType:e,coordSysType:n,getMetrics:I1})}function Mk(r){var t=r.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var Dk={left:0,right:0,top:0,bottom:0},jh=["25%","25%"],tn="cartesian2d",e6=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,n){var a=Ko(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&e.outerBounds&&Fn(e.outerBounds,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Fn(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Dk,outerBoundsContain:"all",outerBoundsClampWidth:jh[0],outerBoundsClampHeight:jh[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},t})(Me),t6=Cl(),K0="__ec_stack_";function Ik(r){return r.get("stack")||K0+r.seriesIndex}function r6(r){if(Zt(r.axis.scale)){for(var t=Vt(r.axis),e=[],n=0;n<r.count;n++)e.push(le({stackId:K0+n},r));for(var a=Lk({bandWidthResult:t,seriesInfo:e}),i=[],n=0;n<r.count;n++){var o=a[K0+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function n6(r,t){var e=a6(r,t);return e.columnMap=Lk(e),e}function a6(r,t){var e=ts(t,tn),n=[],a=Vt(r,{fromStat:{key:e},min:1});return Po(r,e,function(i){n.push({barWidth:Z(i.get("barWidth"),a.w),barMaxWidth:Z(i.get("barMaxWidth"),a.w),barMinWidth:Z(i.get("barMinWidth")||(Ek(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:Ik(i)})}),{bandWidthResult:a,seriesInfo:n}}function Lk(r){var t=r.bandWidthResult.w,e=t,n=0,a,i,o=[],s={};D(r.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;J(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=He(e,_),e-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var x=p.barMinWidth;x&&(m.minWidth=x);var w=p.barGap;w!=null&&(i=w);var b=p.barCategoryGap;b!=null&&(a=b)}),a==null&&(a=we(35-o.length*4,15)+"%");var l=Z(a,t),u=Z(i,1),f=(e-l)/(n+(n-1)*u);f=we(f,0),D(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=He(_,y)),m&&(_=we(_,m)),g.width=_,e-=_+u*_,n--}else{var _=f;y&&y<_&&(_=He(y,e)),m&&m>_&&(_=m),_!==f&&(g.width=_,e-=_+u*_,n--)}}),f=(e-l)/(n+(n-1)*u),f=we(f,0);var c=0,v;D(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return D(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:t,offset:d,width:g.width},d+=g.width*(1+u)}),h}function Pk(r){return{seriesType:r,overallReset:function(t){var e=ts(r,tn);d1(t,e,function(n){var a=n6(n,r);Po(n,e,function(i){var o=a.columnMap[Ik(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Rk(r){return{seriesType:r,plan:Jo(),reset:function(t){if(XY(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=si(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(Mk(i))),d=Ek(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,w=d&&Cn(x*3),b=d&&l&&Cn(x*3),T=d&&Cn(x),C=n.master.getRect(),A=v?C.width:C.height,M,L=S.getStore(),I=0;(M=_.next())!=null;){var P=L.get(c?g:o,M),R=L.get(s,M),E=h,N=void 0;c&&(N=+P-L.get(o,M));var O=void 0,z=void 0,F=void 0,H=void 0;if(v){var W=n.dataToPoint([P,R]);c&&(E=n.dataToPoint([N,R])[0]),O=E,z=W[1]+m,F=W[0]-E,H=y,it(F)<p&&(F=(F<0?-1:1)*p)}else{var W=n.dataToPoint([R,P]);c&&(E=n.dataToPoint([R,N])[1]),O=W[0]+m,z=E,F=y,H=W[1]-E,it(H)<p&&(H=(H<=0?-1:1)*p)}d?(w[I]=O,w[I+1]=z,w[I+2]=v?F:H,b&&(b[I]=v?C.x:O,b[I+1]=v?z:C.y,b[I+2]=A),T[M]=M):S.setItemLayout(M,{x:O,y:z,width:F,height:H}),I+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:v})}}}}}}function Ek(r){return r.pipelineContext&&r.pipelineContext.large}function i6(r){return cp(ts(r,tn))}function kk(r){t6(r,function(){function t(e){var n=ts(e,tn);Ak(r,n,e,tn),sp(n,i6(e))}t("bar"),t("pictorialBar")})}var bf=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ba(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var w=d[x].coord,b=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(b===g){_=w;break}else if(b<g)m=w;else if(m!=null&&b>g){_=(w+m)/2;break}x===1&&(S=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Ze);Ze.registerClass(bf);var o6=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ba(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(e,n){var a=y2(this,e,n);return a.progressiveRender&&(a.large=!0),a},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series."+Ln,t.dependencies=["grid","polar"],t.defaultOption=yi(bf.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),t})(bf),s6=(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})(),Zh=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new s6},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+a,g*o+i),e.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):e.moveTo(p*s+a,g*s+i),e.arc(a,i,s,f,c,!v),e.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&e.arc(a,i,o,c,f,v)},t})(Ae);function l6(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return dh(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,x=f+v*_(p),w=c+v*S(p),b="left",T="top";switch(s){case"startArc":x=f+(h-l)*_(y),w=c+(h-l)*S(y),b="center",T="top";break;case"insideStartArc":x=f+(h+l)*_(y),w=c+(h+l)*S(y),b="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Zc(p,l+m,!1),w=c+d*S(p)+qc(p,l+m,!1),b="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Zc(p,-l+m,!1),w=c+d*S(p)+qc(p,-l+m,!1),b="left",T="middle";break;case"middle":x=f+d*_(y),w=c+d*S(y),b="center",T="middle";break;case"endArc":x=f+(v+l)*_(y),w=c+(v+l)*S(y),b="center",T="bottom";break;case"insideEndArc":x=f+(v-l)*_(y),w=c+(v-l)*S(y),b="center",T="top";break;case"endAngle":x=f+d*_(g)+Zc(g,l+m,!0),w=c+d*S(g)+qc(g,l+m,!0),b="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Zc(g,-l+m,!0),w=c+d*S(g)+qc(g,-l+m,!0),b="right",T="middle";break;default:return dh(n,a,i)}return n=n||{},n.x=x,n.y=w,n.align=b,n.verticalAlign=T,n}}function u6(r,t,e,n){if(Ee(n)){r.setTextConfig({rotation:n});return}else if($(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=e(t);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 f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Zc(r,t,e){return t*Math.sin(r)*(e?-1:1)}function qc(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Tn(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;$(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(n,function(i){return Bn(i,a)})}}var Kg=Math.max,Jg=Math.min,f6=(function(r){V(t,r);function t(){var e=r.call(this)||this;return e.type=Ln,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,a,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,h=c6(e,u);h&&this._enableRealtimeSort(h,s,a);var d=e.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,w=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(M){var L=Kc[u.type](s,M);if(!L)return null;var I=m6(u,c,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I,I}s.diff(l).add(function(M){var L=s.getItemModel(M),I=Kc[u.type](s,M,L);if(I&&(y&&T(M),!(!s.hasValue(M)||!kT[u.type](I)))){var P=!1;d&&(P=LT[u.type](p,I));var R=PT[u.type](e,s,M,I,c,v,f.model,!1,g);h&&(R.forceLabelAnimation=!0),OT(R,s,M,L,I,e,c,u.type==="polar"),w?R.attr({shape:I}):h?RT(h,v,R,I,M,c,!1,!1):Ke(R,{shape:I},e,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,L){var I=s.getItemModel(M),P=Kc[u.type](s,M,I);if(P){if(y){var R=void 0;x.length===0?R=T(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[M]=R);var E=Kc[u.type](s,M),N=Nk(c,E,u);Oe(R,{shape:N},v,M)}var O=l.getItemGraphicEl(L);if(!s.hasValue(M)||!kT[u.type](P)){o.remove(O);return}var z=!1;d&&(z=LT[u.type](p,P),z&&o.remove(O));var F=O&&(O.type==="sector"&&g||O.type==="sausage"&&!g);if(F&&(O&&aa(O,e,L),O=null),O?Wr(O):O=PT[u.type](e,s,M,P,c,v,f.model,!0,g),h&&(O.forceLabelAnimation=!0),b){var H=O.getTextContent();if(H){var W=Ll(H);W.prevValue!=null&&(W.prevValue=W.value)}}else OT(O,s,M,I,P,e,c,u.type==="polar");w?O.attr({shape:P}):h?RT(h,v,O,P,M,c,!0,b):Oe(O,{shape:P},e,M,null),s.setItemGraphicEl(M,O),O.ignore=z,o.add(O)}}).remove(function(M){var L=l.getItemGraphicEl(M);L&&aa(L,e,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new oe);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),BT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),BT(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&ko(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){aa(i,e,ce(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Ln,t})($e),LT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=Kg(t.x,r.x),s=Jg(t.x+t.width,a),l=Kg(t.y,r.y),u=Jg(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Jg(t.r,r.r),i=Kg(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},PT={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new be({shape:G({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?Zh:Xt,f=new u({shape:n,z2:1});f.name="item";var c=Ok(a);if(f.calculateTextPosition=l6(c,{isRoundCap:u===Zh}),i){var v=f.shape,h=a?"r":"endAngle",d={};v[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?Oe:Ke)(f,{shape:d},i)}return f}};function c6(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function RT(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Oe:Ke)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Oe:Ke)(e,{shape:u},f,a)}function ET(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var v6=["x","y","width","height"],h6=["cx","cy","r","startAngle","endAngle"],kT={cartesian2d:function(r){return!ET(r,v6)},polar:function(r){return!ET(r,h6)}},Kc={cartesian2d:function(r,t,e){var n=r.getItemLayout(t);if(!n)return null;var a=e?p6(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function d6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Ok(r){return(function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}})(r)}function OT(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Tn(n.getModel("itemStyle"),f,!0);G(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?_6(a,i.coordinateSystem):S6(a,i.coordinateSystem),d=St(n);Mt(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:vl(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,u6(r,g==="outside"?h:g,Ok(o),n.get(["label","rotate"]))}cP(p,d,i.getRawValue(e),function(m){return ak(t,m)});var y=n.getModel(["emphasis"]);et(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),_t(r,n),d6(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function p6(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var g6=(function(){function r(){}return r})(),NT=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new g6},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(Ae);function BT(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?In(r):0;if(u){var c=new NT({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var v=new NT({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(a.getVisual("style")),v.style.stroke=null,ce(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",VT),v.on("mousemove",VT)),e&&e.push(v)}var VT=JS(function(r){var t=this,e=y6(t,r.offsetX,r.offsetY);ce(t).dataIndex=e>=0?e:null},30,!1);function y6(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Nk(r,t,e){if(Oo(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function m6(r,t,e){var n=r.type==="polar"?Xt:be;return new n({shape:Nk(t,e,r),silent:!0,z2:0})}function _6(r,t){if(r.height===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function S6(r,t){if(r.width===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"left":"right"}return r.width>=0?"right":"left"}function x6(r){r.registerChartView(f6),r.registerSeriesModel(o6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Pk(Ln)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rk(Ln)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,pk(Ln)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})}),kk(r)}function ac(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function Nl(r,t,e){t=$(t)&&{coordDimensions:t}||G({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=jf(n,t).dimensions,i=new nr(a,r);return i.initData(n,e),i}var Bl=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r})(),ti="pie",w6=me(),Bk=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Nl(this,{coordDimensions:["value"],encodeDefaulter:xe(US,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=w6(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=VF(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){wo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series."+ti,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},t})(Ze);R3({fullType:Bk.type,getCoord2:function(r){return r.getShallow("center")}});var b6=Math.PI/180;function zT(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),x=n+_.len,w=x*x,b=Math.sqrt(Math.abs((1-S*S/y)*w)),T=t+(b+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;Vk(_,A,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var w=_.label.x-t-_.len2*a,b=n+_.len,T=Math.abs(w)<b?Math.sqrt(x*x/(1-w*w/b/b)):b;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var v=r.length,h=0;h<v;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}$0(r,1,l,l+o)&&c(r)}function C6(r,t,e,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<r.length;v++){var h=r[v].label;Qg(r[v])||(h.x<t?(f=Math.min(f,h.x),l.push(r[v])):(c=Math.max(c,h.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!Qg(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,Vk(d,g,!1)}}zT(u,t,e,n,1,a,i,o,s,c),zT(l,t,e,n,-1,a,i,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!Qg(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,x=d.rect.width+S,w=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function Vk(r,t,e){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,h=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",h)}zk(i,n)}}}function zk(r,t){FT.rect=r,VE(FT,t,T6)}var T6={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},FT={};function Qg(r){return r.position==="center"}function A6(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*b6,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var b in w.states)if(w.states[b].ignore===!1)return!0;return!1}t.each(function(w){var b=t.getItemGraphicEl(w),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),M=t.getItemModel(w),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=Z(L.get("edgeDistance"),u),N=L.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var O=M.getModel("labelLine"),z=O.get("length");z=Z(z,u);var F=O.get("length2");if(F=Z(F,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,h),C.ignore=!0,A&&(D(A.states,h),A.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,W=Math.cos(H),X=Math.sin(H),Y,ee,ye,Ne;n=T.cx,a=T.cy;var ve=I==="inside"||I==="inner";if(I==="center")Y=T.cx,ee=T.cy,Ne="center";else{var te=(ve?(T.r+T.r0)/2*W:T.r*W)+n,ge=(ve?(T.r+T.r0)/2*X:T.r*X)+a;if(Y=te+W*3,ee=ge+X*3,!ve){var re=te+W*(z+l-T.r),he=ge+X*(z+l-T.r),Ue=re+(W<0?-1:1)*F,Pe=he;R==="edge"?Y=W<0?f+E:f+u-E:Y=Ue+(W<0?-P:P),ee=Pe,ye=[[te,ge],[re,he],[Ue,Pe]]}Ne=ve?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var Ge=Math.PI,We=0,vt=L.get("rotate");if(Ee(vt))We=vt*(Ge/180);else if(I==="center")We=0;else if(vt==="radial"||vt===!0){var pr=W<0?-H+Ge:-H;We=pr}else if(vt==="tangential"||vt==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var sr=Math.atan2(W,X);sr<0&&(sr=Ge*2+sr);var mi=X>0;mi&&vt!=="tangential-noflip"&&(sr=Ge+sr),We=sr-Ge}if(i=!!We,C.x=Y,C.y=ee,C.rotation=We,C.setStyle({verticalAlign:"middle"}),ve){C.setStyle({align:Ne});var Cp=C.states.select;Cp&&(Cp.x+=C.x,Cp.y+=C.y)}else{var as=new se(0,0,0,0);zk(as,C),e.push({label:C,labelLine:A,position:I,len:z,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ue(W,X),linePoints:ye,textAlign:Ne,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:as,unconstrainedWidth:as.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:ve})}}),!i&&r.get("avoidLabelOverlap")&&C6(e,n,a,l,u,v,f,c);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(D(m.states,h),m.ignore=!0):(OE(x,g.minTurnAngle),lW(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new ue(x[0][0],x[0][1])})}}}var GT=Math.PI*2,Jc=Math.PI/180,M6=wt(ti,D6);function D6(r,t){r.eachSeriesByType(ti,function(e){var n=e.getData(),a=n.mapDimension("value"),i=BP(e,t),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,c=-e.get("startAngle")*Jc,v=e.get("endAngle"),h=e.get("padAngle")*Jc;v=v==="auto"?c-GT:-v*Jc;var d=e.get("minAngle")*Jc,p=d+h,g=0;n.each(a,function(E){!isNaN(E)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=e.get("clockwise"),S=e.get("roseType"),x=e.get("stillShowZeroSum"),w=n.getDataExtent(a);w[0]=0;var b=_?1:-1,T=[c,v],C=b*h/2;Fd(T,!_),c=T[0],v=T[1];var A=Fk(e);A.startAngle=c,A.endAngle=v,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var M=Math.abs(v-c),L=M,I=0,P=c;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(E,N){var O;if(isNaN(E)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?O=y===0&&x?m:E*m:O=M/g,O<p?(O=p,L-=p):I+=E;var z=P+b*O,F=0,H=0;h>O?(F=P+b*O/2,H=F):(F=P+C,H=z-C),n.setItemLayout(N,{angle:O,startAngle:F,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?Ve(E,w,[u,l]):l}),P=z}),L<GT&&g)if(L<=.001){var R=M/g;n.each(a,function(E,N){if(!isNaN(E)){var O=n.getItemLayout(N);O.angle=R;var z=0,F=0;R<h?(z=c+b*(N+1/2)*R,F=z):(z=c+b*N*R+C,F=c+b*(N+1)*R-C),O.startAngle=z,O.endAngle=F}})}else m=L/I,P=c,n.each(a,function(E,N){if(!isNaN(E)){var O=n.getItemLayout(N),z=O.angle===p?p:E*m,F=0,H=0;z<h?(F=P+b*z/2,H=F):(F=P+C,H=P+b*z-C),O.startAngle=F,O.endAngle=H,P+=b*z}})})}var Fk=me(),I6=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=G(Tn(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Ke(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Ke(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ke(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Oe(o,{shape:{endAngle:f.endAngle}},s,n))}else Wr(o),Oe(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),_t(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Tn(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:g,shape:Tn(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Tn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&G(m.ensureState("select"),{x:p,y:g}),G(_.ensureState("select"),{x:p,y:g}),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Mt(i,St(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Bt,this.setTextGuideLine(h)),y1(this,m1(o),{stroke:u,opacity:xr(s.get(["lineStyle","opacity"]),f,1)})}},t})(Xt),L6=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ti,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=Fk(e),h=new Xt({shape:ae(v)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new I6(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);aa(p,e,d)}).execute(),A6(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=ti,t})($e);function P6(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Ee(o)&&!isNaN(o)&&o<0)})}}}function R6(r){r.registerChartView(L6),r.registerSeriesModel(Bk),DR(ti,r.registerAction),r.registerLayout(M6),r.registerProcessor(ac(ti)),r.registerProcessor(P6(ti))}var E6=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ba(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:B.color.primary}},universalTransition:{divideShape:"clone"}},t})(Ze),Gk=4,k6=(function(){function r(){}return r})(),O6=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new k6},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Gk,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var v=a[c++],h=a[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(e>=c&&n>=v&&e<=c+s&&n<=v+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<a.length;){var h=a[v++],d=a[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new se(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t})(Ae),N6=(function(){function r(){this.group=new oe}return r.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n,a){var i=this._newAdded[0],o=e.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new O6({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=gt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Gk;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ce(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),B6=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,ey(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),In(n),ey(n)),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),this._finished){var o=rc("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(ey(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new N6:new tc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})($e);function ey(r){return{clipShape:ck(r)}}var J0=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",at).models[0]},t.type="cartesian2dAxis",t})(Me);xt(J0,Qf);var Hk={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:"auto",onZeroAxisIndex:null,lineStyle:{color:B.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},V6=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Hk),L1=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:B.color.axisMinorSplitLine,width:1}}},Hk),z6=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L1),F6=le({logBase:10},L1);const $k={category:V6,value:L1,time:z6,log:F6};function hl(r,t,e,n){D(vE,function(a,i){var o=_e(_e({},$k[i],!0),n,!0),s=(function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=lf(this),h=v?Ko(f):{},d=c.getTheme();_e(f,d.get(i+"Axis")),_e(f,this.getDefaultOption()),f.type=HT(f),v&&Fn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=vf.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=nc();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",HT)}function HT(r){return r.type||(r.data?"category":"value")}var G6=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return U(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Fe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),Jv=["x","y"];function $T(r){return(r.type==="interval"||r.type==="time")&&!Ah(r)}var H6=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=tn,e.dimensions=Jv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!$T(e)||!$T(n))){var a=Nh(e,null),i=Nh(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-a[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Hr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return st(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n,a){if(a=a||[],this._invTransform)return st(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new se(i,o,s,l)},t})(G6);function Uk(r,t){var e=r.scale,n=r.model,a=CE(e,n,n.ecModel,r),i=ll(e),o=ll(t)?t.intervalStub:t,s=i?e.intervalStub:e,l=e.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=it(u[0].value-u[1].value),g=it(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var y=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[c].value-u[c].value)/y)%1,d=c-(v?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],x=e.getExtent(),w=s.getExtent(),b=sE(w,S),T,C,A,M,L,I;function P(W){for(var X=50,Y=0;Y<X&&!W();Y++)A=i?A*we(l,2):X$(A),M=Lo(A)}function R(){T=ke(I-A*v,M)}function E(){C=ke(L+A*h,M)}function N(){I=v?ke(T+A*v,M):T}function O(){L=h?ke(C-A*h,M):C}if(S[0]&&S[1]){T=b[0],C=b[1],A=(C-T)/(d+v+h);var z=r.getExtent(),F=it(z[1]-z[0]);M=cS([C,T],F,.5/d),N(),O(),$r(M)&&(A=ke(A,M))}else{var H=b[1]-b[0];A=i?we(a2(H),1):hS(H/d,i2),M=Lo(A),S[0]?(T=b[0],P(function(){if(N(),L=ke(I+A*d,M),E(),C>=b[1])return!0})):S[1]?(C=b[1],P(function(){if(O(),I=ke(L-A*d,M),R(),T<=b[0])return!0})):P(function(){I=ke(Wo(b[0]/A)*A,M),L=ke(nn(b[1]/A)*A,M);var W=va((L-I)/A);if(W<=d){var X=d-W,Y=void 0,ee=a.incl0||i;if(ee&&b[0]===0)Y=[0,X];else if(ee&&b[1]===0)Y=[X,0];else{var ye=nn(X/2);Y=X%2===0?[ye,ye]:T+C<b[0]+b[1]?[ye,ye+1]:[ye+1,ye]}if(I=ke(I-A*Y[0],M),L=ke(L+A*Y[1],M),R(),E(),T<=b[0]&&C>=b[1])return!0}})}pE(e,S,w,[T,C],x,{interval:A,intervalCount:d,intervalPrecision:M,niceExtent:[I,L]})}var UT=[[3,1],[0,2]],$6=(function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Jv,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;D(this._axesList,function(o){Eo(o,fl);var s=o.scale;Zt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=De(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):cl(f)}D(l,function(c){W6(c,c.__alignTo)?cl(c):Uk(c,c.__alignTo.scale)})}a(n.x),a(n.y);var i={};D(n.x,function(o){WT(n,"y",o,i)}),D(n.y,function(o){WT(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=bt(t,e),i=this._rect=tt(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Q0(o,i),!n){var u=j6(i,s,o,l,e),f=void 0;if(l)e_?(e_(this._axesList,i),Q0(o,i)):f=ZT(i.clone(),"axisLabel",null,i,o,u,a);else{var c=Z6(t,i,a),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=ZT(v,h,d,i,o,u,a))}Wk(i,o,an.determine,null,f,a),D(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}fe(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",at).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",at).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,pe(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(v,h){var d="x"+c+"y"+h,p=new H6(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),XT(s.x),XT(s.y);function u(f){return function(c,v){if(U6(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=ip(c),p=new gk(f,qf(c,d,!0),[0,0],d,h);p.onBand=Jf(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=v,i._axesList.push(p),s[f][v]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);pe(e,i)<0&&e.push(i),pe(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o),D(o._axesList,function(s){AU(s,r.dimIdxMap)})}),t.eachSeries(function(a){var i,o;Yf({targetModel:a,coordSysType:tn,coordSysProvider:s});function s(){var l=jY(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Ro(i,a,tn),Ro(o,a,tn))},this),n},r.dimensions=Jv,r.dimIdxMap=s1(Jv),r})();function U6(r,t){return r.getCoordSysModel()===t}function WT(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)YT(s,a[l])&&(i=a[l]);else for(var u in a)if(J(a,u)&&YT(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function YT(r,t){if(!t)return!1;var e=t.scale,n=iU(e,0),a=t&&t.type!=="category"&&t.type!=="time"&&n!==B0;return a&&r==="auto"&&uU(t)&&(a=!1),a}function XT(r){for(var t=De(r),e,n=[],a=t.length-1;a>=0;a--){var i=r[+t[a]];oE(i.scale)&&dE(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):e=i)}e||(e=n.pop()),e&&D(n,function(o){o.__alignTo=e})}function W6(r,t){return Ah(r.scale)||Ah(t.scale)||t.scale.getTicks().length<2}function Y6(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function Q0(r,t){D(r.x,function(e){return jT(e,t.x,t.width)}),D(r.y,function(e){return jT(e,t.y,t.height)})}function jT(r,t,e){var n=[0,e],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),Y6(r,t)}var e_;function X6(r){e_=r}function ZT(r,t,e,n,a,i,o){Wk(n,a,an.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=di(s,function(v){return v>0})==null;return Mo(n,s,!0,!0,e),Q0(a,n),l;function u(v){D(a[de[v]],function(h){if(gf(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(kl(h.scale,No(y.label).labelInfo.tick));m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=d.nameLayout;if(_){var m=ul(d.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=r[de[h]]-v[de[h]],g=v[lt[h]]+v[de[h]]-(r[lt[h]]+r[de[h]]);p=c(p,1-d),g=c(g,d);var y=UT[h][0],m=UT[h][1];s[y]=we(s[y],p),s[m]=we(s[m],g)}function c(v,h){return v>0&&!Ut(h)&&h>1e-4&&(v/=h),v}}function j6(r,t,e,n,a){var i=new Sk(q6);return D(e,function(o){return D(o,function(s){if(gf(s.model)){var l=!n;s.axisBuilder=ZY(r,t,s.model,a,i,l)}})}),i}function Wk(r,t,e,n,a,i){var o=e===an.determine;D(t,function(u){return D(u,function(f){gf(f.model)&&(qY(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[de[1-u]]=r[lt[u]]<=i.refContainer[lt[u]]*.5?0:1-u===1?2:1}D(t,function(u,f){return D(u,function(c){gf(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function Z6(r,t,e){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=tt(r.get("outerBounds",!0)||Dk,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||pe(["all","axisLabel"],i)<0?o="all":o=i;var s=[gh(Q(r.get("outerBoundsClampWidth",!0),jh[0]),t.width),gh(Q(r.get("outerBoundsClampHeight",!0),jh[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var q6=function(r,t,e,n,a,i){var o=e.axis.dim==="x"?"y":"x";xk(r,t,e,n,a,i),ul(r.nameLocation)||D(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&bk(s.labelInfoList,s.dirVec,n,a)})};function K6(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return J6(e,r,t),e.seriesInvolved&&e8(e,r),e}function J6(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Cf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),xe(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&D(d.baseAxes,xe(p,h?"cross":!0,v)),h&&D(d.otherAxes,xe(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!t_(_))){y==null&&(y=_.get("triggerTooltip")),_=g?Q6(m,c,a,t,g,y):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),b=Cf(m.model),T=y||x||m.type==="category",C=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:x,useHandle:t_(_),seriesModels:[],linkGroup:null};u[b]=C,r.seriesInvolved=r.seriesInvolved||T;var A=t8(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[b]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function Q6(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(v){l[v]=ae(o.get(v))}),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),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&le(u,c.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,e,n))}function e8(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||D(r.coordSysAxesInfo[Cf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function t8(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(ty(i[n+"AxisId"],e.id)||ty(i[n+"AxisIndex"],e.componentIndex)||ty(i[n+"AxisName"],e.name))return a}}function ty(r,t){return r==="all"||$(r)&&pe(r,t)>=0||r===t}function r8(r){var t=P1(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=t_(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function P1(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Cf(r)]}function n8(r){var t=P1(r);return t&&t.axisPointerModel}function t_(r){return!!r.get(["handle","show"])}function Cf(r){return r.type+"||"+r.id}var qT={},rs=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a,i){this.axisPointerClass&&r8(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=n8(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){qT[e]=n},t.getAxisPointerClass=function(e){return e&&qT[e]},t.type="axis",t})(Qe),r_=me();function Yk(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=r_(r).splitAreaColors,v=K(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=$(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,w=void 0;a.isHorizontal()?(_=g,S=l.y,x=m-_,w=l.height,g=_+x):(_=l.x,S=g,x=l.width,w=m-S,g=S+w);var b=u[d-1].tickValue;b!=null&&v.set(b,h),t.add(new be({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:x,height:w},style:le({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}r_(r).splitAreaColors=v}}}function Xk(r){r_(r).splitAreaColors=null}var a8=["splitArea","splitLine","minorSplitLine","breakArea"],jk=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!gf(e)){this._axisGroup.add(e.axis.axisBuilder.group),D(a8,function(l){e.get([l,"show"])&&i8[l](this,this._axisGroup,e,e.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Hf(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){Xk(this)},t.type="cartesianAxis",t})(rs),i8={splitLine:function(r,t,e,n,a){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=$(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var x=h++%l.length,w=new dt({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:le({stroke:l[x]},y),silent:!0});il(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,n,a){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=new dt({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});il(y.shape,h.lineWidth),t.add(y)}},splitArea:function(r,t,e,n,a){Yk(r,t,e,n)},breakArea:function(r,t,e,n,a){var i=nc(),o=e.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,e,n.coordinateSystem.getRect(),a)}},Zk=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(jk),o8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Zk.type,e}return t.type="yAxis",t})(jk),s8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new be({shape:e.coordinateSystem.getRect(),style:le({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Qe),KT={offset:0};function qk(r){r.registerComponentView(s8),r.registerComponentModel(e6),r.registerCoordinateSystem("cartesian2d",$6),hl(r,"x",J0,KT),hl(r,"y",J0,KT),r.registerComponentView(Zk),r.registerComponentView(o8),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var vp="single",l8="singleAxis",n_="singleAxis",Qv=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type=n_,t.layoutMode="box",t.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}},jitter:0,jitterOverlap:!0,jitterMargin:2},t})(Me);xt(Qv,Qf.prototype);function u8(r,t){var e=r.coordinateSystem,n=e&&e.type,a=e&&e.getBaseAxis&&e.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===tn&&i==="ordinal"||n===vp,s=t.model.get("jitter")>0;return o&&s}var f8=me();function JT(r,t,e,n){if(r instanceof gk){var a=r.scale.type;if(a!=="ordinal")return e}var i=r.model,o=i.get("jitter");if(!(o>0))return e;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=Zt(r.scale)?Vt(r).w:null;return s?Kk(e,o,u,n):c8(r,t,e,n,o,l)}function Kk(r,t,e,n){if(e===null)return r+(Math.random()-.5)*t;var a=e-n*2,i=Math.min(Math.max(0,t),a);return r+(Math.random()-.5)*i}function c8(r,t,e,n,a,i){var o=f8(r);o.items||(o.items=[]);var s=o.items,l=QT(s,t,e,n,a,i,1),u=QT(s,t,e,n,a,i,-1),f=Math.abs(l-e)<Math.abs(u-e)?l:u,c=Zt(r.scale)?Vt(r).w:null,v=Math.abs(f-e);return v>a/2||c&&v>c/2-n?Kk(e,a,c,n):(s.push({fixedCoord:t,floatCoord:f,r:n}),f)}function QT(r,t,e,n,a,i,o){for(var s=e,l=0;l<r.length;l++){var u=r[l],f=t-u.fixedCoord,c=s-u.floatCoord,v=f*f+c*c,h=n+u.r+i;if(v<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-e)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function v8(){return{seriesType:"scatter",plan:Jo(),reset:function(r){var t=r.coordinateSystem;if(!(!t||t.type!==tn&&t.type!==vp)){var e=t.getBaseAxis&&t.getBaseAxis(),n=e&&u8(r,e);if(n){var a=e.dim,i=e.orient,o=i==="horizontal"&&e.type!=="category"||i==="vertical"&&e.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var c=f.getLayout("points"),v=!!c,h=u.start;h<u.end;h++){var d=v?(h-u.start)*2:-1,p=v?[c[d],c[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=JT(e,p[0],p[1],y/2);v?c[d+1]=m:p[1]=m}else if(l){var m=JT(e,p[1],p[0],y/2);v?c[d]=m:p[0]=m}}}}}}}}}}function h8(r){Se(qk),r.registerSeriesModel(E6),r.registerChartView(B6),r.registerLayout(rc("scatter"))}function d8(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,v8())}function p8(r){var t=r.polar;if(t){$(t)||(t=[t]);var e=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],$(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}D(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Tf="radar",g8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(q(this.getData,this),q(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return Nl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=gR(this,e);return pt("section",{header:u,sortBlocks:!0,blocks:U(s,function(c){var v=i.get(i.mapDimension(c.dim),e);return pt("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(U(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series."+Tf,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ze),y8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Tf,e}return t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=El(v.getItemVisual(h,"symbolSize")),g=gt(d,-1,-1,2,2),y=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),Zo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},e,g)):_.setPosition(h[m]),d.add(_))}}function c(v){return U(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new jt,p=new Bt,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),Ke(d,g,e,v),Ke(p,g,e,v);var y=new oe,m=new oe;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,v,!1),Wr(g),Wr(p),Oe(p,m,e),Oe(g,m,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(v),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),_t(p,d,"lineStyle"),_t(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,D(["emphasis","select","blur"],function(b){var T=d.getModel([b,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(b).ignore=C&&x;var A=d.getModel([b,"lineStyle"]).getLineStyle();p.ensureState(b).style=A;var M=T.getAreaStyle();g.ensureState(b).style=M;var L=d.getModel([b,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(b).style=ae(L)})}),g.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var w=d.getModel("emphasis");y.eachChild(function(b){if(b instanceof Rt){var T=b.style;b.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else b.useStyle(m),b.setColor(_),b.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(b.__dimIdx),h);(C==null||isNaN(C))&&(C=""),Mt(b,St(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:b.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),et(v,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=Tf,t})($e),ru=$k.value,Yu="radar",Jk=Yu,m8=Yu,Qk=5;function Qc(r,t){return le({show:t},r)}var _8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=U(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=le({color:p.color},u));var y=_e(ae(p),{boundaryGap:e,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(j(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else ie(c)&&(y.name=c(y.name,y));var _=new Ie(y,null,this.ecModel);return xt(_,Qf.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=qo("ec_radar"),_},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=Jk,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:Qk,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:B.color.neutral20}},ru.axisLine),axisLabel:Qc(ru.axisLabel,!1),axisTick:Qc(ru.axisTick,!1),splitLine:Qc(ru.splitLine,!0),splitArea:Qc(ru.splitArea,!0),indicator:[]},t})(Me),S8=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e,a),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,n){var a=e.coordinateSystem,i=a.getIndicatorAxes(),o=U(i,function(s){var l=s.model.get("showName")?s.name:"",u=new ar(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});D(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=$(v)?v:[v],p=$(h)?h:[h],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,x=n.cy,w=0;w<_.length;w++){if(f){var b=m(g,d,w);g[b].push(new xa({shape:{cx:S,cy:x,r:_[w].coord}}))}if(c&&w<_.length-1){var b=m(y,p,w);y[b].push(new Ff({shape:{cx:S,cy:x,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var T,C=U(a,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),U(N,function(O){return n.coordToPoint(O.coord,E)})}),A=[],w=0;w<=T;w++){for(var M=[],L=0;L<a.length;L++)M.push(C[L][w]);if(M[0]&&M.push(M[0].slice()),f){var b=m(g,d,w);g[b].push(new Bt({shape:{points:M}}))}if(c&&A){var b=m(y,p,w-1);y[b].push(new jt({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();D(y,function(R,E){this.group.add(Or(R,{style:le({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),D(g,function(R,E){this.group.add(Or(R,{style:le({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},t.type="radar",t})(Qe),x8=(function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t})(un),w8=(function(){function r(t,e,n){this.type=Yu,this.dimensions=[],this._model=t,this._indicatorAxes=U(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new x8(o,new ei);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=bt(t,e).refContainer,a=t.get("center"),i=t.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=Z(a[0],n.width)+n.x,this.cy=Z(a[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(j(s)||Ee(s))&&(s=[0,s]),this.r0=Z(s[0],o),this.r=Z(s[1],o);var l=i?-1:1;D(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model,i=ap(a.get("splitNumber"),Qk),o=new ei;o.setExtent(0,i),o.setConfig({interval:1}),D(n,function(s){Eo(s,fl),Uk(s,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent(Jk,function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType(m8,function(a){if(a.get("coordinateSystem")===Yu){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&D(i.getIndicatorAxes(),function(o){Ro(o,a,Yu)})}}),n},r.dimensions=[],r})();function b8(r){r.registerCoordinateSystem("radar",w8),r.registerComponentModel(_8),r.registerComponentView(S8),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var C8=wt(Tf,T8);function T8(r){r.eachSeriesByType(Tf,function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=eA(f)?f:tA(a)})}),e.each(function(o){var s=di(n[o],function(l){return eA(l)})||tA(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function eA(r){return!isNaN(r[0])&&!isNaN(r[1])}function tA(r){return[r.cx,r.cy]}function A8(r){Se(b8),r.registerChartView(y8),r.registerSeriesModel(g8),r.registerLayout(C8),r.registerProcessor(ac("radar")),r.registerPreprocessor(p8)}var R1=me();function M8(r,t,e){R1(r)[t]=e}function D8(r,t,e){var n=R1(r),a=n[t];a===e&&(n[t]=null)}function rA(r,t){return!!R1(r)[t]}Wn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var I8={axisPointer:1,tooltip:1,brush:1};function eO(r,t,e){var n=t.getComponentByElement(r.topTarget);if(!n||n===e||I8.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===e)return!1;var i=Do(n),o=Do(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var ns=(function(r){V(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=q(n._mousedownHandler,n),i=q(n._mousemoveHandler,n),o=q(n._mouseupHandler,n),s=q(n._mousewheelHandler,n),l=q(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,v=Do(c.component),h=v.z,d=v.zlevel,p={component:c.component,z:h,zlevel:d,z2:Q(c.z2,-1/0)},g=G({},f.triggerInfo);this._opt=le(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(au(e,"mousedown",a,p),au(e,"mousemove",i,p),au(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(au(e,"mousewheel",s,p),au(e,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,iu(e,"mousedown",a),iu(e,"mousemove",i),iu(e,"mouseup",o),iu(e,"mousewheel",s),iu(e,"pinch",l))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,n,a){var i=this._opt,o=i.zInfoParsed;if(eO(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,n,a)),u&&s.isInClip&&!s.isInClip(e,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,n,a,i){var o=e.target;if(!o&&this._checkPointer(e,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(iw(e)||nu(e))){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this._checkPointer(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var n=this._zr;if(!(e.gestureEvent==="pinch"||rA(n,"globalPan")||nu(e))){var a=e.offsetX,i=e.offsetY;if(!this._dragging||!eh("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&fa(e.event),e.__ecRoamConsumed=!0,nA(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!nu(e)){var n=this._zr;if(!iw(e)){this._dragging=!1;var a=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(e){if(!nu(e)){var n=eh("zoomOnMouseWheel",e,this._opt),a=eh("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(rA(this._zr,"globalPan")||nu(e))){var n=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,n,a,i,o){e._checkPointer(i,o.originX,o.originY)&&(fa(i.event),i.__ecRoamConsumed=!0,nA(e,n,a,i,o))},t})(Yr);function nu(r){return r.__ecRoamConsumed}var L8=me();function hp(r){var t=L8(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function au(r,t,e,n){for(var a=hp(r),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:n}),P8(r,t)}function iu(r,t,e){for(var n=hp(r),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===e){a.splice(i,1),a.length||R8(r,t);return}}function P8(r,t){var e=hp(r);e.uniform[t]||r.on(t,e.uniform[t]=function(n){var a=e.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function R8(r,t){var e=hp(r),n=e.uniform;n[t]&&(r.off(t,n[t]),n[t]=null)}function nA(r,t,e,n,a){a.isAvailableBehavior=q(eh,null,e,n),r.trigger(t,a)}function eh(r,t,e){var n=e[r];return!r||n&&(!j(n)||t.event[n+"Key"])}function tO(r){if(j(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var ry,qh={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"},aA=De(qh),Kh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},iA=De(Kh),E8=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=tO(t);this._defsUsePending=[];var a=new oe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),gr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;N8(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var v=dp(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=nO(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=a;a=new oe,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new be({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=ry[s];if(f&&J(ry,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var h=oA[s];if(h&&J(oA,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new al({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),k8(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=(function(){ry={g:function(t,e){var n=new oe;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new be;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new xa;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new dt;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Ud;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=uA(n));var i=new jt({shape:{points:a||[]},silent:!0});return Ar(e,i),gr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=uA(n));var i=new Bt({shape:{points:a||[]},silent:!0});return Ar(e,i),gr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Rt;return Ar(e,n),gr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new oe;return Ar(e,s),gr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new oe;return Ar(e,s),gr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=X2(n);return Ar(e,a),gr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),oA={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Ml(t,e,n,a);return sA(r,i),lA(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new K2(t,e,n);return sA(r,a),lA(r,a),a}};function sA(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function lA(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};rO(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=hr(o),u=l&&l[3];u&&(l[3]*=Za(s),o=An(l,"rgba"))}t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Ar(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),le(t.__inheritedStyle,r.__inheritedStyle))}function uA(r){for(var t=dp(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function gr(r,t,e,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(z8(r,t),rO(r,o,s),n||F8(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=fA(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=fA(i,"stroke",o.stroke,e)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=U(dp(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function k8(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var O8=/^url\(\s*#(.*?)\)/;function fA(r,t,e,n){var a=e&&e.match(O8);if(a){var i=Vr(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function N8(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var B8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dp(r){return r.match(B8)||[]}var V8=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ny=Math.PI/180;function z8(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(V8,function(c,v,h){return n.push(v,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=dp(o);switch(a=a||nt(),s){case"translate":On(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":sS(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":pi(a,a,-parseFloat(l[0])*ny,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ny);zr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ny);zr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var cA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rO(r,t,e){var n=r.getAttribute("style");if(n){cA.lastIndex=0;for(var a;(a=cA.exec(n))!=null;){var i=a[1],o=J(qh,i)?qh[i]:null;o&&(t[o]=a[2]);var s=J(Kh,i)?Kh[i]:null;s&&(e[s]=a[2])}}}function F8(r,t,e){for(var n=0;n<aA.length;n++){var a=aA[n],i=r.getAttribute(a);i!=null&&(t[qh[a]]=i)}for(var n=0;n<iA.length;n++){var a=iA[n],i=r.getAttribute(a);i!=null&&(e[Kh[a]]=i)}}function nO(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function G8(r,t){var e=new E8;return e.parse(r,t)}var H8=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$8=(function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=t,this._parsedXML=tO(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=W8(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&G8(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Yt(n!=null)}catch(g){throw new Error(`Invalid svg format
52
+ `+g.message)}var a=new oe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,v=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,c=h.width),f==null&&(f=h.y,v=h.height)}l=this._boundingRect=new se(u,f,c,v)}if(s){var d=nO(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new be({shape:l.plain()}));var p=[];return D(e.named,function(g){H8.get(g.svgNodeTagLower)!=null&&(p.push(g),U8(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r})();function U8(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function W8(r){var t=[],e=K();return D(r,function(n){if(n.namedFrom==null){var a=new VU(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}var a_=[126,25],vA="南海诸岛",qi=[[[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 Wi=0;Wi<qi.length;Wi++)for(var _s=0;_s<qi[Wi].length;_s++)qi[Wi][_s][0]/=10.5,qi[Wi][_s][1]/=-10.5/.75,qi[Wi][_s][0]+=a_[0],qi[Wi][_s][1]+=a_[1];function Y8(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===vA)return;t.push(new ME(vA,U(qi,function(n){return{type:"polygon",exterior:n}}),a_))}}var X8={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function j8(r,t){if(r==="china"){var e=X8[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var Z8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function q8(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Z8[0]})}var K8="name",J8=(function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=K(),this._mapName=t,this._specialAreas=n,this._geoJSON=e7(e)}return r.prototype.load=function(t,e){e=e||K8;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:Q8(a)})}var i=K(),o=[];return D(n.regions,function(s){var l=s.name;t&&J(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new se(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?FU(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
53
+ `+i.message)}return Y8(e,a),D(a,function(i){var o=i.name;j8(e,i),q8(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function Q8(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function e7(r){return j(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ou=K();const ma={registerMap:function(r,t,e){if(t.svg){var n=new $8(r,t.svg);ou.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new J8(r,a,e);ou.set(r,n)}},getGeoResource:function(r){return ou.get(r)},getMapForUser:function(r){var t=ou.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=ou.get(r);if(n)return n.load(t,e)}};var Bo=0,Vo=1,Hn=2;var t7="view",pp=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.type=t7,i.dimensions=["x","y"];var o=i;o.invertY=e,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[Bo]=Hs(),s[Vo]=Hs(),s[Hn]=Hs(),o.mtRaw=nt(),o.mtRawInv=nt(),o.mtOverall=nt(),o.mtOverallInv=nt(),o.zoom=1,i}return t.prototype.getBoundingRect=function(){return aO(null,this)},t.prototype.getViewRect=function(){return E1(null,this)},t.prototype.getRoamTransform=function(){return ii(this.trans[Vo])},t.prototype.dataToPoint=function(e,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?st(a,e,i):Ht(a,e)},t.prototype.pointToData=function(e,n,a){a=a||[];var i=this.mtOverallInv;return i?st(a,e,i):Ht(a,e)},t.prototype.convertToPixel=function(e,n,a){var i=yA(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=yA(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){var n=this;return el(ev,n.dataRect),IL(ev,ev,n.mtOverall),Pz(ev,e[0],e[1])},t.dimensions=["x","y"],t})(Un),ev=Ld();function Jh(r,t){return xo([],t.mtOverall)}function r7(r){return r.zoom}function aO(r,t){return el(Ld(),t.dataRect)}function E1(r,t){return el(Ld(),t.viewRect)}function Af(r,t,e){return Nn(r||Hs(),t.trans[e])}function k1(r){return!!(r.dataRect&&r.viewRect)}function n7(r,t,e,n){n===Vo?iO(r,t.trans[Bo],e):Nn(r,e)}function hA(r,t,e){ii(e,tv),zr(tv,tv,t.mtRawInv),Zd(r,tv)}var tv=nt();function O1(r,t){var e=r;e.centerOption=t.getShallow("center");var n=e.zoomLimit=t.getShallow("scaleLimit"),a=t.getShallow("zoom");e.zoom=B1(a||1,n)||1,k1(e)&&N1(e)}function gp(r,t,e,n,a){var i=r;i.dataRect=new se(t,e,n,a),k1(i)&&N1(i)}function Qh(r,t,e,n,a){var i=r;i.viewRect=new se(t,e,n,a),k1(i)&&N1(i)}function N1(r){a7(r),o7(r),s7(r)}function a7(r){var t=r.dataRect,e=r.viewRect,n=r.trans[Bo],a=r.invertY;a&&(t=el(i7,t),t.y=-t.y-t.height),DL(dA,t,e),Zd(n,dA),a&&(n.scaleY=-n.scaleY);var i=ii(n,r.mtRaw);Hr(r.mtRawInv,i)}var dA=nt(),i7=Ld();function o7(r){var t=oO(r),e=f7(ay,r,r.centerOption)?st(ay,ay,r.mtRaw):t,n=r.zoom,a=r.trans[Vo];a.x=t[0]-n*e[0],a.y=t[1]-n*e[1],a.scaleX=a.scaleY=n}var ay=[];function s7(r){var t=r.trans,e=t[Vo],n=t[Bo],a=t[Hn];iO(a,n,e);var i=ii(a,r.mtOverall),o=Hr(r.mtOverallInv,i);pA(r,a,i,o),pA(r.lgGeo,a,i,o)}function pA(r,t,e,n){r&&(Nn(r,t),xo(r.transform||(r.transform=[]),e),xo(r.invTransform||(r.invTransform=[]),n))}function iO(r,t,e){ii(t,gA),ii(e,rv),zr(rv,rv,gA),Zd(r,rv)}var gA=nt(),rv=nt();function yA(r){var t=r.seriesModel;return t?t.coordinateSystem:null}function oO(r){var t=r.viewRect;return iy[0]=t.x+t.width/2,iy[1]=t.y+t.height/2,iy}var iy=[];function sO(r){return r&&r.type==="view"}function li(r,t,e,n){var a=e;a.syncBackEl=r,a.syncBackType=t,n?Oe(r,Af(null,e,t),n):(Af(r,e,t),r.dirty())}function l7(r,t,e,n){var a=r,i=a.syncBackEl;i?(i.stopAnimation(),n7(Ra,a,i,a.syncBackType)):Nn(Ra,a.trans[Hn]),hA(oy,a,Ra),n?u7(Ra,oy,a,n):Nn(Ra,oy),hA(Ra,a,Ra),v7(a,t,e,Ra)}var Ra=Hs(),oy=Hs();function lO(r,t,e){var n=ed(t);n&&(l7(n,t,e,r),O1(n,t))}function ed(r){return r.__ownRoamView?r.__ownRoamView():null}function uO(r,t,e,n){e.setUpdatePayload(PS(r));var a=E2(n,t);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,t,n)}function u7(r,t,e,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var a=n.zoom;if(a!=null){var i=fO(t),o=B1(i*a,e.zoomLimit),s=o/i;r.x-=(n.originX-r.x)*(s-1),r.y-=(n.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function fO(r){return r.scaleX}function f7(r,t,e){var n=t.dataRect;if(!e)return!1;var a=t.lgCt;return a?Xa(r,Z(e[0],a.w),Z(e[1],a.h)):n&&Xa(r,Z(e[0],n.width,n.x),Z(e[1],n.height,n.y)),!0}function c7(r,t){var e=r.centerOption,n=r.dataRect;return!e||r.lgCt?t.slice():[mA(0,t,e,n),mA(1,t,e,n)]}function mA(r,t,e,n){return e&&n&&n[lt[r]]&&NF(e[r])?(t[r]-n[de[r]])/n[lt[r]]*100+"%":t[r]}function cO(r,t){return t&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}function v7(r,t,e,n){var a=oO(r),i=fO(n),o=it(i)>1e-6;su[0]=o?(a[0]-n.x)/i:a[0],su[1]=o?(a[1]-n.y)/i:a[1],st(su,su,r.mtRawInv);var s=c7(r,su);_A(t,s,i),D(e,function(l){l!==t&&_A(l,s.slice(),i)})}var su=[];function _A(r,t,e){var n=r.option;n.center=t,n.zoom=e}function B1(r,t){if(t){var e=t.min||0,n=t.max||1/0;r=Math.max(Math.min(n,r),e)}return r}function vO(r,t){var e=t.getShallow("nodeScaleRatio",!0)||1,n=r;return((n.zoom-1)*e+1)/(n.trans[Hn].scaleX||1)}function yp(r,t,e,n,a,i,o,s){var l=ed(r);if(!l){e.disable();return}e.enable(Q(r.get("roam"),o),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,c,v){return!a||a.contain(c,v)}}});function u(f){var c=r.mainType,v=PS(le({type:dO(c,r.subType,P2)},f));s&&(v.componentType=c),v[c+"Id"]=r.id,t.dispatchAction(v)}e.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function hO(r){return function(t,e,n){return sy.copy(r.getBoundingRect()),sy.applyTransform(r.getComputedTransform()),sy.contain(e,n)}}var sy=new se(0,0,0,0);function V1(r,t,e){var n=dO(t,e,P2);r.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(yS(a,t,e),function(s){lO(a,s),uO(a,s,i,o)})})}function dO(r,t,e){return(r!==zn?r:t==="map"?"geo":t)+e}function pO(r){return r.zoom!=null}function z1(r,t,e,n,a,i,o){var s=new pp(null,cO(r.ecModel,t));return gp(s,e,n,a,i),o?Qh(s,o.x,o.y,o.width,o.height):Qh(s,e,n,a,i),O1(s,r),s}var F1=["rect","circle","line","ellipse","polygon","polyline","path"],h7=K(F1),d7=K(F1.concat(["g"])),p7=K(F1.concat(["g"])),gO=me();function nv(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function SA(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var yO=(function(){function r(t){var e=this.group=new oe,n=this._transformGroup=new oe;e.add(n),this.uid=qo("ec_map_draw"),this._controller=new ns(t.getZr()),n.add(this._regionsGroup=new oe),n.add(this._svgGroup=new oe)}return r.prototype.draw=function(t,e,n,a,i){var o=this,s=t.getData&&t.getData();qs(t)&&e.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===t&&(s=p.getData())});var l=t.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||i,h;l.shouldClip()?(h=E1(null,u),this.group.setClipPath(new be({shape:h.clone()}))):this.group.removeClipPath(),li(c,Vo,u,v?null:t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,t,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,t,s,d),yp(t,n,this._controller,function(p,g,y){return t.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,f,n,a)},r.prototype.__updateOnOwnRoam=function(t){li(this._transformGroup,Vo,t.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(t,e,n,a,i,o){var s=this._regionsGroupByName=K(),l=K(),u=this._regionsGroup,f=n.projection,c=f&&f.stream,v=ii(Af(null,t,Bo));function h(g,y){return y&&(g=y(g)),g&&st([],g,v)}function d(g){for(var y=[],m=!c&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),D(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new oe),u.add(m),S=i?i.indexOfName(y):null,x=qs(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var w=x.get("silent",!0);w!=null&&(m.silent=w),l.set(y,{dataIdx:S,regionModel:x})}var b=[],T=[];D(g.geometries,function(M){if(M.type==="polygon"){var L=[M.exterior].concat(M.interiors||[]);c&&(L=AA(L,c)),D(L,function(P){b.push(new jt(p(P)))})}else{var I=M.points;c&&(I=AA(I,c,!0)),D(I,function(P){T.push(new Bt(p(P)))})}});var C=h(g.getCenter(),f&&f.project);function A(M,L){if(M.length){var I=new Yd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});m.add(I),xA(e,i,o,I,S,x),wA(a,i,I,y,x,S,C),L&&(SA(I),D(I.states,SA))}}A(b),A(T,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;bA(a,i,g,y,S,_),CA(a,i,g,y,S),TA(a,g,y,S)},this)},r.prototype._buildSVG=function(t,e,n,a,i,o){var s=n.map;Af(this._svgGroup,t,Bo),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=K(),u=!1;D(this._svgGraphicRecord.named,function(f){var c=f.name,v=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(c):null,p=a.getRegionModel(c);h7.get(v)!=null&&h instanceof Ur&&xA(e,i,o,h,d,p),h instanceof Ur&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(p7.get(v)!=null&&wA(a,i,h,c,p,d,null),bA(a,i,h,c,p,d),CA(a,i,h,c,p),d7.get(v)!=null)){var y=TA(a,h,c,p);y==="self"&&(u=!0);var m=l.get(c)||l.set(c,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&qs(e)){var n=e.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Ao(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=ma.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=ma.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=gO(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function xA(r,t,e,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=nv(o),c=nv(s),v=nv(u),h=nv(l);if(t){var d=t.getItemVisual(a,"style"),p=t.getItemVisual(a,"decal");e&&d.fill&&(f.fill=d.fill),p&&(f.decal=sl(p,r))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=c,n.ensureState("select").style=v,n.ensureState("blur").style=h,Ao(n)}function wA(r,t,e,n,a,i,o){var s=t&&isNaN(t.get(t.mapDimension("value"),i)),l=t&&t.getItemLayout(i);if(qs(r)||s||l&&l.showLabel){var u=qs(r)?n:i,f=void 0;(!t||i>=0)&&(f=r);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Mt(e,St(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},c);var v=e.getTextContent();if(v&&(gO(v).ignore=v.ignore,e.textConfig&&o)){var h=e.getBoundingRect().clone();e.textConfig.layoutRect=h,e.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function bA(r,t,e,n,a,i){t?t.setItemGraphicEl(i,e):ce(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:a&&a.option||{}}}function CA(r,t,e,n,a){t||wa({el:e,componentModel:r,itemName:n,itemTooltipOption:a.get("tooltip")})}function TA(r,t,e,n){t.highDownSilentOnTouch=!!r.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return et(t,i,a.get("blurScope"),a.get("disabled")),qs(r)&&_G(t,r,e),i}function AA(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}function qs(r){return r.mainType==="geo"}var zo="map",g7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=Nl(this,{coordDimensions:["value"],encodeDefaulter:xe(US,this)}),a=K(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=ma.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name,v=a.get(c),h=f.properties&&f.properties.echartsStyle,d;v==null?(d={name:c},i.push(d)):d=n.getRawDataItem(v),h&&_e(d,h)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){if(EP(this).kind!==RP)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=[];return D(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),c=i.mapDimension("value");isNaN(u.originalData.get(c,f))||l.push(u.name)}),pt("section",{header:l.join(", "),noHeader:!l.length,blocks:[pt("nameValue",{name:s,value:o})]})},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",a=gt(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=B.color.neutral00,a.style.lineWidth=2),a},t.prototype.__ownRoamView=function(){return td(this)?this.coordinateSystem.view:null},t.type="series."+zo,t.dependencies=["geo"],t.layoutMode="box",t.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:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border,areaColor:B.color.background},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{areaColor:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},nameProperty:"name"},t})(Ze);function mO(r){return r.indexOf("i")===0}function td(r){return Mf(r.seriesGroup)===r&&!r.getHostGeoModel()}function Mf(r){return r.f[0]}function G1(r,t){var e={};return r.eachRawSeriesByType(zo,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=e[i]=e[i]||{f:[],r:[]};!r.isSeriesFiltered(n)&&!t&&o.f.push(n),o.r.push(n)}),e}var y7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=zo,e}return t.prototype.render=function(e,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id?s&&o.add(s.group):td(e)?(s=s||(this._mapDraw=new yO(a)),o.add(s.group),s.draw(e,n,a,this,i)):this._clearMapDraw(),e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=this._mapDraw;td(n)&&i&&i.__updateOnOwnRoam(n)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var n=e.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new xa({style:{fill:e.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:Al+1)});if(!u){var c=Mf(e.seriesGroup).getData(),v=n.getName(o),h=c.indexOfName(v),d=n.getItemModel(o),p=d.getModel("label"),g=c.getItemGraphicEl(h);Mt(f,St(d),{labelFetcher:{getFormattedLabel:function(y,m){return e.getFormattedLabel(h,m)}},defaultText:v}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){xh(f,y)}}a.add(f)}}})},t.type=zo,t})($e),m7={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},_O=["lng","lat"],MA=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.dimensions=_O,i.type="geo",i._nameCoordMap=K(),i.name=e;var o=a.projection,s=ma.load(n,a.nameMap,a.nameProperty),l=ma.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=m7[l.type];i._clip=a.clip;var c=o?!1:f.invertLongitute;i.view=new pp(c,cO(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return gp(i.view,v.x,v.y,v.width,v.height),i.aspectScale=o?1:Q(a.aspectScale,f.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,a){if(j(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.view.dataToPoint(e,n,a)}},t.prototype.pointToData=function(e,n,a){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.view.pointToData(e,a)},t.prototype.convertToPixel=function(e,n,a){var i=DA(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=DA(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e=e||0;var n=E1(null,this.view);return n.x-=e,n.y-=e,n.width+=2*e,n.height+=2*e,n},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t})(Un);function DA(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",at).models[0]||{}).coordinateSystem:null}function IA(r,t){var e=this.view,n=r.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var c=function(w,b,T,C){for(var A=T-w,M=C-b,L=0;L<=100;L++){var I=L/100,P=o.project([w+A*I,b+M*I]);Va(a,a,P),za(i,i,P)}};c(s,l,u,l),c(u,l,u,f),c(u,f,s,f),c(s,f,u,l)}gp(e,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var v=e.getBoundingRect(),h=r.get("layoutCenter"),d=r.get("layoutSize"),p=bt(r,t).refContainer,g=v.width/v.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[Z(h[0],p.width)+p.x,Z(h[1],p.height)+p.y],_=Z(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=tt(x,p),S=VP(r,S,g)}Qh(e,S.x,S.y,S.width,S.height),O1(e,r)}function _7(r,t){D(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var S7=(function(){function r(){this.dimensions=_O}return r.prototype.create=function(t,e){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return t.eachComponent("geo",function(i,o){var s=i.get("map"),l=new MA(s+o,s,G({nameMap:i.get("nameMap"),api:e,ecModel:t},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=IA,l.resize(i,e)}),t.eachSeries(function(i){Yf({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===zo?i.getHostGeoModel():i.getReferringComponents("geo",at).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),D(G1(t,!0),function(i,o){if(mO(o)){var s=i.r[0],l=[];D(i.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new MA(u,u,G({nameMap:aS(l),api:e,ecModel:t},a(s))),c;D(i.r,function(v){c=Q(c,v.get("scaleLimit"))}),n.push(f),f.resize=IA,f.resize(s,e),D(i.r,function(v){v.coordinateSystem=f,_7(f,v)})}}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ma.load(e,n,a);return D(l.regions,function(u){var f=u.name,c=o.get(f),v=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),v&&_e(c,v)}),i},r})(),SO=new S7,x7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a);var i=ma.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color=e.defaultItemStyleColor||B.color.backgroundTint)}wo(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=SO.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=kn(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ie(o,e,e.ecModel)),o.selected&&(a[s]=!0)),i},K()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ie(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(ie(i))return o.status=n,i(o);if(j(i))return i.replace("{a}",e??"")},t.prototype.select=function(e){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type="geo",t.layoutMode="box",t.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:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},regions:[]},t})(Me),w7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new yO(a));var o=this._mapDraw;o.draw(e,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,a)},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},t.prototype._handleRegionClick=function(e){var n;uo(e.target,function(a){return(n=ce(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ce(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(Qe);function b7(r,t,e){ma.registerMap(r,t,e)}function xO(r){r.registerCoordinateSystem("geo",SO),r.registerComponentModel(x7),r.registerComponentView(w7),r.registerImpl("registerMap",b7),r.registerImpl("getMap",function(e){return ma.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,a){var i=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?"geo":zn),o=i===zn;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(yS(e,i,s),function(l){o&&!td(l)||(lO(e,l,o?l.seriesGroup.r:null),uO(e,l,n,a))})}})}var C7=wt(zo,T7);function T7(r){D(G1(r),function(t,e){if(!(!Mf(t)||!mO(e))){var n={};D(t.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),c=o.getRegion(f);if(!(!c||isNaN(l))){var v=n[f]||0,h=o.dataToPoint(c.getCenter());n[f]=v+1,s.setItemLayout(u,{point:h,offset:v})}})});var a=Mf(t).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function A7(r,t){var e={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}var M7=wt(zo,D7);function D7(r){D(G1(r),function(t){var e=Mf(t);if(e){var n=A7(U(t.f,function(a){return a.getData()}),e.get("mapValueCalculation"));D(t.f,function(a){a.seriesGroup=t,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function I7(r){Se(xO),r.registerChartView(y7),r.registerSeriesModel(g7),r.registerLayout(C7),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,M7),DR("map",r.registerAction)}function L7(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],n,a;n=e.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function P7(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){E7(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=k7(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function R7(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function LA(r){return arguments.length?r:B7}function Du(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function E7(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function k7(r,t,e,n){if(t){for(var a=r,i=r,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=ly(s),i=uy(i),s&&i;){a=ly(a),o=uy(o),a.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);v>0&&(N7(O7(s,r,e),r,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!ly(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!uy(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function ly(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function uy(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function O7(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function N7(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function B7(r,t){return r.parentNode===t.parentNode?1:2}var Gr=me();function wO(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,bO(t,e,r),D(e,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,xe(V7,r))})}),t.wrapMethod("cloneShallow",xe(F7,r)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,xe(z7,r))}),Yt(e[t.dataType]===t)}function V7(r,t){if($7(this)){var e=G({},Gr(this).datas);e[this.dataType]=t,bO(t,e,r)}else H1(t,this.dataType,Gr(this).mainData,r);return t}function z7(r,t){return r.struct&&r.struct.update(),t}function F7(r,t){return D(Gr(t).datas,function(e,n){e!==t&&H1(e.cloneShallow(),n,t,r)}),t}function G7(r){var t=Gr(this).mainData;return r==null||t==null?t:Gr(t).datas[r]}function H7(){var r=Gr(this).mainData;return r==null?[{data:r}]:U(De(Gr(r).datas),function(t){return{type:t,data:Gr(r).datas[t]}})}function $7(r){return Gr(r).mainData===r}function bO(r,t,e){Gr(r).datas={},D(t,function(n,a){H1(n,a,r,e)})}function H1(r,t,e,n){Gr(e).datas[t]=r,Gr(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=G7,r.getLinkedDataAll=H7}var U7=(function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){ie(t)&&(n=e,e=t,t=null),t=t||{},j(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,n);a==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>e&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},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 t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r})(),$1=(function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,a=e.length;n<a;n++)e[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var a=new r(e),i=[],o=1;s(t);function s(f,c){var v=f.value;o=Math.max(o,$(v)?v.length:1),i.push(f);var h=new U7(mt(f.name,""),a);c?W7(h,c):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=jf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new nr(l,e);return u.initData(i),n&&n(u),wO({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function W7(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Df(r,t,e){if(r&&pe(t,r.type)>=0){var n=e.getData().tree.root,a=r.targetNode;if(j(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function CO(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function U1(r,t){var e=CO(r);return pe(e,t)>=0}function mp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var Fo="tree",Y7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Ie(a,this,this.ecModel),o=$1.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return pt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=mp(a,this),n.collapsed=!a.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Fo,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:B.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(Ze),X7=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),j7=(function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new X7},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=Z(n.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];e.moveTo(p[0],p[1]),h[f]=p[f],e.lineTo(h[0],h[1])}},t})(Ae),Z7=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Fo,e._mainGroup=new oe,e}return t.prototype.init=function(e,n){this._controller=new ns(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,n,a){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.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(e,a),yp(e,a,this._controller,hO(this.group),null);var u=this._data;i.diff(u).add(function(f){PA(i,f)&&RA(i,f,null,s,e)}).update(function(f,c){var v=u.getItemGraphicEl(c);if(!PA(i,f)){v&&kA(u,c,v,s,e);return}RA(i,f,v,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&kA(u,f,c,s,e)}).execute(),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=i,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,n,a){li(this.group,Hn,n.coordinateSystem,null),pO(e)&&this._updateNodeAndLinkScale(n)},t.prototype._updateViewCoordSys=function(e,n){var a=e.getData(),i=[];a.each(function(c){var v=a.getItemLayout(c);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];zd(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 f=e.coordinateSystem=z1(e,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);li(this.group,Hn,f,this._firstRender?null:e),this._min=o,this._max=s},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),a=vO(e.coordinateSystem,e);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=Fo,t})($e);function PA(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function RA(r,t,e,n,a){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:B.color.neutral00,f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,v=r.getItemGraphicEl(c.dataIndex),h=c.getLayout(),d=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:h,p=o.getLayout();i?(e=new ec(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Oe(e,{x:p.x,y:p.y},a);var g=e.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(w.y-m.y,w.x-m.x),S<0&&(S=Math.PI*2+S),x=w.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var b=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||b,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Ku(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ce(e).focus=I),q7(a,o,f,e,d,h,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===zf||xh(e.__edge,P)}})}function q7(r,t,e,n,a,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),v=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new Gf({shape:i_(f,c,v,a,a)})),Oe(p,{shape:i_(f,c,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new j7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:h}})),Oe(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(le({strokeNoScale:!0,fill:null},d)),_t(p,l,"lineStyle"),Ao(p),s.add(p))}function EA(r,t,e,n,a){var i=t.tree.root,o=TO(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);v&&(h==="curve"?oi(v,{shape:i_(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(v)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&oi(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(v)},removeOpt:a}))}}function TO(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function kA(r,t,e,n,a){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=TO(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};oi(e,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),D(i.children,function(u){EA(u,r,n,a,l)}),EA(i,r,n,a,l)}function i_(r,t,e,n,a){var i,o,s,l,u,f,c,v;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,v=a.rawY;var h=Du(u,c),d=Du(u,c+(v-c)*e),p=Du(f,v+(c-v)*e),g=Du(f,v);return{x1:h.x||0,y1:h.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=n.x,c=n.y,f=a.x,v=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=c,s=f+(u-f)*e,l=v),(t==="TB"||t==="BT")&&(i=u,o=c+(v-c)*e,s=f,l=v+(c-v)*e);return{x1:u,y1:c,x2:f,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function K7(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,e)}function lu(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)e.push(a[i])}}function J7(r,t){r.eachSeriesByType("tree",function(e){Q7(e,t)})}function Q7(r,t){var e=bt(r,t).refContainer,n=tt(r.getBoxLayoutParams(),e);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=LA(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=LA());var l=r.getData().tree.root,u=l.children[0];if(u){L7(l),K7(u,P7,s),l.hierNode.modifier=-u.hierNode.prelim,lu(u,R7);var f=u,c=u,v=u;lu(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>c.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),lu(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=Du(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),lu(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),lu(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function e9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:zn,subType:Fo,query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),V1(r,zn,Fo)}var t9=wt(Fo,r9);function r9(r){r.eachSeriesByType(Fo,function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(a.dataIndex,"style");G(s,o)})})}function n9(r){r.registerChartView(Z7),r.registerSeriesModel(Y7),r.registerLayout(J7),r.registerVisual(t9),e9(r)}var OA=["treemapZoomToNode","treemapRender","treemapMove"];function a9(r){for(var t=0;t<OA.length;t++)r.registerAction({type:OA[t],update:"updateView"},ot);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Df(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=U1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function AO(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=w0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var i9=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};MO(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Ie({itemStyle:o},this,n);i=e.levels=o9(i,n);var l=U(i||[],function(c){return new Ie(c,s,n)},this),u=$1.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return pt("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=mp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=K(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){AO(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:B.size.l,top:B.size.xxxl,right:B.size.l,bottom:B.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:B.size.m,emptyItemWidth:25,itemStyle:{color:B.color.backgroundShade,textStyle:{color:B.color.secondary}},emphasis:{itemStyle:{color:B.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:B.color.neutral00,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:B.color.neutral00,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:[]},t})(Ze);function MO(r){var t=0;D(r.children,function(n){MO(n);var a=n.value;$(a)&&(a=a[0]),t+=a});var e=r.value;$(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),$(r.value)?r.value[0]=e:r.value=e}function o9(r,t){var e=Ye(t.get("color")),n=Ye(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;D(r,function(s){var l=new Ie(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=e.slice()),!i&&n&&(o.decal=n.slice()),r}}var s9=8,NA=8,fy=5,l9=(function(){function r(t){this.group=new oe,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=bt(t,e).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=tt(v,c);this._prepare(n,h,u),this._renderContent(t,h,d,s,l,u,f,a),Jd(o,v,c)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=mt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+s9*2,e.emptyItemWidth);e.totalWidth+=s+NA,e.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(t,e,n,a,i,o,s,l){for(var u=0,f=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>n.width&&(v-=m-f,m=f,_=null);var S=new jt({shape:{points:u9(u,0,m,c,p===h.length-1,p===0)},style:le(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Re({style:je(o,{text:_})}),textConfig:{position:"inside"},z2:Al*1e4,onclick:xe(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=je(s,{text:_}),S.ensureState("emphasis").style=d,et(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),f9(S,t,y),u+=m+NA}},r.prototype.remove=function(){this.group.removeAll()},r})();function u9(r,t,e,n,a,i){var o=[[a?r:r-fy,t],[r+e,t],[r+e,t+n],[a?r:r-fy,t+n]];return!i&&o.splice(2,0,[r+e+fy,t+n/2]),!a&&o.push([r,t+n/2]),o}function f9(r,t,e){ce(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&mp(e,t)}}var c9=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function v9(){return new c9}var If=Math.max,rd=Math.min,W1=D,DO=["itemStyle","borderWidth"],h9=["itemStyle","gapWidth"],d9=["upperLabel","show"],p9=["upperLabel","height"];const g9={seriesType:"treemap",reset:function(r,t,e,n){var a=r.option,i=bt(r,e).refContainer,o=tt(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Df(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,c=r.getViewRoot(),v=CO(c);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,w9(r,u,c,o)):f?(h=!0,G({},f)):G({},o);if(h){var p=RO(o,d);p=EO(p,r),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};c.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};c.setLayout(m),IO(c,y,!1,0),m=c.getLayout(),W1(v,function(S,x){var w=(v[x+1]||c).getValue();S.setLayout(G({dataExtent:[w,w],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(b9(o,f,u),!0),r.setLayoutInfo(o),LO(_,new se(-o.x,-o.y,e.getWidth(),e.getHeight()),v,c,0)}};function IO(r,t,e,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(DO),u=s.get(h9)/2,f=PO(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=If(a-2*v,0),i=If(i-v-h,0);var d=a*i,p=y9(r,s,d,t,e,n);if(p.length){var g={x:v,y:h,width:a,height:i},y=rd(a,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var w=p[S];_.push(w),_.area+=w.getLayout().area;var b=x9(_,y,t.squareRatio);b<=m?(S++,m=b):(_.area-=_.pop().getLayout().area,BA(_,y,g,u,!1),y=rd(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&BA(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(e=!0)}for(var S=0,x=p.length;S<x;S++)IO(p[S],t,e,n+1)}}}function y9(r,t,e,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Fe(o,function(h){return!h.isRemoved()}),_9(o,s);var u=S9(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=m9(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var v=o[f].getValue()/u.sum*e;o[f].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function m9(r,t,e,n,a){if(!n)return e;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),e}function _9(r,t){return t&&r.sort(function(e,n){var a=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return a===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:a}),r}function S9(r,t,e){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=Ot(),W1(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function x9(r,t,e){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?If(u*n/l,l/(u*a)):1/0}function BA(r,t,e,n,a){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(a||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,v=r.length;c<v;c++){var h=r[c],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=If(f-2*n,0),y=e[s[i]]+e[l[i]]-u,m=c===v-1||y<p?y:p,_=d[l[i]]=If(m-2*n,0);d[s[o]]=e[s[o]]+rd(n,g/2),d[s[i]]=u+rd(n,_/2),u+=m,h.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function w9(r,t,e,n){var a=(t||{}).node,i=n.width,o=n.height,s=G({},n);if(!a||a===e)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var c=0,v=l.children,h=0,d=v.length;h<d;h++)c+=v[h].getValue();var p=a.getValue();if(p===0)return s;f*=c/p;var g=l.getModel(),y=g.get(DO),m=Math.max(y,PO(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>yh&&(f=yh),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function b9(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var a=e.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 LO(r,t,e,n,a){var i=r.getLayout(),o=e[a],s=o&&o===r;if(!(o&&!s||a===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new se(t.x-i.x,t.y-i.y,t.width,t.height);W1(r.viewChildren||[],function(u){LO(u,l,e,n,a+1)})}}function PO(r){return r.get(d9)?r.get(p9):0}function RO(r,t){return t.width/r.width||t.height/r.height||1}function EO(r,t){return B1(r,t.get("scaleLimit",!0))}var o_=oe,VA=be,zA=3,FA="label",GA="upperLabel",C9=Al*10,T9=Al*2,A9=Al*3,Ki=To([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),HA=function(r){var t=Ki(r);return t.stroke=t.fill=t.lineWidth=null,t},nd=me(),M9=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=uu(),e}return t.prototype.render=function(e,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(pe(o,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Df(i,s,e),u=i&&i.type,f=e.layoutInfo,c=!this._oldTree,v=this._storage,h=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,h);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(e,a,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new o_,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,a){var i=n.getData().tree,o=this._oldTree,s=uu(),l=uu(),u=this._storage,f=[];function c(g,y,m,_){return D9(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var v=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:p};function h(g,y,m,_,S){_?(y=g,D(g,function(b,T){!b.isRemoved()&&w(T,T)})):new ya(y,g,x,x).add(w).update(w).remove(xe(w,null)).execute();function x(b){return b.getId()}function w(b,T){var C=b!=null?g[b]:null,A=T!=null?y[T]:null,M=c(C,A,m,S);M&&h(C&&C.viewChildren||[],A&&A.viewChildren||[],M,_,S+1)}}function d(g){var y=uu();return g&&D(g,function(m,_){var S=y[_];D(m,function(x){x&&(S.push(x),nd(x).willDelete=!0)})}),y}function p(){D(v,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(e,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ie(o)?0:o)||0,u=(ie(s)?null:s)||"cubicOut",f=v9();D(n.willDeleteEls,function(c,v){D(c,function(h,d){if(!h.invisible){var p=h.parent,g,y=nd(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=v==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),D(this._storage,function(c,v){D(c,function(h,d){var p=n.lastsForAnimation[v][d],g={};p&&(h instanceof oe?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=G({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(q(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new ns(e.getZr()),i.on("pan",q(this._onPan,this)),i.on("zoom",q(this._onZoom,this))),i.enable(a.get("roam"),{api:e,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>zA||Math.abs(e.dy)>zA)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new se(l.x,l.y,l.width,l.height),f=o.layoutInfo,c=RO(f,l),v=c*i;v=EO(v,o);var h=v/c;n-=f.x,a-=f.y;var d=nt();On(d,d,[-n,-a]),sS(d,d,[h,h]),On(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Mh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l9(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(U1(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=uu(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,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(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t})($e);function uu(){return{nodeGroup:[],background:[],content:[]}}function D9(r,t,e,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,w=v.getModel("itemStyle"),b=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),A=w.get("borderRadius")||0,M=ee("nodeGroup",o_);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),nd(M).nodeWidth=h,nd(M).nodeHeight=d,f.isAboveViewRoot)return M;var L=ee("background",VA,u,T9);L&&F(M,L,x&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)af(M)&&so(M,!1),L&&(so(L,!E),c.setItemGraphicEl(o.dataIndex,L),f0(L,N,R));else{var O=ee("content",VA,u,A9);O&&H(M,O),L.disableMorphing=!0,L&&af(L)&&so(L,!1),so(M,!E),c.setItemGraphicEl(o.dataIndex,M);var z=v.getShallow("cursor");z&&O.attr("cursor",z),f0(M,N,R)}return M;function F(ve,te,ge){var re=ce(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=r.seriesIndex,te.setShape({x:0,y:0,width:h,height:d,r:A}),g)W(te);else{te.invisible=!1;var he=o.getVisual("style"),Ue=he.stroke,Pe=HA(w);Pe.fill=Ue;var Ge=Ki(b);Ge.fill=b.get("borderColor");var We=Ki(T);We.fill=T.get("borderColor");var vt=Ki(C);if(vt.fill=C.get("borderColor"),ge){var pr=h-2*p;X(te,Ue,he.opacity,{x:p,y:0,width:pr,height:S})}else te.removeTextContent();te.setStyle(Pe),te.ensureState("emphasis").style=Ge,te.ensureState("blur").style=We,te.ensureState("select").style=vt,Ao(te)}ve.add(te)}function H(ve,te){var ge=ce(te);ge.dataIndex=o.dataIndex,ge.seriesIndex=r.seriesIndex;var re=Math.max(h-2*p,0),he=Math.max(d-2*p,0);if(te.culling=!0,te.setShape({x:p,y:p,width:re,height:he,r:A}),g)W(te);else{te.invisible=!1;var Ue=o.getVisual("style"),Pe=Ue.fill,Ge=HA(w);Ge.fill=Pe,Ge.decal=Ue.decal;var We=Ki(b),vt=Ki(T),pr=Ki(C);X(te,Pe,Ue.opacity,null),te.setStyle(Ge),te.ensureState("emphasis").style=We,te.ensureState("blur").style=vt,te.ensureState("select").style=pr,Ao(te)}ve.add(te)}function W(ve){!ve.invisible&&i.push(ve)}function X(ve,te,ge,re){var he=v.getModel(re?GA:FA),Ue=mt(v.get("name"),null),Pe=he.getShallow("show");Mt(ve,St(v,re?GA:FA),{defaultText:Pe?Ue:null,inheritColor:te,defaultOpacity:ge,labelFetcher:r,labelDataIndex:o.dataIndex});var Ge=ve.getTextContent();if(Ge){var We=Ge.style,vt=Dd(We.padding||0);re&&(ve.setTextConfig({layoutRect:re}),Ge.disableLabelLayout=!0),Ge.beforeUpdate=function(){var sr=Math.max((re?re.width:ve.shape.width)-vt[1]-vt[3],0),mi=Math.max((re?re.height:ve.shape.height)-vt[0]-vt[2],0);(We.width!==sr||We.height!==mi)&&Ge.setStyle({width:sr,height:mi})},We.truncateMinChar=2,We.lineOverflow="truncate",Y(We,re,f);var pr=Ge.getState("emphasis");Y(pr?pr.style:null,re,f)}}function Y(ve,te,ge){var re=ve?ve.text:null;if(!te&&ge.isLeafRoot&&re!=null){var he=r.get("drillDownIcon",!0);ve.text=he?he+" "+re:re}}function ee(ve,te,ge,re){var he=m!=null&&e[ve][m],Ue=a[ve];return he?(e[ve][m]=null,ye(Ue,he)):g||(he=new te,he instanceof Ur&&(he.z2=I9(ge,re)),Ne(Ue,he)),t[ve][y]=he}function ye(ve,te){var ge=ve[y]={};te instanceof o_?(ge.oldX=te.x,ge.oldY=te.y):ge.oldShape=G({},te.shape)}function Ne(ve,te){var ge=ve[y]={},re=o.parentNode,he=te instanceof oe;if(re&&(!n||n.direction==="drillDown")){var Ue=0,Pe=0,Ge=a.background[re.getRawIndex()];!n&&Ge&&Ge.oldShape&&(Ue=Ge.oldShape.width,Pe=Ge.oldShape.height),he?(ge.oldX=0,ge.oldY=Pe):ge.oldShape={x:Ue,y:Pe,width:0,height:0}}ge.fadein=!he}}function I9(r,t){return r*C9+t}var Lf=D,L9=fe,ad=-1,At=(function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=ae(t);this.type=n,this.mappingMethod=e,this._normalizeData=E9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(cy(a),P9(a)):e==="category"?a.categories?R9(a):cy(a,!0):(Yt(e!=="linear"||a.dataExtent),cy(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return q(this._normalizeData,this)},r.listVisualTypes=function(){return De(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){fe(t)?D(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=$(t)?[]:fe(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},n;return t&&Lf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if($(t))t=t.slice();else if(L9(t)){var e=[];Lf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||j(l)&&l===t+"")return o;n&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(iv(c[1],t,f[1]))return o}else if(f[1]===1/0){if(iv(c[0],f[0],t))return o}else if(iv(c[0],f[0],t)&&iv(c[1],t,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:a;function v(h,d){var p=Math.abs(h-t);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:fu("color"),getColorMapper:function(){var t=this.option;return q(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),Iu.call(this,e)}:function(e,n,a){var i=!!a;return!n&&(e=this._normalizeData(e)),a=zp(e,t.parsedVisual,a),i?a:An(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return An(zp(t,this.option.parsedVisual),"rgba")},category:Iu,piecewise:function(t,e){var n=l_.call(this,e);return n==null&&(n=An(zp(t,this.option.parsedVisual),"rgba")),n},fixed:Ji}},colorHue:av(function(t,e){return qa(t,e)}),colorSaturation:av(function(t,e){return qa(t,null,e)}),colorLightness:av(function(t,e){return qa(t,null,null,e)}),colorAlpha:av(function(t,e){return fh(t,e)}),decal:{applyVisual:fu("decal"),_normalizedToVisual:{linear:null,category:Iu,piecewise:null,fixed:null}},opacity:{applyVisual:fu("opacity"),_normalizedToVisual:s_([0,1])},liftZ:{applyVisual:fu("liftZ"),_normalizedToVisual:{linear:Ji,category:Ji,piecewise:Ji,fixed:Ji}},symbol:{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:$A,category:Iu,piecewise:function(t,e){var n=l_.call(this,e);return n==null&&(n=$A.call(this,t)),n},fixed:Ji}},symbolSize:{applyVisual:fu("symbolSize"),_normalizedToVisual:s_([0,1])}},r})();function P9(r){var t=r.pieceList;r.hasSpecialVisual=!1,D(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function R9(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(Lf(t,function(o,s){e[o]=s}),!$(n)){var a=[];fe(n)?Lf(n,function(o,s){var l=e[s];a[l??ad]=o}):a[ad]=n,n=kO(r,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function cy(r,t){var e=r.visual,n=[];fe(e)?Lf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),kO(r,n)}function av(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:s_([0,1])}}function $A(r){var t=this.option.visual;return t[Math.round(Ve(r,[0,1],[0,t.length-1],!0))]||{}}function fu(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Iu(r){var t=this.option.visual;return t[this.option.loop&&r!==ad?r%t.length:r]}function Ji(){return this.option.visual[0]}function s_(r){return{linear:function(t){return Ve(t,r,this.option.visual,!0)},category:Iu,piecewise:function(t,e){var n=l_.call(this,e);return n==null&&(n=Ve(t,r,this.option.visual,!0)),n},fixed:Ji}}function l_(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=At.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function kO(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=U(t,function(e){var n=hr(e);return n||[0,0,0,1]})),t}var E9={linear:function(r){return Ve(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=At.findPieceIndex(r,t,!0);if(e!=null)return Ve(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??ad},fixed:ot};function iv(r,t,e){return r?t<=e:t<e}var k9="itemStyle",OO=me();const O9={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||NO(e,{},r.getViewRoot().getAncestors(),r)}};function NO(r,t,e,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(k9),l=N9(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),v;c!=null&&(v=UA(l),f=B9(c,v)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)v=UA(l),u.fill=v;else{var d=V9(r,a,i,s,l,h);D(h,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=z9(a,l,p,g,d,n);NO(p,y,e,n)}})}}}function N9(r,t,e){var n=G({},t),a=e.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function UA(r){var t=vy(r,"color");if(t){var e=vy(r,"colorAlpha"),n=vy(r,"colorSaturation");return n&&(t=qa(t,null,null,n)),e&&(t=fh(t,e)),t}}function B9(r,t){return t!=null?qa(t,null,null,r):null}function vy(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function V9(r,t,e,n,a,i){if(!(!i||!i.length)){var o=hy(t,"color")||a.color!=null&&a.color!=="none"&&(hy(t,"colorAlpha")||hy(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new At(c);return OO(v).drColorMappingBy=f,v}}}function hy(r,t){var e=r.get(t);return $(e)&&e.length?{name:t,range:e}:null}function z9(r,t,e,n,a,i){var o=G({},t);if(a){var s=a.type,l=s==="color"&&OO(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function F9(r){r.registerSeriesModel(i9),r.registerChartView(M9),r.registerVisual(O9),r.registerLayout(g9),a9(r)}function Ss(r){return"_EC_"+r}var G9=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Ss(t)]){var a=new Qi(t,e);return a.hostGraph=this,this.nodes.push(a),n[Ss(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Ss(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Ee(t)&&(t=this.nodes[t]),Ee(e)&&(e=this.nodes[e]),t instanceof Qi||(t=a[Ss(t)]),e instanceof Qi||(e=a[Ss(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new BO(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Qi&&(t=t.id),e instanceof Qi&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof Qi||(e=this._nodesMap[Ss(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,a=this.edges,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;e.filterSelf(function(s){var l=a[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var 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},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,a=0;a<e.length;a++)t.addNode(e[a].id,e[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r})(),Qi=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-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(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=K(),e=K(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,v=f.length,h=void 0,d=void 0;c<v;c++)h=f[c],d=h.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,e.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,y=g.length,m=void 0,_=void 0;c<y;c++)m=g[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),BO=(function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=K(),e=K();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(f.node1))}for(i=0;i<a.length;){var v=a[i];i++,e.set(v.dataIndex,!0);for(var h=v.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=v.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r})();function VO(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}xt(Qi,VO("hostGraph","data"));xt(BO,VO("hostGraph","edgeData"));function Y1(r,t,e,n,a){for(var i=new G9(n),o=0;o<r.length;o++)i.addNode(tr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,v=f.target;i.addEdge(c,v,u)&&(l.push(f),s.push(tr(mt(f.id,null),c+" > "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=ba(r,e);else{var p=Wf.get(h),g=p?p.dimensions||[]:[];pe(g,"value")<0&&g.concat(["value"]);var y=jf(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new nr(y,e),d.initData(r)}var m=new nr(["value"],e);return m.initData(l,s),a&&a(d,m),wO({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var u_="-->",_p=function(r){return r.get("autoCurveness")||null},zO=function(r,t){var e=_p(r),n=20,a=[];if(Ee(e))n=e;else if($(e)){r.__curvenessList=e;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},Pf=function(r,t,e){var n=[r.id,r.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[e.uid,n,a].join(u_)},FO=function(r){var t=r.split(u_);return[t[0],t[2],t[1]].join(u_)},H9=function(r,t){var e=Pf(r.node1,r.node2,t);return t.__edgeMap[e]},$9=function(r,t){var e=f_(Pf(r.node1,r.node2,t),t),n=f_(Pf(r.node2,r.node1,t),t);return e+n},f_=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function U9(r){_p(r)&&(r.__curvenessList=[],r.__edgeMap={},zO(r))}function W9(r,t,e,n){if(_p(e)){var a=Pf(r,t,e),i=e.__edgeMap,o=i[FO(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function X1(r,t,e,n){var a=_p(t),i=$(a);if(!a)return null;var o=H9(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=$9(r,t);zO(t,u),r.lineStyle=r.lineStyle||{};var f=Pf(r.node1,r.node2,t),c=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return c[v+s];var h=FO(f),d=f_(h,t),p=c[s+d+v];return n?i?a&&a[0]===0?(d+v)%2?p:-p:((d%2?0:1)+v)%2?p:-p:(d+v)%2?p:-p:c[s+d+v]}var or="graph",Y9=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Bl(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),wo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&a){U9(this);var s=Y1(i,a,this,!0,l);return D(s.edges,function(u){W9(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Ie.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(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}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(e,a),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=mR({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=U(this.option.categories||[],function(a){return a.value!=null?a:G({value:0},a)}),n=new nr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return sO(e)&&e},t.type="series."+or,t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},t})(Ze);function ov(r){return r instanceof Array||(r=[r,r]),r}var X9=wt(or,j9);function j9(r){r.eachSeriesByType(or,function(t){var e=t.getGraph(),n=t.getEdgeData(),a=ov(t.get("edgeSymbol")),i=ov(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=ov(s.getShallow("symbol",!0)),f=ov(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(G(v,c),v.stroke){case"source":{var h=l.node1.getVisual("style");v.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");v.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function GO(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),j1(e,r)}}function j1(r,t){r.eachEdge(function(e,n){var a=xr(e.getModel().get(["lineStyle","curveness"]),-X1(e,t,n,!0),0),i=na(e.node1.getLayout()),o=na(e.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),e.setLayout(s)})}var Z9=wt(or,q9);function q9(r,t){r.eachSeriesByType(or,function(e){var n=e.get("layout"),a=e.coordinateSystem;if(a&&a.type!=="view"){var i=e.getData(),o=[];D(a.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}j1(i.graph,e)}else(!n||n==="none")&&GO(e)})}function Lu(r){var t=r.coordinateSystem;return sO(t)?vO(t,r):1}function Pu(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var WA=Math.PI,dy=[];function Z1(r,t,e,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var v=a.pointToData(n),h=v[0],d=v[1],p=[h-l,d-u];Sl(p,p),Ev(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);HO(e,g,l,u)}K9[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=xr(y.getModel().get(["lineStyle","curveness"]),X1(y,r,m),0),S=na(y.node1.getLayout()),x=na(y.node2.getLayout()),w,b=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,w=[l*_+b*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,w])})}}}var K9={value:function(r,t,e,n,a,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),v=u*(l?c:1)/2;s+=v,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=v})},symbolSize:function(r,t,e,n,a,i,o){var s=0;dy.length=o;var l=Lu(r);t.eachNode(function(c){var v=Pu(c);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var h=Math.asin(v/2/n);isNaN(h)&&(h=WA/2),dy[c.dataIndex]=h,s+=h*2});var u=(2*WA-s)/o/2,f=0;t.eachNode(function(c){var v=u+dy[c.dataIndex];f+=v,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=v})}};function HO(r,t,e,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var v=s.ensureState("emphasis");G(v.textConfig||(v.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var J9=wt(or,Q9);function Q9(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Z1(t,"symbolSize")})}var xs=Im;function eX(r,t,e){for(var n=r,a=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Uo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=na(c.p),c.edges=null}var v=e.friction==null?.6:e.friction,h=v,d,p;return{warmUp:function(){h=v*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var x=S.n1,w=S.n2;io(y,w.p,x.p);var b=Lm(y)-S.d,T=w.w/(x.w+w.w);isNaN(T)&&(T=0),Sl(y,y),!x.fixed&&xs(x.p,x.p,y,T*b*h),!w.fixed&&xs(w.p,w.p,y,-(1-T)*b*h)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(io(y,l,C.p),xs(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var x=n[_],A=_+1;A<m;A++){var w=n[A];io(y,w.p,x.p);var b=Lm(y);b===0&&(Xa(y,Math.random()-.5,Math.random()-.5),b=1);var M=(x.rep+w.rep)/b/b;!x.fixed&&xs(x.pp,x.pp,y,M),!w.fixed&&xs(w.pp,w.pp,y,-M)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(io(L,C.p,C.pp),xs(C.p,C.p,L,h),Ht(C.pp,C.p))}h=h*.992;var I=h<.01;p&&p(n,a,I),g&&g(I)}}}var tX=wt(or,rX);function rX(r){r.eachSeriesByType(or,function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?GO(t):l==="circular"&&Z1(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),v=s.get("edgeLength"),h=$(c)?c:[c,c],d=$(v)?v:[v,v];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),w=Ve(_,u,h);return isNaN(w)&&(w=(h[0]+h[1])/2),{w,rep:w,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),w=Ve(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var b=x.getModel(),T=xr(x.getModel().get(["lineStyle","curveness"]),-X1(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:w,curveness:T,ignoreForceLayout:b.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=eX(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,w=_.length;x<w;x++)_[x].fixed&&Ht(_[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var w=0,b=_.length;w<b;w++)_[w].fixed||a.getNodeByIndex(w).setLayout(_[w].p),n[i.getId(w)]=_[w].p;for(var w=0,b=S.length;w<b;w++){var T=S[w],C=a.getEdgeByIndex(w),A=T.n1.p,M=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Ht(L[0],A),Ht(L[1],M),+T.curveness&&(L[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(L)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function nX(r,t,e){var n=bt(r,t),a=G(r.getBoxLayoutParams(),{aspect:e}),i=tt(a,n.refContainer);return VP(r,i,e)}function aX(r,t){var e=[];return r.eachSeriesByType("graph",function(n){Yf({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];zd(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]),f=nX(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],v=l[1]-s[1],h=z1(n,t,s[0],s[1],c,v,f);return e.push(h),h}}),e}var YA=dt.prototype,py=Gf.prototype,$O=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})($O);function gy(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var UO=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new $O},t.prototype.buildPath=function(e,n){gy(n)?YA.buildPath.call(this,e,n):py.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return gy(this.shape)?YA.pointAt.call(this,e):py.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=gy(n)?[n.x2-n.x1,n.y2-n.y1]:py.tangentAt.call(this,e);return Sl(a,a)},t})(Ae),yy=["fromSymbol","toSymbol"];function XA(r){return"_"+r+"Type"}function jA(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=El(a),u=Qo(o||0,l);return n+l+u+(i||"")+(s||"")}function ZA(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=El(a),u=Qo(o||0,l),f=gt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function iX(r){var t=new UO({name:"line",subPixelOptimize:!0});return c_(t.shape,r),t}function c_(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var q1=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,o=e.getItemLayout(n),s=e.getItemVisual(n,"z2"),l=iX(o);l.shape.percent=0,Ke(l,{z2:Q(s,0),shape:{percent:1}},i,n),this.add(l),D(yy,function(u){var f=ZA(u,e,n);this.add(f),this[XA(u)]=jA(u,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};c_(l.shape,s),Oe(o,l,i,n),D(yy,function(u){var f=jA(u,e,n),c=XA(u);if(this[c]!==f){this.remove(this.childOfName(u));var v=ZA(u,e,n);this.add(v)}this[c]=f},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,v=a&&a.focus,h=a&&a.blurScope;if(!a||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),v=p.get("focus"),h=p.get("blurScope"),f=St(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(yy,function(w){var b=this.childOfName(w);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var T=0;T<ir.length;T++){var C=ir[T],A=o.getState(C);if(A){var M=A.style||{},L=b.ensureState(C),I=L.style||(L.style={});M.stroke!=null&&(I[b.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}b.markRedraw()}},this);var m=i.getRawValue(n);Mt(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,b){return i.getFormattedLabel(w,b,e.dataType)}},inheritColor:y||B.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?ke(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");$(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),et(this,v,h,c)},t.prototype.highlight=function(){pa(this)},t.prototype.downplay=function(){ga(this)},t.prototype.updateLayout=function(e,n){this.childOfName("line").stopAnimation(),this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");c_(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),v=io([],c,f);Sl(v,v);function h(A,M){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],w=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=v[0]*y+c[0],i.y=v[1]*m+c[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*b+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t})(oe),K1=(function(){function r(t){this.group=new oe,this._LineCtor=t||q1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=qA(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qA(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[];function a(l){!l.isGroup&&!oX(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Il)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(my(o)){var s=new this._LineCtor(e,i,this._seriesScope);s.traverse(a),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){gi(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(my(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var o=t.getItemGraphicEl(n);if(!my(e.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(e,a,i):o=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,o),this.group.add(o)},r})();function oX(r){return r.animators&&r.animators.length>0}function qA(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:St(t)}}function KA(r){return isNaN(r[0])||isNaN(r[1])}function my(r){return r&&!KA(r[0])&&!KA(r[1])}var _y=[],Sy=[],xy=[],ws=Lt,wy=vo,JA=Math.abs;function QA(r,t,e){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){_y[0]=ws(n[0],a[0],i[0],f),_y[1]=ws(n[1],a[1],i[1],f);var c=JA(wy(_y,t)-l);c<o&&(o=c,s=f)}for(var v=0;v<32;v++){var h=s+u;Sy[0]=ws(n[0],a[0],i[0],s),Sy[1]=ws(n[1],a[1],i[1],s),xy[0]=ws(n[0],a[0],i[0],h),xy[1]=ws(n[1],a[1],i[1],h);var c=wy(Sy,t)-l;if(JA(c)<.01)break;var d=wy(xy,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function by(r,t){var e=[],n=Ju,a=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[na(u[0]),na(u[1])],u[2]&&u.__original.push(na(u[2])));var v=u.__original;if(u[2]!=null){if(Ht(a[0],v[0]),Ht(a[1],v[2]),Ht(a[2],v[1]),f&&f!=="none"){var h=Pu(s.node1),d=QA(a,v[0],h*t);n(a[0][0],a[1][0],a[2][0],d,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],d,e),a[0][1]=e[3],a[1][1]=e[4]}if(c&&c!=="none"){var h=Pu(s.node2),d=QA(a,v[1],h*t);n(a[0][0],a[1][0],a[2][0],d,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],d,e),a[1][1]=e[1],a[2][1]=e[2]}Ht(u[0],a[0]),Ht(u[1],a[2]),Ht(u[2],a[1])}else{if(Ht(i[0],v[0]),Ht(i[1],v[1]),io(o,i[1],i[0]),Sl(o,o),f&&f!=="none"){var h=Pu(s.node1);Im(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Pu(s.node2);Im(i[1],i[1],o,-h*t)}Ht(u[0],i[0]),Ht(u[1],i[1])}})}var WO=me();function sX(r){if(r)return WO(r).bridge}function eM(r,t){r&&(WO(r).bridge=t)}var lX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=or,e}return t.prototype.init=function(e,n){var a=new tc,i=new K1,o=this.group,s=new oe;this._controller=new ns(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,o=ed(e),s=!1;this._model=e,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,c=this._lineDraw;o&&li(l,Hn,o,this._firstRender?null:e),by(e.getGraph(),Lu(e));var v=e.getData();f.updateData(v);var h=e.getEdgeData();c.updateData(h),this._updateNodeAndLinkScale(),o&&yp(e,a,this._controller,function(S,x,w){return e.coordinateSystem.containPoint([x,w])},null),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=e.get("layout");v.graph.eachNode(function(S){var x=S.dataIndex,w=S.getGraphicEl(),b=S.getModel();if(w){w.off("drag").off("dragend");var T=b.get("draggable");T&&w.on("drag",function(A){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(x),v.setItemLayout(x,[w.x,w.y]);break;case"circular":v.setItemLayout(x,[w.x,w.y]),S.setLayout({fixed:!0},!0),Z1(e,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(x,[w.x,w.y]),j1(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),w.setDraggable(T,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ce(w).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var x=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(ce(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){HO(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,n,a){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=ed(n);!this._active||!i||(li(this._mainGroup,Hn,i,null),pO(e)&&(this._updateNodeAndLinkScale(),by(n.getGraph(),Lu(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=Lu(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){this._active&&(by(e.getGraph(),Lu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,n=e.coordinateSystem;if(n.type==="view"){var a=sX(e);if(a)return{bridge:a,coordSys:n}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(Jh(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new oe,l=a.group.children(),u=i.group.children(),f=new oe,c=new oe;s.add(c),s.add(f);for(var v=0;v<l.length;v++){var h=l[v],d=h.children()[0],p=h.x,g=h.y,y=ae(d.shape),m=G(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ae(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var v=0;v<u.length;v++){var h=u[v],x=h.children()[0],_=ae(x.style),m=ae(x.shape),w=new UO({style:_,shape:m,z2:151});f.add(w)}o.bridge.renderContent({api:n,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:Jh(null,o.coordSys)})}},t.type=or,t})($e),uX=wt(or,fX);function fX(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType(or,function(e){var n=e.getCategoriesData(),a=e.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Ee(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}var cX=wt(or,vX);function vX(r){var t={};r.eachSeriesByType(or,function(e){var n=e.getCategoriesData(),a=e.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var v=l.getShallow(f[c],!0);v!=null&&n.setItemVisual(o,f[c],v)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){j(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");G(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++)a.setItemVisual(o,c[v],n.getItemVisual(l,c[v]))}})})}function hX(r){r.registerChartView(lX),r.registerSeriesModel(Y9),r.registerProcessor(uX),r.registerVisual(cX),r.registerVisual(X9),r.registerLayout(Z9),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,J9),r.registerLayout(tX),r.registerCoordinateSystem("graphView",{dimensions:pp.dimensions,create:aX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ot),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ot),V1(r,zn,or)}var Rf="chord",dX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Bl(q(this.getData,this),q(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&a){var o=Y1(i,a,this,!0,s);return o.data}function s(l,u){var f=Ie.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){var i=this.getDataParams(e,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),pt("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return pt("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(a.name==null&&(a.name=i.getName(e)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},t.type="series."+Rf,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t})(Ze),tM=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;ce(i).dataType="node",i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.graph.getNodeByIndex(n),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=e.getItemLayout(n),v=G(Tn(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Oe(h,{shape:v},l,n);var d=G(Tn(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(n,"style")),_t(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(n,h),_t(h,u,"itemStyle");var p=f.get("focus");et(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var c=St(n),v=a.getVisual("style");Mt(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,x,w,b){return e.getFormattedLabel(m,_,"node",x,xr(w,c.normal&&c.normal.get("formatter"),n.get("name")),b)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t})(Xt),pX=(function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return ce(o).dataType="edge",o.updateData(e,n,a,i,!0),o}return t.prototype.buildPath=function(e,n){e.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;e.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),e.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),e.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),e.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),e.closePath()},t.prototype.updateData=function(e,n,a,i,o){var s=e.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),c=n.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=G(Tn(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),rM(g,l,e,v)):(Wr(g),rM(g,l,e,v),Oe(g,{shape:p},s,a)),et(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),_t(g,c,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},t})(Ae);function rM(r,t,e,n){var a=t.node1,i=t.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=e.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(a.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(j(l)&&j(u)){var f=r.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Ml(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var gX=Math.PI/180,yX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Rf,e}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*gX;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new tM(i,f,l);ce(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&aa(v,e,c);return}v?v.updateData(i,f,l):v=new tM(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&aa(c,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Z(u[0],a.getWidth()),this.group.originY=Z(u[1],a.getHeight()),Ke(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,n){var a=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new pX(a,i,l,n);ce(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&aa(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type=Rf,t})($e),Cy=Math.PI/180,mX=wt(Rf,_X);function _X(r,t){r.eachSeriesByType(Rf,function(e){SX(e,t)})}function SX(r,t){var e=r.getData(),n=e.graph,a=r.getEdgeData(),i=a.count();if(i){var o=BP(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*Cy,0),v=Math.max((r.get("minAngle")||0)*Cy,0),h=-r.get("startAngle")*Cy,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Fd(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&a.getSum("value")===0,w=[],b=0;n.eachEdge(function(O){var z=x?1:O.getValue("value");x&&(z>0||v)&&(b+=2);var F=O.node1.dataIndex,H=O.node2.dataIndex;w[F]=(w[F]||0)+z,w[H]=(w[H]||0)+z});var T=0;if(n.eachNode(function(O){var z=O.getValue("value");isNaN(z)||(w[O.dataIndex]=Math.max(z,w[O.dataIndex]||0)),!x&&(w[O.dataIndex]>0||v)&&b++,T+=w[O.dataIndex]||0}),!(b===0||T===0)){c*b>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*b)/b)),(c+v)*b>=Math.abs(S)&&(v=(Math.abs(S)-c*b)/b);var C=(S-c*b*g)/T,A=0,M=0,L=0;n.eachNode(function(O){var z=w[O.dataIndex]||0,F=C*(T?z:1)*g;Math.abs(F)<v?A+=v-Math.abs(F):(M+=Math.abs(F)-v,L+=Math.abs(F)),O.setLayout({angle:F,value:z})});var I=!1;if(A>M){var P=A/M;n.eachNode(function(O){var z=O.getLayout().angle;Math.abs(z)>=v?O.setLayout({angle:z*P,ratio:P},!0):O.setLayout({angle:v,ratio:v===0?1:z/v},!0)})}else n.eachNode(function(O){if(!I){var z=O.getLayout().angle,F=Math.min(z/L,1),H=F*A;z-H<v&&(I=!0)}});var R=A;n.eachNode(function(O){if(!(R<=0)){var z=O.getLayout().angle;if(z>v&&v>0){var F=I?1:Math.min(z/L,1),H=z-v,W=Math.min(H,Math.min(R,A*F));R-=W,O.setLayout({angle:z-W,ratio:(z-W)/z},!0)}else v>0&&O.setLayout({angle:v,ratio:z===0?1:v/z},!0)}});var E=m,N=[];n.eachNode(function(O){var z=Math.max(O.getLayout().angle,v);O.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:E,endAngle:E+z*g,clockwise:p},!0),N[O.dataIndex]=E,E+=(z+c)*g}),n.eachEdge(function(O){var z=x?1:O.getValue("value"),F=C*(T?z:1)*g,H=O.node1.dataIndex,W=N[H]||0,X=Math.abs((O.node1.getLayout().ratio||1)*F),Y=W+X*g,ee=[s+f*Math.cos(W),l+f*Math.sin(W)],ye=[s+f*Math.cos(Y),l+f*Math.sin(Y)],Ne=O.node2.dataIndex,ve=N[Ne]||0,te=Math.abs((O.node2.getLayout().ratio||1)*F),ge=ve+te*g,re=[s+f*Math.cos(ve),l+f*Math.sin(ve)],he=[s+f*Math.cos(ge),l+f*Math.sin(ge)];O.setLayout({s1:ee,s2:ye,sStartAngle:W,sEndAngle:Y,t1:re,t2:he,tStartAngle:ve,tEndAngle:ge,cx:s,cy:l,r:f,value:z,clockwise:p}),N[H]=Y,N[Ne]=ge})}}}function xX(r){r.registerChartView(yX),r.registerSeriesModel(dX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,mX),r.registerProcessor(ac("chord"))}var wX=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),bX=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new wX},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t})(Ae);function CX(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Z(e[0],t.getWidth()),s=Z(e[1],t.getHeight()),l=Z(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function sv(r,t){var e=r==null?"":r+"";return t&&(j(t)?e=t.replace("{value}",e):ie(t)&&(e=t(r))),e}var TX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=CX(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),v=c.get("roundCap"),h=v?Zh:Xt,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Fd(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<i.length;x++){var w=Math.min(Math.max(i[x][0],0),1);f=u+m*w;var b=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:i[x][1]}),b.setStyle(p.getLineStyle(["color","width"])),S.push(b),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(e,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,a,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),x=m.get("splitNumber"),w=Z(y.get("length"),d),b=Z(m.get("length"),d),T=s,C=(l-s)/S,A=C/x,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var N=I?I+f:f,O=new dt({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-w-N)+v,y2:R*(d-w-N)+h},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:i(E/S)}),c.add(O)}if(_.get("show")){var N=_.get("distance")+I,z=sv(ke(E*(g-p)/S+p,RF),_.get("formatter")),F=i(E/S),H=P*(d-w-N)+v,W=R*(d-w-N)+h,X=_.get("rotate"),Y=0;X==="radial"?(Y=-T+2*Math.PI,Y>Math.PI/2&&(Y+=Math.PI)):X==="tangential"?Y=-T-Math.PI/2:Ee(X)&&(Y=X*Math.PI/180),Y===0?c.add(new Re({style:je(_,{text:z,x:H,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Re({style:je(_,{text:z,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:W,rotation:Y}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var ee=0;ee<=x;ee++){P=Math.cos(T),R=Math.sin(T);var ye=new dt({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-b-N)+v,y2:R*(d-b-N)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((E+ee/x)/S)}),c.add(ye),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),w=[S,x],b=[s,l];function T(A,M){var L=m.getItemModel(A),I=L.getModel("pointer"),P=Z(I.get("width"),o.r),R=Z(I.get("length"),o.r),E=e.get(["pointer","icon"]),N=I.get("offsetCenter"),O=Z(N[0],o.r),z=Z(N[1],o.r),F=I.get("keepAspect"),H;return E?H=gt(E,O-P/2,z-R,P,R,null,F):H=new bX({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:z}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(A,M){var L=g.get("roundCap"),I=L?Zh:Xt,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(A+1)*R,N=P?o.r:o.r-A*R,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=Ve(m.get(_,A),[S,x],[100,0],!0)),O}(y||p)&&(m.diff(v).add(function(A){var M=m.get(_,A);if(p){var L=T(A,s);Ke(L,{rotation:-((isNaN(+M)?b[0]:Ve(M,w,b,!0))+Math.PI/2)},e),c.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),P=g.get("clip");Ke(I,{shape:{endAngle:Ve(M,w,b,P)}},e),c.add(I),o0(e.seriesIndex,m.dataType,A,I),d[A]=I}}).update(function(A,M){var L=m.get(_,A);if(p){var I=v.getItemGraphicEl(M),P=I?I.rotation:s,R=T(A,P);R.rotation=P,Oe(R,{rotation:-((isNaN(+L)?b[0]:Ve(L,w,b,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(A,R)}if(y){var E=h[M],N=E?E.shape.endAngle:s,O=C(A,N),z=g.get("clip");Oe(O,{shape:{endAngle:Ve(L,w,b,z)}},e),c.add(O),o0(e.seriesIndex,m.dataType,A,O),d[A]=O}}).execute(),m.each(function(A){var M=m.getItemModel(A),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled"),E=i(Ve(m.get(_,A),w,[0,1],!0));if(p){var N=m.getItemGraphicEl(A),O=m.getItemVisual(A,"style"),z=O.fill;if(N instanceof Rt){var F=N.style;N.useStyle(G({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},O))}else N.useStyle(O),N.type!=="pointer"&&N.setColor(z);N.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",E),N.z2EmphasisLift=0,_t(N,M),et(N,I,P,R)}if(y){var H=d[A];H.useStyle(m.getItemVisual(A,"style")),H.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",E),H.z2EmphasisLift=0,_t(H,M),et(H,I,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=gt(s,n.cx-o/2+Z(l[0],n.r),n.cy-o/2+Z(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),v=new oe,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Re({silent:!0}),d[y]=new Re({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new oe,x=i(Ve(_,[f,c],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var b=w.get("offsetCenter"),T=o.cx+Z(b[0],o.r),C=o.cy+Z(b[1],o.r),A=h[y];A.attr({z2:g?0:2,style:je(w,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+Z(L[0],o.r),P=o.cy+Z(L[1],o.r),R=Z(M.get("width"),o.r),E=Z(M.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,A=d[y],O=M.get("formatter");A.attr({z2:g?0:2,style:je(M,{x:I,y:P,text:sv(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),cP(A,{normal:M},_,function(F){return sv(F,O)}),p&&vP(A,y,l,e,{getFormattedLabel:function(F,H,W,X,Y,ee){return sv(ee?ee.interpolatedValue:_,O)}}),S.add(A)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t})($e),AX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return Nl(this,["value"])},t.type="series.gauge",t.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,B.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:B.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:B.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:B.color.axisLabel,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:B.color.neutral00,borderWidth:0,borderColor:B.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:B.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:B.color.transparent,borderWidth:0,borderColor:B.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:B.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(Ze);function MX(r){r.registerChartView(TX),r.registerSeriesModel(AX)}var dl="funnel",DX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return Nl(this,{coordDimensions:["value"],encodeDefaulter:xe(US,this)})},t.prototype._defaultLabelLine=function(e){wo(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series."+dl,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:B.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},t})(Ze),IX=["itemStyle","opacity"],LX=(function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new Bt,s=new Re;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(IX);f=f??1,a||Wr(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ke(i,{style:{opacity:f}},o,n)):Oe(i,{style:{opacity:f},shape:{points:l.points}},o,n),_t(i,s),this._updateLabel(e,n),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),v=c.fill;Mt(o,St(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new ue(g[0][0],g[0][1]):null},Oe(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),y1(a,m1(l),{stroke:v})},t})(jt),PX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=dl,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new LX(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);aa(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=dl,t})($e);function RX(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),a=[],i=t==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return ie(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function EX(r){var t=r.hostModel,e=YO(t);r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");j(o)&&(!e&&pe(["top","bottom"],o)>-1&&(o="left"),e&&pe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="center"):o==="rightTop"?(p=e?u[3][0]:u[1][0],g=e?u[3][1]:u[1][1],e?(m=g-_,h=m-5,c="center"):(y=p+_,v=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=e?u[0][1]:u[1][1],e?(m=g-_,h=m-5,c="center"):(y=p-_,v=y-5,c="right")):o==="leftBottom"?(p=e?u[1][0]:u[3][0],g=e?u[1][1]:u[2][1],e?(m=g+_,h=m+5,c="center"):(y=p-_,v=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="left")),e?(y=p,v=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var kX=wt(dl,OX);function OX(r,t){r.eachSeriesByType(dl,function(e){var n=e.getData(),a=n.mapDimension("value"),i=e.get("sort"),o=bt(e,t),s=tt(e.getBoxLayoutParams(),o.refContainer),l=YO(e),u=s.width,f=s.height,c=RX(n,i),v=s.x,h=s.y,d=l?[Z(e.get("minSize"),f),Z(e.get("maxSize"),f)]:[Z(e.get("minSize"),u),Z(e.get("maxSize"),u)],p=n.getDataExtent(a),g=e.get("min"),y=e.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=e.get("funnelAlign"),_=e.get("gap"),S=l?u:f,x=(S-_*(n.count()-1))/n.count(),w=function(R,E){if(l){var N=n.get(a,R)||0,O=Ve(N,[g,y],d,!0),z=void 0;switch(m){case"top":z=h;break;case"center":z=h+(f-O)/2;break;case"bottom":z=h+(f-O);break}return[[E,z],[E,z+O]]}var F=n.get(a,R)||0,H=Ve(F,[g,y],d,!0),W;switch(m){case"left":W=v;break;case"center":W=v+(u-H)/2;break;case"right":W=v+u-H;break}return[[W,E],[W+H,E]]};i==="ascending"&&(x=-x,_=-_,l?v+=u:h+=f,c=c.reverse());for(var b=0;b<c.length;b++){var T=c[b],C=c[b+1],A=n.getItemModel(T);if(l){var M=A.get(["itemStyle","width"]);M==null?M=x:(M=Z(M,u),i==="ascending"&&(M=-M));var L=w(T,v),I=w(C,v+M);v+=M+_,n.setItemLayout(T,{points:L.concat(I.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);P==null?P=x:(P=Z(P,f),i==="ascending"&&(P=-P));var L=w(T,h),I=w(C,h+P);h+=P+_,n.setItemLayout(T,{points:L.concat(I.slice().reverse())})}}EX(n)})}function YO(r){return r.get("orient")==="horizontal"}function NX(r){r.registerChartView(PX),r.registerSeriesModel(DX),r.registerLayout(kX),r.registerProcessor(ac(dl))}var BX=.3,VX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new oe,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=aM(e);s.diff(l).add(v).update(h).remove(d).execute();function v(g){var y=nM(s,o,g,f,u);Ty(y,s,g,c)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=XO(s,g,f,u);s.setItemGraphicEl(g,m),Oe(m,{shape:{points:_}},e,g),Wr(m),Ty(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=zX(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=nM(i,this._dataGroup,l,o.dimensions,o);u.incremental=In(n),Ty(u,i,l,aM(n)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})($e);function zX(r,t,e){var n=r.model,a=r.getRect(),i=new be({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ke(i,{shape:{width:a.width,height:a.height}},t,e),i}function XO(r,t,e,n){for(var a=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);FX(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function nM(r,t,e,n,a){var i=XO(r,e,n,a),o=new Bt({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function aM(r){var t=r.get("smooth",!0);return t===!0&&(t=BX),t=ha(t),Ut(t)&&(t=0),{smooth:t}}function Ty(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=t.getItemModel(e),i=a.getModel("emphasis");_t(r,a,"lineStyle"),et(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function FX(r,t){return t==="category"?r==null:r==null||isNaN(r)}var GX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,n){return ba(null,this,{useEncodeDefaulter:q(HX,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){e===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.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:300,smooth:!1,animationEasing:"linear"},t})(Ze);function HX(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return D(t.dimensions,function(n){var a=$X(n);e[n]=a}),e}}function $X(r){return+r.replace("dim","")}var UX=["lineStyle","opacity"],WX={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){e.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(UX,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function YX(r){XX(r),jX(r)}function XX(r){if(!r.parallel){var t=!1;D(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function jX(r){var t=Ye(r.parallelAxis);D(t,function(e){if(fe(e)){var n=e.parallelIndex||0,a=Ye(r.parallel)[n];a&&a.parallelAxisDefault&&_e(e,a.parallelAxisDefault,!1)}})}var ZX=5,qX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this._model=e,this._api=a,this._handlers||(this._handlers={},D(KX,function(i,o){a.getZr().on(o,this._handlers[o]=q(i,this))},this)),Pl(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){ff(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(G({type:"parallelAxisExpand"},e))},t.type="parallel",t})(Qe),KX={mousedown:function(r){Ay(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Ay(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>ZX)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Ay(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Ay(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var id="parallel",v_=id,JX=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&_e(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Fe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type=v_,t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t})(Me),QX=(function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(un);function ui(r,t,e,n,a,i){r=r||0;var o=ji(e[1],-e[0]);if(a!=null&&(a=bs(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(ji(t[1],-t[0]));s=bs(s,[0,o]),a=i=bs(s,[a,i]),n=0}t[0]=bs(t[0],e),t[1]=bs(t[1],e);var l=My(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]=ji(f[0],u):f[1]=ji(f[1],-u),t[n]=bs(t[n],f);var c;return c=My(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=ji(t[n],l.sign*a)),c=My(t,n),i!=null&&c.span>i&&(t[1-n]=ji(t[n],c.sign*i)),t}function My(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function bs(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ej=(function(){function r(t,e,n){this.type=id,this._axesMap=K(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;D(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=ip(u),c=this._axesMap.set(o,new QX(o,qf(u,f,!1),[0,0],f,l));c.onBand=Jf(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){D(this.dimensions,function(n){var a=this._axesMap.get(n);Eo(a,fl),cl(a)},this)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+e.axisLength&&s>=a&&s<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(t,e){var n=bt(t,e).refContainer;this._rect=tt(t.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=lv(t.get("axisExpandWidth"),l),c=lv(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=lv(h[1]-h[0],l),h[1]=h[0]+d;else{d=lv(f*(c-1),l);var p=t.get("axisExpandCenter")||nn(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[nn(ke(h[0]/f,1))+1,Wo(ke(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[a[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),D(n,function(o,s){var l=(a.axisExpandable?rj:tj)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:ph/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=nt();pi(h,h,v),On(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return en([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return ae(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,a=e.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):v&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?ui(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[we(0,d-h/2)],a[1]=He(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r})();function lv(r,t){return He(we(r,t[0]),t[1])}function tj(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function rj(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function nj(r,t){var e=[];return r.eachComponent(v_,function(n,a){var i=new ej(n,r,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===id){var a=n.getReferringComponents(v_,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&D(i.dimensions,function(o){Ro(i.getAxis(o),n,id)})}}),e}var aj={create:nj},h_=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return To([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=ae(e);if(n)for(var a=n.length-1;a>=0;a--)Nt(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=e&&e<=n[i][1])return"active";return"inactive"},t})(Me);xt(h_,Qf);var Go=!0,Ef=Math.min,pl=Math.max,ij=Math.pow,oj=1e4,sj=6,lj=6,iM="globalPan",uj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},fj={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},oM={brushStyle:{lineWidth:2,stroke:B.color.backgroundTint,fill:B.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},cj=0,J1=(function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new oe,n._uid="brushController_"+cj++,D(mj,function(a,i){this._handlers[i]=q(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||M8(n,iM,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=_e(ae(oM),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;D8(e,iM,this._uid),D(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};D(e,function(a){n[a.panelId]=ae(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=U(e,function(v){return _e(ae(oM),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ya(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=e[v];if(h!=null&&a[h]===s)i[v]=a[h];else{var p=i[v]=h!=null?(a[h].__brushOption=d,a[h]):ZO(o,jO(o,d));Q1(o,p)}}function c(v){a[v]!==s&&o.group.remove(a[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),d_(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Yr);function jO(r,t){var e=Sp[t.brushType].createCover(r,t);return e.__brushOption=t,KO(e,t),r.group.add(e),e}function ZO(r,t){var e=ex(t);return e.endCreating&&(e.endCreating(r,t),KO(t,t.__brushOption)),t}function qO(r,t){var e=t.__brushOption;ex(t).updateCoverShape(r,t,e.range,e)}function KO(r,t){var e=t.z;e==null&&(e=oj),r.traverse(function(n){n.z=e,n.z2=e})}function Q1(r,t){ex(t).updateCommon(r,t),qO(r,t)}function ex(r){return Sp[r.__brushOption.brushType]}function tx(r,t,e){var n=r._panels;if(!n)return Go;var a,i=r._transform;return D(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function JO(r,t){var e=r._panels;if(!e)return Go;var n=t.__brushOption.panelId;return n!=null?e[n]:Go}function d_(r){var t=r._covers,e=t.length;return D(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Ho(r,t){var e=U(r._covers,function(n){var a=n.__brushOption,i=ae(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function vj(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=ij(a*a+i*i,.5);return o>sj}function QO(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function eN(r,t,e,n){var a=new oe;return a.add(new be({name:"main",style:rx(e),silent:!0,draggable:!0,cursor:"move",drift:xe(sM,r,t,a,["n","s","w","e"]),ondragend:xe(Ho,t,{isEnd:!0})})),D(n,function(i){a.add(new be({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(sM,r,t,a,i),ondragend:xe(Ho,t,{isEnd:!0})}))}),a}function tN(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=pl(a,lj),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],v=f-i+a/2,h=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;qn(r,t,"main",o,s,d,p),n.transformable&&(qn(r,t,"w",l,u,i,y),qn(r,t,"e",v,u,i,y),qn(r,t,"n",l,u,g,i),qn(r,t,"s",l,h,g,i),qn(r,t,"nw",l,u,i,i),qn(r,t,"ne",v,u,i,i),qn(r,t,"sw",l,h,i,i),qn(r,t,"se",v,h,i,i))}function p_(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(rx(e)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?g_(r,i[0]):dj(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?fj[s]+"-resize":null})})}function qn(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(gj(nx(r,t,[[n,a],[n+i,a+o]])))}function rx(r){return le({strokeNoScale:!0},r.brushStyle)}function rN(r,t,e,n){var a=[Ef(r,e),Ef(t,n)],i=[pl(r,e),pl(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function hj(r){return Ws(r.group)}function g_(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Xd(e[t],hj(r));return n[a]}function dj(r,t){var e=[g_(r,t[0]),g_(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function sM(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=nN(t,a,i);D(n,function(u){var f=uj[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(rN(s[0][0],s[1][0],s[0][1],s[1][1])),Q1(t,e),Ho(t,{isEnd:!1})}function pj(r,t,e,n){var a=t.__brushOption.range,i=nN(r,e,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Q1(r,t),Ho(r,{isEnd:!1})}function nN(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function nx(r,t,e){var n=JO(r,t);return n&&n!==Go?n.clipPath(e,r._transform):ae(e)}function gj(r){var t=Ef(r[0][0],r[1][0]),e=Ef(r[0][1],r[1][1]),n=pl(r[0][0],r[1][0]),a=pl(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function yj(r,t,e){if(!(!r._brushType||_j(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=tx(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Go||s.panelId===i.panelId)&&Sp[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function y_(r){var t=r.event;t.preventDefault&&t.preventDefault()}function m_(r,t,e){return r.childOfName("main").contain(t,e)}function aN(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),vj(r)||a){if(i&&!a){o.brushMode==="single"&&d_(r);var l=ae(o);l.brushType=lM(l.brushType,i),l.panelId=i===Go?null:i.panelId,a=r._creatingCover=jO(r,l),r._covers.push(a)}if(a){var u=Sp[lM(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(nx(r,a,r._track)),n&&(ZO(r,a),u.updateCommon(r,a)),qO(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&tx(r,t,e)&&d_(r)&&(s={isEnd:n,removeOnClick:!0});return s}function lM(r,t){return r==="auto"?t.defaultBrushType:r}var mj={mousedown:function(r){if(this._dragging)uM(this,r);else if(!r.target||!r.target.draggable){y_(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=tx(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(yj(this,r,n),this._dragging){y_(r);var a=aN(this,r,n,!1);a&&Ho(this,a)}},mouseup:function(r){uM(this,r)}};function uM(r,t){if(r._dragging){y_(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=aN(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Ho(r,i)}}function _j(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Sp={lineX:fM(0),lineY:fM(1),rect:{createCover:function(r,t){function e(n){return n}return eN({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=QO(r);return rN(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){tN(r,t,e,n)},updateCommon:p_,contain:m_},polygon:{createCover:function(r,t){var e=new oe;return e.add(new Bt({name:"main",style:rx(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new jt({name:"main",draggable:!0,drift:xe(pj,r,t),ondragend:xe(Ho,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:nx(r,t,e)})},updateCommon:p_,contain:m_}};function fM(r){return{createCover:function(t,e){return eN({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=QO(t),n=Ef(e[0][r],e[1][r]),a=pl(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=JO(t,e);if(o!==Go&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),tN(t,e,l,a)},updateCommon:p_,contain:m_}}function iN(r){return r=ax(r),function(t){return oP(t,r)}}function oN(r,t){return r=ax(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function sN(r,t,e){var n=ax(r);return function(a,i){return n.contain(i[0],i[1])&&!eO(a,t,e)}}function ax(r){return se.create(r)}var Sj=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new J1(n.getZr())).on("brush",q(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!xj(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!e.get("show")){var s=bj(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,v=l.getAxisLayout(c),h=G({strokeContainThreshold:f},v),d=new ar(e,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,a),Hf(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=se.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:iN(c),isTargetByCursor:sN(c,s,i),getLinearBrushOtherExtent:oN(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(wj(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,o=U(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(Qe);function xj(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function wj(r){var t=r.axis;return U(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function bj(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var Cj={type:"axisAreaSelect",event:"axisAreaSelected"};function Tj(r){r.registerAction(Cj,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Aj={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function lN(r){r.registerComponentView(qX),r.registerComponentModel(JX),r.registerCoordinateSystem("parallel",aj),r.registerPreprocessor(YX),r.registerComponentModel(h_),r.registerComponentView(Sj),hl(r,"parallel",h_,Aj),Tj(r)}function Mj(r){Se(lN),r.registerChartView(VX),r.registerSeriesModel(GX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,WX)}var _a="sankey",Dj=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.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 Ie(o[l],this,n));var u=Y1(i,a,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(e,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return pt("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,v=this.getDataParams(e,a).data.name;return pt("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;a.value=o}return a},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+_a,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:B.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:B.color.primary}},animationEasing:"linear",animationDuration:1e3},t})(Ze),Ij=(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})(),Lj=(function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ij},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){pa(this)},t.prototype.downplay=function(){ga(this)},t})(Ae),Pj=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=_a,e._mainGroup=new oe,e}return t.prototype.init=function(e,n){this._controller=new ns(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,n,a){var i=e.getGraph(),o=this._mainGroup,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),v=e.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(e,a),yp(e,a,this._controller,hO(o),null),i.eachEdge(function(h){var d=new Lj,p=ce(d);p.dataIndex=h.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),w=S.get("localY"),b=h.node2.getLayout(),T=h.node2.getModel(),C=T.get("localX"),A=T.get("localY"),M=h.getLayout(),L,I,P,R,E,N,O,z;d.shape.extent=Math.max(1,M.dy),d.shape.orient=v,v==="vertical"?(L=(x!=null?x*l:_.x)+M.sy,I=(w!=null?w*u:_.y)+_.dy,P=(C!=null?C*l:b.x)+M.ty,R=A!=null?A*u:b.y,E=L,N=I*(1-m)+R*m,O=P,z=I*m+R*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(w!=null?w*u:_.y)+M.sy,P=C!=null?C*l:b.x,R=(A!=null?A*u:b.y)+M.ty,E=L*(1-m)+P*m,N=I,O=L*m+P*(1-m),z=R),d.setShape({x1:L,y1:I,x2:P,y2:R,cpx1:E,cpy1:N,cpx2:O,cpy2:z}),d.useStyle(y.getItemStyle()),cM(d.style,v,h);var F=""+g.get("value"),H=St(g,"edgeLabel");Mt(d,H,{labelFetcher:{getFormattedLabel:function(Y,ee,ye,Ne,ve,te){return e.getFormattedLabel(Y,ee,"edge",Ne,xr(ve,H.normal&&H.normal.get("formatter"),F),te)}},labelDataIndex:h.dataIndex,defaultText:F}),d.setTextConfig({position:"inside"});var W=g.getModel("emphasis");_t(d,g,"lineStyle",function(Y){var ee=Y.getItemStyle();return cM(ee,v,h),ee}),o.add(d),c.setItemGraphicEl(h.dataIndex,d);var X=W.get("focus");et(d,X==="adjacency"?h.getAdjacentDataIndices():X==="trajectory"?h.getTrajectoryDataIndices():X,W.get("blurScope"),W.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new be({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});Mt(S,St(p),{labelFetcher:{getFormattedLabel:function(w,b){return e.getFormattedLabel(w,b,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),_t(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),ce(S).dataType="node";var x=m.get("focus");et(S,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Rj(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,n,a){li(this.group,Hn,n.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,n){var a=e.layoutInfo,i=e.coordinateSystem=z1(e,n,a.x,a.y,a.width,a.height);li(this.group,Hn,i,this._firstRender?null:e)},t.type=_a,t})($e);function cM(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");j(n)&&j(a)&&(r.fill=new Ml(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Rj(r,t,e){var n=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{width:r.width+20}},t,e),n}var Ej=wt(_a,kj);function kj(r,t){r.eachSeriesByType(_a,function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=bt(e,t).refContainer,o=tt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;Nj(f);var v=Fe(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");Oj(f,c,n,a,s,l,h,d,p)})}function Oj(r,t,e,n,a,i,o,s,l){Bj(r,t,e,a,i,s,l),Gj(r,t,i,a,n,o,s),qj(r,s)}function Nj(r){D(r,function(t){var e=ri(t.outEdges,od),n=ri(t.inEdges,od),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function Bj(r,t,e,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=pe(t,_);s[S]=0;var x=_.node2,w=pe(r,x);--l[w]===0&&pe(f,x)<0&&f.push(x)}}++c,u=f,f=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var b=h>c-1?h:c-1;o&&o!=="left"&&Vj(r,o,i,b);var T=i==="vertical"?(a-e)/b:(n-e)/b;Fj(r,T,i)}function uN(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function Vj(r,t,e,n){if(t==="right"){for(var a=[],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 f=l.inEdges[u];pe(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(r,function(c){uN(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&zj(r,n)}function zj(r,t){D(r,function(e){!uN(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function Fj(r,t,e){D(r,function(n){var a=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Gj(r,t,e,n,a,i,o){var s=Hj(r,o);$j(s,t,e,n,a,o),Dy(s,a,e,n,o);for(var l=1;i>0;i--)l*=.99,Uj(s,l,o),Dy(s,a,e,n,o),Zj(s,l,o),Dy(s,a,e,n,o)}function Hj(r,t){var e=[],n=t==="vertical"?"y":"x",a=e0(r,function(i){return i.getLayout()[n]});return Nt(a.keys),D(a.keys,function(i){e.push(a.buckets.get(i))}),e}function $j(r,t,e,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(e-(l-1)*a)/u;f<o&&(o=f)}),D(r,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Dy(r,t,e,n,a){var i=a==="vertical"?"x":"y";D(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,v=a==="vertical"?"dx":"dy",h=0;h<c;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=a==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function Uj(r,t,e){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ri(a.outEdges,Wj,e)/ri(a.outEdges,od);if(isNaN(i)){var o=a.outEdges.length;i=o?ri(a.outEdges,Yj,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-fi(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-fi(a,e))*t;a.setLayout({y:l},!0)}}})})}function Wj(r,t){return fi(r.node2,t)*r.getValue()}function Yj(r,t){return fi(r.node2,t)}function Xj(r,t){return fi(r.node1,t)*r.getValue()}function jj(r,t){return fi(r.node1,t)}function fi(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function od(r){return r.getValue()}function ri(r,t,e){for(var n=0,a=r.length,i=-1;++i<a;){var o=+t(r[i],e);isNaN(o)||(n+=o)}return n}function Zj(r,t,e){D(r,function(n){D(n,function(a){if(a.inEdges.length){var i=ri(a.inEdges,Xj,e)/ri(a.inEdges,od);if(isNaN(i)){var o=a.inEdges.length;i=o?ri(a.inEdges,jj,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-fi(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-fi(a,e))*t;a.setLayout({y:l},!0)}}})})}function qj(r,t){var e=t==="vertical"?"x":"y";D(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[e]-i.node2.getLayout()[e]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[e]-i.node1.getLayout()[e]})}),D(r,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var Kj=wt(_a,Jj);function Jj(r){r.eachSeriesByType(_a,function(t){var e=t.getGraph(),n=e.nodes,a=e.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new At({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Qj(r){r.registerChartView(Pj),r.registerSeriesModel(Dj),r.registerLayout(Ej),r.registerVisual(Kj),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:zn,subType:_a,query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),V1(r,zn,_a)}var fN=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=t.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],c=u==="horizontal"?0:1,v=this._baseAxisDim=f[c],h=f[1-c],d=[a,i],p=d[c].get("type"),g=d[1-c].get("type"),y=t.data;if(y&&l){var m=[];D(y,function(x,w){var b;$(x)?(b=x.slice(),x.unshift(w)):$(x.value)?(b=G({},x),b.value=b.value.slice(),x.value.unshift(w)):b=x,m.push(b)}),t.data=m}var _=this.defaultValueDimensions,S=[{name:v,type:Oh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Oh(g),dimsDef:_.slice()}];return Nl(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:xe(UP,S,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function sd(r,t){for(var e=t.ends.length,n=0,a=0;a<e;a++)r.contain(t.ends[a][0],t.ends[a][1])&&n++;return n?n<e?Sf:_f:xf}var Pn="boxplot",cN=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series."+Pn,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:B.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}},animationDuration:800},t})(Ze);xt(cN,fN,!0);var eZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Pn,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.getWhiskerBoxesLayout()==="horizontal"?1:0,u=e.get("clip",!0),f=e.coordinateSystem,c=f.getArea&&f.getArea(),v=u&&ko(f,!1,e);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?sd(c,d):_f;if(p===xf)return;var g=vM(d,i,h,l,!0);Vs(p===Sf,g,v),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?sd(c,g):_f;if(y===xf){o.remove(p);return}p?(Wr(p),vN(g,p,i,h)):p=vM(g,i,h,l),Vs(y===Sf,p,v),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type=Pn,t})($e),tZ=(function(){function r(){}return r})(),rZ=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new tZ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();i<a.length;i++)e.moveTo(a[i][0],a[i][1]),i++,e.lineTo(a[i][0],a[i][1])},t})(Ae);function vM(r,t,e,n,a){var i=r.ends,o=new rZ({shape:{points:a?nZ(i,n,r):i}});return vN(r,o,t,e,a),o}function vN(r,t,e,n,a){var i=e.hostModel,o=Zo[a?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");_t(t,s),et(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function nZ(r,t,e){return U(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}var aZ=Cl(),iZ=wt(Pn,oZ);function oZ(r){var t=_o(Pn);d1(r,t,function(e){var n=_U(e,t);if(n){var a=sZ(e,n);Po(e,t,function(i){var o=i.seriesIndex;lZ(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function sZ(r,t){var e=[],n=[],a=[],i=Vt(r,{fromStat:{key:_o(Pn)},min:1}).w;Po(r,_o(Pn),function(f){var c=f.get("boxWidth");$(c)||(c=[c,c]),a[f.seriesIndex]=[Z(c[0],i)||0,Z(c[1],i)||0]});var o=i*.8-2,s=o/t*.3,l=(o-s*(t-1))/t,u=l/2-o/2;return Po(r,_o(Pn),function(f){var c=f.seriesIndex;n[c]=u,u+=s+l,e[c]=He(we(l,a[c][0]),a[c][1])}),{boxOffsetList:n,boxWidthList:e}}function lZ(r,t,e){var n=r.coordinateSystem,a=r.getData(),i=e/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var v=a.get(u,c),h=_(v,f[2],c),d=_(v,f[0],c),p=_(v,f[1],c),g=_(v,f[3],c),y=_(v,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,h),a.setItemLayout(c,{initBaseline:h[s],ends:m})}function _(w,b,T){var C=a.get(b,T),A=[];A[o]=w,A[s]=C;var M;return isNaN(w)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(w,b,T){var C=b.slice(),A=b.slice();C[o]+=i,A[o]-=i,T?w.push(C,A):w.push(A,C)}function x(w,b){var T=b.slice(),C=b.slice();T[o]-=i,C[o]+=i,w.push(T,C)}}function uZ(r){aZ(r,function(){var t=_o(Pn);p1(r,{key:t,seriesType:Pn,getMetrics:I1}),sp(t,cp(t))})}function fZ(r,t){t=t||{};for(var e=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Nt(r[o].slice()),l=Jp(s,.25),u=Jp(s,.5),f=Jp(s,.75),c=s[0],v=s[s.length-1],h=(a??1.5)*(f-l),d=i?c:Math.max(c,l-h),p=i?v:Math.min(v,f+h),g=t.itemNameFormatter,y=ie(g)?g({value:o}):j(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var cZ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Pt){var n="";ze(n)}var a=fZ(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function vZ(r){r.registerSeriesModel(cN),r.registerChartView(eZ),r.registerLayout(iZ),r.registerTransform(cZ),uZ(r)}var ci="candlestick",hN=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series."+ci,t.dependencies=["xAxis","yAxis","grid"],t.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},t})(Ze);xt(hN,fN,!0);var hZ=["itemStyle","borderColor"],dZ=["itemStyle","borderColor0"],pZ=["itemStyle","borderColorDoji"],gZ=["itemStyle","color"],yZ=["itemStyle","color0"];function ix(r,t){return t.get(r>0?gZ:yZ)}function ox(r,t){return t.get(r===0?pZ:r>0?hZ:dZ)}var mZ={seriesType:ci,plan:Jo(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=ix(s,o),l.stroke=ox(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");G(u,l)}}}}}},_Z=["color","borderColor"],SZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&ko(l,!1,e);this._data||i.removeAll();var c=hM(e);n.diff(a).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=s?sd(u,h):_f;if(d===xf)return;var p=Iy(h,v,c,!0);Ke(p,{shape:{points:h.ends}},e,v),Vs(d===Sf,p,f),Ly(p,n,v,o),i.add(p),n.setItemGraphicEl(v,p)}}).update(function(v,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(v)){i.remove(d);return}var p=n.getItemLayout(v),g=s?sd(u,p):_f;if(g===xf){i.remove(d);return}d?(Oe(d,{shape:{points:p.ends}},e,v),Wr(d)):d=Iy(p,v,c),Ly(d,n,v,o),Vs(g===Sf,d,f),i.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=a.getItemGraphicEl(v);h&&i.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),dM(e,this.group);var n=e.get("clip",!0)?ko(e.coordinateSystem,!1,e):null;Vs(!!n,this.group,n)},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=hM(n),s;(s=e.next())!=null;){var l=a.getItemLayout(s),u=Iy(l,s,o);Ly(u,a,s,i),u.incremental=In(n),this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,n){dM(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),Vs(!1,this.group,null),this._data=null},t.type=ci,t})($e),xZ=(function(){function r(){}return r})(),wZ=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new xZ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t})(Ae);function Iy(r,t,e,n){var a=r.ends;return new wZ({shape:{points:n?bZ(a,e,r):a},z2:100})}function Ly(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=n,_t(r,a);var o=t.getItemLayout(e).sign;D(r.states,function(l,u){var f=a.getModel(u),c=ix(o,f),v=ox(o,f)||c,h=l.style||(l.style={});c&&(h.fill=c),v&&(h.stroke=v)});var s=a.getModel("emphasis");et(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function bZ(r,t,e){return U(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}function hM(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var CZ=(function(){function r(){}return r})(),Py=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new CZ},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];e.moveTo(o,a[i++]),e.lineTo(o,a[i++])}else i+=3},t})(Ae);function dM(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Py({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Py({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Py({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Ry(1,o,r),Ry(-1,s,r),Ry(0,l,r),n&&(o.incremental=In(r),s.incremental=In(r),l.incremental=In(r)),e&&e.push(o,s,l)}function Ry(r,t,e,n){var a=ox(r,e)||ix(r,e),i=e.getModel("itemStyle").getItemStyle(_Z);t.useStyle(i),t.style.fill=null,t.style.stroke=a;var o=e.get("cursor");o&&t.attr("cursor",o)}function TZ(r){!r||!$(r.series)||D(r.series,function(t){fe(t)&&t.type==="k"&&(t.type=ci)})}var AZ=Cl(),MZ={seriesType:ci,plan:Jo(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=DZ(r),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=U(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],v=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),w=m.get(c,y),b=m.get(v,y),T=He(S,x),C=we(S,x),A=N(T,_),M=N(C,_),L=N(w,_),I=N(b,_),P=[];O(P,M,0),O(P,A,1),P.push(F(I),F(M),F(L),F(A));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:pM(m,y,S,x,f,E),initBaseline:S>x?M[i]:A[i],ends:P,brushRect:z(w,b,_)})}function N(H,W){var X=[];return X[a]=W,X[i]=H,isNaN(W)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function O(H,W,X){var Y=W.slice(),ee=W.slice();Y[a]=Uv(Y[a]+n/2,1,!1),ee[a]=Uv(ee[a]-n/2,1,!0),X?H.push(Y,ee):H.push(ee,Y)}function z(H,W,X){var Y=N(H,X),ee=N(W,X);return Y[a]-=n/2,ee[a]-=n/2,{x:Y[0],y:Y[1],width:i?n:ee[0]-Y[0],height:i?ee[1]-Y[1]:n}}function F(H){return H[a]=Uv(H[a],1),H}}function d(p,g){for(var y=Cn(p.count*4),m=0,_,S=[],x=[],w,b=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(w=p.next())!=null;){var C=b.get(s,w),A=b.get(u,w),M=b.get(f,w),L=b.get(c,w),I=b.get(v,w);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=pM(b,w,A,M,f,T),S[a]=C,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function pM(r,t,e,n,a,i){var o;return e>n?o=-1:e<n?o=1:o=i?0:t>0?r.get(a,t-1)<=n?1:-1:1,o}function DZ(r,t){var e=r.getBaseAxis(),n=Vt(e,{fromStat:{key:_o(ci)},min:1}).w,a=Z(Q(r.get("barMaxWidth"),n),n),i=Z(Q(r.get("barMinWidth"),1),n),o=r.get("barWidth");return o!=null?Z(o,n):we(He(n/2,a),i)}function IZ(r){AZ(r,function(){var t=_o(ci);p1(r,{key:t,seriesType:ci,getMetrics:I1}),sp(t,cp(t))})}function LZ(r){r.registerChartView(SZ),r.registerSeriesModel(hN),r.registerPreprocessor(TZ),r.registerVisual(mZ),r.registerLayout(MZ),IZ(r)}function gM(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var PZ=(function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new ec(e,n),o=new oe;return a.add(i),a.add(o),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=gt(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}gM(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}gM(a,e)},t.prototype.highlight=function(){pa(this)},t.prototype.downplay=function(){ga(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var a=this,i=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=El(e.getItemVisual(n,"symbolSize")),f=e.getItemVisual(n,"style"),c=f&&f.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var h=Qo(e.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=e.getItemVisual(n,"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=n/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,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"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,et(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(oe),RZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new tc(PZ)},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._symbolDraw;o.updateData(i,yM(e)),this.group.add(o.group)},t.prototype.updateTransform=function(e,n,a){var i=e.getData();this.group.dirty();var o=rc("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(yM(e))},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=Iz(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})($e);function yM(r){return{clipShape:ck(r)}}var EZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ba(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.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},t})(Ze);function kZ(r){r.registerChartView(RZ),r.registerSeriesModel(EZ),r.registerLayout(rc("effectScatter"))}var dN=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new q1(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");$(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=gt(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(i){var o=e.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=tr(n.get("delay"),function(h){return h/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;ie(c)?v=c(a):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Ba(e.__p1,e.__cp1)+Ba(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<=1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Lt,f=Vm;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=e.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),v=e.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);e.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Ba(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Ba(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t})(oe),pN=(function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),o=new Bt({shape:{points:i}});this.add(o),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Oe(o,s,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),o=e.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,et(this,l,u,f)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",e.getItemLayout(n))},t})(oe),OZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,a){return new pN(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Ba(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<=1?e.__t:2-e.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],v=a[l+1];e.x=c[0]*(1-f)+f*v[0],e.y=c[1]*(1-f)+f*v[1];var h=e.__t<=1?v[0]-c[0]:c[0]-v[0],d=e.__t<=1?v[1]-c[1]:c[1]-v[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t})(dN),NZ=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),BZ=(function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new NZ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){e.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)e.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],v=a[o++];if(e.moveTo(u,f),i>0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;e.quadraticCurveTo(h,d,c,v)}else e.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],v=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(Oa(c,v,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],v=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(C2(c,v,g,y,d,p,s,e,n))return l}else if(Oa(c,v,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new se(i,o,s,l)}return e},t})(Ae),VZ=(function(){function r(){this.group=new oe}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),this._setCommon(u,e),u.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new BZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=ce(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),gN={seriesType:"lines",plan:Jo(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,v=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);e&&(s[c++]=h);for(var d=0;d<h;d++)v=t.dataToPoint(o[d],!1,v),s[c++]=v[0],s[c++]=v[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},zZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=a.getZr(),f=!!p0(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var c=e.get("clip",!0)&&ko(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData(),In(n)),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=gN.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new VZ:new K1(o?i?OZ:pN:i?dN:q1),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=p0(e);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t})($e),FZ=typeof Uint32Array>"u"?Array:Uint32Array,GZ=typeof Float64Array>"u"?Array:Float64Array;function mM(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=U(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),aS([a,e[0],e[1]])}))}var HZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],mM(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(mM(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Ku(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ku(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ee(e[0])){for(var a=e.length,i=new FZ(a),o=new GZ(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=e[f++];i[l++]=s+n,i[l++]=c;for(var v=0;v<c;v++){var h=e[f++],d=e[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var a=new nr(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getItemModel(e),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),c=[];u!=null&&c.push(u),f!=null&&c.push(f),l=c.join(" > ")}return pt("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.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}},t})(Ze);function uv(r){return r instanceof Array||(r=[r,r]),r}var $Z={seriesType:"lines",reset:function(r){var t=uv(r.get("symbol")),e=uv(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,o){var s=i.getItemModel(o),l=uv(s.getShallow("symbol",!0)),u=uv(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:n.hasItemOption?a:null}}};function UZ(r){r.registerChartView(zZ),r.registerSeriesModel(HZ),r.registerLayout(gN),r.registerVisual($Z)}var WZ=256,YZ=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=rr.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=e,c.height=n;for(var d=0;d<h;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);v.globalAlpha=_,v.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=v.getImageData(0,0,c.width,c.height),x=S.data,w=0,b=x.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;w<b;){var _=x[w+3]/256,M=Math.floor(_*(WZ-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),x[w++]=L[M],x[w++]=L[M+1],x[w++]=L[M+2],x[w++]=L[M+3]*_*256}else w+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=rr.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=B.color.neutral99,a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function XZ(r,t,e){var n=r[1]-r[0];t=U(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&e[s]}}function jZ(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}var ZZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,a,0,e.getData().count()):_T(o)&&this._renderOnGeo(o,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var o=n.coordinateSystem;o&&(_T(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,n,a,i,o){var s=e.coordinateSystem,l=Oo(s,"cartesian2d"),u=Oo(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=Vt(d).w+.5,c=Vt(p).w+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),w=St(e),b=e.getModel("emphasis"),T=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),M=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=a;L<i;L++){var I=void 0,P=y.getItemVisual(L,"style");if(l){var R=y.get(M[0],L),E=y.get(M[1],L);if(isNaN(y.get(M[2],L))||isNaN(R)||isNaN(E)||R<v[0]||R>v[1]||E<h[0]||E>h[1])continue;var N=s.dataToPoint([R,E]);I=new be({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:P})}else if(u){var O=s.dataToLayout([y.get(M[0],L),y.get(M[1],L)]).rect;if(Ut(O.x))continue;I=new be({z2:1,shape:O,style:P})}else{if(isNaN(y.get(M[1],L)))continue;var z=s.dataToLayout([y.get(M[0],L)]),O=z.contentRect||z.rect;if(Ut(O.x)||Ut(O.y))continue;I=new be({z2:1,shape:O,style:P})}if(y.hasItemOption){var F=y.getItemModel(L),H=F.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=F.getModel(["blur","itemStyle"]).getItemStyle(),S=F.getModel(["select","itemStyle"]).getItemStyle(),x=F.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),A=H.get("disabled"),w=St(F)}I.shape.r=x;var W=e.getRawValue(L),X="-";W&&W[2]!=null&&(X=W[2]+""),Mt(I,w,{labelFetcher:e,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:X}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=S,et(I,T,C,A),I.incremental=In(e,o),o&&(I.states.emphasis.hoverLayer=Il),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new YZ;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,C){var A=e.dataToPoint([b,T]);return A[0]-=v,A[1]-=h,A.push(C),A}),S=a.getExtent(),x=a.type==="visualMap.continuous"?jZ(S,a.option.range):XZ(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var w=new Rt({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t})($e),qZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ba(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Wf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:B.color.primary}}},t})(Ze);function KZ(r){r.registerChartView(ZZ),r.registerSeriesModel(qZ)}var JZ=["itemStyle","borderWidth"],_M=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ey=new xa,QZ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=wf,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:_M[+f],categoryDim:_M[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=xM(o,d),g=SM(o,d,p,v),y=wM(o,v,g);o.setItemGraphicEl(d,y),i.add(y),CM(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=xM(o,d),m=SM(o,d,y,v),_=wN(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?oq(g,v,m):g=wM(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),CM(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&bM(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?ko(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){bM(i,ce(o).dataIndex,e,o)}):a.removeAll()},t.type=wf,t})($e);function SM(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),v={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};eq(e,i,a,n,v),tq(r,t,a,i,o,v.boundingLength,v.pxSign,f,n,v),rq(e,v.symbolScale,u,n,v);var h=v.symbolSize,d=Qo(e.get("symbolOffset"),h);return nq(e,h,a,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function eq(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if($(o)){var c=[ky(s,o[0])-l,ky(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=ky(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=e[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[i.wh]);var v=i.xy==="x",h=s.inverse;a.pxSign=v&&!h||!v&&h?f>=0?1:-1:f>0?1:-1}function ky(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function tq(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(e[c.wh]),h=r.getItemVisual(t,"symbolSize"),d;$(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=Z(d[c.index],v),d[f.index]=Z(d[f.index],n?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function rq(r,t,e,n,a){var i=r.get(JZ)||0;i&&(Ey.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ey.updateTransform(),i/=Ey.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function nq(r,t,e,n,a,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=tr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=Z(m,t[h.index]),x=Math.max(p+S*2,0),w=_?0:S*2,b=o2(n),T=b?n:TM((y+w)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,w=_?0:S*2,!b&&n!=="fixed"&&(T=u?TM((Math.abs(u)+w)/x):0),g=T*x-w,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),M=c.pathPosition=[];M[v.index]=e[v.wh]/2,M[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=c.bundlePosition=[];L[v.index]=e[v.xy],L[h.index]=e[h.xy];var I=c.barRectShape=G({},e);I[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(M[h.index]+A)),I[v.wh]=e[v.wh];var P=c.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=f.ecSize[v.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function yN(r){var t=r.symbolPatternSize,e=gt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function mN(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for(sx(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Ks(p,null,d(f),e,n):Ks(p,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(p)}),f++});f<u;f++){var v=yN(e);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,a.add(v);var h=d(f);Ks(v,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function _N(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ks(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=yN(e),a.add(i),Ks(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function SN(r,t,e){var n=G({},t.barRectShape),a=r.__pictorialBarRect;a?Ks(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new be({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function xN(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=G({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Oe(a,{shape:i},s,l);else{i[o.wh]=0,a=new be({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Zo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function xM(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=aq,e.isAnimationEnabled=iq,e}function aq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function iq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function wM(r,t,e,n){var a=new oe,i=new oe;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?mN(a,t,e):_N(a,t,e),SN(a,e,n),xN(a,t,e,n),a.__pictorialShapeStr=wN(r,e),a.__pictorialSymbolMeta=e,a}function oq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Oe(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?mN(r,t,e,!0):_N(r,t,e,!0),SN(r,e,!0),xN(r,t,e,!0)}function bM(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];sx(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),D(i,function(o){oi(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function wN(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function sx(r,t,e){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Ks(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Zo[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function CM(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");sx(r,function(p){if(p instanceof Rt){var g=p.style;p.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Mt(d,St(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:vl(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),et(r,f,c,i.get("disabled"))}function TM(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var sq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series."+wf,t.dependencies=["grid"],t.defaultOption=yi(bf.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:B.color.primary}}}),t})(bf);function lq(r){r.registerChartView(QZ),r.registerSeriesModel(sq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Pk(wf)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rk(wf)),kk(r)}var Oy=2,gl="themeRiver",uq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(q(this.getData,this),q(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,a={},i=e0(e,function(v){return a.hasOwnProperty(v[0]+"")||(a[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,h){o.push({name:h,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var a=this.getReferringComponents("singleAxis",at).models[0],i=a.get("type"),o=Fe(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,c=0;c<s.length;++c)l.push(s[c][Oy]),u.get(s[c][Oy])||(u.set(s[c][Oy],f),f++);var v=jf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Oh(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new nr(v,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),a=[],i=0;i<n;++i)a[i]=i;var o=e.mapDimension("single"),s=e0(a,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,v){return e.get(o,c)-e.get(o,v)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,a){$(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,v=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(e[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,v=o[f].indices[d])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return pt("nameValue",{name:o,value:s})},t.type="series."+gl,t.dependencies=["singleAxis"],t.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}}},t})(Ze),fq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=gl,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new ya(this._layersSeries||[],l,v,v),d=[];h.add(q(p,this,"add")).update(q(p,this,"update")).remove(q(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],w,b=l[y].indices,T=0;T<b.length;T++){var C=i.getItemLayout(b[T]),A=C.x,M=C.y0,L=C.y;S.push(A,M),x.push(A,M+L),w=i.getItemVisual(b[T],"style")}var I,P=i.getItemLayout(b[0]),R=e.getModel("label"),E=R.get("margin"),N=e.getModel("emphasis");if(g==="add"){var O=d[y]=new oe;I=new lk({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),e.isAnimationEnabled()&&I.setClipPath(cq(I.getBoundingRect(),e,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),d[y]=O,Oe(I,{shape:{points:S,stackedOnPoints:x}},e),Wr(I)}Mt(I,St(e),{labelDataIndex:b[T-1],defaultText:i.getName(b[T-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var z=I.getTextContent();z&&(z.x=P.x-E,z.y=P.y0+P.y/2),I.useStyle(w),i.setItemGraphicEl(y,I),_t(I,e),et(I,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type=gl,t})($e);function cq(r,t,e){var n=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}var vq=wt(gl,hq);function hq(r,t){r.eachSeriesByType(gl,function(e){var n=e.getData(),a=e.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=e.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Z(s[0],o.height),s[1]=Z(s[1],o.height);var u=o.height-s[0]-s[1];AM(n,e,u)}else{s[0]=Z(s[0],o.width),s[1]=Z(s[1],o.width);var f=o.width-s[0]-s[1];AM(n,e,f)}n.setLayout("layoutInfo",i)})}function AM(r,t,e){if(r.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=U(a,function(g){return U(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=dq(s),u=l.y0,f=e/l.max,c=a.length,v=a[0].indices.length,h,d=0;d<v;++d){h=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<c;++p)h+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function dq(r){for(var t=r.length,e=r[0].length,n=[],a=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<e;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<e;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function pq(r){r.registerChartView(fq),r.registerSeriesModel(uq),r.registerLayout(vq),r.registerProcessor(ac(gl))}var gq=2,yq=4,MM=(function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=gq,o.textConfig={inside:!0},ce(o).seriesIndex=n.seriesIndex;var s=new Re({z2:yq,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,a,i),o}return t.prototype.updateData=function(e,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ce(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=G({},f);c.label=null;var v=n.getVisual("style");v.lineJoin="bevel";var h=n.getVisual("decal");h&&(v.decal=sl(h,o));var d=Tn(l.getModel("itemStyle"),c,!0);G(c,d),D(ir,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Tn(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,Ke(s,{shape:{r:f.r}},a,n.dataIndex)):(Oe(s,{shape:c},a),Wr(s)),s.useStyle(v),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Ku(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;et(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);v.ignore=!p,D(nf,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),x=e.getFormattedLabel(h,y);_&&(x=x||n.node.name),S.style=je(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var w=m.get("show");w!=null&&!_&&(S.ignore=!w);var b=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:b!=="outside"};var A,M=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,E=_r(I==="tangential"?Math.PI/2-l:l),N=E>P&&!nl(E-P)&&E<R;b==="outside"?(A=o.r+M,L=N?"right":"left"):!L||L==="center"?(o.r0===0&&nl(s-2*Math.PI)?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+M,L=N?"right":"left"):L==="right"&&(A=o.r-M,L=N?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var O=0;I==="radial"?O=_r(-l)+(N?Math.PI:0):I==="tangential"?O=_r(Math.PI/2-l)+(N?Math.PI:0):Ee(I)&&(O=I*Math.PI/180),S.rotation=_r(O)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},t})(Xt),$o="sunburst",mq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};bN(a);var i=this._levelModels=U(e.levels||[],function(l){return new Ie(l,this,n)},this),o=$1.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=mp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){AO(this)},t.type="series."+$o,t.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"},t})(Ze);function bN(r){var t=0;D(r.children,function(n){bN(n);var a=n.value;$(a)&&(a=a[0]),t+=a});var e=r.value;$(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),$(r.value)?r.value[0]=e:r.value=e}var __="sunburstRootToNode",DM="sunburstHighlight",_q="sunburstUnhighlight";function Sq(r){r.registerAction({type:__,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Df(t,[__],a);if(o){var s=a.getViewRoot();s&&(t.direction=U1(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:DM,update:"none"},function(t,e,n){t=G({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Df(t,[DM],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(G(t,{type:"highlight"}))}),r.registerAction({type:_q,update:"updateView"},function(t,e,n){t=G({},t),n.dispatchAction(G(t,{type:"downplay"}))})}var xq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=$o,e}return t.prototype.render=function(e,n,a,i){var o=this;this.seriesModel=e,this.api=a,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,c=e.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var h=this._oldChildren||[];d(v,h),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new ya(_,m,S,S).add(x).update(x).remove(xe(x,null)).execute();function S(w){return w.getId()}function x(w,b){var T=w==null?null:m[w],C=b==null?null:_[b];p(T,C)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new MM(m,e,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,a):(o.virtualPiece=new MM(m,e,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Mh(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:__,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=$o,t})($e),wq=wt($o,bq);function bq(r){var t={};function e(n,a,i){if(n.depth===0)return B.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&j(s)&&(s=Gm(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType($o,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");G(u,l)})})}var IM=Math.PI/180,Cq=wt($o,Tq);function Tq(r,t){r.eachSeriesByType($o,function(e){var n=e.get("center"),a=e.get("radius");$(a)||(a=[0,a]),$(n)||(n=[n,n]);var i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o),l=Z(n[0],i),u=Z(n[1],o),f=Z(a[0],s/2),c=Z(a[1],s/2),v=-e.get("startAngle")*IM,h=e.get("minAngle")*IM,d=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,y=e.get("sort");y!=null&&CN(p,y);var m=0;D(p.children,function(R){!isNaN(R.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,x=p.depth>0,w=p.height-(x?-1:1),b=(c-f)/(w||1),T=e.get("clockwise"),C=e.get("stillShowZeroSum"),A=T?1:-1,M=function(R,E){if(R){var N=E;if(R!==d){var O=R.getValue(),z=_===0&&C?S:O*S;z<h&&(z=h),N=E+A*z;var F=R.depth-g-(x?-1:1),H=f+b*F,W=f+b*(F+1),X=e.getLevelModel(R);if(X){var Y=X.get("r0",!0),ee=X.get("r",!0),ye=X.get("radius",!0);ye!=null&&(Y=ye[0],ee=ye[1]),Y!=null&&(H=Z(Y,s/2)),ee!=null&&(W=Z(ee,s/2))}R.setLayout({angle:z,startAngle:E,endAngle:N,clockwise:T,cx:l,cy:u,r0:H,r:W})}if(R.children&&R.children.length){var Ne=0;D(R.children,function(ve){Ne+=M(ve,E+Ne)})}return N-E}};if(x){var L=f,I=f+b,P=Math.PI*2;d.setLayout({angle:P,startAngle:v,endAngle:v+P,clockwise:T,cx:l,cy:u,r0:L,r:I})}M(p,v)})}function CN(r,t){var e=r.children||[];r.children=Aq(e,t),e.length&&D(r.children,function(n){CN(n,t)})}function Aq(r,t){if(ie(t)){var e=U(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(a,i){return t(a.params,i.params)}),U(e,function(a){return r[a.index]})}else{var n=t==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Mq(r){r.registerChartView(xq),r.registerSeriesModel(mq),r.registerLayout(Cq),r.registerVisual(wq),Sq(r)}var LM={color:"fill",borderColor:"stroke"},Dq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oa=me(),Iq=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ba(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=oa(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ze);function Lq(r,t){return t=t||[0,0],U(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],o=r[n]/2;return a.type==="category"?Vt(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Pq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(Lq,r)}}}function Rq(r,t){return t=t||[0,0],U([0,1],function(e){var n=t[e],a=r[e]/2,i=[],o=[];return i[e]=n-a,o[e]=n+a,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function Eq(r){var t=r.view,e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r7(t)},api:{coord:function(n){return r.dataToPoint(n)},size:q(Rq,r)}}}function kq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?Vt(e).w:Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Oq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(kq,r)}}}function Nq(r,t){return t=t||[0,0],U(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),o=t[n],s=r[n]/2,l=i.type==="category"?Vt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Bq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=e.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:q(Nq,r)}}}function Vq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function zq(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,n){return r.dataToPoint(e,n)},layout:function(e,n){return r.dataToLayout(e,n)}}}}var TN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},PM=De(TN);kn(ca,function(r,t){return r[t]=1,r},{});ca.join(", ");var ld=["","style","shape","extra"],yl=me();function lx(r,t,e,n,a){var i=r+"Animation",o=Dl(r,n,a)||{},s=yl(t).userDuring;return o.duration>0&&(o.during=s?q(Uq,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,e[i]),o}function th(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=yl(r),u=t.style;l.userDuring=t.during;var f={},c={};if(Yq(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d<h.length;d++){var p=h[d];Ny("shape",p,v[d])}else Ny("shape",t,c),Ny("extra",t,c);if(!i&&s&&(Wq(r,t,f),RM("shape",r,t,f),RM("extra",r,t,f),Xq(r,t,u,f)),c.style=u,Fq(r,c,o),Hq(r,t),s)if(i){var g={};D(ld,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),G(m?g[m]:g,_.enterFrom))});var y=lx("enter",r,t,e,a);y.duration>0&&r.animateFrom(g,y)}else Gq(r,t,a||0,e,f);AN(r,t),u?r.dirty():r.markRedraw()}function AN(r,t){for(var e=yl(r).leaveToProps,n=0;n<ld.length;n++){var a=ld[n],i=a?t[a]:t;i&&i.leaveTo&&(e||(e=yl(r).leaveToProps={}),a&&(e[a]=e[a]||{}),G(a?e[a]:e,i.leaveTo))}}function xp(r,t,e,n){if(r){var a=r.parent,i=yl(r).leaveToProps;if(i){var o=lx("update",r,t,e,0);o.done=function(){a&&a.remove(r)},r.animateTo(i,o)}else a&&a.remove(r)}}function So(r){return r==="all"}function Fq(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function Gq(r,t,e,n,a){if(a){var i=lx("update",r,t,n,e);i.duration>0&&r.animateFrom(a,i)}}function Hq(r,t){J(t,"silent")&&(r.silent=t.silent),J(t,"ignore")&&(r.ignore=t.ignore),r instanceof Ur&&J(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ae&&J(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var yn={},$q={setTransform:function(r,t){return yn.el[r]=t,this},getTransform:function(r){return yn.el[r]},setShape:function(r,t){var e=yn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=yn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=yn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=yn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=yn.el.extra||(yn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=yn.el.extra;if(t)return t[r]}};function Uq(){var r=this,t=r.el;if(t){var e=yl(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}yn.el=t,n($q)}}function RM(r,t,e,n){var a=e[r];if(a){var i=t[r],o;if(i){var s=e.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),So(l))G(o,i);else for(var u=Ye(l),f=0;f<u.length;f++){var c=u[f],v=i[c];o[c]=v}else if(So(s)||pe(s,r)>=0){!o&&(o=n[r]={});for(var h=De(i),f=0;f<h.length;f++){var c=h[f],v=i[c];jq(a[c],v)&&(o[c]=v)}}}}}function Ny(r,t,e){var n=t[r];if(n)for(var a=e[r]={},i=De(n),o=0;o<i.length;o++){var s=i[o];a[s]=Bu(n[s])}}function Wq(r,t,e){for(var n=t.transition,a=So(n)?ca:Ye(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function Yq(r,t,e){for(var n=0;n<PM.length;n++){var a=PM[n],i=TN[a],o=t[a];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var n=0;n<ca.length;n++){var s=ca[n];t[s]!=null&&(e[s]=t[s])}}function Xq(r,t,e,n){if(e){var a=r.style,i;if(a){var o=e.transition,s=t.transition;if(o&&!So(o)){var l=Ye(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(So(s)||So(o)||pe(s,"style")>=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});for(var d=De(e),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=a[f];i[f]=c}}}}}}}function jq(r,t){return Wt(r)?r!==t:r!=null&&isFinite(r)}var MN=me(),Zq=["percent","easing","shape","style","extra"];function DN(r){r.stopAnimation("keyframe"),r.attr(MN(r))}function ud(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if($(t)){D(t,function(s){ud(r,s,e)});return}var n=t.keyframes,a=t.duration;if(e&&a==null){var i=Dl("enter",e,0);a=i&&i.duration}if(!(!n||!a)){var o=MN(r);D(ld,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var v=De(c);if(s||(v=Fe(v,function(p){return pe(Zq,p)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,c,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var sa="emphasis",Ua="normal",ux="blur",fx="select",vi=[Ua,sa,ux,fx],By={normal:["itemStyle"],emphasis:[sa,"itemStyle"],blur:[ux,"itemStyle"],select:[fx,"itemStyle"]},Vy={normal:["label"],emphasis:[sa,"label"],blur:[ux,"label"],select:[fx,"label"]},qq=["x","y"],Kq="e\0\0",Mr={normal:{},emphasis:{},blur:{},select:{}},Jq={cartesian2d:Pq,geo:Eq,single:Oq,polar:Bq,calendar:Vq,matrix:zq};function S_(r){return r instanceof Ae}function x_(r){return r instanceof Ur}function Qq(r,t){t.copyTransform(r),x_(t)&&x_(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,S_(t)&&S_(r)&&t.setShape(r.shape))}var eK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=EM(e,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){zy(a,null,c,u(c,i),e,l,s)}).remove(function(c){var v=o.getItemGraphicEl(c);v&&xp(v,oa(v).option,e)}).update(function(c,v){var h=o.getItemGraphicEl(v);zy(a,h,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?ko(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,a,i,o){var s=n.getData(),l=EM(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=In(n),h.ensureState("emphasis").hoverLayer=Il)}for(var c=e.start;c<e.end;c++){var v=zy(null,null,c,l(c,o),n,this.group,s);v&&(v.traverse(f),u.push(v))}},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t})($e);function cx(r){var t=r.type,e;if(t==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=PN(n);e=of(i,null,a,n.layout||"center"),oa(e).customPathData=i}else if(t==="image")e=new Rt({}),oa(e).customImagePath=r.style.image;else if(t==="text")e=new Re({});else if(t==="group")e=new oe;else if(t==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";ze(o)}var s=U(n.paths,function(f){if(f.type==="path")return of(f.shape.pathData,f,null);var c=wh(f.type);if(!c){var v="";ze(v)}return new c});e=new Yd({shape:{paths:s}})}else{var l=wh(t);if(!l){var o="";ze(o)}e=new l}return oa(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function vx(r,t,e,n,a,i,o){DN(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=qq);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=S_(t)?l.decal:null;r&&c&&(c.dirty=!0,f=sl(c,r)),l.__decalPattern=f}if(x_(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}th(t,n,i,{dataIndex:e,isInit:o,clearStyle:!0}),ud(t,n.keyframeAnimation,i)}function IN(r,t,e,n,a){var i=t.isGroup?null:t,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Ao(i)}}function tK(r,t,e){if(!r.isGroup){var n=r,a=e.currentZ,i=e.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<vi.length;s++)rK(n,t,vi[s])}}function rK(r,t,e){var n=e===Ua,a=n?t:fd(t,e),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(e),o.z2=i||0)}function EM(r,t,e,n){var a=r.get("renderItem");if(typeof a=="string"){var i=S4(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Jq[o.type](o));for(var l=le({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:b,ordinalRawValue:w,styleEmphasis:T,visual:M,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:nK(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,v={},h={},d={},p={},g=0;g<vi.length;g++){var y=vi[g];d[y]=r.getModel(By[y]),p[y]=r.getModel(Vy[y])}function m(R){return R===f?c||(c=t.getItemModel(R)):t.getItemModel(R)}function _(R,E){return t.hasItemOption?R===f?v[E]||(v[E]=m(R).getModel(By[E])):m(R).getModel(By[E]):d[E]}function S(R,E){return t.hasItemOption?R===f?h[E]||(h[E]=m(R).getModel(Vy[E])):m(R).getModel(Vy[E]):p[E]}return function(R,E){return f=R,c=null,v={},h={},a&&a(le({dataIndexInside:R,dataIndex:t.getRawIndex(R),actionType:E?E.type:null},u),l)};function x(R,E){return E==null&&(E=f),t.getStore().get(t.getDimensionIndex(R||0),E)}function w(R,E){E==null&&(E=f),R=R||0;var N=t.getDimensionInfo(R);if(!N){var O=t.getDimensionIndex(R);return O>=0?t.getStore().get(O,E):void 0}var z=t.get(N.name,E),F=N&&N.ordinalMeta;return F?F.categories[z]:z}function b(R,E){E==null&&(E=f);var N=t.getItemVisual(E,"style"),O=N&&N.fill,z=N&&N.opacity,F=_(E,Ua).getItemStyle();O!=null&&(F.fill=O),z!=null&&(F.opacity=z);var H={inheritColor:j(O)?O:B.color.neutral99},W=S(E,Ua),X=je(W,null,H,!1,!0);X.text=W.getShallow("show")?Q(r.getFormattedLabel(E,Ua),vl(t,E)):null;var Y=bh(W,H,!1);return A(R,F),F=xT(F,X,Y),R&&C(F,R),F.legacy=!0,F}function T(R,E){E==null&&(E=f);var N=_(E,sa).getItemStyle(),O=S(E,sa),z=je(O,null,null,!0,!0);z.text=O.getShallow("show")?xr(r.getFormattedLabel(E,sa),r.getFormattedLabel(E,Ua),vl(t,E)):null;var F=bh(O,null,!0);return A(R,N),N=xT(N,z,F),R&&C(N,R),N.legacy=!0,N}function C(R,E){for(var N in E)J(E,N)&&(R[N]=E[N])}function A(R,E){R&&(R.textFill&&(E.textFill=R.textFill),R.textPosition&&(E.textPosition=R.textPosition))}function M(R,E){if(E==null&&(E=f),J(LM,R)){var N=t.getItemVisual(E,"style");return N?N[LM[R]]:null}if(J(Dq,R))return t.getItemVisual(E,R)}function L(R){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return r6(le({axis:E},R))}}function I(){return e.getCurrentSeriesIndices()}function P(R){return RS(R,e)}}function nK(r){var t={};return D(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function zy(r,t,e,n,a,i,o){if(!n){i.remove(t);return}var s=hx(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&et(s,n.focus,n.blurScope,n.emphasisDisabled),s}function hx(r,t,e,n,a,i){var o=-1,s=t;t&&LN(t,n,a)&&(o=pe(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=cx(n),s&&Qq(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),Mr.normal.cfg=Mr.normal.conOpt=Mr.emphasis.cfg=Mr.emphasis.conOpt=Mr.blur.cfg=Mr.blur.conOpt=Mr.select.cfg=Mr.select.conOpt=null,Mr.isLegacy=!1,iK(u,e,n,a,l,Mr),aK(u,e,n,a,l),vx(r,u,e,n,Mr,a,l),J(n,"info")&&(oa(u).info=n.info);for(var f=0;f<vi.length;f++){var c=vi[f];if(c!==Ua){var v=fd(n,c),h=dx(n,v,c);IN(c,u,v,h,Mr)}}return tK(u,n,a),n.type==="group"&&oK(r,u,e,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function LN(r,t,e){var n=oa(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&fK(i)&&PN(i)!==n.customPathData||a==="image"&&J(o,"image")&&o.image!==n.customImagePath}function aK(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&LN(o,i,n)&&(o=null),o||(o=cx(i),r.setClipPath(o)),vx(null,o,t,i,null,n,a)}}function iK(r,t,e,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){kM(e,null,i),kM(e,sa,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 f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=cx(o),r.setTextContent(f)),vx(null,f,t,o,null,n,a);for(var c=o&&o.style,v=0;v<vi.length;v++){var h=vi[v];if(h!==Ua){var d=i[h].conOpt;IN(h,f,d,dx(o,d,h),null)}}c?f.dirty():f.markRedraw()}}}}function kM(r,t,e){var n=t?fd(r,t):r,a=t?dx(r,n,sa):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?fd(s,t):s:null;if(a&&(e.isLegacy||vk(a,i,!!o,!!l))){e.isLegacy=!0;var u=hk(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function fd(r,t){return t?r?r[t]:null:r}function dx(r,t,e){var n=t&&t.style;return n==null&&e===sa&&r&&(n=r.styleEmphasis),n}function oK(r,t,e,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){lK({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],v=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),hx(r,v,e,c,a,t)):v.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var d=t.childAt(h);sK(t,d,a)}}}function sK(r,t,e){t&&xp(t,oa(r).option,e)}function lK(r){new ya(r.oldChildren,r.newChildren,OM,OM,r).add(NM).update(NM).remove(uK).execute()}function OM(r,t){var e=r&&r.name;return e??Kq+t}function NM(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;hx(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function uK(r){var t=this.context,e=t.oldChildren[r];e&&xp(e,oa(e).option,t.seriesModel)}function PN(r){return r&&(r.pathData||r.d)}function fK(r){return r&&(J(r,"pathData")||J(r,"d"))}function cK(r){r.registerChartView(eK),r.registerSeriesModel(Iq)}var no=me(),BM=ae,Fy=q,px=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&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,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new oe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var v=xe(VM,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}FM(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&Vt(a).w>s)return!0;if(o){var l=P1(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=no(t).pointerEl=new Zo[i.type](BM(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=no(t).labelEl=new Re(BM(e.label));t.add(i),zM(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=no(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=no(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),zM(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$f(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fa(u.event)},onmousedown:Fy(this._onHandleDragMove,this,0,0),drift:Fy(this._onHandleDragMove,this),ondragend:Fy(this._onHandleDragEnd,this)}),n.add(a)),FM(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");$(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Pl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){VM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Gy(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Gy(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Gy(a)),no(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ff(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r})();function VM(r,t,e,n){RN(no(e).lastProp,n)||(no(e).lastProp=n,t?Oe(e,n,r):(e.stopAnimation(),e.attr(n)))}function RN(r,t){if(fe(r)&&fe(t)){var e=!0;return D(t,function(n,a){e=e&&RN(r[a],n)}),!!e}else return r===t}function zM(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Gy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function FM(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function gx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function EN(r,t,e,n,a){var i=e.get("value"),o=kN(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Uf(s.get("padding")||0),u=s.getFont(),f=Rd(o,u),c=a.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),vK(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:je(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function vK(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function kN(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Vh(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),j(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function yx(r,t,e){var n=nt();return pi(n,n,e.rotation),On(n,n,e.position),en([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function ON(r,t,e,n,a,i){var o=ar.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),EN(t,n,a,i,{position:yx(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function mx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function NN(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function GM(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}function _x(r,t,e){return Vt(r,{fromStat:{sers:U(t,function(n){return e.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function Sx(r,t,e){return[we(He(t[0],t[1]),r-e/2),He(r+e/2,we(t[0],t[1]))]}var hK=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),c=HM(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=gx(i),d=dK[u](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=Xh(l.getRect(),a);ON(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Xh(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=yx(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=HM(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=He(l[1],c[f]),c[f]=we(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t})(px);function HM(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var dK={line:function(r,t,e,n){var a=mx([t,n[0]],[t,n[1]],$M(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e,n,a,i){var o=_x(r,a,i),s=n[1]-n[0],l=Sx(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:NN([u,n[0]],[f-u,s],$M(r))}}};function $M(r){return r.dim==="x"?0:1}var pK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.color.accent60,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:B.color.accent40,throttle:40}},t})(Me),ra=me(),gK=D;function BN(r,t,e){if(!Le.node){var n=t.getZr();ra(n).records||(ra(n).records={}),yK(n,t);var a=ra(n).records[r]||(ra(n).records[r]={});a.handler=e}}function yK(r,t){if(ra(r).initialized)return;ra(r).initialized=!0,e("click",xe(Hy,"click")),e("mousemove",xe(Hy,"mousemove")),e("mousewheel",xe(Hy,"mousewheel")),e("globalout",_K);function e(n,a){r.on(n,function(i){var o=SK(t);gK(ra(r).records,function(s){s&&a(s,i,o.dispatchAction)}),mK(o.pendings,t)})}}function mK(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function _K(r,t,e){r.handler("leave",null,e)}function Hy(r,t,e,n){t.handler(r,e,n)}function SK(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function w_(r,t){if(!Le.node){var e=t.getZr(),n=(ra(e).records||{})[r];n&&(ra(e).records[r]=null)}}var xK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";BN("axisPointer",a,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})})},t.prototype.remove=function(e,n){w_("axisPointer",n)},t.prototype.dispose=function(e,n){w_("axisPointer",n)},t.type="axisPointer",t})(Qe);function VN(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=bo(i,r);if(o==null||o<0||$(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(U(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var UM=me();function wK(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){rh(a)&&(a=VN({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=rh(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||rh(a),v={},h={},d={list:[],map:{}},p={showPointer:xe(CK,h),showTooltip:xe(TK,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,x){var w=S.axis,b=IK(u,S);if(!c&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=w.pointToData(a)),T!=null&&WM(S,T,p,!1,v)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&D(_.axesInfo,function(S,x){var w=h[x];if(S!==y&&w){var b=w.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,YM(S),YM(y)))),g[y.key]=b}})}),D(g,function(y,m){WM(f[m],y,p,!0,v)}),AK(h,f,v),MK(d,a,r,o),DK(f,o,e),v}}function WM(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=bK(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function bK(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],r,e.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if($r(c)){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),D(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function CK(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function TK(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Cf(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function AK(r,t,e){var n=e.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function MK(r,t,e,n){if(rh(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function DK(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=UM(n)[a]||{},o=UM(n)[a]={};D(r,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&D(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}D(i,function(f,c){!o[c]&&l.push(u(f))}),D(o,function(f,c){!i[c]&&s.push(u(f))}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function IK(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function YM(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function rh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ic(r){rs.registerAxisPointerClass("CartesianAxisPointer",hK),r.registerComponentModel(pK),r.registerComponentView(xK),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!$(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=K6(t,e)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wK)}function LK(r){Se(qk),Se(ic)}var PK=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),c=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var h=gx(i),d=EK[v](s,l,c,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=RK(n,a,i,l,p);EN(e,a,i,o,g)},t})(px);function RK(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=nt();pi(v,v,s),On(v,v,[n.cx,n.cy]),u=en([o,-a],v);var h=t.getModel("axisLabel").get("rotate")||0,d=ar.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var EK={line:function(r,t,e,n,a){return r.dim==="angle"?{type:"Line",shape:mx(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n,a,i,o){var s=Math.PI/180,l=_x(r,i,o),u;if(r.dim==="angle")u=GM(t.cx,t.cy,a[0],a[1],(-e-l/2)*s,(-e+l/2)*s);else{var f=Sx(e,n,l),c=f[0],v=f[1];u=GM(t.cx,t.cy,c,v,0,Math.PI*2)}return{type:"Sector",shape:u}}},Rn="polar",XM=Rn,kK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type=Rn,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(Me),xx=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",at).models[0]},t.type="polarAxis",t})(Me);xt(xx,Qf);var OK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(xx),NK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(xx),bx=(function(r){V(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t})(un);bx.prototype.dataToRadius=un.prototype.dataToCoord;bx.prototype.radiusToData=un.prototype.coordToData;var BK=me(),Cx=(function(r){V(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Rd(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=BK(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t})(un);Cx.prototype.dataToAngle=un.prototype.dataToCoord;Cx.prototype.angleToData=un.prototype.coordToData;var zN=["radius","angle"],VK=(function(){function r(t){this.dimensions=zN,this.type=Rn,this.cx=0,this.cy=0,this._radiusAxis=new bx,this._angleAxis=new Cx,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},r.prototype.pointToData=function(t,e,n){n=n||[];var a=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(a[0],e),n[1]=this._angleAxis.angleToData(a[1],e),n},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],a=t[1]/180*Math.PI;return e[0]=Math.cos(a)*n+this.cx,e[1]=-Math.sin(a)*n+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(t,e,n){var a=jM(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=jM(e);return a===this?this.pointToData(n):null},r})();function jM(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function zK(r,t,e){var n=t.get("center"),a=bt(t,e).refContainer;r.cx=Z(n[0],a.width)+a.x,r.cy=Z(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:$(s)||(s=[0,s]);var l=[Z(s[0],o),Z(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function FK(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(Eo(n,fl),Eo(a,fl),cl(n),cl(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function GK(r){return r.mainType==="angleAxis"}function ZM(r,t){var e;if(r.type=ip(t),r.scale=qf(t,r.type,!1),r.onBand=Jf(r.scale,t),r.inverse=t.get("inverse"),GK(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var HK={dimensions:zN,create:function(r,t){var e=[];return r.eachComponent(XM,function(n,a){var i=new VK(a+"");i.update=FK;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");ZM(o,l),ZM(s,u),zK(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Rn){var a=n.getReferringComponents(XM,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(Ro(i.getRadiusAxis(),n,Rn),Ro(i.getAngleAxis(),n,Rn))}}),e}},$K=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function fv(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function cv(r){var t=r.getRadiusAxis();return t.inverse?0:1}function qM(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var UK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];D(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ae(f);var c=a.scale;f.coord=a.dataToCoord(kl(c,f.tick)),u.push(f)}}),qM(u),qM(s),D($K,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&WK[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t})(rs),WK={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=cv(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new Zo[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Ff({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[cv(e)],u=U(n,function(f){return new dt({shape:fv(e,[l,l+s],f.coord)})});r.add(Or(u,{style:le(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[cv(e)],f=[],c=0;c<a.length;c++)for(var v=0;v<a[c].length;v++)f.push(new dt({shape:fv(e,[u,u+l],a[c][v].coord)}));r.add(Or(f,{style:le(s.getModel("lineStyle").getLineStyle(),le(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,v){var h=l,d=c.tick.value,p=i[cv(e)],g=e.coordToPoint([p+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];fe(x)&&x.textStyle&&(h=new Ie(x.textStyle,l,l.ecModel))}var w=new Re({silent:ar.isLabelSilent(t),style:je(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(w),wa({el:w,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return w.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var b=ar.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=c.rawLabel,ce(w).eventData=b}},this)},splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new dt({shape:fv(e,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Or(f[c],{style:le({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new dt({shape:fv(e,i,a[u][f].coord)}));r.add(Or(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Xt({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:p},silent:!0})),v=-m*c}for(var g=0;g<f.length;g++)r.add(Or(f[g],{style:le({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},YK=["splitLine","splitArea","minorSplitLine"],XK=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,o=this._axisGroup=new oe;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),c=s.getMinorTicksCoords(),v=u.getExtent()[0],h=s.getExtent(),d=ZK(l,e,v),p=new ar(e,a,d);p.build(),o.add(p.group),Hf(i,o,e),D(YK,function(g){e.get([g,"show"])&&!s.scale.isBlank()&&jK[g](this.group,e,l,v,h,f,c)},this)}},t.type="radiusAxis",t})(rs),jK={splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),c=Math.PI/180,v=f.getExtent(),h=Math.abs(v[1]-v[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 Zo[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*c,endAngle:-v[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Or(d[p],{style:le({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new xa({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(Or(u,{style:le({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,v=1;v<i.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Xt({shape:{cx:e.cx,cy:e.cy,r0:c,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[v].coord}for(var v=0;v<f.length;v++)r.add(Or(f[v],{style:le({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function ZK(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var qK=Cl();function FN(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var KK=wt(Ln,JK);function JK(r){var t=ts(Ln,Rn);d1(r,t,function(e){var n=eJ(e,Ln),a={};Po(e,t,function(i){QK(e,i,n,a)})})}function QK(r,t,e,n){var a=t.getData(),i=FN(t),o=e[i],s=o.offset,l=o.width,u=t.coordinateSystem,f=u.getOtherAxis(r),c=u.cx,v=u.cy,h=t.get("barMinHeight")||0,d=t.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(r.dim),y=si(a,p),m=r.dim!=="radius"||!t.get("roundCap",!0),_=f.dataToCoord(Mk(f)),S=0,x=a.count();S<x;S++){var w=a.get(p,S),b=a.get(g,S),T=w>=0?"p":"n",C=_;y&&(n[i][b]||(n[i][b]={p:_,n:_}),C=n[i][b][T]);var A=void 0,M=void 0,L=void 0,I=void 0;if(f.dim==="radius"){var P=f.dataToCoord(w)-_,R=r.dataToCoord(b);it(P)<h&&(P=(P<0?-1:1)*h),A=C,M=C+P,L=R-s,I=L-l,y&&(n[i][b][T]=M)}else{var E=f.dataToCoord(w,m)-_,N=r.dataToCoord(b);it(E)<d&&(E=(E<0?-1:1)*d),A=N+s,M=A+l,L=C,I=C+E,y&&(n[i][b][T]=I)}a.setItemLayout(S,{cx:c,cy:v,r0:A,r:M,startAngle:-L*ph/180,endAngle:-I*ph/180,clockwise:L>=I})}}function eJ(r,t){var e=ts(t,Rn),n=Vt(r,{fromStat:{key:e},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Po(r,e,function(g){var y=FN(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=Z(g.get("barWidth"),n),_=Z(g.get("barMaxWidth"),n),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=He(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),x!=null&&(o=x)});var u={},f=Z(o,n),c=Z(s,1),v=(a-f)/(i+(i-1)*c);v=we(v,0),D(l,function(g,y){var m=g.maxWidth;m&&m<v&&(m=He(m,a),g.width&&(m=He(m,g.width)),a-=m,g.width=m,i--)}),v=(a-f)/(i+(i-1)*c),v=we(v,0);var h=0,d;D(l,function(g,y){g.width||(g.width=v),d=g,h+=g.width*(1+c)}),d&&(h-=d.width*c);var p=-h/2;return D(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+c)}),u}function tJ(r,t){qK(r,function(){var e=ts(t,Rn);Ak(r,e,t,Rn),sp(e,cp(e))})}var rJ={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},nJ={splitNumber:5},aJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t})(Qe);function iJ(r){Se(ic),rs.registerAxisPointerClass("PolarAxisPointer",PK),r.registerCoordinateSystem("polar",HK),r.registerComponentModel(kK),r.registerComponentView(aJ),hl(r,"angle",OK,rJ),hl(r,"radius",NK,nJ),r.registerComponentView(UK),r.registerComponentView(XK),r.registerLayout(KK),tJ(r,Ln)}function b_(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=e.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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(t.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-v:v,a.z2=1,a}var oJ=["splitArea","splitLine","breakArea"],sJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new oe;var l=b_(e),u=new ar(e,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),D(oJ,function(f){e.get([f,"show"])&&lJ[f](this,this.group,this._axisGroup,e,a)},this),Hf(s,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)},t.prototype.remove=function(){Xk(this)},t.type="singleAxis",t})(rs),lJ={splitLine:function(r,t,e,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),c=i.isHorizontal(),v=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new dt({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});il(_.shape,u);var S=h++%l.length;v[S]=v[S]||[],v[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<v.length;++y)t.add(Or(v[y],{style:le({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,t,e,n,a){Yk(r,e,n,n)},breakArea:function(r,t,e,n,a){var i=nc(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,n,n.coordinateSystem.getRect(),a)}},uJ=(function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t})(un),GN=["single"],fJ=(function(){function r(t,e,n){this.type=vp,this.dimension="single",this.dimensions=GN,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=this.dimension,i=ip(t),o=new uJ(a,qf(t,i,!0),[0,0],i,t.get("position"));o.onBand=Jf(o.scale,t),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(t,e){var n=this._axis;Eo(n,fl),cl(n)},r.prototype.resize=function(t,e){var n=bt(t,e).refContainer;this._rect=tt(t.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(a[i],a[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return a-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return a-o+e}},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(t){var e=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(t,e,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+t)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(t,e,n){var a=KM(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=KM(e);return a===this?this.pointToData(n):null},r})();function KM(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function cJ(r,t){var e=[];return r.eachComponent(n_,function(n,a){var i=new fJ(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===l8){var a=n.getReferringComponents(n_,at).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Ro(i.getAxis(),n,vp)}}),e}var vJ={create:cJ,dimensions:GN},JM=["x","y"],hJ=["width","height"],dJ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=cd(s),f=vv(l,u),c=vv(l,1-u),v=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=gx(i),p=pJ[h](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);p.style=d,e.graphicKey=p.type,e.pointer=p}var g=b_(a);ON(n,e,g,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=b_(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=yx(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.coordinateSystem,l=cd(o),u=vv(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=vv(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t})(px),pJ={line:function(r,t,e,n){var a=mx([t,n[0]],[t,n[1]],cd(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e,n,a,i){var o=_x(r,a,i),s=n[1]-n[0],l=Sx(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:NN([u,n[0]],[f-u,s],cd(r))}}};function cd(r){return r.isHorizontal()?0:1}function vv(r,t){var e=r.getRect();return[e[JM[t]],e[JM[t]]+e[hJ[t]]]}var gJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(Qe);function yJ(r){Se(ic),rs.registerAxisPointerClass("SingleAxisPointer",dJ),r.registerComponentView(gJ),r.registerComponentView(sJ),r.registerComponentModel(Qv),hl(r,"single",Qv,Qv.defaultOption),r.registerCoordinateSystem("single",vJ)}var mJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=Ko(e);r.prototype.init.apply(this,arguments),QM(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),QM(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(Me);function QM(r,t){var e=r.cellSize,n;$(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=U([0,1],function(i){return k3(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Fn(r,t,{type:"box",ignoreSize:a})}var _J=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new be({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(e,n,a,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,v=0;c.time<=n.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,a);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,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new Bt({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return j(e)&&e?DP(e,n):ie(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,o){var s=n[0],l=n[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 f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,a,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=a==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Re({z2:30,style:je(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,n,a,i,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,a,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||j(s))&&(s&&(n=y0(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[v].length-1;g++){var y=c[v][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+c[0][g+1][h])/2}var S=o.get("formatter"),x=s[+m.m-1],w={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},b=this._formatterLabel(S,w),T=new Re({z2:30,style:G(je(o,{text:b}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,n,a,i,o){var s="center",l="middle",u=e[0],f=e[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,a,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||j(f)){f&&(n=y0(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||U(n.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=Z(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+v)%7);var x=new Re({z2:30,style:G(je(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:g});o.add(x)}}},t.type="calendar",t})(Qe),$y=864e5,SJ=(function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,n)}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(t){t=Xo(t);var e=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+a+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){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 n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=tt(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,v){return c[v]!=null&&c[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,n){n=n||[],$(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),i=this._rangeInfo,o=a.formatedDate;if(e&&!(a.time>=i.start.time&&a.time<i.end.time+$y))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,e);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,se.copy(i,a),Mo(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(t,e){var n=this.dataToPoint(t,e);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,a):this._getDateByWeeksAndDay(e,n-1,a)},r.prototype.convertToPixel=function(t,e,n){var a=Uy(e);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(t,e,n){var a=Uy(e);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=Uy(e);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if($(t)&&t.length===1&&(t=t[0]),$(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/$y)-Math.floor(e[0].time/$y)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var i=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Yf({targetModel:i,coordSysType:"calendar",coordSysProvider:kP})}),n},r.dimensions=["time","value"],r})();function Uy(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function xJ(r){r.registerComponentModel(mJ),r.registerComponentView(_J),r.registerCoordinateSystem("calendar",SJ)}var ea={level:1,leaf:2,nonLeaf:3},la={none:0,all:1,body:2,corner:3};function C_(r,t,e){var n=t[de[e]].getCell(r);return!n&&Ee(r)&&r<0&&(n=t[de[1-e]].getUnitLayoutInfo(e,Math.round(r))),n}function HN(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function $N(r,t,e,n,a){eD(r[0],t,a,e,n,0),eD(r[1],t,a,e,n,1)}function eD(r,t,e,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=$(o)?o:[o],l=s.length,u=!!e;if(l>=1?(tD(r,t,s,u,a,i,0),l>1&&tD(r,t,s,u,a,i,l-1)):r[0]=r[1]=NaN,u){var f=-a[de[1-i]].getLocatorCount(i),c=a[de[i]].getLocatorCount(i)-1;e===la.body?f=we(0,f):e===la.corner&&(c=He(-1,c)),c<f&&(f=c=NaN),Ut(r[0])&&(r[0]=f),Ut(r[1])&&(r[1]=c),r[0]=we(He(r[0],c),f),r[1]=we(He(r[1],c),f)}}function tD(r,t,e,n,a,i,o){var s=C_(e[o],a,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[de[i]],u=l,f=TJ(s);f&&(u+=f.span[de[i]]-1),r[0]=He(r[0],l,u),r[1]=we(r[1],l,u)}function hv(r,t){return Ut(r[t][0])||Ut(r[t][1])}function rD(r,t,e,n){t=t||wJ;for(var a=0;a<n;a++)t[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=e[a];!t[a]&&o.cellMergeOwner&&bJ(r,o.locatorRange)&&(t[a]=!0,i=!0)}if(!i)break}}var wJ=[];function bJ(r,t){return!nD(r[0],t[0])||!nD(r[1],t[1])?!1:(r[0][0]=He(r[0][0],t[0][0]),r[0][1]=we(r[0][1],t[0][1]),r[1][0]=He(r[1][0],t[1][0]),r[1][1]=we(r[1][1],t[1][1]),!0)}function nD(r,t){return r[1]>=t[0]&&r[0]<=t[1]}function aD(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function CJ(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function iD(r,t,e,n){var a=C_(t[n][0],e,n),i=C_(t[n][1],e,n);r[de[n]]=r[lt[n]]=NaN,a&&i&&(r[de[n]]=a.xy,r[lt[n]]=i.xy+i.wh-a.xy)}function cu(r,t,e,n){return r[de[t]]=e,r[de[1-t]]=n,r}function TJ(r){return r&&(r.type===ea.leaf||r.type===ea.nonLeaf)?r:null}function vd(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var oD=(function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=AJ(t);var n=e.get("data",!0),a=e.get("length",!0);if(n!=null&&!$(n)&&(n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,n=e._cells,a=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&D(u,function(h,d){var p;j(h)?p={value:h}:fe(h)?(p=h,h.value!=null&&!j(h.value)&&(p={value:null})):p={value:null};var g={type:ea.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new ue,span:cu(new ue,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:vd()};o++,(i[f]||(i[f]=[])).push(g),a[c]||(a[c]={type:ea.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[de[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var c=i[f].pop();if(c){c.ordinal=u.length;var v=c.option.value;u.push(v),n.push(c),e._uniqueValueGen.calcDupBase(v)}}e._uniqueValueGen.ensureValueUnique(u,n);var h=e._ordinalMeta=new vf({categories:u,needCollect:!1,deduplication:!1});e._scale=new pf({ordinalMeta:h});for(var d=0;d<e._leavesCount;d++){var p=e._cells[d];p.type=ea.leaf,p.span[de[1-e.dimIdx]]=e._levels.length-p.level}e._initCellsId(),e._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:ea.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new vf({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=t._cells[a]={type:ea.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new ue,span:cu(new ue,t.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:t,rect:vd()};t._leavesCount++,t._setCellId(i)}});t._scale=new pf({ordinalMeta:e})},r.prototype._setCellId=function(t){var e=this._levels.length,n=this.dimIdx;cu(t.id,n,t.firstLeafLocator,t.level-e)},r.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;D(this._cells,function(n){cu(n.id,e,n.firstLeafLocator,n.level-t)})},r.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,n=this._model.get("levels",!0);n=$(n)?n:[],D(this._levels,function(a,i){cu(a.id,e,0,i-t),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(t,e,n,a){if(t=t||new Ka,e===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,t.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,t.reset(this._levels,o,o+a)}return t},r.prototype.resetCellIterator=function(t){return(t||new Ka).reset(this._cells,0)},r.prototype.resetLevelIterator=function(t){return(t||new Ka).reset(this._levels,0)},r.prototype.getLayout=function(t,e,n){var a=this.getUnitLayoutInfo(e,n);t[de[e]]=a?a.xy:NaN,t[lt[e]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},r.prototype.getCell=function(t){var e=this._scale.parse(t);return Ut(e)?void 0:this._cells[e]},r.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function AJ(r){var t=r.toUpperCase(),e=new RegExp("^"+t+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(e))&&(n=we(n,+l[1]+1))}function i(){return""+t+n++}function o(s,l){for(var u=K(),f=0;f<s.length;f++){var c=s[f];(c==null||u.get(c)!=null)&&(s[f]=c=i(),l[f].option=le({value:c},l[f].option)),u.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var sD=(function(){function r(t,e,n){this._model=e,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=K(),n()),e;function n(){var i=[],o=t._model.getShallow("data");o&&!$(o)&&(o=null),D(o,function(d,p){if(!(!fe(d)||!$(d.coord))){var g=HN([]),y=null;if($N(g,y,d.coord,t._dims,d.coordClamp?la[t._kind]:la.none),!(hv(g,0)||hv(g,1))){var m=d&&d.mergeCells,_={id:new ue,span:new ue,locatorRange:g,option:d,cellMergeOwner:m};aD(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;rD(f,s,i,l);for(var c=0;c<l;c++)s[c]&&(i[c].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var v=G({},u.option);v.coord=null;var h={id:new ue,span:new ue,locatorRange:f,option:v,cellMergeOwner:!0};aD(h,f),i.push(h)}}}D(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=vd(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=lD(i,o),l=e.get(s);return l||(l=e.set(s,{id:new ue(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(t){return this._ensureCellMap().get(lD(t[0],t[1]))},r.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},r.prototype.expandRangeByCellMerge=function(t){if(!hv(t,0)&&!hv(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){Wy[0]=t[0][0],Wy[1]=t[1][0];var e=this.getCell(Wy),n=e&&e.inSpanOf;if(n){CJ(t,n.locatorRange);return}}var a=this._cellMergeOwnerList;rD(t,null,a,a.length)},r})(),Wy=[];function lD(r,t){return r+"|"+t}var Tx={show:!0,color:B.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Ax(r){return{color:"none",borderWidth:1,borderColor:r?"none":B.color.borderTint}}var uD={show:!0,label:Tx,itemStyle:Ax(!1),silent:void 0,dividerLineStyle:{width:1,color:B.color.border}},MJ={label:Tx,itemStyle:Ax(!1),silent:void 0},DJ={label:Tx,itemStyle:Ax(!0),silent:void 0},IJ={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:uD,y:uD,body:MJ,corner:DJ,backgroundStyle:{color:"none",borderColor:B.color.axisLine,borderWidth:1},triggerEvent:!1},LJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new fD(this.get("x",!0)||{}),y:new fD(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var n=e.x.dim=new oD("x",e.x),a=e.y.dim=new oD("y",e.y),i={x:n,y:a};this._body=new sD("body",new Ie(this.getShallow("body")),i),this._corner=new sD("corner",new Ie(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=IJ,t})(Me),fD=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t})(Ie),dv=Math.round,PJ=0,RJ=99,EJ={normal:25,special:100},kJ={normal:50,special:125},OJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n){this.group.removeAll();var a=this.group,i=e.coordinateSystem,o=i.getRect(),s=e.getDimensionModel("x"),l=e.getDimensionModel("y"),u=s.dim,f=l.dim;NJ(a,e,n),BJ(a,e,u,f,n);var c=e.getShallow("borderZ2",!0),v=Q(c,RJ),h=v-1,d=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=T_(o.clone(),d,PJ),y=T_(o.clone(),p,v);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(cD({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(cD({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t})(Qe);function NJ(r,t,e){n(0),n(1);function n(a){var i=t.getDimensionModel(de[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],c=o.resetCellIterator();c.next();){var v=c.item,h={};se.copy(h,v.rect),Xa(f,v.id.x,v.id.y),UN(f,t,r,e,v.option,s,l,i,h,v.option.value,kJ,u,a===0?"x":"y")}}}function BJ(r,t,e,n,a){i("body",t.getBody(),e,n),e.shouldShow()&&n.shouldShow()&&i("corner",t.getCorner(),n,e);function i(o,s,l,u){var f=new Ie(t.getShallow(o,!0)),c=f.getModel("itemStyle"),v=f.getModel("label"),h=new Ka,d=new Ka,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;Xa(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?se.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var x=_?_.option:null;UN(p,t,r,a,x,c,v,f,S,x?x.value:null,EJ,g,o)}}}}function UN(r,t,e,n,a,i,o,s,l,u,f,c,v){var h;pv.option=a?a.itemStyle:null,pv.parentModel=i,Cs.option=a,Cs.parentModel=s;var d=Q(Cs.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=c&&c.show,g=T_(l,pv.getItemStyle(),d);e.add(g);var y=Cs.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";Yi.option=a?a.label:null,Yi.parentModel=o,Yi.ecModel=n;var S=Yi.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:t.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(j(S))_=DP(S,x);else if(ie(S)){var w=S(x);w!=null&&(_=w+"")}}if(Mt(g,{normal:Yi},{defaultText:_,autoOverflowArea:!0,layoutRect:ae(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var b=m.style;if(b&&b.overflow&&b.overflow!=="none"&&b.lineOverflow){var T={};se.copy(T,l),Mo(T,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(gv),Hr(gv,gv),se.applyTransform(T,T,gv),m.setClipPath(new be({shape:T}))}}wa({el:g,componentModel:t,itemName:_,itemTooltipOption:c,formatterParamsExtra:{xyLocator:r.slice()}})}var C=t.get("triggerEvent",!0);if(m){var A=Yi.get("silent");A==null&&(A=!(C||p)),m.silent=A,m.ignoreHostSilent=!0}var M=Cs.get("silent");if(M==null&&(M=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=M,C&&g){var L={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:v,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ce(g).eventData=L}Qp(Cs),Qp(pv),Qp(Yi)}var Cs=new Ie,pv=new Ie,Yi=new Ie,gv=[];function T_(r,t,e){var n=t.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=Sr(r.x,n,!0),r.y=Sr(r.y,n,!0),r.width=Sr(a,n,!0)-r.x,r.height=Sr(i,n,!0)-r.y}return new be({shape:r,style:t,z2:e})}function cD(r,t,e){var n=t.lineWidth;return n&&(dv(r.x1*2)===dv(r.x2*2)&&(r.x1=r.x2=Sr(r.x1,n,!0)),dv(r.y1*2)===dv(r.y2*2)&&(r.y1=r.y2=Sr(r.y1,n,!0))),new dt({shape:r,style:t,silent:!0,z2:e})}var VJ=(function(){function r(t,e,n){this.dimensions=r.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(t,e){var n=[];return t.eachComponent("matrix",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){Yf({targetModel:i,coordSysType:"matrix",coordSysProvider:kP})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(t,e){var n=this._dims,a=this._dimModels,i=this._rect=tt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});vD(a,n,i,0),vD(a,n,i,1),hD(0,n),hD(1,n),dD(this._model.getBody(),n),dD(this._model.getCorner(),n)},r.prototype.dataToPoint=function(t,e,n){return n=n||[],this.dataToLayout(t,e,vu),n[0]=vu.rect.x+vu.rect.width/2,n[1]=vu.rect.y+vu.rect.height/2,n},r.prototype.dataToLayout=function(t,e,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=HN(n.matrixXYLocatorRange);return $(t)&&($N(o,null,t,a,Q(e&&e.clamp,la.none)),(!e||!e.ignoreMergeCells)&&((!e||e.clamp!==la.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!e||e.clamp!==la.body)&&this._model.getCorner().expandRangeByCellMerge(o)),iD(i,o,a,0),iD(i,o,a,1)),n},r.prototype.pointToData=function(t,e,n){var a=this._dims;return pD(pn,0,a,t,e&&e.clamp),pD(pn,1,a,t,e&&e.clamp),n=n||[],n[0]=n[1]=NaN,pn.y===kt.inCorner&&pn.x===kt.inBody?gD(pn,n,0,a):pn.x===kt.inCorner&&pn.y===kt.inBody?gD(pn,n,1,a):(yD(pn,n,0,a),yD(pn,n,1,a)),n},r.prototype.convertToPixel=function(t,e,n,a){var i=Xy(e);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(t,e,n,a){var i=Xy(e);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(t,e,n,a){var i=Xy(e);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},r.dimensions=["x","y","value"],r})(),vu={rect:vd()},yv=new Ka,Yy=new Ka;function vD(r,t,e,n){for(var a=1-n,i=t[de[n]],o=t[de[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=e[lt[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),v=new Ie,h=o.resetLevelIterator();h.next();)v.option=h.item.option,v.parentModel=r[de[a]],g(h.item,s?v.get("levelSize"):0);for(var d=new Ie,p=i.resetCellIterator();p.next();)p.item.type===ea.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(b,T){var C=zJ(T,n,e);Ut(C)||(b.wh=A_(C,f),f=A_(f-b.wh),c--)}var y=c?f/c:0,m=!c&&f>=1,_=e[de[n]],S=i.getLocatorCount(n)-1,x=new Ka;for(o.resetLayoutIterator(x,n);x.next();)w(x.item);for(i.resetLayoutIterator(x,n);x.next();)w(x.item);function w(b){Ut(b.wh)&&(b.wh=y),b.xy=_,b.id[de[n]]===S&&!m&&(b.wh=e[de[n]]+e[lt[n]]-b.xy),_+=b.wh}}function hD(r,t){for(var e=t[de[r]].resetCellIterator();e.next();){var n=e.item;hd(n.rect,r,n.id,n.span,t),hd(n.rect,1-r,n.id,n.span,t),n.type===ea.nonLeaf&&(n.xy=n.rect[de[r]],n.wh=n.rect[lt[r]])}}function dD(r,t){r.travelExistingCells(function(e){var n=e.span;if(n){var a=e.spanRect,i=e.id;hd(a,0,i,n,t),hd(a,1,i,n,t)}})}function hd(r,t,e,n,a){r[lt[t]]=0;var i=e[de[t]],o=i<0?a[de[1-t]]:a[de[t]],s=o.getUnitLayoutInfo(t,e[de[t]]);if(r[de[t]]=s.xy,r[lt[t]]=s.wh,n[de[t]]>1){var l=o.getUnitLayoutInfo(t,e[de[t]]+n[de[t]]-1);r[lt[t]]=l.xy+l.wh-s.xy}}function zJ(r,t,e){var n=gh(r,e[lt[t]]);return A_(n,e[lt[t]])}function A_(r,t){return Math.max(Math.min(r,Q(t,1/0)),0)}function Xy(r){var t=r.matrixModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}var kt={inBody:1,inCorner:2,outside:3},pn={x:null,y:null,point:[]};function pD(r,t,e,n,a){var i=e[de[t]],o=e[de[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=r.point[t]=n[t];if(!l&&!f){r[de[t]]=kt.outside;return}if(a===la.body){l?(r[de[t]]=kt.inBody,c=He(s.xy+s.wh,we(l.xy,c)),r.point[t]=c):r[de[t]]=kt.outside;return}else if(a===la.corner){f?(r[de[t]]=kt.inCorner,c=He(f.xy+f.wh,we(u.xy,c)),r.point[t]=c):r[de[t]]=kt.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(c<h){if(!a){r[de[t]]=kt.outside;return}c=h}else if(c>d){if(!a){r[de[t]]=kt.outside;return}c=d}r.point[t]=c,r[de[t]]=v<=c&&c<=d?kt.inBody:h<=c&&c<=v?kt.inCorner:kt.outside}function gD(r,t,e,n){var a=1-e;if(r[de[e]]!==kt.outside)for(n[de[e]].resetCellIterator(Yy);Yy.next();){var i=Yy.item;if(mD(r.point[e],i.rect,e)&&mD(r.point[a],i.rect,a)){t[e]=i.ordinal,t[a]=i.id[de[a]];return}}}function yD(r,t,e,n){if(r[de[e]]!==kt.outside){var a=r[de[e]]===kt.inCorner?n[de[1-e]]:n[de[e]];for(a.resetLayoutIterator(yv,e);yv.next();)if(FJ(r.point[e],yv.item)){t[e]=yv.item.id[de[e]];return}}}function FJ(r,t){return t.xy<=r&&r<=t.xy+t.wh}function mD(r,t,e){return t[de[e]]<=r&&r<=t[de[e]]+t[lt[e]]}function GJ(r){r.registerComponentModel(LJ),r.registerComponentView(OJ),r.registerCoordinateSystem("matrix",VJ)}function HJ(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function _D(r,t){var e;return D(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function $J(r,t,e){var n=G({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(_e(a,n,!0),Fn(a,n,{ignoreSize:!0}),zP(e,a),mv(e,a),mv(e,a,"shape"),mv(e,a,"style"),mv(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var WN=["transition","enterFrom","leaveTo"],UJ=WN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function mv(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?WN:UJ,a=0;a<n.length;a++){var i=n[a];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function WJ(r,t){if(r&&(r.hv=t.hv=[_D(t,["left","right"]),_D(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var YJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=a},t.prototype.optionUpdated=function(e,n){var a=this.option,i=(n?a:e).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=c2(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var v=f.newOption;v&&(u.push(v),HJ(f,v),$J(o,c,v),WJ(o[c],v))},this),a.elements=Fe(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,a){D(e,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t})(Me),SD={path:null,compoundPath:null,group:oe,image:Rt,text:Re},Er=me(),XJ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,n,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");D(n,function(l){var u=mt(l.id,null),f=u!=null?a.get(u):null,c=mt(l.parentId,null),v=c!=null?a.get(c):i,h=l.type,d=l.style;h==="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&&vk(d,h,!!g,!!p)){var y=hk(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=jJ(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var w=!f,b=f;w?b=xD(u,v,l.type,a):(b&&(Er(b).isNew=!1),DN(b)),b&&(th(b,m,e,{isInit:w}),wD(b,l,o,s))}else if(x){nh(f,l,a,e);var T=xD(u,v,l.type,a);T&&(th(T,m,e,{isInit:!0}),wD(T,l,o,s))}else _==="remove"&&(AN(f,l),nh(f,l,a,e));var C=a.get(u);if(C&&p)if(S){var A=C.getTextContent();A?A.attr(p):C.setTextContent(new Re(p))}else x&&C.setTextContent(new Re(p));if(C){var M=l.clipPath;if(M){var L=M.type,I=void 0,w=!1;if(S){var P=C.getClipPath();w=!P||Er(P).type!==L,I=w?M_(L):P}else x&&(w=!0,I=M_(L));C.setClipPath(I),th(I,M,e,{isInit:w}),ud(I,M.keyframeAnimation,e)}var R=Er(C);C.setTextConfig(g),R.option=l,ZJ(C,e,l),wa({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),ud(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var a=e.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],v=mt(c.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Er(h),y=Er(d);g.width=Z(g.option.width,p?s:y.width)||0,g.height=Z(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],v=mt(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=Er(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Jd(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Er(h).isNew&&S){for(var x=c.transition,w={},b=0;b<u.length;b++){var T=u[b],C=_[T];x&&(So(x)||pe(x,T)>=0)?w[T]=C:h[T]=C}Oe(h,w,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){nh(a,Er(a).option,n,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(Qe);function M_(r){var t=J(SD,r)?SD[r]:wh(r),e=new t({});return Er(e).type=r,e}function xD(r,t,e,n){var a=M_(e);return t.add(a),n.set(r,a),Er(a).id=r,Er(a).isNew=!0,a}function nh(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){nh(i,t,e,n)}),xp(r,t,n),e.removeKey(Er(r).id))}function wD(r,t,e,n){r.isGroup||D([["cursor",Ur.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];J(t,i)?r[i]=Q(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(De(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=ie(i)?i:null}}),J(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function jJ(r){return r=G({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(OP),function(t){delete r[t]}),r}function ZJ(r,t,e){var n=ce(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ce(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function qJ(r){r.registerComponentModel(YJ),r.registerComponentView(XJ),r.registerPreprocessor(function(t){var e=t.graphic;$(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var bD=["x","y","radius","angle","single"],KJ=me(),JJ=["cartesian2d","polar","singleAxis"];function QJ(r){var t=r.get("coordinateSystem");return pe(JJ,t)>=0}function Wa(r){return r+"Axis"}function eQ(r,t){var e=K(),n=[],a=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(e.get(c)||e.set(c,[]))[v]=!0})}return n}function YN(r){var t=r.ecModel,e={infoList:[],infoMap:K()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Wa(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}function XN(r){var t=KJ(PR(r));return t.axisProxyMap||(t.axisProxyMap=K())}function dd(r){if(r)return XN(r.ecModel).get(r.uid)}function tQ(r,t){XN(r.ecModel).set(r.uid,t)}function jN(r,t){var e=t.getAxisModel().axis.__alignTo;return e&&r.getAxisProxy(e.dim,e.model.componentIndex)?dd(e.model):null}var jy=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),kf=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=CD(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=CD(e);_e(this.option,e,!0),_e(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=K(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return D(bD,function(a){var i=this.getReferringComponents(Wa(a),t5);if(i.specified){n=!0;var o=new jy;D(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new jy;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",at).models[0];h&&D(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",at).models[0]&&v.add(d.componentIndex)})}}}i&&D(bD,function(u){if(i){var f=a.findComponents({mainType:Wa(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new jy;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Wa(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){return dd(this.getAxisModel(e,n))},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Wa(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(e,n).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return dd(e);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[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;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(Me);function CD(r){var t={};return D(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var rQ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(kf),Mx=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t})(Qe),nQ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(Mx),aQ=(function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getWindow=function(){return ae(this._window)},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(QJ(e)){var n=Wa(this._dimName),a=e.getReferringComponents(n,at).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ae(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];D(["start","end"],function(_,S){var x=t[_],w=t[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),w=Ve(x,s,e),c[S]=!0):(f=!0,w==null?w=e[S]:(w=a.parse(w),a.sanitize&&(w=a.sanitize(w,e))),x=Ve(w,e,s)),u[S]=w==null||isNaN(w)?e[S]:w,l[S]=x==null||isNaN(x)?s[S]:x}),Nt(u),Nt(l);var v=this._minMaxSpan;f?h(u,l,e,s,!1):h(l,u,s,e,!0);function h(_,S,x,w,b){var T=b?"Span":"ValueSpan";ui(0,_,x,"all",v["min"+T],v["max"+T]);for(var C=0;C<2;C++)S[C]=Ve(_[C],x,w,!0),b&&(S[C]=S[C],c[C]=!0);Gv(S)}var d=Zt(a)||Zf(a),p=n.getExtent(),g=it(p[1]-p[0]),y=d?0:cS(u,g,.5);D([[0,Wo],[1,nn]],function(_){var S=_[0],x=_[1];!c[S]||!isFinite(y)||(u[S]=ke(u[S],y),u[S]=He(e[1],we(e[0],u[S])),l[S]===s[S]&&(u[S]=e[S],d&&(u[S]=x(u[S]))))}),Gv(u);var m=[Ve(u[0],e,s,!0),Ve(u[1],e,s,!0)];return Gv(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;Eo(n,bU);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;e&&(i=le({start:e[0],end:e[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},r.prototype.filterData=function(t,e){if(!this.hostedBy(t))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._window.value;if(i==="none")return;D(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),v=U(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(v[y],h),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else D(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});D(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;D(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ve(n[0]+o,n,[0,100],!0):i!=null&&(o=Ve(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r})(),iQ={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Wa(o),s);a(o,s,l,i)})})}var e=[];t(function(a,i,o,s){if(!dd(o)){var l=new aQ(a,i,s,r);e.push(l),tQ(o,l)}});var n=K();return D(e,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){var n=[];e.eachTargetAxis(function(a,i){var o=e.getAxisProxy(a,i),s=jN(e,o);s?n.push([o,s]):o.reset(e,null)}),D(n,function(a){a[0].reset(e,a[1].getWindow().percentInverted)}),e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;e.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function oQ(r){r.registerAction("dataZoom",function(t,e){var n=eQ(e,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var sQ=Cl();function Dx(r){sQ(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,iQ),oQ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function lQ(r){r.registerComponentModel(rQ),r.registerComponentView(nQ),Dx(r)}var En=(function(){function r(){}return r})(),ZN={};function Rs(r,t){ZN[r]=t}function qN(r){return ZN[r]}var uQ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=G({},o),i.feature={}),r.prototype.init.call(this,e,n,a),o&&(i.feature=o)},t.prototype.optionUpdated=function(){D(this.option.feature,function(e,n){var a=this._themeFeatureOption,i=qN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(_e(e,a[n]),a[n]=null),_e(e,i.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:B.size.m,itemSize:15,itemGap:B.size.s,showTitle:!0,iconStyle:{borderColor:B.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:B.color.accent70}},tooltip:{show:!1,position:"bottom"}},t})(Me);function KN(r,t){var e=Uf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new be({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var fQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features=K()),c=[];D(u,function(m,_){c.push(_)}),new ya(this._featureNames||[],c).add(v).update(v).remove(xe(v,null)).execute(),this._featureNames=Fe(c,function(m){return f.hasKey(m)});function v(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,w=m==null,b=S||x?c[m]:c[_],T=u[b],C=S||x?new Ie(T,e,n):null,A=C&&C.get("show"),M;if(S){if(!A)return;if(cQ(b))M={onclick:C.option.onclick,featureName:b};else{var L=qN(b);if(!L)return;M=new L}f.set(b,M)}else M=f.get(b);if(w||!A){TD(M)&&M.dispose&&M.dispose(n,a),f.removeKey(b);return}i&&i.newTitle!=null&&i.featureName===b&&(T.title=i.newTitle),S&&(M.uid=qo("toolbox-feature")),M.model=C,M.ecModel=n,M.api=a,h(C,M,b),C.setIconStatus=function(I,P){var R=this.option,E=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[I]=P,E[I]&&(P==="emphasis"?pa:ga)(E[I])},TD(M)&&M.render&&M.render(C,n,a,i)}function h(m,_,S){var x=m.getModel("iconStyle"),w=m.getModel(["emphasis","iconStyle"]),b=_ instanceof En&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,A;j(b)?(C={},C[S]=b):C=b,j(T)?(A={},A[S]=T):A=T;var M=m.iconPaths={};D(C,function(L,I){var P=$f(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=w.getItemStyle();var E=new Re({style:{text:A[I],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:RS({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),wa({el:P,componentModel:e,itemName:I,formatterParamsExtra:{title:A[I]}}),P.__title=A[I],P.on("mouseover",function(){var N=w.getItemStyle(),O=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:w.get("textFill")||N.fill||N.stroke||B.color.neutral99,backgroundColor:w.get("textBackgroundColor")}),P.setTextConfig({position:w.get("textPosition")||O}),E.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(m.get(["iconStatus",I])==="emphasis"?pa:ga)(P),o.add(P),P.on("click",q(_.onclick,_,n,a,I)),M[I]=P})}var d=bt(e,a).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=tt(p,d,g);mo(e.get("orient"),o,e.get("itemGap"),y.width,y.height),Jd(o,p,d,g),o.add(KN(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),w=m.getTextContent(),b=w&&w.ensureState("emphasis");if(b&&!ie(b)&&_){var T=b.style||(b.style={}),C=Rd(_,Re.makeFont(T)),A=m.x+o.x,M=m.y+o.y+s,L=!1;M+C.height>a.getHeight()&&(x.position="top",L=!0);var I=L?-5-C.height:s+10;A+C.width/2>a.getWidth()?(x.position=["100%",I],T.align="right"):A-C.width/2<0&&(x.position=[0,I],T.align="left")}})},t.prototype.updateView=function(e,n,a,i){D(this._features,function(o){o&&o instanceof En&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.dispose=function(e,n){D(this._features,function(a){a&&a instanceof En&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t})(Qe);function cQ(r){return r.indexOf("my")===0}function TD(r){return r instanceof En}var vQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||B.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Le.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var w=a.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=i}},t.getDefaultOption=function(e){var n={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:B.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t})(En),AD="__ec_magicType_stack__",hQ=[["line","bar"],["stack"]],dQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return D(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(MD[a]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=MD[a](v,h,c,i);d&&(le(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,at).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(hQ,function(c){pe(c,a)>=0&&D(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=_e({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t})(En),MD={line:function(r,t,e,n){if(r==="bar")return _e({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return _e({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===AD;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),_e({id:t,stack:a?"":AD},n.get(["option","stack"])||{},!0)}};Wn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var wp=new Array(60).join("-"),ml=" ";function pQ(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=KY(o);t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function gQ(r){var t=[];return D(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(U(e.series,function(h){return h.name})),l=[a.model.getCategories()];D(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ml)],f=0;f<l[0].length;f++){for(var c=[],v=0;v<l.length;v++)c.push(l[v][f]);u.push(c.join(ml))}t.push(u.join(`
54
+ `))}),t.join(`
55
+
56
+ `+wp+`
57
+
58
+ `)}function yQ(r){return U(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+ml:"")+a.join(ml))}),n.join(`
59
+ `)}).join(`
60
+
61
+ `+wp+`
62
+
63
+ `)}function mQ(r){var t=pQ(r);return{value:Fe([gQ(t.seriesGroupByCategoryAxis),yQ(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
64
+
65
+ `+wp+`
66
+
67
+ `),meta:t.meta}}function pd(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _Q(r){var t=r.slice(0,r.indexOf(`
68
+ `));if(t.indexOf(ml)>=0)return!0}var D_=new RegExp("["+ml+"]+","g");function SQ(r){for(var t=r.split(/\n+/g),e=pd(t.shift()).split(D_),n=[],a=U(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=pd(t[i]).split(D_);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function xQ(r){for(var t=r.split(/\n+/g),e=pd(t.shift()),n=[],a=0;a<t.length;a++){var i=pd(t[a]);if(i){var o=i.split(D_),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function wQ(r,t){var e=r.split(new RegExp(`
69
+ *`+wp+`
70
+ *`,"g")),n={series:[]};return D(e,function(a,i){if(_Q(a)){var o=SQ(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=xQ(a);n.series.push(o)}}),n}var bQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.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")||B.color.neutral00;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"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),v=i.get("contentToOption"),h=mQ(e);if(ie(c)){var d=c(n.getOption());j(d)?u.innerHTML=d:Qs(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.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"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function w(){a.removeChild(o),x._dom=null}Om(_,"click",w),Om(S,"click",function(){if(v==null&&c!=null||v!=null&&c==null){w();return}var b;try{ie(v)?b=v(u,n.getOption()):b=wQ(f.value,g)}catch(T){throw w(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),w()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.dispose=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){var n={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:B.color.background,textColor:B.color.primary,textareaColor:B.color.background,textareaBorderColor:B.color.border,buttonColor:B.color.accent50,buttonTextColor:B.color.neutral00};return n},t})(En);function CQ(r,t){return U(r,function(e,n){var a=t&&t[n];if(fe(a)&&!$(a)){var i=fe(e)&&!$(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=le(e,a),o&&delete e.name,e}else return e})}Wn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];D(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(G({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:CQ(n.data,i)})}}),t.mergeOption(le({series:e},r.newOption))});var JN=D,QN=me();function TQ(r,t){var e=Ix(r);JN(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function AQ(r){var t=Ix(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return JN(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function MQ(r){QN(r).snapshots=null}function DQ(r){return Ix(r).length}function Ix(r){var t=QN(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var IQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){MQ(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t})(En);Wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var LQ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Lx=(function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=DD(e,t);D(PQ,function(o,s){(!n||!n.include||pe(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Zy[n.brushType](0,i,a);n.__rangeOffset={offset:RD[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){D(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&D(i.coordSyses,function(o){var s=Zy[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){D(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Zy[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?RD[n.brushType](i.values,o.offset,RQ(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return U(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:iN(a),isTargetByCursor:sN(a,t,n.coordSysModel),getLinearBrushOtherExtent:oN(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&pe(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=DD(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<ID.length;l++)if(ID[l](a,o))return o}return!0},r})();function I_(r){return r[0]>r[1]&&r.reverse(),r}function DD(r,t){return $s(r,t,{includeMainTypes:LQ})}var PQ={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=K(),o={},s={};!e&&!n&&!a||(D(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,v){(pe(e,c.getAxis("x").model)>=0||pe(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:LD.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){D(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:LD.geo})})}},ID=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],LD={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,t=aO(null,r);return IL(t,t,Jh(null,r)),t}},Zy={lineX:xe(PD,0),lineY:xe(PD,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[I_([a[0],i[0]]),I_([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[Ot(),Ot()],i=U(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function PD(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=I_(U([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var RD={lineX:xe(ED,0),lineY:xe(ED,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return U(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function ED(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function RQ(r,t){var e=kD(r),n=kD(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function kD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var L_=D,EQ=qF("toolbox-dataZoom_"),kQ={x:"width",y:"height"},OQ=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new J1(a.getZr()),this._brushController.on("brush",q(this._onBrush,this)).mount()),VQ(e,n,this,i,a),BQ(e,n)},t.prototype.onclick=function(e,n,a){NQ[a].call(this)},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Lx(Px(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var v=c.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",c,v,f[0]),s("y",c,v,f[1])):s({lineX:"x",lineY:"y"}[h],c,v,f)}}),TQ(i,a),this._dispatchZoomAction(a);function s(u,f,c,v){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(v=ui(0,v.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=cS(y,c[kQ[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?ke(v[0],m):v[0],endValue:isFinite(m)?ke(v[1],m):v[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var n=[];L_(e,function(a,i){n.push(ae(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:B.color.backgroundTint}};return n},t})(En),NQ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(AQ(this.ecModel))}};function Px(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function BQ(r,t){r.setIconStatus("back",DQ(t)>1?"emphasis":"normal")}function VQ(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Lx(Px(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}F3("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=Px(n),o=$s(r,i);L_(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),L_(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:EQ+u+c};v[f]=c,a.push(v)}return a});function zQ(r){r.registerComponentModel(uQ),r.registerComponentView(fQ),Rs("saveAsImage",vQ),Rs("magicType",dQ),Rs("dataView",bQ),Rs("dataZoom",OQ),Rs("restore",IQ),Se(lQ)}var FQ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},t})(Me);function eB(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function tB(r){if(Le.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var rB=tB(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GQ=tB(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function nB(r,t){if(!r)return t;t=AP(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function HQ(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var $Q=nB(GQ,"transition"),Rx=nB(rB,"transform"),UQ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Le.transform3dSupported?"will-change:transform;":"");function WQ(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function YQ(r,t,e){if(!j(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=Io(t);var i=WQ(e),o=Math.max(Math.round(a)*1.5,6),s="",l=Rx+":",u;pe(["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 f=u*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function XQ(r,t,e){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return e&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+r+"s "+n,i+=(i.length?",":"")+(Le.transformSupported?""+Rx+a:",left"+a+",top"+a)),$Q+":"+i}function OD(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Le.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Le.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+Rx+":"+o+";":[["top",0],["left",0],[rB,o]]}function jQ(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var a=Q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),D(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function ZQ(r,t,e,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=yR(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),t&&i>0&&a.push(XQ(i,e,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var p="border-"+d,g=AP(p),y=r.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(jQ(c)),v!=null&&a.push("padding:"+Uf(v).join("px ")+"px"),a.join(";")+";"}function ND(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&yz(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var qQ=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Le.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(j(i)?document.querySelector(i):Qs(i)?i:ie(i)&&i(t.getDom()));ND(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Lr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=HQ(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=UQ+ZQ(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+OD(i[0],i[1],!0)+("border-color:"+Io(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(j(i)&&n.get("trigger")==="item"&&!eB(n)&&(s=YQ(n,a,i)),j(t))o.innerHTML=t+s;else if(t){o.innerHTML="",$(t)||(t=[t]);for(var l=0;l<t.length;l++)Qs(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(ND(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=OD(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Le.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;mz(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},r})(),KQ=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),VD(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,a,i){var o=this;fe(t)&&ze(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Re({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:yR(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["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(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=BD(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var a=this._styleCoord;VD(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=ka(i.borderWidth||0),s=BD(i);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function ka(r){return Math.max(0,r)}function BD(r){var t=ka(r.shadowBlur||0),e=ka(r.shadowOffsetX||0),n=ka(r.shadowOffsetY||0);return{left:ka(t-e),right:ka(t+e),top:ka(t-n),bottom:ka(t+n)}}function VD(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var JQ=new be({shape:{x:-1,y:-1,width:2,height:2}}),QQ=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(Le.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=n5(a.get("renderMode"));this._tooltipContent=i==="richText"?new KQ(n):new qQ(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(Le.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Pl(this,"_updatePosition",50,"fixRate"):ff(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");BN("itemTooltip",this._api,q(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(e.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Le.node||!a.getDom())){var o=zD(i,a);this._ticket="";var s=i.dataByCoordSys,l=nee(i,n,a);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 f=JQ;f.x=i.x,f.y=i.y,f.update(),ce(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},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(e,n,a,i))return;var c=VN(i,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(zD(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=hu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=ce(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;uo(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ce(f).dataIndex!=null?l=f:ce(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hu([n.tooltipOption],i),l=this._renderMode,u=[],f=pt("section",{blocks:[],noHeader:!0}),c=[],v=new Tg;D(e,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,w=S.axis,b=w.scale.parse(x);if(!(!S||x==null)){var T=kN(x,w,a,_.seriesDataIndices,_.valueLabelOpt),C=pt("section",{header:T,noHeader:!Vr(T),sortBlocks:!0,blocks:[]});f.blocks.push(C),D(_.seriesDataIndices,function(A){var M=a.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,I=M.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Vh(S.axis,{value:b}),I.axisValueLabel=T,I.marker=v.makeTooltipMarker("item",Io(I.color),l);var P=Wb(M.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=hu([M],i).get("valueFormatter");C.blocks.push(E?G({valueFormatter:E},R):R)}P.text&&c.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=Kb(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
71
+
72
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=ce(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=e.positionDefault,p=hu([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Tg;y.marker=m.makeTooltipMarker("item",Io(y.color),h);var _=Wb(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),w=_.frag,b=w?Kb(x?G({valueFormatter:x},w):w,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=ce(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(j(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ae(l),l.content=Qt(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=e.positionDefault,d=hu(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Tg;this._showOrMove(d,function(){var m=ae(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(j(v)){var g=e.ecModel.get("useUTC"),y=$(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Kd(y.axisValue,h,g)),h=MP(h,a,!0)}else if(ie(v)){var _=q(function(S,x){S===this._ticket&&(c.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i,o){if(a==="axis"||$(n))return{color:i||o};if(!$(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ie(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),$(n))a=Z(n[0],u),i=Z(n[1],f);else if(fe(n)){var p=n;p.width=c[0],p.height=c[1];var g=tt(p,{width:u,height:f});a=g.x,i=g.y,v=null,h=null}else if(j(n)&&l){var y=ree(n,d,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=eee(a,i,o,u,f,v?null:20,h?null:20);a=y[0],i=y[1]}if(v&&(a-=FD(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=FD(h)?c[1]/2:h==="bottom"?c[1]:0),eB(e)){var y=tee(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Le.node||!n.getDom()||(ff(this,"_updatePosition"),this._tooltipContent.dispose(),w_("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(Qe);function hu(r,t,e){var n=t.ecModel,a;e?(a=new Ie(e,n,n),a=new Ie(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(a=new Ie(o,a,n)))}return a}function zD(r,t){return r.dispatchAction||q(t.dispatchAction,t)}function eee(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function tee(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ree(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function FD(r){return r==="center"||r==="middle"}function nee(r,t,e){var n=gS(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=bl(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ce(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function aee(r){Se(ic),r.registerComponentModel(FQ),r.registerComponentView(QQ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var iee=["rect","polygon","keep","clear"];function oee(r,t){var e=Ye(r?r.brush:[]);if(e.length){var n=[];D(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;$(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Od(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,iee)}}var GD=D;function HD(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function P_(r,t,e){var n={};return GD(t,function(i){var o=n[i]=a();GD(r[i],function(s,l){if(At.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new At(u),l==="opacity"&&(u=ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new At(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function aB(r,t,e){var n;D(e,function(a){t.hasOwnProperty(a)&&HD(t[a])&&(n=!0)}),n&&D(e,function(a){t.hasOwnProperty(a)&&HD(t[a])?r[a]=ae(t[a]):delete r[a]})}function see(r,t,e,n,a,i){var o={};D(r,function(c){var v=At.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return QS(e,s,c)}function u(c,v){MR(e,s,c,v)}e.each(f);function f(c,v){s=c;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function lee(r,t,e,n){var a={};return D(r,function(i){var o=At.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return QS(s,c,x)}function f(x,w){MR(s,c,x,w)}for(var c,v=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=n!=null?v.get(l,c):c,p=e(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function uee(r){var t=r.brushType,e={point:function(n){return $D[t].point(n,e,r)},rect:function(n){return $D[t].rect(n,e,r)}};return e}var $D={lineX:UD(0),lineY:UD(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&to(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(to(n,a,i)||to(n,a+o,i)||to(n,a,i+s)||to(n,a+o,i+s)||se.create(r).contain(l[0],l[1])||bu(a,i,a+o,i,n)||bu(a,i,a,i+s,n)||bu(a+o,i,a+o,i+s,n)||bu(a,i+s,a+o,i+s,n))return!0}}};function UD(r){var t=["x","y"],e=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return du(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),du(s[0],o)||du(s[1],o)||du(o[0],s)||du(o[1],s)}}}}function du(r,t){return t[0]<=r&&r<=t[1]}var WD=["inBrush","outOfBrush"],qy="__ecBrushSelect",R_="__ecInBrushSelectEvent";function iB(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new Lx(t.option,r);e.setInputRanges(t.areas,r)})}var fee=Vf(cee);function cee(r,t,e){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),iB(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ae(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],v=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=U(o.areas,function(x){var w=pee[x.brushType],b=le({boundingRect:w?w(x):void 0},x);return b.selectors=uee(b),b}),g=P_(o.option,WD,function(x){x.mappingMethod="fixed"});$(f)&&D(f,function(x){c[x]=1});function y(x){return f==="all"||!!c[x]}function m(x){return!!x.length}r.eachSeries(function(x,w){var b=h[w]=[];x.subType==="parallel"?_(x,w):S(x,w,b)});function _(x,w){var b=x.coordinateSystem;d=d||b.hasAxisBrushed(),y(w)&&b.eachActiveState(x.getData(),function(T,C){T==="active"&&(v[C]=1)})}function S(x,w,b){if(!(!x.brushSelector||dee(o,w))&&(D(p,function(C){o.brushTargetManager.controlSeries(C,x,r)&&b.push(C),d=d||m(b)}),y(w)&&m(b))){var T=x.getData();T.each(function(C){YD(x,b,T,C)&&(v[C]=1)})}}r.eachSeries(function(x,w){var b={seriesId:x.id,seriesIndex:w,seriesName:x.name,dataIndex:[]};l.selected.push(b);var T=h[w],C=x.getData(),A=y(w)?function(M){return v[M]?(b.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return YD(x,T,C,M)?(b.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(w)?d:m(T))&&see(WD,g,C,A)})}),vee(t,a,i,n,e)}function vee(r,t,e,n,a){if(a){var i=r.getZr();if(!i[R_]){i[qy]||(i[qy]=hee);var o=Pl(i,qy,e,t);o(r,n)}}}function hee(r,t){if(!r.isDisposed()){var e=r.getZr();e[R_]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[R_]=!1}}function YD(r,t,e,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(r.brushSelector(n,e,o.selectors,o))return!0}}function dee(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&($(e)?pe(e,t)<0:t!==e)}var pee={rect:function(r){return XD(r.range)},polygon:function(r){for(var t,e=r.range,n=0,a=e.length;n<a;n++){t=t||[Ot(),Ot()];var i=e[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&XD(t)}};function XD(r){return new se(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var gee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new J1(n.getZr())).on("brush",q(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){iB(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ae(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ae(a),$from:n})},t.type="brush",t})(Qe),yee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&aB(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=U(e,function(n){return jD(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=jD(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:B.color.backgroundTint,borderColor:B.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:B.color.disabled},t})(Me);function jD(r,t){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ie(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var mee=["rect","polygon","lineX","lineY","keep","clear"],_ee=(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return D(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:mee.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:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t})(En);function See(r){r.registerComponentView(gee),r.registerComponentModel(yee),r.registerPreprocessor(oee),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,fee),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ot),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ot),Rs("brush",_ee)}var xee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},t})(Me),wee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Q(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Re({style:je(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Re({style:je(s,{text:v,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){Mh(d,"_"+e.get("target"))}),p&&h.on("click",function(){Mh(p,"_"+e.get("subtarget"))}),ce(f).eventData=ce(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=bt(e,a),S=tt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var w=S.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var T=new be({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t})(Qe);function bee(r){r.registerComponentModel(xee),r.registerComponentView(wee)}var ZD=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=mt(wl(u),""),v;fe(u)?(v=ae(u),v.value=f):v=f,o.push(v),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new nr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:B.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:B.color.secondary},data:[]},t})(Me),oB=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=yi(ZD.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:B.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:B.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:B.color.tertiary},itemStyle:{color:B.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:B.color.accent60},itemStyle:{color:B.color.accent60,borderColor:B.color.accent60},controlStyle:{color:B.color.accent70,borderColor:B.color.accent70}},progress:{lineStyle:{color:B.color.accent30},itemStyle:{color:B.color.accent40}},data:[]}),t})(ZD);xt(oB,ep.prototype);var Cee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t})(Qe),Tee=(function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(un),Ky=Math.PI,qD=me(),Aee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return pt("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),o=Mee(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":j(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Ky/2},c=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Ky/180;var m,_,S,x=v.get("position",!0),w=h&&v.get("showPlayBtn",!0),b=h&&v.get("showPrevBtn",!0),T=h&&v.get("showNextBtn",!0),C=0,A=c;x==="left"||x==="bottom"?(w&&(m=[0,0],C+=g),b&&(_=[C,0],C+=g),T&&(S=[A-d,0],A-=g)):(w&&(m=[A-d,0],A-=g),b&&(_=[0,0],C+=g),T&&(S=[A-d,0],A-=g));var M=[C,A];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=nt(),l=o.x,u=o.y+o.height;On(s,s,[-l,-u]),pi(s,s,-Ky/2),On(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),v=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||j(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=e.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,w,b,T){S[b]+=w[b][T]-x[b][T]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=qf(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),TE(o,{fixMinMax:[!0,!0]});var l=new Tee("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new oe;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new dt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new dt({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});n.add(l)}},t.prototype._renderAxisTick=function(e,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:q(o._changeTimeline,o,u.value)},g=KD(c,v,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),yo(g);var y=ce(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){if(!f.tick.offInterval){var c=f.tick.value,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=a.dataToCoord(c),y=new Re({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:q(o._changeTimeline,o,c),silent:!1,style:je(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=je(d),y.ensureState("progress").style=je(p),n.add(y),yo(y),qD(y).dataIndex=c,o._tickLabels.push(y)}})}},t.prototype._renderControl=function(e,n,a,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(e.nextBtnPosition,"next",q(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",q(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",q(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=Bn(Q(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Dee(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),yo(_)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=q(u._handlePointerDrag,u),c.ondragend=q(u._handlePointerDragend,u),JD(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){JD(c,u._progressLine,s,a,i)}};this._currentPointer=KD(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,o=Nt(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return en(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<a&&(a=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<e);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",qD(a[i]).dataIndex<=e)},t.type="timeline.slider",t})(Cee);function Mee(r,t){return tt(r.getBoxLayoutParams(),bt(r,t).refContainer,r.get("padding"))}function Dee(r,t,e,n){var a=n.style,i=$f(r.get(["controlStyle",t]),n||{},new se(e[0],e[1],e[2],e[3]));return a&&i.setStyle(a),i}function KD(r,t,e,n,a,i){var o=t.get("color");if(a)a.setColor(o),e.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=gt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),e.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=_e({rectHover:!0,z2:100},n,!0);var u=El(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Qo(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function JD(r,t,e,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.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),t&&t.animateTo({shape:{x2:s}},l)}}}function Iee(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),le({currentIndex:a.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function Lee(r){var t=r&&r.timeline;$(t)||(t=t?[t]:[]),D(t,function(e){e&&Pee(e)})}function Pee(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),QD(r),ao(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ao(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ao(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}D(r.data||[],function(a){fe(a)&&!$(a)&&(!ao(a,"value")&&ao(a,"name")&&(a.value=a.name),QD(a))})}function QD(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!ao(a,s)&&(a[s]=o)}),e.label&&!ao(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function ao(r,t){return r.hasOwnProperty(t)}function Ree(r){r.registerComponentModel(oB),r.registerComponentView(Aee),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Iee(r),r.registerPreprocessor(Lee)}function Ex(r,t){if(!r)return!1;for(var e=$(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function _v(r){wo(r,"label",["show"])}var Sv=me(),$n=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Le.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Sv(s)[o];if(!l||!l.data){Sv(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&_v(l),D(l.data,function(f){f instanceof Array?(_v(f[0]),_v(f[1])):_v(f)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Sv(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return pt("section",{header:this.name,blocks:[pt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var a=ep.prototype.getDataParams.call(this,e,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(e,n){return Sv(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(Me);xt($n,ep.prototype);var Eee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})($n);function E_(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function kee(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function xv(r,t,e,n,a,i,o){var s=[],l=si(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=gd(t,u,r),c=t.hostModel,v=c.indicesOfNearest(e,u,f)[0];s[i]=t.get(n,v),s[o]=t.get(u,v);var h=t.get(a,v),d=ta(t.get(a,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var wv={min:xe(xv,"min"),max:xe(xv,"max"),average:xe(xv,"average"),median:xe(xv,"median")};function Of(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!kee(t)&&!$(t.coord)&&$(a)){var i=sB(t,e,n,r);if(t=ae(t),t.type&&wv[t.type]&&i.baseAxis&&i.valueAxis){var o=pe(a,i.baseAxis.dim),s=pe(a,i.valueAxis.dim),l=wv[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!$(a)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&wv[t.type]){var f=n.getOtherAxis(u);f&&(t.value=gd(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)wv[c[v]]&&(c[v]=gd(e,e.mapDimension(a[v]),c[v]));return t}}function sB(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(Oee(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Oee(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Nf(r,t){return r&&r.containData&&t.coord&&!E_(t)?r.containData(t.coord):!0}function Nee(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!E_(t)&&!E_(e)?r.containZone(t.coord,e.coord):!0}function lB(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Qa(o,t[i])}:function(e,n,a,i){return Qa(e.value,t[i])}}function gd(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Jy=me(),kx=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Jy(s).keep=!1}),n.eachSeries(function(s){var l=$n.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Jy(s).keep&&i.group.remove(s.group)}),Bee(n,o,this.type)},t.prototype.markKeep=function(e){Jy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;D(e,function(i){var o=$n.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?V2(l):TS(l))})}})},t.type="marker",t})(Qe);function Bee(r,t,e){r.eachSeries(function(n){var a=$n.getMarkerModelFromSeries(n,e),i=t.get(n.id);if(a&&i&&i.group){var o=Do(a),s=o.z,l=o.zlevel;jd(i.group,s,l)}})}function eI(r,t,e){var n=t.coordinateSystem,a=e.getWidth(),i=e.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=Z(l.get("x"),f)+v,g=Z(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var y=r.get(n.dimensions[0],s),m=r.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var Vee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=$n.getMarkerModelFromSeries(i,"markPoint");o&&(eI(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new tc),c=zee(o,e,n);n.setData(c),eI(n.getData(),e,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ie(d)||ie(p)||ie(g)||ie(y)){var _=n.getRawValue(v),S=n.getDataParams(v);ie(d)&&(d=d(_,S)),ie(p)&&(p=p(_,S)),ie(g)&&(g=g(_,S)),ie(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),w=h.get("z2"),b=Xf(l,"color");x.fill||(x.fill=b),c.setItemVisual(v,{z2:Q(w,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){ce(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t})(kx);function zee(r,t,e){var n;r?n=U(r&&r.dimensions,function(s){var l=t.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return G(G({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,e),i=U(e.get("data"),xe(Of,t));r&&(i=Fe(i,xe(Nf,r)));var o=lB(!!r,n);return a.initData(i,null,o),a}function Fee(r){r.registerComponentModel(Eee),r.registerComponentView(Vee),r.registerPreprocessor(function(t){Ex(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Gee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.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"},t})($n),bv=me(),Hee=function(r,t,e,n){var a=r.getData(),i;if($(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=tr(n.yAxis,n.xAxis);else{var u=sB(n,a,t,r);s=u.valueAxis;var f=nE(a,u.valueDataDim);l=gd(a,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=ae(n),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&Ee(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Of(r,i[0]),Of(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function yd(r){return!isNaN(r)&&!isFinite(r)}function tI(r,t,e,n){var a=1-r,i=n.dimensions[r];return yd(t[a])&&yd(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function $ee(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(tI(1,e,n,r)||tI(0,e,n,r)))return!0}return Nf(r,t[0])&&Nf(r,t[1])}function Qy(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=Z(o.get("x"),a.getWidth()),u=Z(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([c,v])}if(Oo(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;yd(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):yd(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var Uee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=$n.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=bv(o).from,u=bv(o).to;l.each(function(f){Qy(l,f,!0,i,a),Qy(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new K1);this.group.add(f.group);var c=Wee(o,e,n),v=c.from,h=c.to,d=c.line;bv(n).from=v,bv(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");$(p)||(p=[p,p]),$(g)||(g=[g,g]),$(y)||(y=[y,y]),$(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),w=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var b=x.get("z2");w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:Q(b,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){ce(S).dataModel=n,S.traverse(function(x){ce(x).dataModel=n})});function _(S,x,w){var b=S.getItemModel(x);Qy(S,x,w,e,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Xf(l,"color")),S.setItemVisual(x,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:Q(b.get("symbolOffset",!0),m[w?0:1]),symbolRotate:Q(b.get("symbolRotate",!0),y[w?0:1]),symbolSize:Q(b.get("symbolSize"),g[w?0:1]),symbol:Q(b.get("symbol",!0),p[w?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t})(kx);function Wee(r,t,e){var n;r?n=U(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,e),i=new nr(n,e),o=new nr([],e),s=U(e.get("data"),xe(Hee,t,r,e));r&&(s=Fe(s,xe($ee,r)));var l=lB(!!r,n);return a.initData(U(s,function(u){return u[0]}),null,l),i.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function Yee(r){r.registerComponentModel(Gee),r.registerComponentView(Uee),r.registerPreprocessor(function(t){Ex(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Xee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})($n),Cv=me(),jee=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Of(r,a),s=Of(r,i),l=o.coord,u=s.coord;l[0]=tr(l[0],-1/0),l[1]=tr(l[1],-1/0),u[0]=tr(u[0],1/0),u[1]=tr(u[1],1/0);var f=aS([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function md(r){return!isNaN(r)&&!isFinite(r)}function rI(r,t,e,n){var a=1-r;return md(t[a])&&md(e[a])}function Zee(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Oo(r,"cartesian2d")?e&&n&&(rI(1,e,n)||rI(0,e,n))?!0:Nee(r,a,i):Nf(r,a)||Nf(r,i)}function nI(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=Z(o.get(e[0]),a.getWidth()),u=Z(o.get(e[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];e[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],e[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Oo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);md(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):md(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var aI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qee=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=$n.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(aI,function(c){return nI(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new oe});this.group.add(f.group),this.markKeep(f);var c=Kee(o,e,n);n.setData(c),c.each(function(v){var h=U(aI,function(A){return nI(c,v,A,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];Nt(m),Nt(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;c.setItemLayout(v,{points:h,allClipped:x});var w=c.getItemModel(v),b=w.getModel("itemStyle").getItemStyle(),T=w.get("z2"),C=Xf(l,"color");b.fill||(b.fill=C,j(b.fill)&&(b.fill=fh(b.fill,.4))),b.stroke||(b.stroke=C),c.setItemVisual(v,"style",b),c.setItemVisual(v,"z2",Q(T,0))}),c.diff(Cv(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new jt({z2:Q(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=Cv(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Oe(d,{z2:Q(g,0),shape:{points:p.points}},n,v):d=new jt({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=Cv(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),Mt(v,St(d),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:j(p.fill)?fh(p.fill,1):B.color.neutral99}),_t(v,d),et(v,null,null,d.get(["emphasis","disabled"])),ce(v).dataModel=n}),Cv(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t})(kx);function Kee(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})});a=U(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new nr(a,e)}else a=[{name:"value",type:"float"}],n=new nr(a,e);var s=U(e.get("data"),xe(jee,t,r,e));r&&(s=Fe(s,xe(Zee,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return Qa(h,a[v])}:function(u,f,c,v){return Qa(u.value,a[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}function Jee(r){r.registerComponentModel(Xee),r.registerComponentView(qee),r.registerPreprocessor(function(t){Ex(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Qee=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},k_=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),$(n)&&D(n,function(i,o){j(i)&&(i={type:i}),n[o]=_e(i,Qee(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&pS(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=K(),s=U(i,function(l){return(j(l)||Ee(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ie(l,this,this.ecModel))},this);this._data=Fe(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;D(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;D(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&pe(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.color.disabled,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:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Me),Ts=xe,O_=D,Tv=oe,uB=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tv),this.group.add(this._selectorGroup=new Tv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=bt(e,a).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=tt(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=tt(le({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KN(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=K(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),O_(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
73
+ `)){var m=new Tv;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),b=S.getVisual("style"),T=this._createItem(_,y,p,d,n,e,x,b,w,c,i);T.on("click",Ts(iI,y,null,i,h)).on("mouseover",Ts(N_,_.name,null,i,h)).on("mouseout",Ts(B_,_.name,null,i,h)),a.ssr&&T.eachChild(function(C){var A=ce(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(C){var A=this;if(!f.get(y)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(y))return;var L=M.indexOfName(y),I=M.getItemVisual(L,"style"),P=M.getItemVisual(L,"legendIcon"),R=hr(I.fill);R&&R[3]===0&&(R[3]=.2,I=G(G({},I),{fill:An(R,"rgba")}));var E=this._createItem(C,y,p,d,n,e,{},I,P,c,i);E.on("click",Ts(iI,null,y,i,h)).on("mouseover",Ts(N_,null,y,i,h)).on("mouseout",Ts(B_,null,y,i,h)),a.ssr&&E.eachChild(function(N){var O=ce(N);O.seriesIndex=C.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),v&&E.eachChild(function(N){A.packEventData(N,n,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(e,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ce(e).eventData=s},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();O_(e,function(u){var f=u.type,c=new Re({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Mt(c,{normal:v,emphasis:h},{defaultText:u.title}),yo(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=ete(f,i,l,u,h,g,v),x=new Tv,w=i.getModel("textStyle");if(ie(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(tte({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=n;j(A)&&A?M=A.replace("{name}",n??""):ie(A)&&(M=A(n));var L=g?w.getTextColor():i.get("inactiveColor");x.add(new Re({style:je(w,{text:M,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new be({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&wa({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!c,this.getContentGroup().add(x),yo(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();mo(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){mo("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Qe);function ete(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),O_(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:sl(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function tte(r){var t=r.icon||"roundRect",e=gt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=B.color.neutral00,e.style.lineWidth=2),e}function iI(r,t,e,n){B_(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),N_(r,t,e,n)}function N_(r,t,e,n){e.usingTHL()||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function B_(r,t,e,n){e.usingTHL()||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function pu(r,t,e){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),oI(s,a),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){D(a,function(l,u){s[l?"select":"unSelect"](u)}),oI(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function oI(r,t){var e=t||{};return D(r.getData(),function(n){var a=n.get("name");if(!(a===`
74
+ `||a==="")){var i=r.isSelected(a);J(e,a)?e[a]=e[a]&&i:e[a]=i}}),e}function rte(r){r.registerAction("legendToggleSelect","legendselectchanged",xe(pu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xe(pu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xe(pu,"inverseSelect")),r.registerAction("legendSelect","legendselected",xe(pu,"select")),r.registerAction("legendUnSelect","legendunselected",xe(pu,"unSelect"))}var nte=Vf(ate);function ate(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function fB(r){r.registerComponentModel(k_),r.registerComponentView(uB),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,nte),r.registerSubTypeDefaulter("legend",function(){return"plain"}),rte(r)}var ite=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=Ko(e);r.prototype.init.call(this,e,n,a),sI(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),sI(this,this.option,e)},t.type="legend.scroll",t.defaultOption=yi(k_.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:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),t})(k_);function sI(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Fn(t,e,{type:"box",ignoreSize:!!a})}var lI=oe,em=["width","height"],tm=["x","y"],ote=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new lI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lI)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=$(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Re({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=$f(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:q(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=em[u],c=tm[u],v=em[1-u],h=tm[1-u];o&&mo("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ae(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;mo(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),mo("horizontal",v,e.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=Q(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var w={x:0,y:0};w[o]=Math.max(a[o]-d[o]-_,0),w[s]=x[s],c.setClipPath(new be({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Oe(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",j(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=em[o],l=tm[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(w){if(w){var b=w.getBoundingRect(),T=b[l]+w[l];return{s:T,e:T+b[s],i:w.__legendDataIndex}}}function x(w,b){return w.e>=b&&w.s<=b+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t})(uB);function ste(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function lte(r){Se(fB),r.registerComponentModel(ite),r.registerComponentView(ote),ste(r)}function ute(r){Se(fB),Se(lte)}var fte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=yi(kf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(kf),Ox=me();function cte(r,t,e){Ox(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function vte(r,t){for(var e=Ox(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||cB(e,o))}}}function cB(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function hte(r,t){var e={model:t,containsPoint:xe(pte,t),dispatchAction:xe(dte,r),dataZoomInfoMap:null,controller:null},n=e.controller=new ns(r.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function dte(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function pte(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function gte(r,t,e){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=Q(f.get("cursorGrab",!0),s),l=Q(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function yte(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var n=Ox(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=K());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=YN(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hte(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.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){cB(a,i);return}var f=gte(l,i,e);o.enable(f.controlType,f.opt),Pl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var mte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),cte(a,e,{pan:q(rm.pan,this),zoom:q(rm.zoom,this),scrollMove:q(rm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vte(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(Mx),rm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=nm[t](null,[n.originX,n.originY],o,e,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/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ui(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:uI(function(r,t,e,n,a,i){var o=nm[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:uI(function(r,t,e,n,a,i){var o=nm[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function uI(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(ui(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var nm={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function vB(r){Dx(r),r.registerComponentModel(fte),r.registerComponentView(mte),yte(r)}var _te=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=yi(kf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:B.color.accent10,borderRadius:0,backgroundColor:B.color.transparent,dataBackground:{lineStyle:{color:B.color.accent30,width:.5},areaStyle:{color:B.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:B.color.accent40,width:.5},areaStyle:{color:B.color.accent20,opacity:.3}},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:B.color.neutral00,borderColor:B.color.accent20},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:B.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:B.color.tertiary},brushSelect:!0,brushStyle:{color:B.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:B.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(kf),gu=be,Ste=1,am=30,xte=7,yu="horizontal",fI="vertical",wte=5,bte=["line","bar","candlestick","scatter"],Cte={easing:"cubicOut",duration:100,delay:0},Tte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Pl(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ff(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?xte:0,o=bt(e,n).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===yu?{right:o.width-s.x-s.width,top:o.height-am-l-i,width:s.width,height:am}:{right:l,top:s.y,width:am,height:s.height},f=Ko(e.option);D(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=tt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fI&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===yu&&!o?{scaleY:l?1:-1,scaleX:1}:a===yu&&o?{scaleY:l?1:-1,scaleX:-1}:a===fI&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;e.x=n.x-f,e.y=n.y-c,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new gu({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new gu({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:q(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)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(e.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",x=-m,w=Math.round(o.count()/n[0]),b;o.each([e.thisDim,l],function(L,I,P){if(w>0&&P%w){S||(x+=m);return}x=S?(+L-c[0])*_:x+m;var R=I==null||isNaN(I)||I==="",E=R?0:Ve(I,v,d,!0);R&&!b&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&b&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),b=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(L){var I=T.getModel(L?"selectedDataBackground":"dataBackground"),P=new oe,R=new jt({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Bt({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var A=0;A<3;A++){var M=C(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&pe(bte,u.get("type"))<0)){var f=i.getComponent(Wa(o),s).axis,c=Ate(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=n.filler=new gu({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new gu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Ste,fill:B.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!Lh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=gt(S,-1,0,2,2,null,!0);x.attr({cursor:Mte(this._orient),draggable:!0,drift:q(this._onDragMove,this,_),ondragend:q(this._onDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1),z2:5});var w=x.getBoundingRect(),b=l.get("handleSize");this._handleHeight=Z(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),yo(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[_]=x);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;e.add(i[_]=new Re({silent:!0,invisible:!M,style:je(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=v;if(c){var d=Z(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new be({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=gt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,B.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new be({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:q(this._onActualMoveZoneDrift,this),ondragstart:q(this._onActualMoveZoneDragStart,this),ondragend:q(this._onActualMoveZoneDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ve(e[0],[0,100],n,!0),Ve(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ui(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Ve(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ve(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Nt([Ve(i[0],o,l,!0),Ve(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Nt(a.slice()),o=this._size;D([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.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]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],v=c.getClipPath();v||(v=new be,c.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(e){var v={start:f[0],end:f[1]},h=jN(n,l);if(h){var d=h.calculateDataWindow(v).percentInverted;v={start:d[0],end:d[1]}}c=l.calculateDataWindow(v)}else c=l.getWindow();s=[cI(n,0,c,u),cI(n,1,c,u)]}}var p=Nt(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=Ws(a.handles[y].parent,this.group),_=Xd(y===0?"right":"left",m),S=this._handleWidth/2+wte,x=en([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===yu?"middle":_,align:o===yu?_:"center",text:s[y]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:a,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)},t.prototype._onActualMoveZoneDrift=function(e,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",e,n,a)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,fa(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=en([n,a],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new ue(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ui(0,l,o,0,u.minSpan!=null?Ve(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ve(u.maxSpan,s,o,!0):null),this._range=Nt([Ve(l[0],o,s,!0),Ve(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(fa(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new gu({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Cte:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=YN(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(Mx);function cI(r,t,e,n){var a=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=e.valuePrecision);var o=e.value[t],s=o==null||isNaN(o)?"":Zt(n)||Zf(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?ke(o,i,!0):o+"";return ie(a)?a(o,s):j(a)?a.replace("{value}",s):s}function Ate(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Mte(r){return r==="vertical"?"ns-resize":"ew-resize"}function hB(r){r.registerComponentModel(_te),r.registerComponentView(Tte),Dx(r)}function Dte(r){Se(vB),Se(hB)}var dB={get:function(r,t,e){var n=ae((Ite[r]||{})[t]);return e&&$(n)?n[n.length-1]:n}},Ite={color:{active:["#006edd","#e0ffff"],inactive:[B.color.transparent]},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]}},vI=At.mapVisual,Lte=At.eachVisual,Pte=$,im=D,Rte=Nt,Ete=Ve,_d=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&aB(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=q(e,this),this.controllerVisuals=P_(this.option.controller,n,e),this.targetVisuals=P_(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,n=this.option.seriesTargets;if(n){var a=[];return im(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;e.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=bl(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(e,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],$(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(j(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ie(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Rte([e.min,e.max]);this._dataExtent=n},t.prototype.getDimension=function(e){var n=this,a=this.option.seriesTargets;if(a){var i=di(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===e||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(e).id});if(i)return i.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var n=e.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return e.getDimensionIndex(a);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});_e(i,a),_e(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){Pte(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},im(d,function(g,y){if(At.isValidType(y)){var m=dB.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";im(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&ae(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ae(h)||(s?m[0]:[m[0],m[0]])),_.symbol=vI(_.symbol,function(w){return w==="none"?g:w});var S=_.symbolSize;if(S!=null){var x=-1/0;Lte(S,function(w){w>x&&(x=w)}),_.symbolSize=vI(S,function(w){return Ete(w,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},t})(Me),hI=[20,140],kte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=hI[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=hI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):$(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=Nt((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,a=this.getExtent(),i=Q(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=e)&&(i&&n[1]>=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=dI(this,"outOfRange",this.getExtent()),a=dI(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=yi(_d.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:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),t})(_d);function dI(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,a=(e[1]-e[0])/n,i=e[0],o=[],s=0;s<=n&&i<e[1];s++)o.push(i),i+=a;return o.push(e[1]),o}var pB=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,a,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,a,i)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,a=Uf(n.get("padding")||0),i=e.getBoundingRect();e.add(new be({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[i||o.getValueState(e)],v=At.prepareVisualTypes(c);return D(v,function(h){var d=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),At.dependsOn(h,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,a=this.api,i=bt(n,a).refContainer;Jd(e,n.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,n,a,i){},t.type="visualMap",t})(Qe),pI=[["left","right","width"],["top","bottom","height"]];function gB(r,t,e){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=pI[o],l=[0,null,10],u={},f=0;f<3;f++)u[pI[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],v=tt(u,i,n.padding);return s[(v.margin[c[2]]||0)+v[c[0]]+v[c[1]]*.5<i[c[1]]*.5?0:1]}function ah(r,t){return D(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var mn=Ve,Ote=D,gI=Math.min,om=Math.max,Nte=12,Bte=6,Vte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,n){r.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},t.prototype.doRender=function(e,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var a=e.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Re({style:je(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(v==="horizontal"?"middle":c),align:h.get("align")||(v==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=gB(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new oe;u.add(f),f.add(a.outOfRange=yI()),f.add(a.inRange=yI(null,s?_I(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new be({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),v=om(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,v,o),this._createHandle(n,u,1,i,v,o)),this._createIndicator(n,u,i,v,o),e.add(u)},t.prototype._createHandle=function(e,n,a,i,o,s){var l=q(this._dragHandle,this,a,!1),u=q(this._dragHandle,this,a,!0),f=Bn(e.get("handleSize"),i[0]),c=gt(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=_I(this._orient);c.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){fa(y.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),so(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,d=new Re({cursor:v,draggable:!0,drift:l,onmousemove:function(y){fa(y.event)},ondragend:u,style:je(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(e,n,a,i,o){var s=Bn(e.get("indicatorSize"),a[0]),l=gt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Rt){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,v=new Re({silent:!0,invisible:!0,style:je(c,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:Bte)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():mI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),a=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[mn(n[0],a,i,!0),mn(n[1],a,i,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ui(n,i,o,e,0);var s=a.getExtent();this._dataInterval=[mn(i[0],o,s,!0),mn(i[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,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)},t.prototype._createBarVisual=function(e,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Ml(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var a=100,i=[],o=(e[1]-e[0])/a;i.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new oe(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);Ote([0,1],function(c){var v=o[c];v.setStyle("fill",n.handlesColor[c]),v.y=e[c];var h=mn(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=en(a.handleLabelPoints[c],Ws(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=mn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=en(f.indicatorLabelPoint,Ws(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,w=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:w?S:"middle",align:w?"center":S});var b={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(b,C),_.animateTo(T,C)}else c.attr(b),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,i=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);i[1]=gI(om(0,i[1]),a[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();e=gI(om(o[0],e),o[1]);var l=zte(a,s,o),u=[e-l,e+l],f=mn(e,o,s,!0),c=[mn(u[0],o,s,!0),mn(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(n||mI(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=QF(v,h);this._dispatchHighDown("downplay",ah(d[0],a)),this._dispatchHighDown("highlight",ah(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(uo(e.target,function(l){var u=ce(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ah(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,a,i){var o=Ws(n,i?null:this.group);return $(e)?en(e,o,a):Xd(e,o,a)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(pB);function yI(r,t,e,n){return new jt({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){fa(a.event)},ondragend:n})}function zte(r,t,e){var n=Nte/2,a=r.get("hoverLinkDataSize");return a&&(n=mn(a,t,e,!0)/2),n}function mI(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function _I(r){return r==="vertical"?"ns-resize":"ew-resize"}var Fte={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Gte=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Hte=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||e.push(lee(n.stateList,n.targetVisuals,q(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(q($te,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function $te(r,t,e,n){for(var a=t.targetVisuals[n],i=At.prepareVisualTypes(a),o={color:Xf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,v)}return o.color;function c(h){return o[h]}function v(h,d){o[h]=d}}var SI=D;function Ute(r){var t=r&&r.visualMap;$(t)||(t=t?[t]:[]),SI(t,function(e){if(e){As(e,"splitList")&&!As(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&$(n)&&SI(n,function(a){fe(a)&&(As(a,"start")&&!As(a,"min")&&(a.min=a.start),As(a,"end")&&!As(a,"max")&&(a.max=a.end))})}})}function As(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var xI=!1;function yB(r){xI||(xI=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Fte,Gte),D(Hte,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Ute))}function mB(r){r.registerComponentModel(kte),r.registerComponentView(Vte),yB(r)}var Wte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Yte[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ae(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=U(this._pieceList,function(l){return l=ae(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=At.listVisualTypes(),i=this.isCategory();D(e.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&D(this.stateList,function(f){(e[f]||(e[f]={}))[l]=dB.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ae(e)},t.prototype.getValueState=function(e){var n=At.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=At.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=e(v,c);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}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 D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=yi(_d.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}),t})(_d),Yte={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),kw(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;D(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),wI(t,r)},pieces:function(r){var t=this.option;D(t.pieces,function(e,n){fe(e)||(e={value:e});var a={text:"",index:n};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var i=a.value=e.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var v=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=e[v[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=At.retrieveVisuals(e),r.push(a)},this),wI(t,r),kw(r),D(r,function(e){var n=e.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function wI(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Xte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=tr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),D(l.viewPieceList,function(v){var h=v.piece,d=new oe;d.onclick=q(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Re({style:je(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:Q(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),mo(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:ah(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return gB(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new oe,l=this.visualMapModel.textStyleModel;s.add(new Re({style:je(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=U(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a,i){var o=gt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ae(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,D(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})}},t.type="visualMap.piecewise",t})(pB);function _B(r){r.registerComponentModel(Wte),r.registerComponentView(Xte),yB(r)}function jte(r){Se(mB),Se(_B)}var Zte=(function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:lP(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r})(),qte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,n){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new Zte(this);if(this._target=null,this.ecModel.eachSeries(function(a){eM(a,null)}),this.shouldShow()){var n=this.getTarget();eM(n.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:B.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:B.color.neutral30,borderColor:B.color.neutral40,opacity:.3},z:10},t})(Me),Kte=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this._api=a,this._model=e,this._coordSys||(this._coordSys=new pp),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||B.color.neutral00);var l=bt(e,a).refContainer,u=tt(NP(e,!0),l),f=s.lineWidth||0,c=this._contentRect=Mo(u.clone(),f/2,!0,!0),v=new oe;i.add(v),v.setClipPath(new be({shape:c.plain()}));var h=this._targetGroup=new oe;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new be({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new be({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),CI(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),CI(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=e.z2Range.min-10,gp(a,s.x,s.y,s.width,s.height);var l=tt({left:"center",top:"center",aspect:s.width/s.height},i);Qh(a,l.x,l.y,l.width,l.height),Af(o,a,Bo),o.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var n=this._bridgeRendered;n&&n.renderVersion===e.renderVersion&&(n.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var n=Hr([],e.targetTrans),a=zr([],Jh(null,this._coordSys),n);this._transThisToTarget=Hr([],a);var i=e.viewportRect;i?i=i.clone():i=new se(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(le({r:s},i))}},t.prototype._resetRoamController=function(e){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new ns(a.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))},t.prototype._onPan=function(e){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[e.oldX,e.oldY],n),i=st([],[e.oldX-e.dx,e.oldY-e.dy],n);this._api.dispatchAction(bI(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},t.prototype._onZoom=function(e){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[e.originX,e.originY],n);this._api.dispatchAction(bI(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var n=e.getTarget().baseMapProvider;return!!n},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t})(Qe);function bI(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:e};return n[r.mainType+"Id"]=r.id,G(n,t),n}function CI(r,t){var e=Do(r);jd(t.group,e.z,e.zlevel)}function Jte(r){r.registerComponentModel(qte),r.registerComponentView(Kte)}var Qte={label:{enabled:!0},decal:{show:!1}},TI=me(),AI=me(),ere=Vf(tre);function tre(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=AI(r).scope||(AI(r).scope={}),a=ae(Qte);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(e.option,a,!1),i(),o();function i(){var f=e.getModel("decal"),c=f.get("show");if(c){var v=K();r.eachSeries(function(h){h.isColorBySeries()||(TI(h).scope=v.get(h.type)||v.set(h.type,{}))}),r.eachSeries(function(h){if(ie(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=w0(h.ecModel,h.name,n,r.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",x(S,_))}else{var p=h.getRawData(),g={},y=TI(h).scope;d.each(function(w){var b=d.getRawIndex(w);g[b]=w});var m=p.count();p.each(function(w){var b=g[w],T=p.getName(w)||w+"",C=w0(h.ecModel,T,y,m),A=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",x(A,C))})}function x(w,b){var T=w?G(G({},b),w):b;return T.dirty=!0,T}})}}function o(){var f=t.getZr().dom;if(f){var c=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=le(v.option,c),!!v.get("enabled")){if(f.setAttribute("role","img"),v.get("description")){f.setAttribute("aria-label",v.get("description"));return}var h=r.getSeriesCount(),d=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=v.get(["general","withTitle"]);y=s(_,{title:m})}else y=v.get(["general","withoutTitle"]);var S=[],x=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);y+=s(x,{seriesCount:h}),r.eachSeries(function(C,A){if(A<g){var M=void 0,L=C.get("name"),I=L?"withName":"withoutName";M=h>1?v.get(["series","multiple",I]):v.get(["series","single",I]),M=s(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>d){var R=v.get(["data","partialData"]);M+=s(R,{displayCnt:d})}else M+=v.get(["data","allData"]);for(var E=v.get(["data","separator","middle"]),N=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),z=[],F=0;F<P.count();F++)if(F<d){var H=P.getName(F),W=O?Fe(P.getValues(F),function(Y,ee){return pe(O,ee)===-1}):P.getValues(F),X=v.get(["data",H?"withName":"withoutName"]);z.push(s(X,{name:H,value:W.join(E)}))}M+=z.join(E)+N,S.push(M)}});var w=v.getModel(["series","multiple","separator"]),b=w.get("middle"),T=w.get("end");y+=S.join(b)+T,f.setAttribute("aria-label",y)}}}}function s(f,c){if(!j(f))return f;var v=f;return D(c,function(h,d){v=v.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),v}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=r.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function rre(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function nre(r){r.registerPreprocessor(rre),r.registerVisual(r.PRIORITY.VISUAL.ARIA,ere)}var MI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},are=(function(){function r(t){var e=this._condVal=j(t)?new RegExp(t):uz(t)?t:null;if(e==null){var n="";ze(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return j(e)?this._condVal.test(t):Ee(e)?this._condVal.test(t+""):!1},r})(),ire=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),ore=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),sre=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),lre=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),ure=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r})();function Nx(r,t){if(r===!0||r===!1){var e=new ire;return e.value=r,e}var n="";return SB(r)||ze(n),r.and?DI("and",r,t):r.or?DI("or",r,t):r.not?fre(r,t):cre(r,t)}function DI(r,t,e){var n=t[r],a="";$(n)||ze(a),n.length||ze(a);var i=r==="and"?new ore:new sre;return i.children=U(n,function(o){return Nx(o,e)}),i.children.length||ze(a),i}function fre(r,t){var e=r.not,n="";SB(e)||ze(n);var a=new lre;return a.child=Nx(e,t),a.child||ze(n),a}function cre(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=De(r),o=r.parser,s=o?rR(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=J(MI,u)?MI[u]:u,c=r[u],v=s?s(c):c,h=xH(f,v)||f==="reg"&&new are(v);h||ze(e),a.push(h)}}a.length||ze(e);var d=new ure;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function SB(r){return fe(r)&&!Wt(r)}var vre=(function(){function r(t,e){this._cond=Nx(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function hre(r,t){return new vre(r,t)}var dre={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=hre(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||ze(l);var f=t.getDimensionInfo(u);return f||ze(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},pre={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=Ye(e);a.length||ze(n);var i=[];D(a,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&ze(n),v!=="asc"&&v!=="desc"&&ze(n),d&&d!=="min"&&d!=="max"){var p="";ze(p)}if(v!=="asc"&&v!=="desc"){var g="";ze(g)}var y=t.getDimensionInfo(c);y||ze(n);var m=h?rR(h):null;h&&!m&&ze(n),i.push({dimIdx:y.index,parser:m,comparator:new aR(v,d)})});var o=t.sourceFormat;o!==Pt&&o!==Cr&&ze(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<i.length;v++){var h=i[v],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function gre(r){r.registerTransform(dre),r.registerTransform(pre)}var yre=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new fR(this),Zb(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Zb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Qr},t})(Me),mre=(function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Qe);function _re(r){r.registerComponentModel(yre),r.registerComponentView(mre)}var gn=Vn.CMD;function zs(r,t){return Math.abs(r-t)<1e-5}function V_(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,R,E){zs(I,R)&&zs(P,E)||a.push(I,P,R,E,R,E)}function c(I,P,R,E,N,O){var z=Math.abs(P-I),F=Math.tan(z/4)*4/3,H=P<I?-1:1,W=Math.cos(I),X=Math.sin(I),Y=Math.cos(P),ee=Math.sin(P),ye=W*N+R,Ne=X*O+E,ve=Y*N+R,te=ee*O+E,ge=N*F*H,re=O*F*H;a.push(ye-ge*X,Ne+re*W,ve+ge*ee,te-re*Y,ve,te)}for(var v,h,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===gn.L||y===gn.C||y===gn.Q)&&(a=[s,l])),y){case gn.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case gn.L:v=t[g++],h=t[g++],f(i,o,v,h),i=v,o=h;break;case gn.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case gn.Q:v=t[g++],h=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(v-i),o+2/3*(h-o),d+2/3*(v-d),p+2/3*(h-p),d,p),i=d,o=p;break;case gn.A:var _=t[g++],S=t[g++],x=t[g++],w=t[g++],b=t[g++],T=t[g++]+b;g+=1;var C=!t[g++];v=Math.cos(b)*x+_,h=Math.sin(b)*w+S,m?(s=v,l=h,u(s,l)):f(i,o,v,h),i=Math.cos(T)*x+_,o=Math.sin(T)*w+S;for(var A=(C?-1:1)*Math.PI/2,M=b;C?M>T:M<T;M+=A){var L=C?Math.max(M+A,T):Math.min(M+A,T);c(M,L,_,S,x,w)}break;case gn.R:s=i=t[g++],l=o=t[g++],v=s+t[g++],h=l+t[g++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case gn.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function z_(r,t,e,n,a,i,o,s,l,u){if(zs(r,e)&&zs(t,n)&&zs(a,o)&&zs(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-r,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=e-r,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var x=v*p+h*g,w=-v*y-h*m,b=_-x*x,T=S-w*w;if(b<c&&x>=0&&T<c&&w>=0){l.push(o,s);return}var C=[],A=[];ai(r,e,a,o,.5,C),ai(t,n,i,s,.5,A),z_(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),z_(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function Sre(r,t){var e=V_(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],v=i[u++],h=i[u++],d=i[u++],p=i[u++];z_(s,l,f,c,v,h,d,p,o,t),s=d,l=p}n.push(o)}return n}function xB(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=e-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function II(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=xB([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],p=0;p<c[h];p++){var g={};f?(g.startAngle=i+v*h,g.endAngle=i+v*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*h,g.r=n+v*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function xre(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=xB([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,v=0;v<o.length;v++)for(var h=r[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*c,p[f]=d*h,p[s]=c,p[l]=h,p.x+=r.x,p.y+=r.y,e.push(p)}}function LI(r,t,e,n){return r*n-e*t}function wre(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=LI(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=r-a,d=t-i,p=LI(h,d,f,c)/v;return p<0||p>1?null:new ue(p*l+r,p*u+t)}function bre(r,t,e){var n=new ue;ue.sub(n,e,t),n.normalize();var a=new ue;ue.sub(a,r,t);var i=a.dot(n);return i}function Ms(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Cre(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=wre(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:bre(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],p=[h],i=u.idx+1;i<=f.idx;i++)Ms(d,r[i].slice());Ms(d,h),Ms(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)Ms(p,r[i%n].slice());return Ms(p,v),Ms(p,h),[{points:d},{points:p}]}function PI(r){var t=r.points,e=[],n=[];zd(t,e,n);var a=new se(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ue,f=new ue;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),Cre(t,u,f)}function Sd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);Sd(r,i[0],a,n),Sd(r,i[1],e-a,n)}return n}function Tre(r,t){for(var e=[],n=0;n<t;n++)e.push(MS(r));return e}function Are(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Mre(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Dre(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":xre(n,t,e),a=be;break;case"sector":II(n,t,e),a=Xt;break;case"circle":II({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=Xt;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=U(Sre(r.getUpdatedPathProxy(),o),function(y){return Mre(y)}),l=s.length;if(l===0)Sd(PI,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,c=U(s,function(y){var m=[],_=[];zd(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(Sd(PI,{points:h.poly},d,e),v-=d)}}a=jt;break}if(!a)return Tre(r,t);for(var p=[],u=0;u<e.length;u++){var g=new a;g.setShape(e[u]),Are(r,g),p.push(g)}return p}function Ire(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(v<=0){c.push(g,y,m,_,S,x);continue}for(var w=Math.min(v,f-1)+1,b=1;b<=w;b++){var T=b/w;ai(d,g,m,S,T,a),ai(p,y,_,x,T,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}v-=w-1}return o===r?[c,t]:[r,c]}function RI(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function Lre(r,t){for(var e,n,a,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,c=void 0;l?u?(e=Ire(l,u),f=e[0],c=e[1],n=f,a=c):(c=RI(a||l,l),f=l):(f=RI(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function EI(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;t+=c,e+=(s+u)*c,n+=(l+f)*c}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Pre(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=r[h]-e[0],p=r[h+1]-e[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function Rre(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Ere(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=EI(s),f=EI(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,p=[],g=s.length;i&&(s=Rre(s));for(var y=Pre(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var x=n/e,w=-n/2;w<=n/2;w+=x){for(var b=Math.sin(w),T=Math.cos(w),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*b,R=L*b+I*T;p[_]=P,p[_+1]=R;var E=P-A,N=R-M;C+=E*E+N*N}if(C<d){d=C,h=w;for(var O=0;O<p.length;O++)v[O]=p[O]}}a.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return a}function xd(r){return r.__isCombineMorphing}var wB="__mOriginal_";function wd(r,t,e){var n=wB+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Xu(r,t){var e=wB+t;r[e]&&(r[t]=r[e],r[e]=null)}function kI(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function bB(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=Lre(V_(e),V_(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&kI(i,s),l&&kI(o,l),wd(t,"updateTransform",{replace:u}),t.transform=null;var f=Ere(i,o,10,Math.PI),c=[];wd(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,w=y.toCp,b=Math.sin(S),T=Math.cos(S);kv(p,x,w,h);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],L=_[C],I=_[C+1],P=A*d+L*h,R=M*d+I*h;c[C]=P*T-R*b+p[0],c[C+1]=P*b+R*T+p[1]}var E=c[0],N=c[1];v.moveTo(E,N);for(var C=2;C<m.length;){var L=c[C++],I=c[C++],O=c[C++],z=c[C++],F=c[C++],H=c[C++];E===L&&N===I&&O===F&&z===H?v.lineTo(F,H):v.bezierCurveTo(L,I,O,z,F,H),E=F,N=H}}}})}function Bx(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;bB(r,t),t.__morphT=0;function i(){Xu(t,"buildPath"),Xu(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},le({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function kre(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function bd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=U(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=U(i,function(s,l){return{cp:s,z:kre(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function CB(r){return Dre(r.path,r.count)}function F_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ore(r,t,e){var n=[];function a(x){for(var w=0;w<x.length;w++){var b=x[w];xd(b)?a(b.childrenRef()):b instanceof Ae&&n.push(b)}}a(r);var i=n.length;if(!i)return F_();var o=e.dividePath||CB,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),F_();n=bd(n),s=bd(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new Un,v=0;v<i;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||bB(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}wd(t,"addSelfToZr",{after:function(x){p(x)}}),wd(t,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Xu(t,"addSelfToZr"),Xu(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?le({delay:(e.delay||0)+f(v,y,n[v],s[v]),done:_},e):e;Bx(n[v],s[v],S)}else t.__morphT=0,t.animateTo({__morphT:1},le({during:function(x){for(var w=0;w<y;w++){var b=s[w];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Xu(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Nre(r,t,e){var n=t.length,a=[],i=e.dividePath||CB;function o(h){for(var d=0;d<h.length;d++){var p=h[d];xd(p)?o(p.childrenRef()):p instanceof Ae&&a.push(p)}}if(xd(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(MS(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),F_()}a=bd(a),t=bd(t);for(var c=e.individualDelay,u=0;u<n;u++){var v=c?le({delay:(e.delay||0)+c(u,n,a[u],t[u])},e):e;Bx(a[u],t[u],v)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function OI(r){return $(r[0])}function NI(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Bre={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=MS(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function sm(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=Dl("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o),u,f;OI(r)&&(u=r,f=t),OI(t)&&(u=t,f=r);function c(y,m,_,S,x){var w=y.many,b=y.one;if(w.length===1&&!x){var T=m?w[0]:b,C=m?b:w[0];if(xd(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?le({delay:s(_,S)},l):l;Bx(T,C,A),i(T,C,T,C,A)}}else for(var M=le({dividePath:Bre[e],individualDelay:s&&function(N,O,z,F){return s(N+_,S)}},l),L=m?Ore(w,b,M):Nre(b,w,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var A=s?le({delay:s(E,R)},l):l;i(I[E],P[E],m?w[E]:y.one,m?y.one:w[E],A)}}for(var v=u?u===r:r.length>t.length,h=u?NI(f,u):NI(v?t:r,[v?r:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)c(h[p],v,g,d),g+=h[p].many.length}function eo(r){if(!r)return[];if($(r)){for(var t=[],e=0;e<r.length;e++)t.push(eo(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof Ae&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var TB=1e4,Vre=0,BI=1,VI=2,zre=me();function Fre(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function Gre(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function zI(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=Fre(r,a);if(i){var o=Gre(r,t,i);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function FI(r){var t=[];return D(r,function(e){var n=e.data,a=e.dataGroupId;if(!(n.count()>TB))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:zI(n,o,a,!1),childGroupId:zI(n,o,a,!0),divide:e.divide,dataIndex:o})}),t}function lm(r,t,e){r.traverse(function(n){n instanceof Ae&&Ke(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function um(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Ds(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Hre(r,t,e){var n=Dl("update",e,t);n&&r.traverse(function(a){if(a instanceof Ur){var i=qG(a);i&&a.animateFrom({style:i},n)}})}function $re(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function AB(r,t,e){var n=FI(r),a=FI(t);function i(_,S,x,w,b){(x||_)&&S.animateFrom({style:x&&x!==_?G(G({},x.style),_.style):_.style},b)}var o=!1,s=Vre,l=K(),u=K();D(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=BI;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=VI;break}}function h(_,S){return function(x){var w=x.data,b=x.dataIndex;return S?w.getId(b):_?s===BI?x.childGroupId:x.groupId:s===VI?x.childGroupId:x.groupId}}var d=$re(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],w=a[_],b=w.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=w.data.getItemGraphicEl(w.dataIndex);if(T===C){C&&Hre(C,w.dataIndex,b);return}T&&p[T.id]||C&&(Ds(C),T?(Ds(T),um(T),o=!0,sm(eo(T),eo(C),w.divide,b,_,i)):lm(C,b,_))}new ya(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=a[_],w=x.data,b=w.hostModel,T=w.getItemGraphicEl(x.dataIndex),C=Fe(U(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(Ds(T),C.length?(D(C,function(A){Ds(A),um(A)}),o=!0,sm(eo(C),eo(T),x.divide,b,_,i)):lm(T,b,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],w=x.data.getItemGraphicEl(x.dataIndex);if(!(w&&p[w.id])){var b=Fe(U(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==w}),T=a[_[0]].data.hostModel;b.length&&(D(b,function(C){return Ds(C)}),w?(Ds(w),um(w),o=!0,sm(eo(w),eo(b),x.divide,T,_[0],i)):D(b,function(C){return lm(C,T,_[0])}))}}).updateManyToMany(function(_,S){new ya(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,w){m(_[x],S[w])}).execute()}).execute(),o&&D(t,function(_){var S=_.data,x=S.hostModel,w=x&&e.getViewOfSeriesModel(x),b=Dl("update",x,0);w&&x.isAnimationEnabled()&&b&&b.duration>0&&w.group.traverse(function(T){T instanceof Ae&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function GI(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function HI(r){return $(r)?r.sort().join(","):r}function Na(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ure(r,t){var e=K(),n=K(),a=K();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=GI(i),f=HI(u);n.set(f,{dataGroupId:s,data:l}),$(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=GI(i),u=HI(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Na(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Na(s),data:s}]});else if($(l)){var c=[];D(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Na(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Na(s)}]})}else{var v=a.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Na(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Na(s)})}}}}),e}function $I(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function Wre(r,t,e,n){var a=[],i=[];D(Ye(r.from),function(o){var s=$I(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Na(t.oldData[s]),groupIdDim:o.dimension})}),D(Ye(r.to),function(o){var s=$I(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Na(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&AB(a,i,n)}function Yre(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(Ye(n.seriesTransition),function(a){D(Ye(a.to),function(i){for(var o=n.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][qv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=zre(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(Ye(i),function(h){Wre(h,a,n,e)});else{var o=Ure(a,n);D(o.keys(),function(h){var d=o.get(h);AB(d.oldSeries,d.newSeries,e)})}D(n.updatedSeries,function(h){h[qv]&&(h[qv]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<TB&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}var Xre=(function(){function r(t,e){u1(this,r.decoratedMethods),this._outOfBrk=N0(null,e),this._linear=N0(null,e),f1(this),this.breaks=t&&t.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<t&&t<a.vmax){var i=e(t,a.vmax);return i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return e==null||e===ia?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(vr,t,e)},setExtent2:function(t,e,n){Co(e,n)&&(t===vr&&Zre(this,[e,n]),this._outOfBrk.setExtent2(t,e,n),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===ia)return t;for(var n=UI,a=WI,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(t<=s.vmax){t>s.vmin?n+=s.vmin-a+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=t-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=t-a),n},transformOut:function(t,e){if(e&&e.depth===ia)return t;for(var n=UI,a=WI,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-a,f=u+l.gapReal;if(t<=f){t>u?o=l.vmin+(t-u)/(f-u)*(l.vmax-l.vmin):o=a+t-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+t-n),o}},r})();function jre(r,t){return new Xre(r,t)}var UI=0,WI=0;function Zre(r,t){var e=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=Vx(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=v,n[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?we(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function qre(r,t,e,n,a,i){r!=="no"&&D(e,function(o){var s=Vx(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=n(u),c=a*3/4;f>s.vmin-c&&f<s.vmax+c&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function Kre(r,t,e,n){D(t,function(a){var i=Vx(a,e);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),t.length&&r.sort(function(a,i){return a.value-i.value})}function Vx(r,t){var e=we(r.vmin,t[0]),n=He(r.vmax,t[1]);return e<n||e===n&&e>t[0]&&e<t[1]?{vmin:e,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function G_(r,t,e){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}D(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ae(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(j(o.gap)){var u=Vr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&D(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:Fe(n,function(o){return!!o})}}function zx(r,t){return H_(t)===H_(r)}function H_(r){return r.start+"_\0_"+r.end}function Jre(r,t,e){var n=[];D(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&n.push([o])}),D(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=di(n,function(u){return zx(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return D(n,function(i){i.length===2&&a.push(e?i:[r[i[0]],r[i[1]]])}),a}function Qre(r,t,e,n){if(t.break){var a=t.break.parsedBreak,i=di(e,function(f){return zx(f.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:n,depth:ia},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ae(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[t.break.type],vBreak:{type:t.break.type,parsedBreak:u}}}}function ene(r,t,e,n,a){a.original=G_(r,t,e);var i=a.transformed=G_(r,t,e),o=a.lookup;i.breaks=U(i.breaks,function(s,l){var u={depth:ia},f=t.transformIn(s.vmin,u),c=t.transformIn(s.vmax,u),v={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=c,o.to[n+l+1]=s.vmax,{vmin:f,vmax:c,gapParsed:v,gapReal:s.gapReal,breakOption:s.breakOption}})}var tne={vmin:"start",vmax:"end"};function rne(r,t){return t&&(r=r||{},r.break={type:tne[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function nne(){_3({createBreakScaleMapper:jre,pruneTicksByBreak:qre,addBreaksToTicks:Kre,parseAxisBreakOption:G_,identifyAxisBreak:zx,serializeAxisBreakIdentifier:H_,retrieveAxisBreakPairs:Jre,getTicksBreakOutwardTransform:Qre,parseAxisBreakOptionInwardTransform:ene,makeAxisLabelFormatterParamBreak:rne})}var YI=me();function ane(r,t){var e=di(r,function(n){return ct().identifyAxisBreak(n.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function ine(r){D(r,function(t){return t.shouldRemove=!0})}function one(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function sne(r,t,e,n,a){var i=e.axis;if(i.scale.isBlank()||!ct())return;var o=ct().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new oe({ignoreModelZ:!0}),S=i.isHorizontal(),x=YI(t).visualList||(YI(t).visualList=[]);ine(x);for(var w=function(C){var A=o[C][0].break.parsedBreak,M=[];M[0]=i.toGlobalCoord(i.dataToCoord(A.vmin,!0)),M[1]=i.toGlobalCoord(i.dataToCoord(A.vmax,!0)),M[1]<M[0]&&M.reverse();var L=ane(x,A);L.shouldRemove=!1;var I=new oe;T(L.zigzagRandomList,I,M[0],M[1],S,A),c&&I.on("click",function(){var P={type:fp,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};P[i.dim+"AxisIndex"]=e.componentIndex,a.dispatchAction(P)}),I.silent=!c,_.add(I)},b=0;b<o.length;b++)w(b);r.add(_),one(x);function T(C,A,M,L,I,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=I?0:1,N=1-E,O=n[de[N]]+n[lt[N]];function z(Ue){var Pe=[],Ge=[];Pe[E]=Ge[E]=Ue,Pe[N]=n[de[N]],Ge[N]=O;var We={x1:Pe[0],y1:Pe[1],x2:Ge[0],y2:Ge[1]};return Gd(We,We,{lineWidth:1}),Pe[0]=We.x1,Pe[1]=We.y1,Pe[E]}M=z(M),L=z(L);for(var F=[],H=[],W=!0,X=n[de[N]],Y=0;;Y++){var ee=X===n[de[N]],ye=X>=O;ye&&(X=O);var Ne=[],ve=[];Ne[E]=M,ve[E]=L,!ee&&!ye&&(Ne[E]+=W?-l:l,ve[E]-=W?l:-l),Ne[N]=X,ve[N]=X,F.push(Ne),H.push(ve);var te=void 0;if(Y<C.length?te=C[Y]:(te=Math.random(),C.push(te)),X+=te*(f-u)+u,W=!W,ye)break}var ge=ct().serializeAxisBreakIdentifier(P.breakOption);if(A.add(new Bt({anid:"break_a_"+ge,shape:{points:F},style:R,z:v})),P.gapReal!==0){A.add(new Bt({anid:"break_b_"+ge,shape:{points:H},style:R,z:v}));var re=H.slice();re.reverse();var he=F.concat(re);A.add(new jt({anid:"break_c_"+ge,shape:{points:he},style:{fill:m,opacity:d.opacity},z:v}))}}}function lne(r,t,e,n){var a=r.axis,i=e.transform;Yt(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=ct().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=U(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:ct().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var v=l[c],h=Math.max(v.coordPair[0],o[0]),d=Math.min(v.coordPair[1],o[1]);u<=h&&p(u,h,f,v),u=d,f=v}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(M,L){i&&(st(M,M,i),st(L,L,i))}function x(M,L){var I={x1:M[0],y1:M[1],x2:L[0],y2:L[1]};Gd(I,I,n.style),M[0]=I.x1,M[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var w=[g,0],b=[y,0],T=[g,5],C=[y,5];S(w,T),x(w,T),S(b,C),x(b,C),x(w,b);var A=new dt(G({shape:{x1:w[0],y1:w[1],x2:b[0],y2:b[1]}},n));t.add(A),A.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function une(r,t,e){if(di(e,function(m){return!m}))return;var n=new ue;if(!lp(e[0],e[1],n,{direction:-(r?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=nt();pi(a,a,-t);var i=U(e,function(m){return m.transform?zr(nt(),a,m.transform):a});function o(m){var _=e[0].localRect,S=new ue(_[lt[m]]*i[0][0],_[lt[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=U(e,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new ue;u.copy(e[0].label).add(e[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new ue,y=new ue;ue.scale(g,n,-s),ue.scale(y,n,1-s),G0(e[0],g),G0(e[1],y)}function fne(r,t){var e={breaks:[]};return D(t.breaks,function(n){if(n){var a=di(r.get("breaks",!0),function(s){return ct().identifyAxisBreak(s,n)});if(a){var i=t.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===fp?!0:i===yk?!1:i===mk?!a.isExpanded:a.isExpanded,e.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),e}function cne(){MY({adjustBreakLabelPair:une,buildAxisBreakLine:lne,rectCoordBuildBreakAxis:sne,updateModelAxisBreak:fne})}function vne(r){PY(r),nne(),cne()}function hne(){X6(dne)}function dne(r,t){D(r,function(e){if(!e.model.get(["axisLabel","inside"])){var n=pne(e);if(n){var a=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,e.position==="top"?t.y+=n.height+i:e.position==="left"&&(t.x+=n.width+i)}}})}function pne(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var n,a,i=e.getExtent();e instanceof pf?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Kf(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},v=s(c,f),h=o.getTextRect(v),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),w=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),b=new se(g.x,g.y,x,w);return b}}Se([iY]);Se([JW]);Se([AY,x6,R6,h8,A8,I7,n9,F9,hX,xX,MX,NX,Mj,Qj,vZ,LZ,kZ,UZ,KZ,lq,pq,Mq,cK]);Se(LK);Se(iJ);Se(xO);Se(yJ);Se(lN);Se(xJ);Se(GJ);Se(qJ);Se(zQ);Se(aee);Se(ic);Se(See);Se(bee);Se(Ree);Se(Fee);Se(Yee);Se(Jee);Se(ute);Se(Dte);Se(vB);Se(hB);Se(jte);Se(mB);Se(_B);Se(Jte);Se(nre);Se(gre);Se(_re);Se(Yre);Se(yW);Se(vne);Se(hne);Se(d8);function Fx(r={}){const{option:t,autoResize:e=!0,theme:n,onReady:a,onClick:i,onDataZoom:o}=r,s=Be.useRef(null),l=Be.useRef(null);Be.useEffect(()=>{if(s.current)return l.current=h$(s.current,n),t&&l.current.setOption(t),a&&a(l.current),()=>{l.current&&(l.current.dispose(),l.current=null)}},[n]),Be.useEffect(()=>{l.current&&t&&l.current.setOption(t,!0)},[t]),Be.useEffect(()=>{if(!(!l.current||!i))return l.current.on("click",i),()=>{l.current?.off("click",i)}},[i]),Be.useEffect(()=>{if(!l.current||!o)return;const h=d=>{const p=d;p.batch?.[0]&&o(p.batch[0])};return l.current.on("datazoom",h),()=>{l.current?.off("datazoom",h)}},[o]),Be.useEffect(()=>{if(!e||!s.current)return;const h=new ResizeObserver(()=>{l.current?.resize()});return h.observe(s.current),()=>{h.disconnect()}},[e]);const u=Be.useCallback((h,d=!1)=>{l.current?.setOption(h,d)},[]),f=Be.useCallback(()=>l.current,[]),c=Be.useCallback(()=>{l.current?.resize()},[]),v=Be.useCallback(()=>{l.current?.clear()},[]);return{chartRef:s,setOption:u,getInstance:f,resize:c,clear:v}}const gne={left:60,right:30,top:40,bottom:60,containLabel:!0};function Gx({data:r,height:t=300,xLabel:e="",yLabel:n="",series:a,tooltip:i,xAxisExtra:o}){const s=Be.useMemo(()=>({tooltip:i??{trigger:"axis"},grid:gne,xAxis:{type:"category",data:r.map(u=>u.label),name:e,nameLocation:"middle",nameGap:35,...o},yAxis:{type:"value",name:n,nameLocation:"middle",nameGap:45},series:a}),[r,e,n,a,i,o]),{chartRef:l}=Fx({option:s});return k.jsx("div",{ref:l,style:{width:"100%",height:t}})}function yne({data:r,...t}){const e=Be.useMemo(()=>[{type:"line",data:r.map(a=>a.value),smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(99, 102, 241, 0.3)"},{offset:1,color:"rgba(99, 102, 241, 0.05)"}]}},lineStyle:{color:"#6366f1",width:2},itemStyle:{color:"#6366f1"}}],[r]),n=Be.useMemo(()=>({trigger:"axis",axisPointer:{type:"cross"}}),[]);return k.jsx(Gx,{data:r,series:e,tooltip:n,xAxisExtra:{boundaryGap:!1},...t})}function mne({data:r,...t}){const e=Be.useMemo(()=>[{type:"bar",data:r.map(i=>i.value),itemStyle:{color:"#6366f1"},barMaxWidth:50}],[r]),n=Be.useMemo(()=>({trigger:"axis",axisPointer:{type:"shadow"}}),[]),a=Be.useMemo(()=>({axisLabel:{rotate:r.length>10?45:0,interval:0}}),[r.length]);return k.jsx(Gx,{data:r,series:e,tooltip:n,xAxisExtra:a,...t})}function _ne({data:r,...t}){const e=Be.useMemo(()=>[{type:"line",data:r.map(n=>n.value),smooth:!0,lineStyle:{color:"#6366f1",width:2},itemStyle:{color:"#6366f1"}}],[r]);return k.jsx(Gx,{data:r,series:e,xAxisExtra:{boundaryGap:!1},...t})}function Sne({data:r,height:t=400,showLabel:e=!0,showLegend:n=!0,radius:a=["50%","70%"],highlightName:i=null}){const o=Be.useMemo(()=>({tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{show:n,orient:"vertical",right:10,top:"middle",textStyle:{fontSize:13}},series:[{name:"Distribution",type:"pie",radius:a,center:n?["40%","50%"]:["50%","50%"],data:r.map(l=>({...l,itemStyle:{...l.itemStyle,opacity:i&&l.name!==i?.3:1}})),emphasis:{itemStyle:{}},label:{show:e,formatter:"{b}: {d}%"}}]}),[r,e,n,a,i]),{chartRef:s}=Fx({option:o});return k.jsx("div",{ref:s,style:{width:"100%",height:t}})}function xne({data:r,height:t=40,width:e=100,color:n="#6366f1",trend:a}){const i=a==="up"?"#ef4444":a==="down"?"#22c55e":n,o=r.length>0?r:[0],s=Math.min(...o),u=Math.max(...o)-s||1,f=o.length>1?e/(o.length-1):e,c=o.map((h,d)=>{const p=o.length>1?d*f:e/2,g=t-(h-s)/u*(t-4)-2;return`${p},${g}`}).join(" "),v=`${c} ${e},${t} 0,${t}`;return k.jsxs("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,role:"img","aria-hidden":"true",className:"overflow-visible",children:[k.jsx("polygon",{points:v,fill:i,fillOpacity:"0.12"}),k.jsx("polyline",{points:c,fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const XI=["#6366f1","#8b5cf6","#d946ef","#ec4899","#f43f5e","#f97316","#eab308","#84cc16","#22c55e","#14b8a6"];function jI(r){return XI[r%XI.length]}function wne({data:r,series:t,height:e=180,xLabel:n="",yLabel:a="",onSeriesClick:i,onDateRangeSelect:o}){const s=Be.useMemo(()=>{const c=t.map((v,h)=>({name:v.name,type:"line",stack:"total",areaStyle:{opacity:.6},emphasis:{focus:"series"},smooth:!0,data:r.map(d=>d[v.key]??0),itemStyle:{color:v.color||jI(h)},lineStyle:{width:1,color:v.color||jI(h)}}));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{type:"scroll",bottom:0,data:t.map(v=>v.name),selectedMode:"multiple"},grid:{left:50,right:20,top:20,bottom:60,containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:r.map(v=>v.date),name:n,nameLocation:"middle",nameGap:30,axisLabel:{formatter:v=>{const h=new Date(v);return`${h.getMonth()+1}/${h.getDate()}`}}},yAxis:{type:"value",name:a,nameLocation:"middle",nameGap:40,minInterval:1},dataZoom:[{type:"inside",start:0,end:100},{type:"slider",show:!1}],series:c}},[r,t,n,a]),l=Be.useCallback(c=>{if(o&&r.length>0&&c.start!==void 0&&c.end!==void 0){const v=Math.floor(c.start/100*r.length),h=Math.ceil(c.end/100*r.length)-1;if(v>=0&&h<r.length){const d=r[v]?.date,p=r[h]?.date;d&&p&&o(d,p)}}},[r,o]),{chartRef:u,getInstance:f}=Fx({option:s,onDataZoom:l});return Be.useEffect(()=>{const c=f();if(!c||!i)return;const v=h=>{const d=Object.entries(h.selected).find(([,p])=>p===!1);if(d){const p=t.find(g=>g.name===d[0]);p&&i(p.key)}};return c.on("legendselectchanged",v),()=>{c.off("legendselectchanged",v)}},[f,t,i]),k.jsx("div",{ref:u,style:{width:"100%",height:e}})}/**
75
+ * table-core
76
+ *
77
+ * Copyright (c) TanStack
78
+ *
79
+ * This source code is licensed under the MIT license found in the
80
+ * LICENSE.md file in the root directory of this source tree.
81
+ *
82
+ * @license MIT
83
+ */function Ya(r,t){return typeof r=="function"?r(t):r}function wr(r,t){return e=>{t.setState(n=>({...n,[r]:Ya(e,n[r])}))}}function bp(r){return r instanceof Function}function bne(r){return Array.isArray(r)&&r.every(t=>typeof t=="number")}function Cne(r,t){const e=[],n=a=>{a.forEach(i=>{e.push(i);const o=t(i);o!=null&&o.length&&n(o)})};return n(r),e}function Ce(r,t,e){let n=[],a;return i=>{let o;e.key&&e.debug&&(o=Date.now());const s=r(i);if(!(s.length!==n.length||s.some((f,c)=>n[c]!==f)))return a;n=s;let u;if(e.key&&e.debug&&(u=Date.now()),a=t(...s),e==null||e.onChange==null||e.onChange(a),e.key&&e.debug&&e!=null&&e.debug()){const f=Math.round((Date.now()-o)*100)/100,c=Math.round((Date.now()-u)*100)/100,v=c/16,h=(d,p)=>{for(d=String(d);d.length<p;)d=" "+d;return d};console.info(`%c⏱ ${h(c,5)} /${h(f,5)} ms`,`
84
+ font-size: .6rem;
85
+ font-weight: bold;
86
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,e?.key)}return a}}function Te(r,t,e,n){return{debug:()=>{var a;return(a=r?.debugAll)!=null?a:r[t]},key:!1,onChange:n}}function Tne(r,t,e,n){const a=()=>{var o;return(o=i.getValue())!=null?o:r.options.renderFallbackValue},i={id:`${t.id}_${e.id}`,row:t,column:e,getValue:()=>t.getValue(n),renderValue:a,getContext:Ce(()=>[r,e,t,i],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Te(r.options,"debugCells"))};return r._features.forEach(o=>{o.createCell==null||o.createCell(i,e,t,r)},{}),i}function Ane(r,t,e,n){var a,i;const s={...r._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(a=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?a:typeof s.header=="string"?s.header:void 0,f;if(s.accessorFn?f=s.accessorFn:l&&(l.includes(".")?f=v=>{let h=v;for(const p of l.split(".")){var d;h=(d=h)==null?void 0:d[p]}return h}:f=v=>v[s.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:f,parent:n,depth:e,columnDef:s,columns:[],getFlatColumns:Ce(()=>[!0],()=>{var v;return[c,...(v=c.columns)==null?void 0:v.flatMap(h=>h.getFlatColumns())]},Te(r.options,"debugColumns")),getLeafColumns:Ce(()=>[r._getOrderColumnsFn()],v=>{var h;if((h=c.columns)!=null&&h.length){let d=c.columns.flatMap(p=>p.getLeafColumns());return v(d)}return[c]},Te(r.options,"debugColumns"))};for(const v of r._features)v.createColumn==null||v.createColumn(c,r);return c}const Gt="debugHeaders";function ZI(r,t,e){var n;let i={id:(n=e.id)!=null?n:t.id,column:t,index:e.index,isPlaceholder:!!e.isPlaceholder,placeholderId:e.placeholderId,depth:e.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(i),o},getContext:()=>({table:r,header:i,column:t})};return r._features.forEach(o=>{o.createHeader==null||o.createHeader(i,r)}),i}const Mne={createTable:r=>{r.getHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(t,e,n,a)=>{var i,o;const s=(i=n?.map(c=>e.find(v=>v.id===c)).filter(Boolean))!=null?i:[],l=(o=a?.map(c=>e.find(v=>v.id===c)).filter(Boolean))!=null?o:[],u=e.filter(c=>!(n!=null&&n.includes(c.id))&&!(a!=null&&a.includes(c.id)));return Av(t,[...s,...u,...l],r)},Te(r.options,Gt)),r.getCenterHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(t,e,n,a)=>(e=e.filter(i=>!(n!=null&&n.includes(i.id))&&!(a!=null&&a.includes(i.id))),Av(t,e,r,"center")),Te(r.options,Gt)),r.getLeftHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left],(t,e,n)=>{var a;const i=(a=n?.map(o=>e.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return Av(t,i,r,"left")},Te(r.options,Gt)),r.getRightHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.right],(t,e,n)=>{var a;const i=(a=n?.map(o=>e.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return Av(t,i,r,"right")},Te(r.options,Gt)),r.getFooterGroups=Ce(()=>[r.getHeaderGroups()],t=>[...t].reverse(),Te(r.options,Gt)),r.getLeftFooterGroups=Ce(()=>[r.getLeftHeaderGroups()],t=>[...t].reverse(),Te(r.options,Gt)),r.getCenterFooterGroups=Ce(()=>[r.getCenterHeaderGroups()],t=>[...t].reverse(),Te(r.options,Gt)),r.getRightFooterGroups=Ce(()=>[r.getRightHeaderGroups()],t=>[...t].reverse(),Te(r.options,Gt)),r.getFlatHeaders=Ce(()=>[r.getHeaderGroups()],t=>t.map(e=>e.headers).flat(),Te(r.options,Gt)),r.getLeftFlatHeaders=Ce(()=>[r.getLeftHeaderGroups()],t=>t.map(e=>e.headers).flat(),Te(r.options,Gt)),r.getCenterFlatHeaders=Ce(()=>[r.getCenterHeaderGroups()],t=>t.map(e=>e.headers).flat(),Te(r.options,Gt)),r.getRightFlatHeaders=Ce(()=>[r.getRightHeaderGroups()],t=>t.map(e=>e.headers).flat(),Te(r.options,Gt)),r.getCenterLeafHeaders=Ce(()=>[r.getCenterFlatHeaders()],t=>t.filter(e=>{var n;return!((n=e.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeftLeafHeaders=Ce(()=>[r.getLeftFlatHeaders()],t=>t.filter(e=>{var n;return!((n=e.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getRightLeafHeaders=Ce(()=>[r.getRightFlatHeaders()],t=>t.filter(e=>{var n;return!((n=e.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeafHeaders=Ce(()=>[r.getLeftHeaderGroups(),r.getCenterHeaderGroups(),r.getRightHeaderGroups()],(t,e,n)=>{var a,i,o,s,l,u;return[...(a=(i=t[0])==null?void 0:i.headers)!=null?a:[],...(o=(s=e[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(f=>f.getLeafHeaders()).flat()},Te(r.options,Gt))}};function Av(r,t,e,n){var a,i;let o=0;const s=function(v,h){h===void 0&&(h=1),o=Math.max(o,h),v.filter(d=>d.getIsVisible()).forEach(d=>{var p;(p=d.columns)!=null&&p.length&&s(d.columns,h+1)},0)};s(r);let l=[];const u=(v,h)=>{const d={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];v.forEach(g=>{const y=[...p].reverse()[0],m=g.column.depth===d.depth;let _,S=!1;if(m&&g.column.parent?_=g.column.parent:(_=g.column,S=!0),y&&y?.column===_)y.subHeaders.push(g);else{const x=ZI(e,_,{id:[n,h,_.id,g?.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(w=>w.column===_).length}`:void 0,depth:h,index:p.length});x.subHeaders.push(g),p.push(x)}d.headers.push(g),g.headerGroup=d}),l.push(d),h>0&&u(p,h-1)},f=t.map((v,h)=>ZI(e,v,{depth:o,index:h}));u(f,o-1),l.reverse();const c=v=>v.filter(d=>d.column.getIsVisible()).map(d=>{let p=0,g=0,y=[0];d.subHeaders&&d.subHeaders.length?(y=[],c(d.subHeaders).forEach(_=>{let{colSpan:S,rowSpan:x}=_;p+=S,y.push(x)})):p=1;const m=Math.min(...y);return g=g+m,d.colSpan=p,d.rowSpan=g,{colSpan:p,rowSpan:g}});return c((a=(i=l[0])==null?void 0:i.headers)!=null?a:[]),l}const Dne=(r,t,e,n,a,i,o)=>{let s={id:t,index:n,original:e,depth:a,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=r.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=r.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:r.options.renderFallbackValue},subRows:[],getLeafRows:()=>Cne(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?r.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const f=u.getParentRow();if(!f)break;l.push(f),u=f}return l.reverse()},getAllCells:Ce(()=>[r.getAllLeafColumns()],l=>l.map(u=>Tne(r,s,u,u.id)),Te(r.options,"debugRows")),_getAllCellsByColumnId:Ce(()=>[s.getAllCells()],l=>l.reduce((u,f)=>(u[f.column.id]=f,u),{}),Te(r.options,"debugRows"))};for(let l=0;l<r._features.length;l++){const u=r._features[l];u==null||u.createRow==null||u.createRow(s,r)}return s},Ine={createColumn:(r,t)=>{r._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,r.id),r.getFacetedRowModel=()=>r._getFacetedRowModel?r._getFacetedRowModel():t.getPreFilteredRowModel(),r._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,r.id),r.getFacetedUniqueValues=()=>r._getFacetedUniqueValues?r._getFacetedUniqueValues():new Map,r._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,r.id),r.getFacetedMinMaxValues=()=>{if(r._getFacetedMinMaxValues)return r._getFacetedMinMaxValues()}}},MB=(r,t,e)=>{var n,a;const i=e==null||(n=e.toString())==null?void 0:n.toLowerCase();return!!(!((a=r.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(i))};MB.autoRemove=r=>rn(r);const DB=(r,t,e)=>{var n;return!!(!((n=r.getValue(t))==null||(n=n.toString())==null)&&n.includes(e))};DB.autoRemove=r=>rn(r);const IB=(r,t,e)=>{var n;return((n=r.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===e?.toLowerCase()};IB.autoRemove=r=>rn(r);const LB=(r,t,e)=>{var n;return(n=r.getValue(t))==null?void 0:n.includes(e)};LB.autoRemove=r=>rn(r);const PB=(r,t,e)=>!e.some(n=>{var a;return!((a=r.getValue(t))!=null&&a.includes(n))});PB.autoRemove=r=>rn(r)||!(r!=null&&r.length);const RB=(r,t,e)=>e.some(n=>{var a;return(a=r.getValue(t))==null?void 0:a.includes(n)});RB.autoRemove=r=>rn(r)||!(r!=null&&r.length);const EB=(r,t,e)=>r.getValue(t)===e;EB.autoRemove=r=>rn(r);const kB=(r,t,e)=>r.getValue(t)==e;kB.autoRemove=r=>rn(r);const Hx=(r,t,e)=>{let[n,a]=e;const i=r.getValue(t);return i>=n&&i<=a};Hx.resolveFilterValue=r=>{let[t,e]=r,n=typeof t!="number"?parseFloat(t):t,a=typeof e!="number"?parseFloat(e):e,i=t===null||Number.isNaN(n)?-1/0:n,o=e===null||Number.isNaN(a)?1/0:a;if(i>o){const s=i;i=o,o=s}return[i,o]};Hx.autoRemove=r=>rn(r)||rn(r[0])&&rn(r[1]);const Qn={includesString:MB,includesStringSensitive:DB,equalsString:IB,arrIncludes:LB,arrIncludesAll:PB,arrIncludesSome:RB,equals:EB,weakEquals:kB,inNumberRange:Hx};function rn(r){return r==null||r===""}const Lne={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:r=>({columnFilters:[],...r}),getDefaultOptions:r=>({onColumnFiltersChange:wr("columnFilters",r),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(r,t)=>{r.getAutoFilterFn=()=>{const e=t.getCoreRowModel().flatRows[0],n=e?.getValue(r.id);return typeof n=="string"?Qn.includesString:typeof n=="number"?Qn.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Qn.equals:Array.isArray(n)?Qn.arrIncludes:Qn.weakEquals},r.getFilterFn=()=>{var e,n;return bp(r.columnDef.filterFn)?r.columnDef.filterFn:r.columnDef.filterFn==="auto"?r.getAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[r.columnDef.filterFn])!=null?e:Qn[r.columnDef.filterFn]},r.getCanFilter=()=>{var e,n,a;return((e=r.columnDef.enableColumnFilter)!=null?e:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&!!r.accessorFn},r.getIsFiltered=()=>r.getFilterIndex()>-1,r.getFilterValue=()=>{var e;return(e=t.getState().columnFilters)==null||(e=e.find(n=>n.id===r.id))==null?void 0:e.value},r.getFilterIndex=()=>{var e,n;return(e=(n=t.getState().columnFilters)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?e:-1},r.setFilterValue=e=>{t.setColumnFilters(n=>{const a=r.getFilterFn(),i=n?.find(f=>f.id===r.id),o=Ya(e,i?i.value:void 0);if(qI(a,o,r)){var s;return(s=n?.filter(f=>f.id!==r.id))!=null?s:[]}const l={id:r.id,value:o};if(i){var u;return(u=n?.map(f=>f.id===r.id?l:f))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(r,t)=>{r.columnFilters={},r.columnFiltersMeta={}},createTable:r=>{r.setColumnFilters=t=>{const e=r.getAllLeafColumns(),n=a=>{var i;return(i=Ya(t,a))==null?void 0:i.filter(o=>{const s=e.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(qI(l,o.value,s))return!1}return!0})};r.options.onColumnFiltersChange==null||r.options.onColumnFiltersChange(n)},r.resetColumnFilters=t=>{var e,n;r.setColumnFilters(t?[]:(e=(n=r.initialState)==null?void 0:n.columnFilters)!=null?e:[])},r.getPreFilteredRowModel=()=>r.getCoreRowModel(),r.getFilteredRowModel=()=>(!r._getFilteredRowModel&&r.options.getFilteredRowModel&&(r._getFilteredRowModel=r.options.getFilteredRowModel(r)),r.options.manualFiltering||!r._getFilteredRowModel?r.getPreFilteredRowModel():r._getFilteredRowModel())}};function qI(r,t,e){return(r&&r.autoRemove?r.autoRemove(t,e):!1)||typeof t>"u"||typeof t=="string"&&!t}const Pne=(r,t,e)=>e.reduce((n,a)=>{const i=a.getValue(r);return n+(typeof i=="number"?i:0)},0),Rne=(r,t,e)=>{let n;return e.forEach(a=>{const i=a.getValue(r);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},Ene=(r,t,e)=>{let n;return e.forEach(a=>{const i=a.getValue(r);i!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}),n},kne=(r,t,e)=>{let n,a;return e.forEach(i=>{const o=i.getValue(r);o!=null&&(n===void 0?o>=o&&(n=a=o):(n>o&&(n=o),a<o&&(a=o)))}),[n,a]},One=(r,t)=>{let e=0,n=0;if(t.forEach(a=>{let i=a.getValue(r);i!=null&&(i=+i)>=i&&(++e,n+=i)}),e)return n/e},Nne=(r,t)=>{if(!t.length)return;const e=t.map(i=>i.getValue(r));if(!bne(e))return;if(e.length===1)return e[0];const n=Math.floor(e.length/2),a=e.sort((i,o)=>i-o);return e.length%2!==0?a[n]:(a[n-1]+a[n])/2},Bne=(r,t)=>Array.from(new Set(t.map(e=>e.getValue(r))).values()),Vne=(r,t)=>new Set(t.map(e=>e.getValue(r))).size,zne=(r,t)=>t.length,fm={sum:Pne,min:Rne,max:Ene,extent:kne,mean:One,median:Nne,unique:Bne,uniqueCount:Vne,count:zne},Fne={getDefaultColumnDef:()=>({aggregatedCell:r=>{var t,e;return(t=(e=r.getValue())==null||e.toString==null?void 0:e.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:r=>({grouping:[],...r}),getDefaultOptions:r=>({onGroupingChange:wr("grouping",r),groupedColumnMode:"reorder"}),createColumn:(r,t)=>{r.toggleGrouping=()=>{t.setGrouping(e=>e!=null&&e.includes(r.id)?e.filter(n=>n!==r.id):[...e??[],r.id])},r.getCanGroup=()=>{var e,n;return((e=r.columnDef.enableGrouping)!=null?e:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!r.accessorFn||!!r.columnDef.getGroupingValue)},r.getIsGrouped=()=>{var e;return(e=t.getState().grouping)==null?void 0:e.includes(r.id)},r.getGroupedIndex=()=>{var e;return(e=t.getState().grouping)==null?void 0:e.indexOf(r.id)},r.getToggleGroupingHandler=()=>{const e=r.getCanGroup();return()=>{e&&r.toggleGrouping()}},r.getAutoAggregationFn=()=>{const e=t.getCoreRowModel().flatRows[0],n=e?.getValue(r.id);if(typeof n=="number")return fm.sum;if(Object.prototype.toString.call(n)==="[object Date]")return fm.extent},r.getAggregationFn=()=>{var e,n;if(!r)throw new Error;return bp(r.columnDef.aggregationFn)?r.columnDef.aggregationFn:r.columnDef.aggregationFn==="auto"?r.getAutoAggregationFn():(e=(n=t.options.aggregationFns)==null?void 0:n[r.columnDef.aggregationFn])!=null?e:fm[r.columnDef.aggregationFn]}},createTable:r=>{r.setGrouping=t=>r.options.onGroupingChange==null?void 0:r.options.onGroupingChange(t),r.resetGrouping=t=>{var e,n;r.setGrouping(t?[]:(e=(n=r.initialState)==null?void 0:n.grouping)!=null?e:[])},r.getPreGroupedRowModel=()=>r.getFilteredRowModel(),r.getGroupedRowModel=()=>(!r._getGroupedRowModel&&r.options.getGroupedRowModel&&(r._getGroupedRowModel=r.options.getGroupedRowModel(r)),r.options.manualGrouping||!r._getGroupedRowModel?r.getPreGroupedRowModel():r._getGroupedRowModel())},createRow:(r,t)=>{r.getIsGrouped=()=>!!r.groupingColumnId,r.getGroupingValue=e=>{if(r._groupingValuesCache.hasOwnProperty(e))return r._groupingValuesCache[e];const n=t.getColumn(e);return n!=null&&n.columnDef.getGroupingValue?(r._groupingValuesCache[e]=n.columnDef.getGroupingValue(r.original),r._groupingValuesCache[e]):r.getValue(e)},r._groupingValuesCache={}},createCell:(r,t,e,n)=>{r.getIsGrouped=()=>t.getIsGrouped()&&t.id===e.groupingColumnId,r.getIsPlaceholder=()=>!r.getIsGrouped()&&t.getIsGrouped(),r.getIsAggregated=()=>{var a;return!r.getIsGrouped()&&!r.getIsPlaceholder()&&!!((a=e.subRows)!=null&&a.length)}}};function Gne(r,t,e){if(!(t!=null&&t.length)||!e)return r;const n=r.filter(i=>!t.includes(i.id));return e==="remove"?n:[...t.map(i=>r.find(o=>o.id===i)).filter(Boolean),...n]}const Hne={getInitialState:r=>({columnOrder:[],...r}),getDefaultOptions:r=>({onColumnOrderChange:wr("columnOrder",r)}),createColumn:(r,t)=>{r.getIndex=Ce(e=>[ju(t,e)],e=>e.findIndex(n=>n.id===r.id),Te(t.options,"debugColumns")),r.getIsFirstColumn=e=>{var n;return((n=ju(t,e)[0])==null?void 0:n.id)===r.id},r.getIsLastColumn=e=>{var n;const a=ju(t,e);return((n=a[a.length-1])==null?void 0:n.id)===r.id}},createTable:r=>{r.setColumnOrder=t=>r.options.onColumnOrderChange==null?void 0:r.options.onColumnOrderChange(t),r.resetColumnOrder=t=>{var e;r.setColumnOrder(t?[]:(e=r.initialState.columnOrder)!=null?e:[])},r._getOrderColumnsFn=Ce(()=>[r.getState().columnOrder,r.getState().grouping,r.options.groupedColumnMode],(t,e,n)=>a=>{let i=[];if(!(t!=null&&t.length))i=a;else{const o=[...t],s=[...a];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(f=>f.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return Gne(i,e,n)},Te(r.options,"debugTable"))}},cm=()=>({left:[],right:[]}),$ne={getInitialState:r=>({columnPinning:cm(),...r}),getDefaultOptions:r=>({onColumnPinningChange:wr("columnPinning",r)}),createColumn:(r,t)=>{r.pin=e=>{const n=r.getLeafColumns().map(a=>a.id).filter(Boolean);t.setColumnPinning(a=>{var i,o;if(e==="right"){var s,l;return{left:((s=a?.left)!=null?s:[]).filter(c=>!(n!=null&&n.includes(c))),right:[...((l=a?.right)!=null?l:[]).filter(c=>!(n!=null&&n.includes(c))),...n]}}if(e==="left"){var u,f;return{left:[...((u=a?.left)!=null?u:[]).filter(c=>!(n!=null&&n.includes(c))),...n],right:((f=a?.right)!=null?f:[]).filter(c=>!(n!=null&&n.includes(c)))}}return{left:((i=a?.left)!=null?i:[]).filter(c=>!(n!=null&&n.includes(c))),right:((o=a?.right)!=null?o:[]).filter(c=>!(n!=null&&n.includes(c)))}})},r.getCanPin=()=>r.getLeafColumns().some(n=>{var a,i,o;return((a=n.columnDef.enablePinning)!=null?a:!0)&&((i=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?i:!0)}),r.getIsPinned=()=>{const e=r.getLeafColumns().map(s=>s.id),{left:n,right:a}=t.getState().columnPinning,i=e.some(s=>n?.includes(s)),o=e.some(s=>a?.includes(s));return i?"left":o?"right":!1},r.getPinnedIndex=()=>{var e,n;const a=r.getIsPinned();return a?(e=(n=t.getState().columnPinning)==null||(n=n[a])==null?void 0:n.indexOf(r.id))!=null?e:-1:0}},createRow:(r,t)=>{r.getCenterVisibleCells=Ce(()=>[r._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,a)=>{const i=[...n??[],...a??[]];return e.filter(o=>!i.includes(o.column.id))},Te(t.options,"debugRows")),r.getLeftVisibleCells=Ce(()=>[r._getAllVisibleCells(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(i=>e.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Te(t.options,"debugRows")),r.getRightVisibleCells=Ce(()=>[r._getAllVisibleCells(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(i=>e.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Te(t.options,"debugRows"))},createTable:r=>{r.setColumnPinning=t=>r.options.onColumnPinningChange==null?void 0:r.options.onColumnPinningChange(t),r.resetColumnPinning=t=>{var e,n;return r.setColumnPinning(t?cm():(e=(n=r.initialState)==null?void 0:n.columnPinning)!=null?e:cm())},r.getIsSomeColumnsPinned=t=>{var e;const n=r.getState().columnPinning;if(!t){var a,i;return!!((a=n.left)!=null&&a.length||(i=n.right)!=null&&i.length)}return!!((e=n[t])!=null&&e.length)},r.getLeftLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left],(t,e)=>(e??[]).map(n=>t.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getRightLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.right],(t,e)=>(e??[]).map(n=>t.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getCenterLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(t,e,n)=>{const a=[...e??[],...n??[]];return t.filter(i=>!a.includes(i.id))},Te(r.options,"debugColumns"))}};function Une(r){return r||(typeof document<"u"?document:null)}const Mv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},vm=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Wne={getDefaultColumnDef:()=>Mv,getInitialState:r=>({columnSizing:{},columnSizingInfo:vm(),...r}),getDefaultOptions:r=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:wr("columnSizing",r),onColumnSizingInfoChange:wr("columnSizingInfo",r)}),createColumn:(r,t)=>{r.getSize=()=>{var e,n,a;const i=t.getState().columnSizing[r.id];return Math.min(Math.max((e=r.columnDef.minSize)!=null?e:Mv.minSize,(n=i??r.columnDef.size)!=null?n:Mv.size),(a=r.columnDef.maxSize)!=null?a:Mv.maxSize)},r.getStart=Ce(e=>[e,ju(t,e),t.getState().columnSizing],(e,n)=>n.slice(0,r.getIndex(e)).reduce((a,i)=>a+i.getSize(),0),Te(t.options,"debugColumns")),r.getAfter=Ce(e=>[e,ju(t,e),t.getState().columnSizing],(e,n)=>n.slice(r.getIndex(e)+1).reduce((a,i)=>a+i.getSize(),0),Te(t.options,"debugColumns")),r.resetSize=()=>{t.setColumnSizing(e=>{let{[r.id]:n,...a}=e;return a})},r.getCanResize=()=>{var e,n;return((e=r.columnDef.enableResizing)!=null?e:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},r.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===r.id},createHeader:(r,t)=>{r.getSize=()=>{let e=0;const n=a=>{if(a.subHeaders.length)a.subHeaders.forEach(n);else{var i;e+=(i=a.column.getSize())!=null?i:0}};return n(r),e},r.getStart=()=>{if(r.index>0){const e=r.headerGroup.headers[r.index-1];return e.getStart()+e.getSize()}return 0},r.getResizeHandler=e=>{const n=t.getColumn(r.column.id),a=n?.getCanResize();return i=>{if(!n||!a||(i.persist==null||i.persist(),hm(i)&&i.touches&&i.touches.length>1))return;const o=r.getSize(),s=r?r.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=hm(i)?Math.round(i.touches[0].clientX):i.clientX,u={},f=(y,m)=>{typeof m=="number"&&(t.setColumnSizingInfo(_=>{var S,x;const w=t.options.columnResizeDirection==="rtl"?-1:1,b=(m-((S=_?.startOffset)!=null?S:0))*w,T=Math.max(b/((x=_?.startSize)!=null?x:0),-.999999);return _.columnSizingStart.forEach(C=>{let[A,M]=C;u[A]=Math.round(Math.max(M+M*T,0)*100)/100}),{..._,deltaOffset:b,deltaPercentage:T}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(_=>({..._,...u})))},c=y=>f("move",y),v=y=>{f("end",y),t.setColumnSizingInfo(m=>({...m,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=Une(e),d={moveHandler:y=>c(y.clientX),upHandler:y=>{h?.removeEventListener("mousemove",d.moveHandler),h?.removeEventListener("mouseup",d.upHandler),v(y.clientX)}},p={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),c(y.touches[0].clientX),!1),upHandler:y=>{var m;h?.removeEventListener("touchmove",p.moveHandler),h?.removeEventListener("touchend",p.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),v((m=y.touches[0])==null?void 0:m.clientX)}},g=Yne()?{passive:!1}:!1;hm(i)?(h?.addEventListener("touchmove",p.moveHandler,g),h?.addEventListener("touchend",p.upHandler,g)):(h?.addEventListener("mousemove",d.moveHandler,g),h?.addEventListener("mouseup",d.upHandler,g)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:r=>{r.setColumnSizing=t=>r.options.onColumnSizingChange==null?void 0:r.options.onColumnSizingChange(t),r.setColumnSizingInfo=t=>r.options.onColumnSizingInfoChange==null?void 0:r.options.onColumnSizingInfoChange(t),r.resetColumnSizing=t=>{var e;r.setColumnSizing(t?{}:(e=r.initialState.columnSizing)!=null?e:{})},r.resetHeaderSizeInfo=t=>{var e;r.setColumnSizingInfo(t?vm():(e=r.initialState.columnSizingInfo)!=null?e:vm())},r.getTotalSize=()=>{var t,e;return(t=(e=r.getHeaderGroups()[0])==null?void 0:e.headers.reduce((n,a)=>n+a.getSize(),0))!=null?t:0},r.getLeftTotalSize=()=>{var t,e;return(t=(e=r.getLeftHeaderGroups()[0])==null?void 0:e.headers.reduce((n,a)=>n+a.getSize(),0))!=null?t:0},r.getCenterTotalSize=()=>{var t,e;return(t=(e=r.getCenterHeaderGroups()[0])==null?void 0:e.headers.reduce((n,a)=>n+a.getSize(),0))!=null?t:0},r.getRightTotalSize=()=>{var t,e;return(t=(e=r.getRightHeaderGroups()[0])==null?void 0:e.headers.reduce((n,a)=>n+a.getSize(),0))!=null?t:0}}};let Dv=null;function Yne(){if(typeof Dv=="boolean")return Dv;let r=!1;try{const t={get passive(){return r=!0,!1}},e=()=>{};window.addEventListener("test",e,t),window.removeEventListener("test",e)}catch{r=!1}return Dv=r,Dv}function hm(r){return r.type==="touchstart"}const Xne={getInitialState:r=>({columnVisibility:{},...r}),getDefaultOptions:r=>({onColumnVisibilityChange:wr("columnVisibility",r)}),createColumn:(r,t)=>{r.toggleVisibility=e=>{r.getCanHide()&&t.setColumnVisibility(n=>({...n,[r.id]:e??!r.getIsVisible()}))},r.getIsVisible=()=>{var e,n;const a=r.columns;return(e=a.length?a.some(i=>i.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[r.id])!=null?e:!0},r.getCanHide=()=>{var e,n;return((e=r.columnDef.enableHiding)!=null?e:!0)&&((n=t.options.enableHiding)!=null?n:!0)},r.getToggleVisibilityHandler=()=>e=>{r.toggleVisibility==null||r.toggleVisibility(e.target.checked)}},createRow:(r,t)=>{r._getAllVisibleCells=Ce(()=>[r.getAllCells(),t.getState().columnVisibility],e=>e.filter(n=>n.column.getIsVisible()),Te(t.options,"debugRows")),r.getVisibleCells=Ce(()=>[r.getLeftVisibleCells(),r.getCenterVisibleCells(),r.getRightVisibleCells()],(e,n,a)=>[...e,...n,...a],Te(t.options,"debugRows"))},createTable:r=>{const t=(e,n)=>Ce(()=>[n(),n().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),Te(r.options,"debugColumns"));r.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>r.getAllFlatColumns()),r.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>r.getAllLeafColumns()),r.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>r.getLeftLeafColumns()),r.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>r.getRightLeafColumns()),r.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>r.getCenterLeafColumns()),r.setColumnVisibility=e=>r.options.onColumnVisibilityChange==null?void 0:r.options.onColumnVisibilityChange(e),r.resetColumnVisibility=e=>{var n;r.setColumnVisibility(e?{}:(n=r.initialState.columnVisibility)!=null?n:{})},r.toggleAllColumnsVisible=e=>{var n;e=(n=e)!=null?n:!r.getIsAllColumnsVisible(),r.setColumnVisibility(r.getAllLeafColumns().reduce((a,i)=>({...a,[i.id]:e||!(i.getCanHide!=null&&i.getCanHide())}),{}))},r.getIsAllColumnsVisible=()=>!r.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),r.getIsSomeColumnsVisible=()=>r.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),r.getToggleAllColumnsVisibilityHandler=()=>e=>{var n;r.toggleAllColumnsVisible((n=e.target)==null?void 0:n.checked)}}};function ju(r,t){return t?t==="center"?r.getCenterVisibleLeafColumns():t==="left"?r.getLeftVisibleLeafColumns():r.getRightVisibleLeafColumns():r.getVisibleLeafColumns()}const jne={createTable:r=>{r._getGlobalFacetedRowModel=r.options.getFacetedRowModel&&r.options.getFacetedRowModel(r,"__global__"),r.getGlobalFacetedRowModel=()=>r.options.manualFiltering||!r._getGlobalFacetedRowModel?r.getPreFilteredRowModel():r._getGlobalFacetedRowModel(),r._getGlobalFacetedUniqueValues=r.options.getFacetedUniqueValues&&r.options.getFacetedUniqueValues(r,"__global__"),r.getGlobalFacetedUniqueValues=()=>r._getGlobalFacetedUniqueValues?r._getGlobalFacetedUniqueValues():new Map,r._getGlobalFacetedMinMaxValues=r.options.getFacetedMinMaxValues&&r.options.getFacetedMinMaxValues(r,"__global__"),r.getGlobalFacetedMinMaxValues=()=>{if(r._getGlobalFacetedMinMaxValues)return r._getGlobalFacetedMinMaxValues()}}},Zne={getInitialState:r=>({globalFilter:void 0,...r}),getDefaultOptions:r=>({onGlobalFilterChange:wr("globalFilter",r),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var e;const n=(e=r.getCoreRowModel().flatRows[0])==null||(e=e._getAllCellsByColumnId()[t.id])==null?void 0:e.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(r,t)=>{r.getCanGlobalFilter=()=>{var e,n,a,i;return((e=r.columnDef.enableGlobalFilter)!=null?e:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((a=t.options.enableFilters)!=null?a:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(r))!=null?i:!0)&&!!r.accessorFn}},createTable:r=>{r.getGlobalAutoFilterFn=()=>Qn.includesString,r.getGlobalFilterFn=()=>{var t,e;const{globalFilterFn:n}=r.options;return bp(n)?n:n==="auto"?r.getGlobalAutoFilterFn():(t=(e=r.options.filterFns)==null?void 0:e[n])!=null?t:Qn[n]},r.setGlobalFilter=t=>{r.options.onGlobalFilterChange==null||r.options.onGlobalFilterChange(t)},r.resetGlobalFilter=t=>{r.setGlobalFilter(t?void 0:r.initialState.globalFilter)}}},qne={getInitialState:r=>({expanded:{},...r}),getDefaultOptions:r=>({onExpandedChange:wr("expanded",r),paginateExpandedRows:!0}),createTable:r=>{let t=!1,e=!1;r._autoResetExpanded=()=>{var n,a;if(!t){r._queue(()=>{t=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetExpanded)!=null?n:!r.options.manualExpanding){if(e)return;e=!0,r._queue(()=>{r.resetExpanded(),e=!1})}},r.setExpanded=n=>r.options.onExpandedChange==null?void 0:r.options.onExpandedChange(n),r.toggleAllRowsExpanded=n=>{n??!r.getIsAllRowsExpanded()?r.setExpanded(!0):r.setExpanded({})},r.resetExpanded=n=>{var a,i;r.setExpanded(n?{}:(a=(i=r.initialState)==null?void 0:i.expanded)!=null?a:{})},r.getCanSomeRowsExpand=()=>r.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),r.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),r.toggleAllRowsExpanded()},r.getIsSomeRowsExpanded=()=>{const n=r.getState().expanded;return n===!0||Object.values(n).some(Boolean)},r.getIsAllRowsExpanded=()=>{const n=r.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||r.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},r.getExpandedDepth=()=>{let n=0;return(r.getState().expanded===!0?Object.keys(r.getRowModel().rowsById):Object.keys(r.getState().expanded)).forEach(i=>{const o=i.split(".");n=Math.max(n,o.length)}),n},r.getPreExpandedRowModel=()=>r.getSortedRowModel(),r.getExpandedRowModel=()=>(!r._getExpandedRowModel&&r.options.getExpandedRowModel&&(r._getExpandedRowModel=r.options.getExpandedRowModel(r)),r.options.manualExpanding||!r._getExpandedRowModel?r.getPreExpandedRowModel():r._getExpandedRowModel())},createRow:(r,t)=>{r.toggleExpanded=e=>{t.setExpanded(n=>{var a;const i=n===!0?!0:!!(n!=null&&n[r.id]);let o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,e=(a=e)!=null?a:!i,!i&&e)return{...o,[r.id]:!0};if(i&&!e){const{[r.id]:s,...l}=o;return l}return n})},r.getIsExpanded=()=>{var e;const n=t.getState().expanded;return!!((e=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(r))!=null?e:n===!0||n?.[r.id])},r.getCanExpand=()=>{var e,n,a;return(e=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(r))!=null?e:((n=t.options.enableExpanding)!=null?n:!0)&&!!((a=r.subRows)!=null&&a.length)},r.getIsAllParentsExpanded=()=>{let e=!0,n=r;for(;e&&n.parentId;)n=t.getRow(n.parentId,!0),e=n.getIsExpanded();return e},r.getToggleExpandedHandler=()=>{const e=r.getCanExpand();return()=>{e&&r.toggleExpanded()}}}},$_=0,U_=10,dm=()=>({pageIndex:$_,pageSize:U_}),Kne={getInitialState:r=>({...r,pagination:{...dm(),...r?.pagination}}),getDefaultOptions:r=>({onPaginationChange:wr("pagination",r)}),createTable:r=>{let t=!1,e=!1;r._autoResetPageIndex=()=>{var n,a;if(!t){r._queue(()=>{t=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetPageIndex)!=null?n:!r.options.manualPagination){if(e)return;e=!0,r._queue(()=>{r.resetPageIndex(),e=!1})}},r.setPagination=n=>{const a=i=>Ya(n,i);return r.options.onPaginationChange==null?void 0:r.options.onPaginationChange(a)},r.resetPagination=n=>{var a;r.setPagination(n?dm():(a=r.initialState.pagination)!=null?a:dm())},r.setPageIndex=n=>{r.setPagination(a=>{let i=Ya(n,a.pageIndex);const o=typeof r.options.pageCount>"u"||r.options.pageCount===-1?Number.MAX_SAFE_INTEGER:r.options.pageCount-1;return i=Math.max(0,Math.min(i,o)),{...a,pageIndex:i}})},r.resetPageIndex=n=>{var a,i;r.setPageIndex(n?$_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?a:$_)},r.resetPageSize=n=>{var a,i;r.setPageSize(n?U_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?a:U_)},r.setPageSize=n=>{r.setPagination(a=>{const i=Math.max(1,Ya(n,a.pageSize)),o=a.pageSize*a.pageIndex,s=Math.floor(o/i);return{...a,pageIndex:s,pageSize:i}})},r.setPageCount=n=>r.setPagination(a=>{var i;let o=Ya(n,(i=r.options.pageCount)!=null?i:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...a,pageCount:o}}),r.getPageOptions=Ce(()=>[r.getPageCount()],n=>{let a=[];return n&&n>0&&(a=[...new Array(n)].fill(null).map((i,o)=>o)),a},Te(r.options,"debugTable")),r.getCanPreviousPage=()=>r.getState().pagination.pageIndex>0,r.getCanNextPage=()=>{const{pageIndex:n}=r.getState().pagination,a=r.getPageCount();return a===-1?!0:a===0?!1:n<a-1},r.previousPage=()=>r.setPageIndex(n=>n-1),r.nextPage=()=>r.setPageIndex(n=>n+1),r.firstPage=()=>r.setPageIndex(0),r.lastPage=()=>r.setPageIndex(r.getPageCount()-1),r.getPrePaginationRowModel=()=>r.getExpandedRowModel(),r.getPaginationRowModel=()=>(!r._getPaginationRowModel&&r.options.getPaginationRowModel&&(r._getPaginationRowModel=r.options.getPaginationRowModel(r)),r.options.manualPagination||!r._getPaginationRowModel?r.getPrePaginationRowModel():r._getPaginationRowModel()),r.getPageCount=()=>{var n;return(n=r.options.pageCount)!=null?n:Math.ceil(r.getRowCount()/r.getState().pagination.pageSize)},r.getRowCount=()=>{var n;return(n=r.options.rowCount)!=null?n:r.getPrePaginationRowModel().rows.length}}},pm=()=>({top:[],bottom:[]}),Jne={getInitialState:r=>({rowPinning:pm(),...r}),getDefaultOptions:r=>({onRowPinningChange:wr("rowPinning",r)}),createRow:(r,t)=>{r.pin=(e,n,a)=>{const i=n?r.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=a?r.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,r.id,...i]);t.setRowPinning(l=>{var u,f;if(e==="bottom"){var c,v;return{top:((c=l?.top)!=null?c:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((v=l?.bottom)!=null?v:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(e==="top"){var h,d;return{top:[...((h=l?.top)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((d=l?.bottom)!=null?d:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l?.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((f=l?.bottom)!=null?f:[]).filter(p=>!(s!=null&&s.has(p)))}})},r.getCanPin=()=>{var e;const{enableRowPinning:n,enablePinning:a}=t.options;return typeof n=="function"?n(r):(e=n??a)!=null?e:!0},r.getIsPinned=()=>{const e=[r.id],{top:n,bottom:a}=t.getState().rowPinning,i=e.some(s=>n?.includes(s)),o=e.some(s=>a?.includes(s));return i?"top":o?"bottom":!1},r.getPinnedIndex=()=>{var e,n;const a=r.getIsPinned();if(!a)return-1;const i=(e=a==="top"?t.getTopRows():t.getBottomRows())==null?void 0:e.map(o=>{let{id:s}=o;return s});return(n=i?.indexOf(r.id))!=null?n:-1}},createTable:r=>{r.setRowPinning=t=>r.options.onRowPinningChange==null?void 0:r.options.onRowPinningChange(t),r.resetRowPinning=t=>{var e,n;return r.setRowPinning(t?pm():(e=(n=r.initialState)==null?void 0:n.rowPinning)!=null?e:pm())},r.getIsSomeRowsPinned=t=>{var e;const n=r.getState().rowPinning;if(!t){var a,i;return!!((a=n.top)!=null&&a.length||(i=n.bottom)!=null&&i.length)}return!!((e=n[t])!=null&&e.length)},r._getPinnedRows=(t,e,n)=>{var a;return((a=r.options.keepPinnedRows)==null||a?(e??[]).map(o=>{const s=r.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(e??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},r.getTopRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top],(t,e)=>r._getPinnedRows(t,e,"top"),Te(r.options,"debugRows")),r.getBottomRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.bottom],(t,e)=>r._getPinnedRows(t,e,"bottom"),Te(r.options,"debugRows")),r.getCenterRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top,r.getState().rowPinning.bottom],(t,e,n)=>{const a=new Set([...e??[],...n??[]]);return t.filter(i=>!a.has(i.id))},Te(r.options,"debugRows"))}},Qne={getInitialState:r=>({rowSelection:{},...r}),getDefaultOptions:r=>({onRowSelectionChange:wr("rowSelection",r),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:r=>{r.setRowSelection=t=>r.options.onRowSelectionChange==null?void 0:r.options.onRowSelectionChange(t),r.resetRowSelection=t=>{var e;return r.setRowSelection(t?{}:(e=r.initialState.rowSelection)!=null?e:{})},r.toggleAllRowsSelected=t=>{r.setRowSelection(e=>{t=typeof t<"u"?t:!r.getIsAllRowsSelected();const n={...e},a=r.getPreGroupedRowModel().flatRows;return t?a.forEach(i=>{i.getCanSelect()&&(n[i.id]=!0)}):a.forEach(i=>{delete n[i.id]}),n})},r.toggleAllPageRowsSelected=t=>r.setRowSelection(e=>{const n=typeof t<"u"?t:!r.getIsAllPageRowsSelected(),a={...e};return r.getRowModel().rows.forEach(i=>{W_(a,i.id,n,!0,r)}),a}),r.getPreSelectedRowModel=()=>r.getCoreRowModel(),r.getSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getCoreRowModel()],(t,e)=>Object.keys(t).length?gm(r,e):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getFilteredSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getFilteredRowModel()],(t,e)=>Object.keys(t).length?gm(r,e):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getGroupedSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getSortedRowModel()],(t,e)=>Object.keys(t).length?gm(r,e):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getIsAllRowsSelected=()=>{const t=r.getFilteredRowModel().flatRows,{rowSelection:e}=r.getState();let n=!!(t.length&&Object.keys(e).length);return n&&t.some(a=>a.getCanSelect()&&!e[a.id])&&(n=!1),n},r.getIsAllPageRowsSelected=()=>{const t=r.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:e}=r.getState();let n=!!t.length;return n&&t.some(a=>!e[a.id])&&(n=!1),n},r.getIsSomeRowsSelected=()=>{var t;const e=Object.keys((t=r.getState().rowSelection)!=null?t:{}).length;return e>0&&e<r.getFilteredRowModel().flatRows.length},r.getIsSomePageRowsSelected=()=>{const t=r.getPaginationRowModel().flatRows;return r.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},r.getToggleAllRowsSelectedHandler=()=>t=>{r.toggleAllRowsSelected(t.target.checked)},r.getToggleAllPageRowsSelectedHandler=()=>t=>{r.toggleAllPageRowsSelected(t.target.checked)}},createRow:(r,t)=>{r.toggleSelected=(e,n)=>{const a=r.getIsSelected();t.setRowSelection(i=>{var o;if(e=typeof e<"u"?e:!a,r.getCanSelect()&&a===e)return i;const s={...i};return W_(s,r.id,e,(o=n?.selectChildren)!=null?o:!0,t),s})},r.getIsSelected=()=>{const{rowSelection:e}=t.getState();return $x(r,e)},r.getIsSomeSelected=()=>{const{rowSelection:e}=t.getState();return Y_(r,e)==="some"},r.getIsAllSubRowsSelected=()=>{const{rowSelection:e}=t.getState();return Y_(r,e)==="all"},r.getCanSelect=()=>{var e;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(r):(e=t.options.enableRowSelection)!=null?e:!0},r.getCanSelectSubRows=()=>{var e;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(r):(e=t.options.enableSubRowSelection)!=null?e:!0},r.getCanMultiSelect=()=>{var e;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(r):(e=t.options.enableMultiRowSelection)!=null?e:!0},r.getToggleSelectedHandler=()=>{const e=r.getCanSelect();return n=>{var a;e&&r.toggleSelected((a=n.target)==null?void 0:a.checked)}}}},W_=(r,t,e,n,a)=>{var i;const o=a.getRow(t,!0);e?(o.getCanMultiSelect()||Object.keys(r).forEach(s=>delete r[s]),o.getCanSelect()&&(r[t]=!0)):delete r[t],n&&(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>W_(r,s.id,e,n,a))};function gm(r,t){const e=r.getState().rowSelection,n=[],a={},i=function(o,s){return o.map(l=>{var u;const f=$x(l,e);if(f&&(n.push(l),a[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),f)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:a}}function $x(r,t){var e;return(e=t[r.id])!=null?e:!1}function Y_(r,t,e){var n;if(!((n=r.subRows)!=null&&n.length))return!1;let a=!0,i=!1;return r.subRows.forEach(o=>{if(!(i&&!a)&&(o.getCanSelect()&&($x(o,t)?i=!0:a=!1),o.subRows&&o.subRows.length)){const s=Y_(o,t);s==="all"?i=!0:(s==="some"&&(i=!0),a=!1)}}),a?"all":i?"some":!1}const X_=/([0-9]+)/gm,eae=(r,t,e)=>OB(hi(r.getValue(e)).toLowerCase(),hi(t.getValue(e)).toLowerCase()),tae=(r,t,e)=>OB(hi(r.getValue(e)),hi(t.getValue(e))),rae=(r,t,e)=>Ux(hi(r.getValue(e)).toLowerCase(),hi(t.getValue(e)).toLowerCase()),nae=(r,t,e)=>Ux(hi(r.getValue(e)),hi(t.getValue(e))),aae=(r,t,e)=>{const n=r.getValue(e),a=t.getValue(e);return n>a?1:n<a?-1:0},iae=(r,t,e)=>Ux(r.getValue(e),t.getValue(e));function Ux(r,t){return r===t?0:r>t?1:-1}function hi(r){return typeof r=="number"?isNaN(r)||r===1/0||r===-1/0?"":String(r):typeof r=="string"?r:""}function OB(r,t){const e=r.split(X_).filter(Boolean),n=t.split(X_).filter(Boolean);for(;e.length&&n.length;){const a=e.shift(),i=n.shift(),o=parseInt(a,10),s=parseInt(i,10),l=[o,s].sort();if(isNaN(l[0])){if(a>i)return 1;if(i>a)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return e.length-n.length}const mu={alphanumeric:eae,alphanumericCaseSensitive:tae,text:rae,textCaseSensitive:nae,datetime:aae,basic:iae},oae={getInitialState:r=>({sorting:[],...r}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:r=>({onSortingChange:wr("sorting",r),isMultiSortEvent:t=>t.shiftKey}),createColumn:(r,t)=>{r.getAutoSortingFn=()=>{const e=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const a of e){const i=a?.getValue(r.id);if(Object.prototype.toString.call(i)==="[object Date]")return mu.datetime;if(typeof i=="string"&&(n=!0,i.split(X_).length>1))return mu.alphanumeric}return n?mu.text:mu.basic},r.getAutoSortDir=()=>{const e=t.getFilteredRowModel().flatRows[0];return typeof e?.getValue(r.id)=="string"?"asc":"desc"},r.getSortingFn=()=>{var e,n;if(!r)throw new Error;return bp(r.columnDef.sortingFn)?r.columnDef.sortingFn:r.columnDef.sortingFn==="auto"?r.getAutoSortingFn():(e=(n=t.options.sortingFns)==null?void 0:n[r.columnDef.sortingFn])!=null?e:mu[r.columnDef.sortingFn]},r.toggleSorting=(e,n)=>{const a=r.getNextSortingOrder(),i=typeof e<"u"&&e!==null;t.setSorting(o=>{const s=o?.find(h=>h.id===r.id),l=o?.findIndex(h=>h.id===r.id);let u=[],f,c=i?e:a==="desc";if(o!=null&&o.length&&r.getCanMultiSort()&&n?s?f="toggle":f="add":o!=null&&o.length&&l!==o.length-1?f="replace":s?f="toggle":f="replace",f==="toggle"&&(i||a||(f="remove")),f==="add"){var v;u=[...o,{id:r.id,desc:c}],u.splice(0,u.length-((v=t.options.maxMultiSortColCount)!=null?v:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=o.map(h=>h.id===r.id?{...h,desc:c}:h):f==="remove"?u=o.filter(h=>h.id!==r.id):u=[{id:r.id,desc:c}];return u})},r.getFirstSortDir=()=>{var e,n;return((e=(n=r.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?e:r.getAutoSortDir()==="desc")?"desc":"asc"},r.getNextSortingOrder=e=>{var n,a;const i=r.getFirstSortDir(),o=r.getIsSorted();return o?o!==i&&((n=t.options.enableSortingRemoval)==null||n)&&(!(e&&(a=t.options.enableMultiRemove)!=null)||a)?!1:o==="desc"?"asc":"desc":i},r.getCanSort=()=>{var e,n;return((e=r.columnDef.enableSorting)!=null?e:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!r.accessorFn},r.getCanMultiSort=()=>{var e,n;return(e=(n=r.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?e:!!r.accessorFn},r.getIsSorted=()=>{var e;const n=(e=t.getState().sorting)==null?void 0:e.find(a=>a.id===r.id);return n?n.desc?"desc":"asc":!1},r.getSortIndex=()=>{var e,n;return(e=(n=t.getState().sorting)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?e:-1},r.clearSorting=()=>{t.setSorting(e=>e!=null&&e.length?e.filter(n=>n.id!==r.id):[])},r.getToggleSortingHandler=()=>{const e=r.getCanSort();return n=>{e&&(n.persist==null||n.persist(),r.toggleSorting==null||r.toggleSorting(void 0,r.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:r=>{r.setSorting=t=>r.options.onSortingChange==null?void 0:r.options.onSortingChange(t),r.resetSorting=t=>{var e,n;r.setSorting(t?[]:(e=(n=r.initialState)==null?void 0:n.sorting)!=null?e:[])},r.getPreSortedRowModel=()=>r.getGroupedRowModel(),r.getSortedRowModel=()=>(!r._getSortedRowModel&&r.options.getSortedRowModel&&(r._getSortedRowModel=r.options.getSortedRowModel(r)),r.options.manualSorting||!r._getSortedRowModel?r.getPreSortedRowModel():r._getSortedRowModel())}},sae=[Mne,Xne,Hne,$ne,Ine,Lne,jne,Zne,oae,Fne,qne,Kne,Jne,Qne,Wne];function lae(r){var t,e;const n=[...sae,...(t=r._features)!=null?t:[]];let a={_features:n};const i=a._features.reduce((v,h)=>Object.assign(v,h.getDefaultOptions==null?void 0:h.getDefaultOptions(a)),{}),o=v=>a.options.mergeOptions?a.options.mergeOptions(i,v):{...i,...v};let l={...{},...(e=r.initialState)!=null?e:{}};a._features.forEach(v=>{var h;l=(h=v.getInitialState==null?void 0:v.getInitialState(l))!=null?h:l});const u=[];let f=!1;const c={_features:n,options:{...i,...r},initialState:l,_queue:v=>{u.push(v),f||(f=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();f=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{a.setState(a.initialState)},setOptions:v=>{const h=Ya(v,a.options);a.options=o(h)},getState:()=>a.options.state,setState:v=>{a.options.onStateChange==null||a.options.onStateChange(v)},_getRowId:(v,h,d)=>{var p;return(p=a.options.getRowId==null?void 0:a.options.getRowId(v,h,d))!=null?p:`${d?[d.id,h].join("."):h}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(v,h)=>{let d=(h?a.getPrePaginationRowModel():a.getRowModel()).rowsById[v];if(!d&&(d=a.getCoreRowModel().rowsById[v],!d))throw new Error;return d},_getDefaultColumnDef:Ce(()=>[a.options.defaultColumn],v=>{var h;return v=(h=v)!=null?h:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,g;return(p=(g=d.renderValue())==null||g.toString==null?void 0:g.toString())!=null?p:null},...a._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...v}},Te(r,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ce(()=>[a._getColumnDefs()],v=>{const h=function(d,p,g){return g===void 0&&(g=0),d.map(y=>{const m=Ane(a,y,g,p),_=y;return m.columns=_.columns?h(_.columns,m,g+1):[],m})};return h(v)},Te(r,"debugColumns")),getAllFlatColumns:Ce(()=>[a.getAllColumns()],v=>v.flatMap(h=>h.getFlatColumns()),Te(r,"debugColumns")),_getAllFlatColumnsById:Ce(()=>[a.getAllFlatColumns()],v=>v.reduce((h,d)=>(h[d.id]=d,h),{}),Te(r,"debugColumns")),getAllLeafColumns:Ce(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(v,h)=>{let d=v.flatMap(p=>p.getLeafColumns());return h(d)},Te(r,"debugColumns")),getColumn:v=>a._getAllFlatColumnsById()[v]};Object.assign(a,c);for(let v=0;v<a._features.length;v++){const h=a._features[v];h==null||h.createTable==null||h.createTable(a)}return a}function uae(){return r=>Ce(()=>[r.options.data],t=>{const e={rows:[],flatRows:[],rowsById:{}},n=function(a,i,o){i===void 0&&(i=0);const s=[];for(let u=0;u<a.length;u++){const f=Dne(r,r._getRowId(a[u],u,o),a[u],u,i,void 0,o?.id);if(e.flatRows.push(f),e.rowsById[f.id]=f,s.push(f),r.options.getSubRows){var l;f.originalSubRows=r.options.getSubRows(a[u],u),(l=f.originalSubRows)!=null&&l.length&&(f.subRows=n(f.originalSubRows,i+1,f))}}return s};return e.rows=n(t),e},Te(r.options,"debugTable","getRowModel",()=>r._autoResetPageIndex()))}function fae(r){const t=[],e=n=>{var a;t.push(n),(a=n.subRows)!=null&&a.length&&n.getIsExpanded()&&n.subRows.forEach(e)};return r.rows.forEach(e),{rows:t,flatRows:r.flatRows,rowsById:r.rowsById}}function cae(r){return t=>Ce(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(e,n)=>{if(!n.rows.length)return n;const{pageSize:a,pageIndex:i}=e;let{rows:o,flatRows:s,rowsById:l}=n;const u=a*i,f=u+a;o=o.slice(u,f);let c;t.options.paginateExpandedRows?c={rows:o,flatRows:s,rowsById:l}:c=fae({rows:o,flatRows:s,rowsById:l}),c.flatRows=[];const v=h=>{c.flatRows.push(h),h.subRows.length&&h.subRows.forEach(v)};return c.rows.forEach(v),c},Te(t.options,"debugTable"))}function vae(){return r=>Ce(()=>[r.getState().sorting,r.getPreSortedRowModel()],(t,e)=>{if(!e.rows.length||!(t!=null&&t.length))return e;const n=r.getState().sorting,a=[],i=n.filter(l=>{var u;return(u=r.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};i.forEach(l=>{const u=r.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(f=>({...f}));return u.sort((f,c)=>{for(let h=0;h<i.length;h+=1){var v;const d=i[h],p=o[d.id],g=p.sortUndefined,y=(v=d?.desc)!=null?v:!1;let m=0;if(g){const _=f.getValue(d.id),S=c.getValue(d.id),x=_===void 0,w=S===void 0;if(x||w){if(g==="first")return x?-1:1;if(g==="last")return x?1:-1;m=x&&w?0:x?g:-g}}if(m===0&&(m=p.sortingFn(f,c,d.id)),m!==0)return y&&(m*=-1),p.invertSorting&&(m*=-1),m}return f.index-c.index}),u.forEach(f=>{var c;a.push(f),(c=f.subRows)!=null&&c.length&&(f.subRows=s(f.subRows))}),u};return{rows:s(e.rows),flatRows:a,rowsById:e.rowsById}},Te(r.options,"debugTable","getSortedRowModel",()=>r._autoResetPageIndex()))}/**
87
+ * react-table
88
+ *
89
+ * Copyright (c) TanStack
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE.md file in the root directory of this source tree.
93
+ *
94
+ * @license MIT
95
+ */function ym(r,t){return r?hae(r)?Be.createElement(r,t):r:null}function hae(r){return dae(r)||typeof r=="function"||pae(r)}function dae(r){return typeof r=="function"&&(()=>{const t=Object.getPrototypeOf(r);return t.prototype&&t.prototype.isReactComponent})()}function pae(r){return typeof r=="object"&&typeof r.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(r.$$typeof.description)}function gae(r){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...r},[e]=Be.useState(()=>({current:lae(t)})),[n,a]=Be.useState(()=>e.current.initialState);return e.current.setOptions(i=>({...i,...r,state:{...n,...r.state},onStateChange:o=>{a(o),r.onStateChange==null||r.onStateChange(o)}})),e.current}const KI=12;function mm(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function _m(r){return r.replace(/[_-]+/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function yae(r){try{return JSON.stringify(r,null,2)}catch{return String(r)}}function Xi(r){return r===null?"null":r===void 0?"—":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):yae(r)}const JI=({value:r,openLink:t})=>{if(!qu(r))return k.jsx("span",{className:"break-words",children:r});let e=r;try{const n=new URL(r);e=`${n.host}${n.pathname==="/"?"":n.pathname}`}catch{}return k.jsxs(Br,{type:"button",variant:"ghost",size:"sm",className:"h-auto max-w-full justify-start px-1 py-0 text-left font-normal text-xs",onClick:()=>t(r),children:[k.jsx(oL,{className:"mr-1 h-3 w-3 shrink-0"}),k.jsx("span",{className:"truncate",children:e})]})};function mae({page:r,pageCount:t,onChange:e}){return k.jsxs("div",{className:"mt-2 flex items-center justify-end gap-1.5",children:[k.jsxs(Br,{type:"button",size:"sm",variant:"outline",disabled:r===0,onClick:()=>e(r-1),children:[k.jsx(qB,{className:"h-3.5 w-3.5"}),k.jsx("span",{className:"sr-only",children:"Previous page"})]}),k.jsxs("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",t]}),k.jsxs(Br,{type:"button",size:"sm",variant:"outline",disabled:r+1>=t,onClick:()=>e(r+1),children:[k.jsx(KB,{className:"h-3.5 w-3.5"}),k.jsx("span",{className:"sr-only",children:"Next page"})]})]})}function _ae({rows:r,columns:t,openLink:e,stateKey:n="table",viewState:a,onViewStateChange:i,renderCell:o,renderStructuredValue:s,pageSize:l}){const u=Be.useMemo(()=>t?null:[...new Set(r.flatMap(L=>Object.keys(L)))],[t,r]),f=Be.useMemo(()=>t?.map(L=>L.name)??(u??[]).slice(0,KI),[t,u]),c=u?u.slice(KI):[],v=a?.[`${n}.sort.column`],h=a?.[`${n}.sort.desc`],d=typeof v=="string"&&v?[{id:v,desc:h===!0}]:[],[p,g]=Be.useState(d),[y,m]=Be.useState(null);Be.useEffect(()=>{g(d)},[v,h]);function _(L){const I=new Set(f);return Object.keys(L).filter(P=>!I.has(P))}const S=Be.useMemo(()=>f.map(L=>({id:L,accessorFn:I=>I[L],header:_m(L),enableSorting:L!=="open",sortDescFirst:!1,sortingFn:(I,P,R)=>{const E=I.getValue(R),N=P.getValue(R);return typeof E=="number"&&typeof N=="number"?E-N:Xi(E).localeCompare(Xi(N),void 0,{numeric:!0,sensitivity:"base"})},cell:({getValue:I,row:P})=>{const R=I(),E=P.index===y;if(mm(R)||Array.isArray(R))return E?k.jsx("div",{className:"max-w-md break-words",children:s?s(R,e):Xi(R)}):k.jsx("span",{className:"text-muted-foreground",children:Array.isArray(R)?"[…]":"{…}"});const N=o?.(R,L);if(N!=null)return N;if(L==="open"&&typeof R=="string")return k.jsxs(Br,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2",onClick:z=>{z.stopPropagation(),e(R)},children:[k.jsx(oL,{className:"mr-1 h-3.5 w-3.5"}),"Open"]});if(typeof R=="string"&&qu(R))return k.jsx(JI,{value:R,openLink:e});if(E)return k.jsx("span",{className:"break-words whitespace-pre-wrap",children:Xi(R)});const O=Xi(R);return k.jsx("span",{className:"block max-w-80 truncate",title:O,children:O})}})),[f,e,y,o,s]),x=a?.[`${n}.page`],[w,b]=Be.useState(typeof x=="number"?Math.max(0,x):0);Be.useEffect(()=>{b(typeof x=="number"?Math.max(0,x):0)},[x]);const T=l?Math.max(1,Math.ceil(r.length/l)):1,C=typeof x=="number"?Math.max(0,x):w,A=Math.min(C,T-1),M=gae({data:r,columns:S,state:{sorting:p,...l?{pagination:{pageIndex:A,pageSize:l}}:{}},onSortingChange:L=>{const I=typeof L=="function"?L(p):L;g(I),i?.(`${n}.sort.column`,I[0]?.id??""),i?.(`${n}.sort.desc`,I[0]?.desc??!1)},getCoreRowModel:uae(),getSortedRowModel:vae(),...l?{getPaginationRowModel:cae(),onPaginationChange:L=>{const I=typeof L=="function"?L({pageIndex:A,pageSize:l}):L;b(I.pageIndex),i?.(`${n}.page`,I.pageIndex)}}:{}});return k.jsxs("div",{children:[k.jsx("div",{className:"overflow-hidden rounded-md border border-border/70",children:k.jsxs(sL,{className:"text-xs",children:[k.jsx(lL,{className:"bg-muted/50",children:M.getHeaderGroups().map(L=>k.jsx(Fs,{className:"hover:bg-transparent",children:L.headers.map(I=>{const P=I.column.getIsSorted(),R=String(I.column.columnDef.header),E=I.column.getCanSort();return k.jsx(wm,{"aria-sort":E?P==="asc"?"ascending":P==="desc"?"descending":"none":void 0,className:"h-8 whitespace-nowrap px-2",children:E?k.jsxs("button",{type:"button","aria-label":`Sort by ${R}`,className:"flex w-full items-center gap-1.5 text-left",onClick:I.column.getToggleSortingHandler(),children:[ym(I.column.columnDef.header,I.getContext()),P==="asc"?k.jsx(XB,{className:"h-3 w-3"}):P==="desc"?k.jsx(jB,{className:"h-3 w-3"}):k.jsx(ZB,{className:"h-3 w-3 opacity-45"})]}):ym(I.column.columnDef.header,I.getContext())},I.id)})},L.id))}),k.jsx(uL,{children:M.getRowModel().rows.map(L=>{const I=L.index===y,P=_(L.original),R=P.length>0||f.some(E=>{const N=L.original[E];return mm(N)||Array.isArray(N)});return k.jsxs(Be.Fragment,{children:[k.jsx(Fs,{className:ni("transition-colors",R&&"cursor-pointer",I?"bg-muted/20":R&&"hover:bg-muted/30"),onClick:R?()=>m(I?null:L.index):void 0,children:L.getVisibleCells().map(E=>k.jsx(Eu,{className:"p-2 align-top",children:ym(E.column.columnDef.cell,E.getContext())},E.id))}),I&&P.length>0?k.jsx(Fs,{className:"border-b last:border-b-0 bg-muted/10",children:k.jsx(Eu,{colSpan:L.getVisibleCells().length,className:"p-2",children:k.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:P.map(E=>{const N=L.original[E];return k.jsxs("div",{children:[k.jsxs("span",{className:"text-muted-foreground capitalize",children:[_m(E),":"]})," ",mm(N)||Array.isArray(N)?s?s(N,e):k.jsx("span",{className:"break-words whitespace-pre-wrap",children:Xi(N)}):(()=>{const O=o?.(N,E);return O??(typeof N=="string"&&qu(N)?k.jsx(JI,{value:N,openLink:e}):k.jsx("span",{className:"break-words whitespace-pre-wrap",children:Xi(N)}))})()]},E)})})})}):null]},L.id)})})]})}),c.length>0?k.jsxs("p",{className:"mt-2 text-muted-foreground text-xs",children:[c.length," additional"," ",c.length===1?"column":"columns"," available in expanded rows:"," ",c.slice(0,4).map(_m).join(", "),c.length>4?`, +${c.length-4} more`:""]}):null,l&&T>1?k.jsx(mae,{page:A,pageCount:T,onChange:L=>M.setPageIndex(L)}):null]})}function Sae(r,t,e){const n=t[0];let a=e;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n,o=i.currentTarget&&typeof i.currentTarget=="object"?i.currentTarget:i.target&&typeof i.target=="object"?i.target:null;o&&o.value!==void 0&&(o.value!==""||e==null)&&(a=o.value)}else(typeof n=="string"||typeof n=="number"||typeof n=="boolean")&&(a=n);return _L(r,a)}function Sm(r,t,e){const n=r;return Array.isArray(n)?!t&&!e?n:n.map(a=>({label:String(a[t??"label"]??""),value:Number(a[e??"value"]??0)})):[]}function xae(r,t,e){const n=r;return Array.isArray(n)?!t&&!e?n:n.map(a=>({name:String(a[t??"name"]??""),value:Number(a[e??"value"]??0)})):[]}const QI={div:({children:r,...t})=>k.jsx("div",{...t,children:r}),span:({children:r,...t})=>k.jsx("span",{...t,children:r}),p:({children:r,...t})=>k.jsx("p",{...t,children:r}),h1:({children:r,...t})=>k.jsx("h1",{...t,children:r}),h2:({children:r,...t})=>k.jsx("h2",{...t,children:r}),h3:({children:r,...t})=>k.jsx("h3",{...t,children:r}),h4:({children:r,...t})=>k.jsx("h4",{...t,children:r}),ul:({children:r,...t})=>k.jsx("ul",{...t,children:r}),ol:({children:r,...t})=>k.jsx("ol",{...t,children:r}),li:({children:r,...t})=>k.jsx("li",{...t,children:r}),table:({children:r,...t})=>k.jsx("table",{...t,children:r}),thead:({children:r,...t})=>k.jsx("thead",{...t,children:r}),tbody:({children:r,...t})=>k.jsx("tbody",{...t,children:r}),tr:({children:r,...t})=>k.jsx("tr",{...t,children:r}),th:({children:r,...t})=>k.jsx("th",{...t,children:r}),td:({children:r,...t})=>k.jsx("td",{...t,children:r}),card:({children:r,className:t,...e})=>k.jsx(BV,{className:t,...e,children:r}),"card-header":({children:r,className:t,...e})=>k.jsx(NV,{className:t,...e,children:r}),"card-title":({children:r,className:t,...e})=>k.jsx(OV,{asChild:!0,className:t,children:k.jsx("h3",{...e,children:r})}),"card-description":({children:r,className:t,...e})=>k.jsx(kV,{className:t,...e,children:r}),"card-content":({children:r,className:t,...e})=>k.jsx(EV,{className:t,...e,children:r}),badge:({children:r,className:t,variant:e="default",...n})=>{const a={default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"border border-input bg-background"},i=s=>typeof s=="string"?s.replace(/[_-]/g," ").replace(/\b\w/g,l=>l.toUpperCase()):typeof s=="number"||typeof s=="boolean"||s==null||eV.isValidElement(s)?s:Array.isArray(s)?s.map(i):String(s),o=i(r);return k.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold ${a[e]||a.default} ${t||""}`,...n,children:o})},button:({children:r,className:t,variant:e="default",type:n="button",label:a,...i})=>{const o={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"};return k.jsx("button",{type:n,className:`inline-flex items-center justify-center rounded-md text-sm font-medium h-10 px-4 py-2 ${o[e]||o.default} ${t||""}`,...i,children:r??String(a??"")})},select:({className:r,label:t,placeholder:e,options:n,onChange:a,onSelect:i,...o})=>k.jsxs("label",{className:`flex flex-col gap-1 text-sm ${r||""}`,children:[t?k.jsx("span",{className:"font-medium",children:String(t)}):null,k.jsxs("select",{className:"h-10 rounded-md border border-input bg-background px-3",onChange:a??i,defaultValue:"",...o,children:[e?k.jsx("option",{value:"",disabled:!0,children:String(e)}):null,Array.isArray(n)?n.map(s=>{const l=s,u=String(l.value??l.label??"");return k.jsx("option",{value:u,children:String(l.label??u)},JSON.stringify(l))}):null]})]}),alert:({children:r,className:t,variant:e="default",...n})=>{const a={default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive"};return k.jsx("div",{role:"alert",className:`relative w-full rounded-lg border p-4 ${a[e]||a.default} ${t||""}`,...n,children:r})},"alert-title":({children:r,className:t,...e})=>k.jsx("h5",{className:`mb-1 font-medium leading-none tracking-tight ${t||""}`,...e,children:r}),"alert-description":({children:r,className:t,...e})=>k.jsx("div",{className:`text-sm [&_p]:leading-relaxed ${t||""}`,...e,children:r}),progress:({className:r,value:t=0,label:e,...n})=>{const a=Math.round(t);return k.jsxs("div",{className:`flex items-center gap-2 ${r||""}`,...n,children:[k.jsx("div",{className:"relative h-4 flex-1 overflow-hidden rounded-full bg-secondary",children:k.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})}),k.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground shrink-0",children:e?String(e):`${a}%`})]})},strong:({children:r,...t})=>k.jsx("strong",{...t,children:r}),b:({children:r,...t})=>k.jsx("strong",{...t,children:r}),em:({children:r,...t})=>k.jsx("em",{...t,children:r}),link:({children:r,className:t,href:e,...n})=>{const a=String(e??""),i=/^https?:\/\//i.test(a);return k.jsx("a",{href:a,className:`text-primary underline underline-offset-2 hover:no-underline ${t||""}`,...i?{target:"_blank",rel:"noreferrer"}:{},...n,children:r})},a:({children:r,className:t,href:e,...n})=>k.jsx("a",{href:String(e??""),className:`text-primary underline underline-offset-2 hover:no-underline ${t||""}`,...n,children:r}),context:({children:r,className:t,...e})=>k.jsx("div",{className:`flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs text-muted-foreground ${t||""}`,...e,children:r}),fields:({children:r,className:t,...e})=>k.jsx("div",{className:`grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-2 ${t||""}`,...e,children:r}),field:({children:r,className:t,label:e,value:n,...a})=>k.jsxs("div",{className:`flex flex-col gap-0.5 ${t||""}`,...a,children:[k.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:String(e??"")}),k.jsx("span",{className:"text-sm break-words",children:r??(n==null?"—":String(n))})]}),separator:({className:r,...t})=>k.jsx("div",{className:`shrink-0 bg-border h-[1px] w-full ${r||""}`,...t}),markdown:({content:r,className:t})=>k.jsx("div",{className:`max-w-none text-sm space-y-2 ${t||""}`,children:k.jsx(QB,{text:String(r??"")})}),layout:({children:r,className:t,direction:e="vertical"})=>k.jsx("div",{className:`flex ${e==="horizontal"?"flex-row":"flex-col"} gap-4 ${t||""}`,children:r}),columns:({children:r,className:t})=>{const e=Array.isArray(r)?r.filter(n=>n!=null).length:r?1:0;return k.jsx("div",{className:`grid gap-4 ${t||""}`,style:{gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`},children:r})},metric:({label:r,value:t,className:e})=>k.jsxs("div",{className:ni(JB,"p-4",e),children:[k.jsx("p",{className:"text-sm text-muted-foreground",children:String(r??"")}),k.jsx("p",{className:"mt-1 text-2xl font-bold",children:String(t??"")})]}),"bar-chart":({data:r,height:t,xLabel:e,yLabel:n,labelField:a,valueField:i})=>k.jsx(mne,{data:Sm(r,a,i),height:t,xLabel:e,yLabel:n}),"line-chart":({data:r,height:t,xLabel:e,yLabel:n,labelField:a,valueField:i})=>k.jsx(_ne,{data:Sm(r,a,i),height:t,xLabel:e,yLabel:n}),"area-chart":({data:r,height:t,xLabel:e,yLabel:n,labelField:a,valueField:i})=>k.jsx(yne,{data:Sm(r,a,i),height:t,xLabel:e,yLabel:n}),"pie-chart":({data:r,height:t,showLabel:e,showLegend:n,radius:a,highlightName:i,nameField:o,valueField:s})=>k.jsx(Sne,{data:xae(r,o,s),height:t,showLabel:e,showLegend:n,radius:a,highlightName:i}),sparkline:({data:r,height:t,width:e,color:n,trend:a})=>k.jsx(xne,{data:r,height:t,width:e,color:n,trend:a}),"stacked-area-chart":({data:r,series:t,height:e,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})=>k.jsx(wne,{data:r,series:t,height:e,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})},wae=new Set(["urgency","severity","sentiment","trend","status","priority"]),bae={critical:"bg-red-500/15 text-red-400 border-red-500/30",high:"bg-orange-500/15 text-orange-400 border-orange-500/30",medium:"bg-yellow-500/15 text-yellow-400 border-yellow-500/30",low:"bg-green-500/15 text-green-400 border-green-500/30"};function Cae(r,t){if(r==null)return k.jsx("span",{className:"text-muted-foreground",children:"–"});const e=String(r);if(e.startsWith("http://")||e.startsWith("https://"))return k.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t==="url"?"↗ Link":e});if(t==="subreddit"&&typeof r=="string")return k.jsxs("a",{href:`https://reddit.com/r/${r}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:["r/",r]});if(wae.has(t)&&typeof r=="string"){const n=bae[r.toLowerCase()]??"bg-secondary text-secondary-foreground border-border",a=r.replace(/[_-]/g," ").replace(/\b\w/g,i=>i.toUpperCase());return k.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium ${n}`,children:a})}return typeof r=="number"?k.jsx("span",{className:"font-mono tabular-nums",children:r}):typeof r=="boolean"?k.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium ${r?"bg-green-500/15 text-green-400 border-green-500/30":"bg-secondary text-secondary-foreground border-border"}`,children:r?"Yes":"No"}):k.jsx("span",{className:"whitespace-pre-wrap",children:e})}function Tae({rows:r,columns:t,title:e}){return k.jsxs("div",{className:"space-y-2",children:[e&&k.jsx("h4",{className:"text-sm font-semibold",children:e}),k.jsx(_ae,{rows:r,columns:t.map(n=>({name:n})),openLink:()=>{},renderCell:(n,a)=>Cae(n,a)})]})}const Iv=zV;function Ru(r,t,e){if(r.type==="text")return r.content;if(r.type==="data"){const u=r,f=Iv(t.data,u.path),c=f!==void 0?f:u.fallback,v=Td(c,u.format);if(v.length>100&&(v.includes(`
96
+ `)||/[#*-]/.test(v))){const h=QI.markdown;return h?k.jsx(h,{content:v}):v}return v}if(r.type==="if"){const u=r;return Iv(t.data,u.condition)?Ru(u.then,t,e):u.else?Ru(u.else,t,e):null}if(r.type==="each"){const u=r,f=Iv(t.data,u.items);return Array.isArray(f)?f.map((c,v)=>{const h=u.as,d={...t,data:{...t.data,[h]:c,[`${h}Index`]:v}};if(typeof u.render=="string"){const p=`{{${h}}}`,g=typeof c=="string"?c:JSON.stringify(c);return u.render.split(p).join(g)}return Ru(u.render,d,v)}):null}const n=r,a=t.components?.[n.type]??QI[n.type];if(!a)return console.warn(`Unknown component type: ${n.type}`),null;const i=u=>FV(u,t.actions,f=>Iv(t.data,f)),o=HV(r,n.props),s={};for(const[u,f]of Object.entries(o)){if(/^on[A-Z]/.test(u))continue;const c=i(f);s[u]=c}for(const[u,f]of Object.entries(o)){if(!/^on[A-Z]/.test(u))continue;let c=i(f);if(typeof c!="function"&&t.onAction){const v=_L(f,s.value);v&&t.interactions?.[v.action]&&(c=(...h)=>t.onAction?.(Sae(f,h,s.value)??v))}if(typeof c!="function"){f!==void 0&&console.warn(`Ignoring non-function handler for "${u}" (got ${typeof c}). Bind actions as "@actionName".`);continue}s[u]=c}if(n.type==="table"&&Array.isArray(s.data)&&Array.isArray(s.columns)){const u=s.data,f=s.columns,c=s.title;return k.jsx(Tae,{rows:u,columns:f,title:c},e)}const l=n.children?.map((u,f)=>Ru(u,t,f));return k.jsx(a,{...s,children:l},e)}function Aae(r,t,e,n,a,i){const o={data:t,actions:e,onAction:n,interactions:a,components:i};return Ru(r.root,o)}function Uae({template:r,data:t,actions:e,onAction:n,interactions:a,components:i}){return k.jsx(k.Fragment,{children:Aae(r,t,e,n,a,i)})}const Mae=/^\d{4}-\d{2}-\d{2}$/;function Wx(r){if(Mae.test(r)){const[t,e,n]=r.split("-").map(Number),a=new Date(0);return a.setHours(0,0,0,0),a.setFullYear(t,e-1,n),a}return new Date(r)}function NB(r,t){const e=Wx(r);return Number.isNaN(e.getTime())?r:t?e.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):Pv(e,"LLL dd, y")}function Cd(r){return String(r??"").split(/[_-]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function Zu(r,t){return t.title||t.description||Cd(r)}function BB(r){return r.title&&r.description&&r.description!==r.title?r.description:void 0}function VB(r){return r.replace(/[^a-zA-Z0-9_-]/g,"-")}function Dae(r,t=!1){return r?NB(r,t):t?"Pick a date and time":"Pick a date"}function xm(r){if(!r)return"";const t=Wx(r);if(Number.isNaN(t.getTime()))return"";const e=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-e).toISOString().slice(0,16)}function eL(r){if(!r)return;const t=new Date(r);if(!Number.isNaN(t.getTime()))return t.toISOString()}function Lv(r,t){const e=t==="slug"?r.slug:r.metadata?.[t];return e==null?"":String(e)}function zB({control:r}){const t=[r.set_by,r.set_at?cV(r.set_at):null].filter(Boolean).join(" · ");return k.jsxs(cL,{children:[k.jsx(vL,{asChild:!0,children:k.jsx("button",{type:"button",className:"shrink-0 text-emerald-600 hover:text-emerald-500 dark:text-emerald-400","aria-label":"Set by a person",children:k.jsx(vV,{className:"h-3 w-3"})})}),k.jsxs(hL,{className:"max-w-xs space-y-1",children:[k.jsx("div",{className:"text-xs font-medium",children:"Set by a person"}),k.jsx("div",{className:"text-[11px] text-primary-foreground/70",children:"Automations ask for approval before changing it."}),r.note?k.jsx("div",{className:"text-xs text-primary-foreground/90",children:r.note}):null,t?k.jsx("div",{className:"text-[11px] text-primary-foreground/70",children:t}):null]})]})}function tL({id:r,value:t,onChange:e,readonly:n,ariaLabel:a,ariaDescribedBy:i,includeTime:o=!1,clearable:s}){const l=t?Wx(t):void 0,[u,f]=Be.useState(()=>xm(t).slice(11));return Be.useEffect(()=>{f(xm(t).slice(11))},[t]),k.jsx("div",{className:"relative",children:k.jsxs(yV,{children:[k.jsx(mV,{asChild:!0,children:k.jsxs(Br,{id:r,"aria-label":a,"aria-describedby":i,type:"button",variant:"outline",disabled:n,className:ni("w-full justify-start rounded-md bg-muted px-3 text-left font-normal",!t&&"text-muted-foreground"),children:[k.jsx(_V,{className:"mr-2 h-4 w-4 shrink-0"}),k.jsx("span",{className:"truncate",children:Dae(t,o)})]})}),k.jsxs(SV,{className:"w-auto space-y-3 p-0",align:"start",children:[k.jsx(xV,{mode:"single",selected:l,defaultMonth:l,onSelect:c=>{if(!c)return;if(!o){e(Pv(c,"yyyy-MM-dd"));return}const v=u||"00:00";e(eL(`${Pv(c,"yyyy-MM-dd")}T${v}`))},initialFocus:!0}),o?k.jsxs("div",{className:"border-t p-3 pt-0",children:[k.jsx(bm,{htmlFor:`${r}-time`,className:"text-xs text-muted-foreground",children:"Time"}),k.jsx(Q_,{id:`${r}-time`,type:"time",value:u,onChange:c=>{f(c.target.value);const v=t?xm(t).slice(0,10):l?Pv(l,"yyyy-MM-dd"):"";v&&e(eL(`${v}T${c.target.value}`))},disabled:n})]}):null,s&&t?k.jsx("div",{className:"border-t p-2",children:k.jsx(Br,{type:"button",variant:"ghost",size:"sm",className:"w-full",onClick:()=>e(void 0),children:"Clear"})}):null]})]})})}function Iae({id:r,value:t,onChange:e,readonly:n,ariaLabel:a,ariaDescribedBy:i,entityType:o,lookupField:s,numeric:l=!1,orgContext:u}){const f=p=>{if(p===void 0||p==="")return e(void 0);if(!l)return e(p);const g=Number(p);e(Number.isFinite(g)?g:p)},{data:c}=dL(o,u,{limit:pL}),v=(c?.entities??[]).filter(p=>Lv(p,s)!==""),h=t==null?"":String(t),d=v.find(p=>Lv(p,s)===h);return u?n?k.jsx("div",{className:"flex h-9 items-center rounded-md border border-input bg-muted px-3 text-sm",children:d?.name||h||"-"}):k.jsx(hV,{contentClassName:"w-[320px]",searchPlaceholder:`Search ${Cd(o).toLowerCase()}...`,emptyText:`No ${o} found.`,trigger:p=>k.jsxs(Br,{id:r,"aria-label":a,"aria-describedby":i,type:"button",variant:"outline",role:"combobox","aria-expanded":p,className:"w-full justify-between",children:[k.jsx("span",{className:ni("truncate",!h&&"text-muted-foreground"),children:d?.name||h||`Select ${Cd(o).toLowerCase()}`}),k.jsx(gV,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),children:(p,g)=>{const y=g.trim(),m=y.length>0&&!v.some(_=>Lv(_,s)===y);return k.jsxs(k.Fragment,{children:[m?k.jsxs(Zx,{value:`use ${y}`,onSelect:()=>{f(y),p()},children:[k.jsx(dV,{className:"mr-2 h-3.5 w-3.5 opacity-60"}),k.jsxs("span",{className:"truncate",children:["Use ",k.jsx("span",{className:"font-medium",children:y})]})]}):null,v.map(_=>{const S=Lv(_,s),x=S===h;return k.jsxs(Zx,{value:`${_.name} ${_.slug} ${_.entity_type} ${S}`,onSelect:()=>{f(S||void 0),p()},children:[k.jsx(pV,{className:ni("mr-2 h-4 w-4",x?"opacity-100":"opacity-0")}),k.jsxs("div",{className:"min-w-0",children:[k.jsx("div",{className:"truncate",children:_.name}),k.jsx("div",{className:"text-xs text-muted-foreground",children:_.slug})]})]},`${_.id}-${S}`)})]})}}):k.jsx(Q_,{id:r,"aria-label":a,"aria-describedby":i,type:l?"number":"text",value:h,onChange:p=>f(p.target.value||void 0),disabled:n})}function FB({fieldPath:r,fieldKey:t,prop:e,value:n,onChange:a,isRequired:i,readonly:o,orgContext:s,ariaLabel:l,helpId:u}){const f=Zu(t,e),c=VB(r),v=o||e.readOnly===!0,h=e.type==="object"||!!e.properties,d=e.type==="array"&&!!e.items&&(e.items?.type==="object"||!!e.items?.properties),p=e.type==="array"&&!!e.items&&(e.items?.type==="string"||e.items?.type==="number"||e.items?.type==="integer"||e.items?.type==="boolean");if(e.type==="boolean")return k.jsx(rV,{id:c,"aria-label":l,"aria-describedby":u,checked:n??!1,onCheckedChange:y=>a(y),disabled:v});let g;if(e.enum&&Array.isArray(e.enum))g=k.jsxs(nV,{value:n==null?"":String(n),onValueChange:y=>a(y===""?void 0:e.type==="number"||e.type==="integer"?Number(y):y),disabled:v,children:[k.jsx(aV,{id:c,"aria-label":l,"aria-describedby":u,children:k.jsx(iV,{placeholder:`Select ${f.toLowerCase()}`})}),k.jsx(oV,{children:e.enum.map(y=>{const m=String(y);return k.jsx(sV,{value:m,children:fL(e,y)??Cd(m)},m)})})]});else if(e["x-link-entity-type"])g=k.jsx(Iae,{id:c,value:n,onChange:a,readonly:v,ariaLabel:l,ariaDescribedBy:u,entityType:e["x-link-entity-type"],lookupField:e["x-link-lookup-field"]||"slug",numeric:e.type==="number"||e.type==="integer",orgContext:s});else if(e.type==="number"||e.type==="integer")g=k.jsx(lV,{id:c,ariaLabel:l,ariaDescribedBy:u,value:n,onChange:a,integer:e.type==="integer",placeholder:`Enter ${f.toLowerCase()}`,readOnly:v});else if(h){const y=Js(e.properties),m=new Set(e.required??[]),_=oc(n)?n:{};g=Object.keys(e.properties??{}).length===0||!oc(n)&&n!==void 0&&n!==null?k.jsx(Yx,{id:c,value:n,ariaLabel:`${f} JSON object`,ariaDescribedBy:u,readOnly:v,onChange:a}):k.jsx("fieldset",{"aria-label":l,"aria-labelledby":l?void 0:`${c}-label`,"aria-describedby":u,className:"space-y-3 rounded-md border p-3",children:y.map(([S,x])=>k.jsx(GB,{fieldPath:`${r}.${S}`,fieldKey:S,prop:x,value:_[S],onChange:w=>{const b={..._};w===void 0?delete b[S]:b[S]=w,a(b)},isRequired:m.has(S),readonly:v,orgContext:s},S))})}else if(p)g=n!=null&&!uV(n)?k.jsx(Tp,{id:c,value:n,ariaLabel:`${f} JSON array`,ariaDescribedBy:u,readOnly:v,itemType:e.items?.type,itemEnum:e.items?.enum,minItems:e.minItems,maxItems:e.maxItems,onChange:a}):k.jsx(fV,{id:c,value:n,itemType:e.items?.type,itemEnum:e.items?.enum,minItems:e.minItems,maxItems:e.maxItems,ariaLabel:l,ariaDescribedBy:u,readOnly:v,showHelp:!l,onChange:a});else if(d&&e.items){const y=Array.isArray(n)?n:[],m=Js(e.items.properties),_=new Set(e.items.required??[]),S=e.maxItems===void 0||y.length<e.maxItems,x=e.minItems===void 0||y.length>e.minItems;g=!Array.isArray(n)&&n!==void 0&&n!==null||Object.keys(e.items.properties??{}).length>0&&y.some(w=>!oc(w))?k.jsx(Tp,{id:c,value:n,ariaLabel:`${f} JSON array`,ariaDescribedBy:u,readOnly:v,itemType:"object",minItems:e.minItems,maxItems:e.maxItems,onChange:a}):Object.keys(e.items.properties??{}).length===0?k.jsxs("fieldset",{"aria-label":l,"aria-labelledby":l?void 0:`${c}-label`,"aria-describedby":u,className:"space-y-3",children:[y.length===0?k.jsx("p",{className:"text-sm text-muted-foreground",children:"No rows"}):y.map((w,b)=>k.jsxs("fieldset",{className:"space-y-2 rounded-md border p-3",children:[k.jsxs("legend",{className:"px-1 text-xs font-medium text-muted-foreground",children:["Row ",b+1]}),k.jsx(Yx,{id:`${c}-${b}-json`,value:w,ariaLabel:`${f} row ${b+1} JSON object`,readOnly:v,onChange:T=>{const C=[...y];C[b]=T,a(C)}}),v?null:k.jsxs(Br,{type:"button",variant:"ghost",size:"sm","aria-label":`Remove row ${b+1}`,disabled:!x,onClick:()=>a(y.filter((T,C)=>C!==b)),children:[k.jsx(Xx,{className:"mr-1.5 h-4 w-4"}),"Remove row"]})]},`${r}.${b}`)),v?null:k.jsxs(Br,{type:"button",variant:"outline",size:"sm",disabled:!S,onClick:()=>a([...y,{}]),children:[k.jsx(jx,{className:"mr-1.5 h-4 w-4"}),"Add row"]})]}):k.jsxs("fieldset",{"aria-label":l,"aria-labelledby":l?void 0:`${c}-label`,"aria-describedby":u,className:"space-y-3",children:[k.jsx("div",{className:"rounded-md border",children:k.jsxs(sL,{children:[k.jsx(lL,{children:k.jsxs(Fs,{children:[m.map(([w,b])=>k.jsxs(wm,{children:[Zu(w,b),_.has(w)?k.jsx("span",{className:"text-destructive ml-1",children:"*"}):null]},w)),v?null:k.jsx(wm,{className:"w-12"})]})}),k.jsx(uL,{children:y.length===0?k.jsx(Fs,{children:k.jsx(Eu,{colSpan:m.length+(v?0:1),className:"text-sm text-muted-foreground",children:"No rows"})}):y.map((w,b)=>{const T=oc(w)?w:{};return k.jsxs(Fs,{children:[m.map(([C,A])=>k.jsx(Eu,{className:"align-top",children:k.jsx(FB,{fieldPath:`${r}.${b}.${C}`,fieldKey:C,prop:A,ariaLabel:Zu(C,A),value:T[C],onChange:M=>{const L=[...y],I={...T};M===void 0?delete I[C]:I[C]=M,L[b]=I,a(L)},isRequired:_.has(C),readonly:v,orgContext:s})},C)),v?null:k.jsx(Eu,{className:"align-top",children:k.jsx(Br,{type:"button",variant:"ghost",size:"icon","aria-label":`Remove row ${b+1}`,disabled:!x,onClick:()=>a(y.filter((C,A)=>A!==b)),children:k.jsx(Xx,{className:"h-4 w-4"})})})]},`${r}.${b}`)})})]})}),v?null:k.jsxs(Br,{type:"button",variant:"outline",size:"sm",disabled:!S,onClick:()=>a([...y,{}]),children:[k.jsx(jx,{className:"mr-1.5 h-4 w-4"}),"Add row"]})]})}else if(e.type==="array")g=k.jsx(Tp,{id:c,value:n,ariaLabel:`${f} JSON array`,ariaDescribedBy:u,readOnly:v,itemType:e.items?.type,itemEnum:e.items?.enum,minItems:e.minItems,maxItems:e.maxItems,onChange:a});else if(e.format==="date")g=k.jsx(tL,{id:c,value:typeof n=="string"?n:void 0,onChange:a,readonly:v,ariaLabel:l,ariaDescribedBy:u,clearable:!i});else if(e.format==="date-time")g=k.jsx(tL,{id:c,value:typeof n=="string"?n:void 0,onChange:a,readonly:v,ariaLabel:l,ariaDescribedBy:u,includeTime:!0,clearable:!i});else{const y=e.format==="uri"||e.format==="url";g=k.jsx(Q_,{id:c,"aria-label":l,"aria-describedby":u,type:y?"url":"text",value:n??"",onChange:m=>a(m.target.value||void 0),placeholder:y?"https://example.com":`Enter ${f.toLowerCase()}`,disabled:v})}return g}function GB({fieldPath:r,fieldKey:t,prop:e,value:n,onChange:a,isRequired:i,readonly:o,control:s,orgContext:l,customControl:u}){const f=Zu(t,e),c=BB(e),v=VB(r),h=c?`${v}-description`:void 0,d=c?k.jsx("p",{id:h,className:"text-xs text-muted-foreground",children:c}):null,p=s?k.jsx(zB,{control:s}):null,g=u??k.jsx(FB,{fieldPath:r,fieldKey:t,prop:e,value:n,onChange:a,isRequired:i,readonly:o,orgContext:l,helpId:h});if(e.type==="boolean"){const m=k.jsxs("div",{className:"flex items-center space-x-2 py-1",children:[g,k.jsxs(bm,{htmlFor:v,className:"flex items-center gap-1.5 font-normal",children:[f,p]})]});return d?k.jsxs("div",{className:"space-y-1",children:[m,d]}):m}const y=e.type==="object"||!!e.properties||e.type==="array"&&!!e.items&&(e.items?.type==="object"||!!e.items?.properties);return k.jsxs("div",{className:"space-y-1.5",children:[y?k.jsxs("p",{id:`${v}-label`,className:"flex items-center gap-1.5 text-sm font-medium",children:[k.jsxs("span",{children:[f,i?k.jsx("span",{className:"text-destructive ml-1",children:"*"}):null]}),p]}):k.jsxs(bm,{htmlFor:v,className:"flex items-center gap-1.5",children:[k.jsxs("span",{children:[f,i?k.jsx("span",{className:"text-destructive ml-1",children:"*"}):null]}),p]}),g,d]})}function HB(r){const t=tV(r);return t===null||t===""?void 0:t}function Wae(r){const t={};for(const[e,n]of Object.entries(r)){const a=HB(n);a!==void 0&&(t[e]=a)}return t}function Yae({schema:r,values:t,onValuesChange:e,readonly:n=!1,fieldControls:a,orgContext:i,renderControl:o}){const s=r,l=s?.properties,u=new Set(s?.required??[]),f=(c,v)=>{e({...t,[c]:v})};return!l||Object.keys(l).length===0?k.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No additional fields required for this entity type."}):k.jsx("div",{className:"space-y-4",children:Js(l).map(([c,v])=>"x-measure"in v||"x-dimension"in v?null:k.jsx(GB,{fieldPath:c,fieldKey:c,prop:v,value:t[c],onChange:h=>f(c,h),isRequired:u.has(c),readonly:n,control:a?.[c],orgContext:i,customControl:o?.(c,v,t[c])},c))})}function Lae(r){return r.parent_id&&r.parent_slug&&r.parent_entity_type?[{entity_type:r.parent_entity_type,slug:r.parent_slug},{entity_type:r.entity_type,slug:r.slug}]:[{entity_type:r.entity_type,slug:r.slug}]}function Xae(r){return typeof r=="string"?JSON.parse(r):r??{}}function rL(r){return r?r["x-currency"]||r.format==="currency"?"currency":r.format==="uri"||r.format==="url"?"url":r.enum?.length?"enum":r.type==="number"||r.type==="integer"?"number":r.type==="boolean"?"boolean":"auto":"auto"}function nL(r){return r==null||r===""||Array.isArray(r)&&r.length===0}function Pae(r){return Array.isArray(r)&&r.some(t=>typeof t=="object"&&t!==null)}function Rae(r,t,e){const n=fL(t,r);return n!==void 0?n:typeof r=="string"&&(t?.format==="date"||t?.format==="date-time")?NB(r,t.format==="date-time"):Td(r,e)}function j_(r,t){return!t||r===null||typeof r!="object"?r:Array.isArray(r)?r.map(e=>j_(e,t.items)):Object.fromEntries(Object.entries(r).filter(([e])=>!wV(t.properties?.[e])).map(([e,n])=>[e,j_(n,t.properties?.[e])]))}function aL({value:r,prop:t,format:e,resolveLink:n,className:a}){const i=String(r),o=n?.(i);if(o)return k.jsx(gL,{to:o.to,className:"text-primary hover:underline",onClick:u=>u.stopPropagation(),children:o.label});const s=typeof r=="string"&&qu(r),l=e==="url"&&!s?i:Rae(r,t,e);return s?k.jsx("a",{href:r,target:"_blank",rel:"noreferrer",className:"text-primary hover:underline [overflow-wrap:anywhere]",onClick:u=>u.stopPropagation(),children:l}):k.jsx("span",{className:a,children:l})}function Z_({value:r,prop:t,format:e,resolveLink:n,empty:a="-",className:i}){if(nL(r))return k.jsx("span",{className:"text-muted-foreground",children:a});if(Pae(r)){const o=r.length;return k.jsxs("span",{className:i,children:[o," ",o===1?"item":"items"]})}if(Array.isArray(r)){const o=r.filter(l=>!nL(l)),s=t?.items??t;return k.jsx("span",{className:ni("inline-flex flex-wrap gap-x-1",i),children:o.map((l,u)=>k.jsxs("span",{children:[k.jsx(aL,{value:l,prop:s,format:e??rL(s),resolveLink:n}),u<o.length-1&&","]},`${u}:${String(l)}`))})}return typeof r=="object"?k.jsx("span",{className:i,children:Td(j_(r,t))}):k.jsx(aL,{value:r,prop:t,format:e??rL(t),resolveLink:n,className:i})}function Eae(r){return r.type==="array"&&!!r.items&&(r.items?.type==="object"||!!r.items?.properties)}function $B(r){return(r.type==="object"||!!r.properties)&&Object.keys(r.properties??{}).length>0}function kae(r){const t=r?.properties;return Js(t).filter(([,e])=>!("x-measure"in e)&&!("x-dimension"in e)).map(([e,n])=>({key:e,prop:n}))}function q_(r){return r.label??r.prop["x-table-label"]??Zu(r.key,r.prop)}function UB(r){try{return HB(r)}catch{return r instanceof CV?r.text:r}}function K_(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function J_(r,t){const e=UB(t);return e==null?!1:typeof e=="string"?e.trim().length>0:Array.isArray(e)?e.length>0:K_(e)?$B(r.prop)?Js(r.prop.properties).some(([n,a])=>J_({prop:a},e[n])):Object.entries(e).some(([n,a])=>J_({prop:{}},a)):!0}function WB(r,t){return r.filter(e=>J_(e,t[e.key]))}function Oae({value:r,prop:t,ownerSlug:e,orgContext:n}){const a=t["x-link-entity-type"],i=t["x-link-lookup-field"]||"slug",{data:o}=dL(a,n,{limit:pL}),s=v=>{const h=o?.entities.find(d=>{const p=i==="slug"?d.slug:d.metadata?.[i];return p!=null&&String(p)===v});return h?{label:h.name,to:AV(e,Lae(h))}:void 0},l=Array.isArray(r)?r:[r],u=v=>i==="slug"&&o!==void 0&&Nae(v)&&!s(String(v));if(!l.some(u))return k.jsx(Z_,{value:r,prop:t,resolveLink:s});const f=[...new Set(l.map(String))],c=new Map(l.map(v=>[String(v),v]));return k.jsx("span",{className:"inline-flex flex-wrap gap-x-2 gap-y-1",children:f.map(v=>c.get(v)).map(v=>u(v)?k.jsx(Bae,{entityType:a,recordKey:String(v),ownerSlug:e},String(v)):k.jsx(Z_,{value:v,prop:Array.isArray(r)?t.items??t:t,resolveLink:s},String(v)))})}function Nae(r){const t=typeof r=="number"?String(r):r;return typeof t=="string"&&t.trim()!==""&&!/[/?#]/.test(t)}function Bae({entityType:r,recordKey:t,ownerSlug:e}){const n=Cm(e,[{entity_type:r,slug:t}]),{data:a,isError:i}=yL(n,{slug:e}),o=a?.entity,s=o&&o.entity_type===r&&o.slug===t;return i||a&&!s?k.jsx("span",{className:"text-muted-foreground",title:"This record is not available",children:t}):k.jsx(gL,{to:n,className:"text-primary hover:underline",onClick:l=>l.stopPropagation(),children:s?o.name:t})}function Vae({field:r,value:t,context:e}){if(Eae(r.prop)&&(t==null||Array.isArray(t))){const n=Array.isArray(t)?t.length:0,a=`${n} ${n===1?"item":"items"}`,i=e.dirtyKeys?.includes(r.key)??!1,o="inline-flex items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 text-xs tabular-nums";if(!e.openField)return k.jsx("span",{className:o,children:a});const s=e.openFieldKey===r.key;return k.jsxs("button",{type:"button","aria-pressed":s,"aria-label":`${q_(r)}: ${a}${i?", unsaved changes":""}`,className:ni(o,"hover:bg-muted/70 hover:text-foreground",s&&"ring-1 ring-primary"),onClick:()=>e.openField?.(r),children:[a,i?k.jsx("span",{className:"text-amber-600 dark:text-amber-400",children:"· edited"}):null]})}return r.prop["x-link-entity-type"]&&e.orgContext&&t!=null?k.jsx(Oae,{value:t,prop:r.prop,ownerSlug:e.ownerSlug,orgContext:e.orgContext}):k.jsx(Z_,{value:t,prop:r.prop})}function iL({field:r,control:t,labelId:e}){const n=BB(r.prop);return k.jsxs("span",{className:"flex min-w-0 flex-wrap items-center gap-x-1 gap-y-0.5",children:[k.jsx("span",{id:e,className:"min-w-0 break-words",children:q_(r)}),n?k.jsxs(cL,{children:[k.jsx(vL,{asChild:!0,children:k.jsx("button",{type:"button",className:"shrink-0 text-muted-foreground/70 hover:text-foreground","aria-label":`About ${q_(r)}: ${n}`,children:k.jsx(TV,{className:"h-3 w-3"})})}),k.jsx(hL,{className:"max-w-xs",children:n})]}):null,t?k.jsx(zB,{control:t}):null]})}function YB({field:r,value:t,context:e,nested:n}){const a=Be.useId(),i=n?void 0:e.controls?.[r.key],o=UB(t);if($B(r.prop)&&(o==null||K_(o))){const s=K_(o)?o:{},l=WB(Js(r.prop.properties).map(([u,f])=>({key:u,prop:f})),s);return k.jsxs("fieldset",{"aria-labelledby":a,className:"m-0 min-w-0 space-y-2 border-0 p-0",children:[k.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:k.jsx(iL,{field:r,control:i,labelId:a})}),k.jsx("dl",{className:"space-y-2 border-l border-border pl-3",children:l.map(u=>k.jsx(YB,{field:u,value:s[u.key],context:e,nested:!0},u.key))})]})}return k.jsxs("div",{className:"grid grid-cols-[minmax(0,2fr)_minmax(0,3fr)] items-baseline gap-x-3",children:[k.jsx("dt",{className:"text-muted-foreground",children:k.jsx(iL,{field:r,control:i,labelId:a})}),k.jsx("dd",{"aria-labelledby":a,className:ni("min-w-0 [overflow-wrap:anywhere]",r.numeric&&"tabular-nums"),children:k.jsx(Vae,{field:r,value:o,context:e})})]})}function zae({fields:r,values:t,context:e,fieldLimit:n}){const a=WB(r,t);return a.length===0?k.jsx("p",{className:"text-sm text-muted-foreground",children:r.length===0?"This type declares no fields.":"No details have been added yet."}):k.jsx(bV,{delayDuration:200,children:k.jsx("dl",{className:"space-y-2.5 text-sm leading-5",children:(n===void 0?a:a.slice(0,n)).map(i=>k.jsx(YB,{field:i,value:t[i.key],context:e,nested:!1},i.key))})})}function Fae(r,t){if(typeof r!="string"||!t||t.length===0)return r;const e=r.trim();if(t.includes(e))return e;try{const n=JSON.parse(e);if(typeof n=="string"&&t.includes(n))return n}catch{}return r}function Gae(r,t){if(!r)return{};const e=t?.properties;return e?Object.fromEntries(Object.entries(r).map(([n,a])=>[n,Fae(a,e[n]?.enum)])):{...r}}function jae(r){return{href:"",key:`record-peer:${r.record?JSON.stringify([r.record.type,r.record.key]):r.entityId}`,title:r.name?.trim()||"Record",recordPeer:{...r.record?{record:r.record}:{entityId:r.entityId},ownerSlug:r.ownerSlug,orgContext:r.orgContext}}}function Zae({target:r}){const t=MV(),e=DV(),n=IV(r.entityId,r.orgContext),a=r.record?Cm(r.ownerSlug,[{entity_type:r.record.type,slug:r.record.key}]):"",i=yL(a,r.orgContext),o=r.record?i.data?.entity:n.data,{isLoading:s,isError:l}=r.record?i:n,{data:u}=LV(o?.entity_type??"",r.orgContext),[f,c]=Be.useState(!1),[v,h]=Be.useState(!1);if(s)return k.jsxs("div",{className:"space-y-3 px-5 py-5",children:[k.jsx(Ap,{className:"h-5 w-2/3"}),k.jsx(Ap,{className:"h-4 w-full"}),k.jsx(Ap,{className:"h-4 w-full"})]});if(l||!o)return k.jsx("p",{className:"px-5 py-5 text-sm text-muted-foreground",children:"This record is not available. It may have been deleted, or you may not have access to it."});const d=u?.metadata_schema,p=async()=>{c(!0),h(!1);try{const g=r.record?[{entity_type:r.record.type,slug:r.record.key}]:await RV(r.entityId,r.orgContext);e?.close(),await t({to:Cm(r.ownerSlug,g)})}catch{h(!0)}finally{c(!1)}};return k.jsxs("article",{className:"space-y-4 px-5 py-4",children:[k.jsxs("div",{className:"flex items-start justify-between gap-3",children:[k.jsxs("div",{className:"min-w-0",children:[k.jsx("p",{className:"truncate text-sm font-medium",children:o.name}),k.jsx("p",{className:"text-xs text-muted-foreground",children:u?.name??o.entity_type})]}),k.jsxs(Br,{type:"button",variant:"ghost",size:"sm",className:"h-7 shrink-0 gap-1 px-2 text-muted-foreground hover:text-foreground",disabled:f,"aria-busy":f,onClick:()=>void p(),children:["Open record",k.jsx(PV,{className:"h-3.5 w-3.5"})]})]}),v?k.jsx("p",{role:"alert",className:"text-xs text-destructive",children:"Could not open this record. Try again."}):null,k.jsx(zae,{fields:kae(d),values:Gae(o.metadata??{},d),context:{ownerSlug:r.ownerSlug,orgContext:r.orgContext}})]})}export{Yae as D,Uae as J,Ml as L,zae as R,Z_ as S,gae as a,_ne as b,Wae as c,xne as d,Lae as e,ym as f,uae as g,kae as h,Zae as i,Zu as j,FB as k,jae as l,Gae as m,Fae as n,HB as o,Xae as p,WB as q,Eae as r,q_ as s,Vae as t,Fx as u};
97
+ //# sourceMappingURL=linked-record-peek-B0_B4PnF.js.map