@lobu/runtime-server 22.0.0 → 24.0.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 (303) hide show
  1. package/dist/catalogs/connectors.json +1448 -212
  2. package/dist/catalogs/skills.json +1 -1
  3. package/dist/component.json +1 -1
  4. package/dist/connectors/README.md +15 -2
  5. package/dist/connectors/google_gmail.ts +1 -0
  6. package/dist/connectors/jira-helpers.ts +313 -0
  7. package/dist/connectors/jira.ts +29 -221
  8. package/dist/connectors/linkedin-browser-script.ts +13 -0
  9. package/dist/connectors/linkedin-draft-page.js +104 -0
  10. package/dist/connectors/linkedin-drafts.ts +73 -0
  11. package/dist/connectors/linkedin-identity.ts +32 -0
  12. package/dist/connectors/linkedin-inbox-adapter.js +1182 -0
  13. package/dist/connectors/linkedin-inbox.ts +156 -0
  14. package/dist/connectors/linkedin-like.ts +114 -0
  15. package/dist/connectors/linkedin-takeout.ts +577 -0
  16. package/dist/connectors/linkedin.ts +4017 -0
  17. package/dist/connectors/reddit.ts +92 -20
  18. package/dist/connectors/slack.ts +1 -0
  19. package/dist/connectors/takeout-utils.ts +240 -0
  20. package/dist/connectors/tiktok-inbox-page.js +9 -9
  21. package/dist/connectors/tiktok-web-page.js +21 -15
  22. package/dist/connectors/tiktok_web.ts +63 -30
  23. package/dist/connectors/whatsapp-web-adapter.js +104 -574
  24. package/dist/connectors/whatsapp-web-helpers.ts +30 -444
  25. package/dist/connectors/whatsapp-web-identity.ts +20 -6
  26. package/dist/connectors/whatsapp_web.ts +46 -646
  27. package/dist/connectors/x-dm-adapter.js +556 -0
  28. package/dist/connectors/x-identity.ts +33 -2
  29. package/dist/connectors/x.ts +266 -120
  30. package/dist/db/migrations/20261017120000_drop_feeds_kind_virtual.sql +26 -0
  31. package/dist/db/migrations/20261017130000_drop_retired_dead_code_columns.sql +46 -0
  32. package/dist/db/migrations/20261019120000_retire_identities_of_deleted_entities.sql +21 -0
  33. package/dist/db/migrations/20261020120000_entities_live_metadata_domain.sql +66 -0
  34. package/dist/db/migrations/20261020130000_agents_starters.sql +14 -0
  35. package/dist/db/migrations/20261020140000_view_attachments_by_page.sql +71 -0
  36. package/dist/dependencies.bun.lock +78 -75
  37. package/dist/guest.bundle.js +650 -448
  38. package/dist/owletto/dist/assets/_-CC8cTmRg.js +3 -0
  39. package/dist/owletto/dist/assets/_-ksFp4zVf.js +2 -0
  40. package/dist/owletto/dist/assets/_agentId-DWUFSrVp.js +2 -0
  41. package/dist/owletto/dist/assets/_agentId-MENLoohA.js +2 -0
  42. package/dist/owletto/dist/assets/_automationId-BnHqdXOC.js +2 -0
  43. package/dist/owletto/dist/assets/_connectorKey._connectionId-CefXIqy2.js +2 -0
  44. package/dist/owletto/dist/assets/_connectorKey.index-C1QPGf9E.js +2 -0
  45. package/dist/owletto/dist/assets/_conversationId-DinuPCUp.js +2 -0
  46. package/dist/owletto/dist/assets/{_deploymentId-BQfYN1U2.js → _deploymentId-BeyzVjRm.js} +2 -2
  47. package/dist/owletto/dist/assets/_eventId-3L_qeL_l.js +2 -0
  48. package/dist/owletto/dist/assets/_name-Dgedji78.js +2 -0
  49. package/dist/owletto/dist/assets/_owner-DbrKma4e.js +3 -0
  50. package/dist/owletto/dist/assets/_shape-DtVfRFz_.js +2 -0
  51. package/dist/owletto/dist/assets/_skillKey-CqLHzm7L.js +2 -0
  52. package/dist/owletto/dist/assets/_slug-ndDr_CUg.js +2 -0
  53. package/dist/owletto/dist/assets/_viewKey-3CH5w8mr.js +2 -0
  54. package/dist/owletto/dist/assets/_viewKey-DHQY9A8u.js +2 -0
  55. package/dist/owletto/dist/assets/{accept-invitation-D3OgJG4i.js → accept-invitation-CRKbM2Xy.js} +2 -2
  56. package/dist/owletto/dist/assets/activity-route-view-CFLNukhD.js +2 -0
  57. package/dist/owletto/dist/assets/{agent-card-controls-DzRs4Ix9.js → agent-card-controls-Be1Okb2C.js} +2 -2
  58. package/dist/owletto/dist/assets/{agent-client-setup-list-B2SvH7xD.js → agent-client-setup-list-BA8dU_C6.js} +2 -2
  59. package/dist/owletto/dist/assets/agent-connect-pages-CAV-yXus.js +2 -0
  60. package/dist/owletto/dist/assets/agent-editor-form-Bi6WvYX-.js +2 -0
  61. package/dist/owletto/dist/assets/{agent-guardrails-route-BaV1VpDh.js → agent-guardrails-route-DMOjG1D4.js} +2 -2
  62. package/dist/owletto/dist/assets/{agent-loading-shells-CtZJM2Gc.js → agent-loading-shells-De_2d8Lr.js} +2 -2
  63. package/dist/owletto/dist/assets/{agent-permissions-matrix-Ds48KFK9.js → agent-permissions-matrix-gZWl6mAe.js} +2 -2
  64. package/dist/owletto/dist/assets/{agent-skill-context-DPk5r08w.js → agent-skill-context-JLaTamGR.js} +2 -2
  65. package/dist/owletto/dist/assets/{agent-skills-route-DYpB5H1J.js → agent-skills-route-DcK41PWj.js} +2 -2
  66. package/dist/owletto/dist/assets/agent-subpage-shell-BBJoyTuC.js +2 -0
  67. package/dist/owletto/dist/assets/agent-thread-Buz3naVF.js +6 -0
  68. package/dist/owletto/dist/assets/agents-C-ReckCa.js +2 -0
  69. package/dist/owletto/dist/assets/agents-workbench-CqaKGggb.js +2 -0
  70. package/dist/owletto/dist/assets/app._appId-Cl1fTuIt.js +2 -0
  71. package/dist/owletto/dist/assets/automation-detail-content-BMLL4lxO.js +2 -0
  72. package/dist/owletto/dist/assets/automations-C-ReckCa.js +2 -0
  73. package/dist/owletto/dist/assets/callback-DTKKsfkz.js +2 -0
  74. package/dist/owletto/dist/assets/{card-DIF8SF9b.js → card-yU0TmNRH.js} +2 -2
  75. package/dist/owletto/dist/assets/{claim-DELEa-gH.js → claim-DJfTvlT2.js} +2 -2
  76. package/dist/owletto/dist/assets/client-rows--FrZfJol.js +2 -0
  77. package/dist/owletto/dist/assets/{clients-CpG676mg.js → clients-L4K1UT8c.js} +2 -2
  78. package/dist/owletto/dist/assets/{code-editor-V27Z4o3P.js → code-editor-U54Gwjit.js} +2 -2
  79. package/dist/owletto/dist/assets/connect-4zqtnDHb.js +2 -0
  80. package/dist/owletto/dist/assets/connect._clientId-Dj0SqgbE.js +2 -0
  81. package/dist/owletto/dist/assets/connected._clientId-sgtocSvf.js +2 -0
  82. package/dist/owletto/dist/assets/connected._clientId.activity-DTpSW1Xy.js +2 -0
  83. package/dist/owletto/dist/assets/connected._clientId.index-h9X5H1x8.js +2 -0
  84. package/dist/owletto/dist/assets/{connection-DySpRE9x.js → connection-ByvKkyFm.js} +2 -2
  85. package/dist/owletto/dist/assets/{connection-feed-detail-C_D68j6d.js → connection-feed-detail-DWM9lTao.js} +2 -2
  86. package/dist/owletto/dist/assets/connections-browser-CEwYrYqt.js +2 -0
  87. package/dist/owletto/dist/assets/{connector-provenance-CNXtzYg5.js → connector-provenance-BocTm__v.js} +2 -2
  88. package/dist/owletto/dist/assets/connector-scope-lists-OYDOydtz.js +2 -0
  89. package/dist/owletto/dist/assets/connectors-CyZpcE5f.js +2 -0
  90. package/dist/owletto/dist/assets/{consent-BVzxrAO9.js → consent-DdfINrVp.js} +2 -2
  91. package/dist/owletto/dist/assets/{conversations-table-DfZGICl7.js → conversations-table-BSznfdYt.js} +2 -2
  92. package/dist/owletto/dist/assets/{core.esm-DiTpULFl.js → core.esm-Dr7tcIB-.js} +2 -2
  93. package/dist/owletto/dist/assets/create-CBGwASon.js +2 -0
  94. package/dist/owletto/dist/assets/create-Cf5hp6Z8.js +2 -0
  95. package/dist/owletto/dist/assets/create-CwThQtd3.js +2 -0
  96. package/dist/owletto/dist/assets/create-automation-form-9T5WnoUs.js +3 -0
  97. package/dist/owletto/dist/assets/create._connectorKey-sNHQHNpg.js +2 -0
  98. package/dist/owletto/dist/assets/{cronstrue-DPXl0qA2.js → cronstrue-BWFEyy_P.js} +2 -2
  99. package/dist/owletto/dist/assets/deployments-DHh9dyzv.js +2 -0
  100. package/dist/owletto/dist/assets/{deployments-body-D6TAWs_6.js → deployments-body-2xKS8gRo.js} +2 -2
  101. package/dist/owletto/dist/assets/{deployments-DCQdFdwG.js → deployments-wG_8QzOF.js} +2 -2
  102. package/dist/owletto/dist/assets/{device-CntqYW65.js → device-6z-xgsoW.js} +2 -2
  103. package/dist/owletto/dist/assets/device-pin-tombstone-Cwq88RMU.js +2 -0
  104. package/dist/owletto/dist/assets/device._deviceId-BDerBfD9.js +2 -0
  105. package/dist/owletto/dist/assets/entity-avatar-Cc1CuI-0.js +2 -0
  106. package/dist/owletto/dist/assets/entity-options-DHdMC1Lx.js +2 -0
  107. package/dist/owletto/dist/assets/entity-page--OkXmlNP.js +2 -0
  108. package/dist/owletto/dist/assets/entity-type-page-89RoK_-P.js +2 -0
  109. package/dist/owletto/dist/assets/event-detail-D4YZRtrA.js +2 -0
  110. package/dist/owletto/dist/assets/events-feed-DsrkV2ix.js +2 -0
  111. package/dist/owletto/dist/assets/filter-editors-B1_QUpg_.js +2 -0
  112. package/dist/owletto/dist/assets/{full-page-spinner-KpV2FS2u.js → full-page-spinner-Cqih-8IW.js} +2 -2
  113. package/dist/owletto/dist/assets/guardrails-B8Rs1be3.js +2 -0
  114. package/dist/owletto/dist/assets/identity-B0nH4yiC.js +2 -0
  115. package/dist/owletto/dist/assets/index-4TSkcsth.js +2 -0
  116. package/dist/owletto/dist/assets/index-BSH07yVD.css +1 -0
  117. package/dist/owletto/dist/assets/index-BgkhXElB.js +2 -0
  118. package/dist/owletto/dist/assets/index-CoW4Bz3w.js +2 -0
  119. package/dist/owletto/dist/assets/index-Codw-Qqi.js +2 -0
  120. package/dist/owletto/dist/assets/{index-BNh2cidi.js → index-DAOyXG1X.js} +2 -2
  121. package/dist/owletto/dist/assets/{index-BEvyBdOU.js → index-DKPwCasf.js} +2 -2
  122. package/dist/owletto/dist/assets/index-DMyXd3bJ.js +2 -0
  123. package/dist/owletto/dist/assets/index-DYCqXaMf.js +7950 -0
  124. package/dist/owletto/dist/assets/index-DYYZLcJ0.js +2 -0
  125. package/dist/owletto/dist/assets/index-DYzWV5_z.js +2 -0
  126. package/dist/owletto/dist/assets/index-Da6CrGEu.js +2 -0
  127. package/dist/owletto/dist/assets/{index-DCdkwg9H.js → index-DfyDUpuI.js} +2 -2
  128. package/dist/owletto/dist/assets/index-DneshLbf.js +2 -0
  129. package/dist/owletto/dist/assets/index-TgRS2v_F.js +2 -0
  130. package/dist/owletto/dist/assets/{index-BJXkc60S.js → index-ZNlrDc_f.js} +2 -2
  131. package/dist/owletto/dist/assets/{json-diff-D_Ym3Uku.js → json-diff-DFvYINBT.js} +3 -3
  132. package/dist/owletto/dist/assets/{list-skeleton-Bl0OS39L.js → list-skeleton-DFsEqLU1.js} +2 -2
  133. package/dist/owletto/dist/assets/login-DO0j-AYr.js +2 -0
  134. package/dist/owletto/dist/assets/{logout-DUccApuZ.js → logout-BmNwoAf7.js} +2 -2
  135. package/dist/owletto/dist/assets/member-scope-gate-B2LrMWBU.js +2 -0
  136. package/dist/owletto/dist/assets/memory-browse-page-Cjpl8EbB.js +103 -0
  137. package/dist/owletto/dist/assets/{model-selector-CB1BDvlW.js → model-selector-TQcA93xm.js} +2 -2
  138. package/dist/owletto/dist/assets/models-D7aED5Sa.js +2 -0
  139. package/dist/owletto/dist/assets/new-BMrFy5Qa.js +2 -0
  140. package/dist/owletto/dist/assets/{new-B5UsLiy6.js → new-ByBhteWA.js} +2 -2
  141. package/dist/owletto/dist/assets/new-DWp3deoW.js +2 -0
  142. package/dist/owletto/dist/assets/{oauth-workspace-access-PGyTnW2K.js → oauth-workspace-access-D_5uESuz.js} +2 -2
  143. package/dist/owletto/dist/assets/{organization-BH8PYlVu.js → organization-DTFoYP4V.js} +2 -2
  144. package/dist/owletto/dist/assets/peek-pane-content-DF5iGC3c.js +2 -0
  145. package/dist/owletto/dist/assets/{permissions-CwN_YP3u.js → permissions-C_auqxfP.js} +2 -2
  146. package/dist/owletto/dist/assets/proposal-review-shell-DsNiavG_.js +2 -0
  147. package/dist/owletto/dist/assets/public-shell-ready-B2NUI89V.js +2 -0
  148. package/dist/owletto/dist/assets/{recent-DqdZE_TI.js → recent-3d99S2IE.js} +2 -2
  149. package/dist/owletto/dist/assets/record-activity-C9KfBkXb.js +2 -0
  150. package/dist/owletto/dist/assets/record-field-peek-BBZcRuGT.js +2 -0
  151. package/dist/owletto/dist/assets/record-session-BizRugWs.js +2 -0
  152. package/dist/owletto/dist/assets/{reset-password-DAvBYkiI.js → reset-password-DqfcSn8M.js} +2 -2
  153. package/dist/owletto/dist/assets/runs-panel-T1ZxTVz6.js +2 -0
  154. package/dist/owletto/dist/assets/runs-table-D_8QlCCN.js +2 -0
  155. package/dist/owletto/dist/assets/schema-value-normalization-CylKX3PK.js +97 -0
  156. package/dist/owletto/dist/assets/settings-B_ClYztB.js +2 -0
  157. package/dist/owletto/dist/assets/settings-DgX1-xo7.js +2 -0
  158. package/dist/owletto/dist/assets/skills-Drw5tcZw.js +2 -0
  159. package/dist/owletto/dist/assets/{source-record-panels-CRIPMWfN.js → source-record-panels-Cg249m1S.js} +2 -2
  160. package/dist/owletto/dist/assets/{use-mention-search-DqEykWl_.js → use-mention-search-BYbFvHbJ.js} +2 -2
  161. package/dist/owletto/dist/assets/view-param-filters-DMSqkN2J.js +2 -0
  162. package/dist/owletto/dist/index.html +2 -2
  163. package/dist/server-main.bundle.mjs +14031 -12680
  164. package/npm-shrinkwrap.json +329 -313
  165. package/package.json +6 -5
  166. package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
  167. package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
  168. package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
  169. package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
  170. package/vendor/connector-sdk/dist/connector-types.d.ts +10 -0
  171. package/vendor/connector-sdk/dist/index.d.ts +3 -0
  172. package/vendor/connector-sdk/dist/index.js +2 -0
  173. package/vendor/connector-sdk/package.json +9 -1
  174. package/vendor/core/dist/agent-policy.js +0 -3
  175. package/vendor/core/dist/agent-tooling.d.ts +1 -1
  176. package/vendor/core/dist/agent-tooling.js +3 -1
  177. package/vendor/core/dist/capabilities.d.ts +1 -1
  178. package/vendor/core/dist/capabilities.js +0 -1
  179. package/vendor/core/dist/connector-query-errors.d.ts +32 -0
  180. package/vendor/core/dist/connector-query-errors.js +41 -1
  181. package/vendor/core/dist/contracts/agent-settings.d.ts +6 -2
  182. package/vendor/core/dist/contracts/agent-settings.js +12 -1
  183. package/vendor/core/dist/contracts/tools/manage-conversations.js +2 -2
  184. package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
  185. package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
  186. package/vendor/core/dist/contracts/tools/manage-views.d.ts +53 -234
  187. package/vendor/core/dist/contracts/tools/manage-views.js +50 -76
  188. package/vendor/core/dist/contracts/tools/view-attach.d.ts +5 -8
  189. package/vendor/core/dist/contracts/tools/view-attach.js +14 -31
  190. package/vendor/core/dist/contracts/tools/view-definition.d.ts +21 -0
  191. package/vendor/core/dist/contracts/tools/view-definition.js +165 -0
  192. package/vendor/core/dist/contracts/worker/protocol.d.ts +47 -133
  193. package/vendor/core/dist/contracts/worker/protocol.js +33 -62
  194. package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
  195. package/vendor/core/dist/device-pin-tombstones.js +57 -0
  196. package/vendor/core/dist/index.d.ts +3 -2
  197. package/vendor/core/dist/index.js +3 -1
  198. package/vendor/core/dist/logger.js +10 -25
  199. package/vendor/core/dist/suggestions.d.ts +15 -2
  200. package/vendor/core/dist/suggestions.js +48 -3
  201. package/vendor/core/dist/types.d.ts +26 -0
  202. package/vendor/core/dist/types.js +5 -0
  203. package/vendor/core/dist/utils/diagnostic-scrubber.js +258 -21
  204. package/vendor/core/dist/worker/wire.d.ts +0 -10
  205. package/vendor/core/package.json +16 -10
  206. package/vendor/postgres/cf/src/connection.js +18 -0
  207. package/vendor/postgres/cjs/src/connection.js +18 -0
  208. package/vendor/postgres/src/connection.js +18 -0
  209. package/vendor/views/dist/api.d.ts +71 -17
  210. package/vendor/views/dist/api.js +200 -35
  211. package/vendor/views/dist/bridge.d.ts +3 -0
  212. package/vendor/views/dist/bridge.js +9 -1
  213. package/vendor/views/dist/components.d.ts +170 -0
  214. package/vendor/views/dist/components.js +361 -0
  215. package/vendor/views/dist/index.d.ts +1 -1
  216. package/vendor/views/package.json +11 -1
  217. package/dist/owletto/dist/assets/_-CEPl6gU4.js +0 -3
  218. package/dist/owletto/dist/assets/_-C_zNZben.js +0 -2
  219. package/dist/owletto/dist/assets/_agentId-CBC_SadO.js +0 -2
  220. package/dist/owletto/dist/assets/_agentId-QQW91cHX.js +0 -2
  221. package/dist/owletto/dist/assets/_automationId-YTTNksw6.js +0 -2
  222. package/dist/owletto/dist/assets/_connectorKey._connectionId-fK0h7RAp.js +0 -2
  223. package/dist/owletto/dist/assets/_connectorKey.index-C7TPS598.js +0 -2
  224. package/dist/owletto/dist/assets/_conversationId-CEhxlTIo.js +0 -2
  225. package/dist/owletto/dist/assets/_eventId-Cl8GSdjg.js +0 -2
  226. package/dist/owletto/dist/assets/_name-t3oBJ6Zf.js +0 -2
  227. package/dist/owletto/dist/assets/_owner-cUtGHqSw.js +0 -3
  228. package/dist/owletto/dist/assets/_shape-bo2lMVCu.js +0 -2
  229. package/dist/owletto/dist/assets/_skillKey-Dwm4Q4wI.js +0 -2
  230. package/dist/owletto/dist/assets/_slug-CU1PuHB9.js +0 -2
  231. package/dist/owletto/dist/assets/_viewKey-Bh6E_NxA.js +0 -2
  232. package/dist/owletto/dist/assets/_viewKey-D4jKl-Zf.js +0 -2
  233. package/dist/owletto/dist/assets/activity-route-view-DQglkhXU.js +0 -2
  234. package/dist/owletto/dist/assets/agent-connect-pages-B6uKvT_X.js +0 -2
  235. package/dist/owletto/dist/assets/agent-editor-form-oUnIYHd7.js +0 -2
  236. package/dist/owletto/dist/assets/agent-subpage-shell-B3K_jPYR.js +0 -2
  237. package/dist/owletto/dist/assets/agent-thread-C8UaUTWc.js +0 -6
  238. package/dist/owletto/dist/assets/agents-F4mGI2oF.js +0 -2
  239. package/dist/owletto/dist/assets/agents-workbench-CMyk4PI7.js +0 -2
  240. package/dist/owletto/dist/assets/app._appId-DH1Qutz6.js +0 -2
  241. package/dist/owletto/dist/assets/automation-detail-content-CEDNboId.js +0 -2
  242. package/dist/owletto/dist/assets/automations-F4mGI2oF.js +0 -2
  243. package/dist/owletto/dist/assets/callback-CU-hb8JB.js +0 -2
  244. package/dist/owletto/dist/assets/client-rows-EJSKR6z1.js +0 -2
  245. package/dist/owletto/dist/assets/connect-B2YL6qIK.js +0 -2
  246. package/dist/owletto/dist/assets/connect._clientId-B6LDmDRV.js +0 -2
  247. package/dist/owletto/dist/assets/connected._clientId-D_HaKoI1.js +0 -2
  248. package/dist/owletto/dist/assets/connected._clientId.activity-DQWcUqKM.js +0 -2
  249. package/dist/owletto/dist/assets/connected._clientId.index-BC3R303A.js +0 -2
  250. package/dist/owletto/dist/assets/connections-browser-Cnv2iBbZ.js +0 -2
  251. package/dist/owletto/dist/assets/connector-scope-lists-BKDetNDc.js +0 -2
  252. package/dist/owletto/dist/assets/connectors-BJnk1z_2.js +0 -2
  253. package/dist/owletto/dist/assets/create-CUqO6Kfk.js +0 -2
  254. package/dist/owletto/dist/assets/create-JRFM8mMf.js +0 -2
  255. package/dist/owletto/dist/assets/create-automation-form-_4vUkrls.js +0 -3
  256. package/dist/owletto/dist/assets/create-iHcxV0xd.js +0 -2
  257. package/dist/owletto/dist/assets/create._connectorKey-CCYLEicg.js +0 -2
  258. package/dist/owletto/dist/assets/deployments-ihkhK1zV.js +0 -2
  259. package/dist/owletto/dist/assets/device-pin-tombstone-Bz4JHHMK.js +0 -2
  260. package/dist/owletto/dist/assets/device._deviceId-D4plO3GM.js +0 -2
  261. package/dist/owletto/dist/assets/entity-options-UJs64GdQ.js +0 -2
  262. package/dist/owletto/dist/assets/entity-page-Djz6T50J.js +0 -2
  263. package/dist/owletto/dist/assets/entity-type-page-OznRag6A.js +0 -2
  264. package/dist/owletto/dist/assets/event-detail-04qOUGIP.js +0 -2
  265. package/dist/owletto/dist/assets/events-feed-fucGZSJR.js +0 -2
  266. package/dist/owletto/dist/assets/filter-editors-DCQgGLyR.js +0 -2
  267. package/dist/owletto/dist/assets/guardrails-molekzAF.js +0 -2
  268. package/dist/owletto/dist/assets/identity-BJcaG66g.js +0 -2
  269. package/dist/owletto/dist/assets/index-B04ON9Jv.js +0 -2
  270. package/dist/owletto/dist/assets/index-BLEcy9-T.css +0 -1
  271. package/dist/owletto/dist/assets/index-BOsK-K-2.js +0 -2
  272. package/dist/owletto/dist/assets/index-BOzuAbvi.js +0 -2
  273. package/dist/owletto/dist/assets/index-Bk1x7A67.js +0 -2
  274. package/dist/owletto/dist/assets/index-CFnx5huL.js +0 -2
  275. package/dist/owletto/dist/assets/index-D3s8rhG9.js +0 -2
  276. package/dist/owletto/dist/assets/index-Dbd1jusf.js +0 -2
  277. package/dist/owletto/dist/assets/index-DqZuqC08.js +0 -2
  278. package/dist/owletto/dist/assets/index-Dr-Xg_xO.js +0 -2
  279. package/dist/owletto/dist/assets/index-KPOvMVa-.js +0 -2
  280. package/dist/owletto/dist/assets/index-_oPeVpL_.js +0 -7950
  281. package/dist/owletto/dist/assets/login-QHdxqX-4.js +0 -2
  282. package/dist/owletto/dist/assets/member-scope-gate-CFbrq1by.js +0 -2
  283. package/dist/owletto/dist/assets/memory-browse-page-IrIXuZTF.js +0 -103
  284. package/dist/owletto/dist/assets/models-DnMb3n-Z.js +0 -2
  285. package/dist/owletto/dist/assets/new-BWo8_Pms.js +0 -2
  286. package/dist/owletto/dist/assets/new-DpmDXmFI.js +0 -2
  287. package/dist/owletto/dist/assets/peek-pane-content-B2AFNTzP.js +0 -2
  288. package/dist/owletto/dist/assets/proposal-review-shell-DKKGu4Ww.js +0 -2
  289. package/dist/owletto/dist/assets/public-shell-ready-7KYnww6e.js +0 -2
  290. package/dist/owletto/dist/assets/record-activity-CvgZyCmw.js +0 -2
  291. package/dist/owletto/dist/assets/renderer-BL6VcwQH.js +0 -97
  292. package/dist/owletto/dist/assets/runs-BWtc5rmc.js +0 -2
  293. package/dist/owletto/dist/assets/runs-panel-BO3h5RkS.js +0 -2
  294. package/dist/owletto/dist/assets/runs-table-DxIiqrSk.js +0 -2
  295. package/dist/owletto/dist/assets/settings-4Ev-0iNL.js +0 -2
  296. package/dist/owletto/dist/assets/settings-Crxlwps-.js +0 -2
  297. package/dist/owletto/dist/assets/skills-D0X430X8.js +0 -2
  298. package/dist/owletto/dist/assets/status-dot-C5KDvvm9.js +0 -2
  299. package/dist/owletto/dist/assets/tabs-B4Er9hJj.js +0 -2
  300. package/dist/owletto/dist/assets/view-param-filters-Cylutoy1.js +0 -2
  301. package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
  302. package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
  303. /package/vendor/postgres/{.bun-tag-f39dafdb2305d504 → .bun-tag-2f292c6554a8475e} +0 -0
@@ -1,97 +0,0 @@
1
- import{dX as jN,dY as KN,r as Ge,j as $,B as qc,ce as II,dZ as JN,d_ as QN,d$ as pp,e0 as eB,cC as tB,e1 as rB,e2 as nB,e3 as aB,e4 as Cx,P as LI,C as iB,dj as oB,ae as sB,ds as lB,e5 as uB}from"./index-_oPeVpL_.js";import{c as fB,d as vB,b as cB,a as hB,C as dB}from"./card-DIF8SF9b.js";const one=jN({orgContext:r=>({slug:r.slug??null}),queryKey:r=>["views",r.slug],tool:"manage_views",body:()=>({action:"list"}),transform:r=>(Array.isArray(r.views)?r.views:[]).flatMap(e=>!e||typeof e.key!="string"||typeof e.name!="string"?[]:[{key:e.key,name:e.name===e.key?KN(e.key.replaceAll("-"," ")):e.name,attach:Array.isArray(e.attach)?e.attach:[],params:e.params&&typeof e.params=="object"&&!Array.isArray(e.params)?e.params:void 0,content_hash:typeof e.content_hash=="string"?e.content_hash:null}]),enabled:(r,e)=>!!r.slug&&!!e.organizationId,staleTime:1e4}),pB=r=>r!=null;function gB(r,e,t=pB){let n=r;for(const a of e.replace(/\[(\d+)\]/g,".$1").split(".")){if(!t(n))return;n=n[a]}return n}function yB(r,e,t){return typeof r!="string"?r:r.startsWith("@")?e?.[r.slice(1)]:r.startsWith("{{")&&r.endsWith("}}")&&r.indexOf("}}")===r.length-2?t(r.slice(2,-2).trim()):r.replace(/\{\{(.+?)\}\}/g,(n,a)=>{const i=t(a.trim());return i===void 0?"":String(i)})}const mB=new Set(["type","children","props","path","fallback","key"]);function _B(r,e){const t={};for(const[n,a]of Object.entries(r))mB.has(n)||(t[n]=a);return Object.assign(t,e)}const SB=/^\d{4}-\d{2}-\d{2}(?:[tT ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/,xB=/^\d{4}-\d{2}-\d{2}$/;function wB(r){return SB.test(r)}function jc(r){if(!/^https?:\/\//i.test(r))return!1;try{const e=new URL(r);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}function PI(r){return r.replace(/[-_]/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,e=>e.toUpperCase())}function Tx(r){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:r>=1e3?"compact":"standard",maximumFractionDigits:r>=1e9?1:0}).format(r)}function Ax(r){return new Intl.NumberFormat("en-US",{maximumFractionDigits:Number.isInteger(r)?0:2}).format(r)}function Mx(r){const e=new Date(xB.test(r)?`${r}T00:00:00`:r);return Number.isNaN(e.getTime())?r:e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function Dx(r){try{const e=new URL(r),t=e.hostname.replace(/^www\./i,""),n=e.pathname&&e.pathname!=="/"?e.pathname.replace(/\/$/,""):"";return`${t}${n}`}catch{return r}}function fm(r){return r==null?"":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(RI(r)):Array.isArray(r)?r.some(e=>typeof e=="object"&&e!==null)?r.map((e,t)=>`${t+1}. ${fm(e)}`).join(`
2
- `):JSON.stringify(r):typeof r=="object"?Object.entries(r).filter(([,t])=>t!=null&&t!=="").map(([t,n])=>`${PI(t)}: ${fm(n)}`).join("; "):JSON.stringify(r)}function RI(r,e){if(r==null)return"";if(typeof r=="boolean")return r?"Yes":"No";if(typeof r=="number")return e==="currency"?Tx(r):e===void 0||e==="text"?String(r):Ax(r);if(typeof r!="string")return fm(r);switch(e){case"currency":return Tx(Number(r));case"date":return Mx(r);case"url":return Dx(r);case"enum":return PI(r);case"number":return Ax(Number(r));case"auto":return jc(r)?Dx(r):wB(r)?Mx(r):r;default:return r}}function bB(r){return r==null?null:typeof r=="string"||typeof r=="number"||typeof r=="boolean"?String(r):null}function EI(r,e){return typeof r!="string"||!r.startsWith("@")||r.length===1?null:{action:r.slice(1),value:bB(e)}}/*! *****************************************************************************
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 vm=function(r,e){return vm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},vm(r,e)};function B(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vm(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var CB=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),TB=(function(){function r(){this.browser=new CB,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 TB;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):AB(navigator.userAgent,Le);function AB(r,e){var t=e.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&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var E_=12,kI="sans-serif",la=E_+"px "+kI,MB=20,DB=100,IB="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function LB(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-MB)/DB;e[n]=a}return e}var PB=LB(IB),rr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=rr.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||la),r.measureText(t);t=t||"",n=n||la;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||E_,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=PB[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}},OI=En(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),NI=En(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),pl=Object.prototype.toString,gd=Array.prototype,RB=gd.forEach,EB=gd.filter,k_=gd.slice,kB=gd.map,Ix=function(){}.constructor,Qf=Ix?Ix.prototype:null,O_="__proto__",gp=2311,OB=Math.pow(2,53)-1;function BI(){return gp>=OB&&(gp=0),gp++}function N_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ae(r){if(r==null||typeof r!="object")return r;var e=r,t=pl.call(r);if(t==="[object Array]"){if(!Iu(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=ae(r[n])}}else if(NI[t]){if(!Iu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!OI[t]&&!Iu(r)&&!qs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==O_&&(e[o]=ae(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ae(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==O_){var a=r[n],i=e[n];fe(i)&&fe(a)&&!H(i)&&!H(a)&&!qs(i)&&!qs(a)&&!Lx(i)&&!Lx(a)&&!Iu(i)&&!Iu(a)?_e(a,i,t):(t||!(n in r))&&(r[n]=ae(e[n]))}return r}function B_(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=_e(t,r[n],e);return t}function F(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==O_&&(r[t]=e[t]);return r}function NB(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var a=t[n];r[a]=e[a]}return r}function le(r,e,t){for(var n=De(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function pe(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function BB(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function xt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else le(r,e,t)}function $t(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,e,t){if(r&&e)if(r.forEach&&r.forEach===RB)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function U(r,e,t){if(!r)return[];if(!e)return V_(r);if(r.map&&r.map===kB)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function En(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function ze(r,e,t){if(!r)return[];if(!e)return V_(r);if(r.filter&&r.filter===EB)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function ci(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function De(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function VB(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(k_.call(arguments)))}}var j=Qf&&ie(Qf.bind)?Qf.call.bind(Qf.bind):VB;function xe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(k_.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):pl.call(r)==="[object Array]"}function ie(r){return typeof r=="function"}function Z(r){return typeof r=="string"}function cm(r){return pl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Lx(r){return!!OI[pl.call(r)]}function dr(r){return!!NI[pl.call(r)]}function qs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function yd(r){return r.colorStops!=null}function zB(r){return r.image!=null}function FB(r){return pl.call(r)==="[object RegExp]"}function Wt(r){return r!==r}function tr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Q(r,e){return r??e}function xr(r,e,t){return r??e??t}function V_(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return k_.apply(r,e)}function md(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Yt(r,e){if(!r)throw new Error(e)}function Br(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var VI="__ec_primitive__";function Kc(r){r[VI]=!0}function Iu(r){return r[VI]}var GB=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return De(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),zI=typeof Map=="function";function HB(){return zI?new Map:new GB}var UB=(function(){function r(e){var t=H(e);this.data=HB();var n=this;e instanceof r?e.each(a):e&&M(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return zI?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function K(r){return new UB(r)}function Wu(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function _d(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&F(t,e),t}function FI(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function ot(){}var wc=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 hm=function(r,e){return hm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},hm(r,e)};function Je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");hm(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Ho(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ht(r,e){return r[0]=e[0],r[1]=e[1],r}function ra(r){return[r[0],r[1]]}function Ya(r,e,t){return r[0]=e,r[1]=t,r}function Px(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function dm(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function no(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function pm(r){return Math.sqrt(WB(r))}function WB(r){return r[0]*r[0]+r[1]*r[1]}function bc(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function gl(r,e){var t=pm(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function gm(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Na=gm;function $B(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var fo=$B;function Cc(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function st(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Ba(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Va(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ns=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),YB=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ns(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new ns(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ns(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ns(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ns(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ns(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),$r=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),XB=Math.log(2);function ym(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/XB);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&a||(v+=(h%2?-1:1)*r[t][c]*ym(r,e-1,f,u,a|d,i),h++)}return i[o]=v,v}function Rx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=ym(t,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)*ym(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var Jc="___zrEVENTSAVED",yp=[];function ZB(r,e,t,n,a){return mm(yp,e,n,a,!0)&&mm(r,t,yp[0],yp[1])}function qB(r,e){r&&t(r),e&&t(e);function t(n){var a=n[Jc];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Jc])}}function mm(r,e,t,n,a){if(e.getBoundingClientRect&&Le.domSupported&&!GI(e)){var i=e[Jc]||(e[Jc]={}),o=jB(e,i),s=KB(o,i,a);if(s)return s(r,t,n),!0}return!1}function jB(r,e){var t=e.markers;if(t)return t;t=e.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),t.push(o)}return e.clearMarkers=function(){M(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function KB(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?Rx(s,o):Rx(o,s))}function GI(r){return r.nodeName.toUpperCase()==="CANVAS"}var JB=/([&<>"'])/g,QB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qt(r){return r==null?"":(r+"").replace(JB,function(e,t){return QB[t]})}var eV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mp=[],tV=Le.browser.firefox&&+Le.browser.version.split(".")[0]<39;function _m(r,e,t,n){return t=t||{},n?Ex(r,e,t):tV&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Ex(r,e,t),t}function Ex(r,e,t){if(Le.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(GI(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(mm(mp,r,n,a)){t.zrX=mp[0],t.zrY=mp[1];return}}t.zrX=t.zrY=0}function z_(r){return r||window.event}function Lr(r,e,t){if(e=z_(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&_m(r,o,e,t)}else{_m(r,e,e,t);var i=rV(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&eV.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function rV(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Sm(r,e,t,n){r.addEventListener(e,t,n)}function nV(r,e,t,n){r.removeEventListener(e,t,n)}var ua=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function kx(r){return r.which===2||r.which===3}var aV=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=_m(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in _p)if(_p.hasOwnProperty(t)){var n=_p[t](this._track,e);if(n)return n}},r})();function Ox(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function iV(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var _p={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Ox(n)/Ox(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=iV(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function nt(){return[1,0,0,1,0,0]}function yl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function _o(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Vr(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function kn(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function hi(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=a*v+s*f,r[1]=-a*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-n[0])+f*(u-n[1])+n[0],r[5]=v*(u-n[1])-f*(o-n[0])+n[1],r}function F_(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function Gr(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function oV(r){var e=nt();return _o(e,r),e}var ue=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),ao=Math.min,Ps=Math.max,xm=Math.abs,Nx=["x","y"],sV=["width","height"],yi=new ue,mi=new ue,_i=new ue,Si=new ue,mr=WI(),pu=mr.minTv,wm=mr.maxTv,Lu=[0,0],se=(function(){function r(e,t,n,a){Sp(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=ao(e.x,this.x),n=ao(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ps(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ps(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return HI(nt(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,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),!e||!t)return!1;e instanceof r||(e=Sp(uV,e.x,e.y,e.width,e.height)),t instanceof r||(t=Sp(fV,t.x,t.y,t.width,t.height));var s=!!n;mr.reset(a,s);var l=mr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(Lu[0]=1/0,Lu[1]=0,Bx(u,f,h,d,0,s,i,o),Bx(v,c,p,g,1,s,i,o),s&&ue.copy(n,y?mr.useDir?mr.dirMinTv:pu:wm)),y},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){js(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&js(e,t);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];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}yi.x=_i.x=t.x,yi.y=Si.y=t.y,mi.x=Si.x=t.x+t.width,mi.y=_i.y=t.y+t.height,yi.transform(n),Si.transform(n),mi.transform(n),_i.transform(n),e.x=ao(yi.x,mi.x,_i.x,Si.x),e.y=ao(yi.y,mi.y,_i.y,Si.y);var l=Ps(yi.x,mi.x,_i.x,Si.x),u=Ps(yi.y,mi.y,_i.y,Si.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var a=n.width/t.width,i=n.height/t.height;return e=yl(e||[]),kn(e,e,Ya(xp,-t.x,-t.y)),F_(e,e,Ya(xp,a,i)),kn(e,e,Ya(xp,n.x,n.y)),e},r})(),Sd=se.create,Sp=se.set,js=se.copy,HI=se.calculateTransform,UI=se.applyTransform,lV=se.contain,uV=new se(0,0,0,0),fV=new se(0,0,0,0),xp=[];function Bx(r,e,t,n,a,i,o,s){var l=xm(e-t),u=xm(n-r),f=ao(l,u),v=Nx[a],c=Nx[1-a],h=sV[a];e<t||n<r?l<u?(i&&(wm[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(wm[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=Ps(r,t),o[h]=ao(e,n)-o[v]),i&&(f<Lu[0]||mr.useDir)&&(Lu[0]=ao(f,Lu[0]),(l<u||!mr.bidirectional)&&(pu[v]=l,pu[c]=0,mr.useDir&&mr.calcDirMTV()),(l>=u||!mr.bidirectional)&&(pu[v]=-u,pu[c]=0,mr.useDir&&mr.calcDirMTV())))}function WI(){var r=0,e=new ue,t=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=Ps(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),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.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(t.x=s*u/f,t.y=s*l/f,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return xm(i)<1e-10}return n}var $I="silent";function vV(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:cV}}function cV(){ua(this.event)}var hV=(function(r){Je(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})($r),kl=(function(){function r(e,t){this.x=e,this.y=t}return r})(),dV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wp=new se(0,0,0,0),YI=(function(r){Je(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new kl(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new hV,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new YB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(dV,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=XI(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 kl(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",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new kl(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=vV(n,t,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)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new kl(t,n);if(Vx(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new se(t-u,n-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(wp.copy(c.getBoundingRect()),c.transform&&wp.applyTransform(c.transform),wp.intersect(f)&&s.push(c))}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=t+g*Math.cos(y),_=n+g*Math.sin(y);if(Vx(s,o,m,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new aV);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new kl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})($r);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){YI.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=XI(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Na(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function pV(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?$I:!0}return!1}function Vx(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=pV(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==$I)){e.target=o;break}}}function XI(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var ZI=32,Ol=7;function gV(r){for(var e=0;r>=ZI;)e|=r&1,r>>=1;return r+e}function zx(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;yV(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function yV(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function Fx(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,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 bp(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+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,e[t+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,e[t+f])>0?o=f+1:l=f}return l}function Cp(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+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,e[t+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,e[t+f])<0?l=f:o=f+1}return l}function mV(r,e){var t=Ol,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=Cp(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=bp(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(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=t,w,b,T;;){w=0,b=0,T=!1;do if(e(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=Cp(r[_],o,m,d,0,e),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=bp(o[m],r,_,g,0,e),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>=Ol||b>=Ol);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=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 c(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=t;;){var T=0,C=0,A=!1;do if(e(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-Cp(o[_],r,h,d,d-1,e),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-bp(r[m],o,0,g,g-1,e),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>=Ol||C>=Ol);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=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 Tc(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<ZI){i=zx(r,t,n,e),Fx(r,t,n,t+i,e);return}var o=mV(r,e),s=gV(a);do{if(i=zx(r,t,n,e),i<s){var l=a;l>s&&(l=s),Fx(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var vr=1,gu=2,Ms=4,Gx=!1;function Tp(){Gx||(Gx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hx(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var _V=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hx}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Tc(n,Hx)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=vr),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Tp(),d.z=0),isNaN(d.z2)&&(Tp(),d.z2=0),isNaN(d.zlevel)&&(Tp(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=pe(this._roots,e);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})(),Qc;Qc=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 Pu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Pu.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?Pu.bounceIn(r*2)*.5:Pu.bounceOut(r*2-1)*.5+.5}},ev=Math.pow,Xa=Math.sqrt,eh=1e-8,qI=1e-4,Ux=Xa(3),tv=1/3,_n=Ho(),kr=Ho(),Vs=Ho();function za(r){return r>-eh&&r<eh}function jI(r){return r>eh||r<-eh}function Ct(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function Wx(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function th(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(za(f)&&za(v))if(za(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(za(p)){var g=v/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=Xa(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-ev(-_,tv):_=ev(_,tv),S<0?S=-ev(-S,tv):S=ev(S,tv);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Xa(f*f*f)),w=Math.acos(x)/3,b=Xa(f),T=Math.cos(w),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Ux*Math.sin(w)))/(3*o),C=(-s+b*(T-Ux*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 KI(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(za(o)){if(jI(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(za(f))a[0]=-i/(2*o);else if(f>0){var v=Xa(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function ri(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,v=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=n}function JI(r,e,t,n,a,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;_n[0]=l,_n[1]=u;for(var m=0;m<1;m+=.05)kr[0]=Ct(r,t,a,o,m),kr[1]=Ct(e,n,i,s,m),g=fo(_n,kr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<qI);_++)d=v-c,p=v+c,kr[0]=Ct(r,t,a,o,d),kr[1]=Ct(e,n,i,s,d),g=fo(kr,_n),d>=0&&g<h?(v=d,h=g):(Vs[0]=Ct(r,t,a,o,p),Vs[1]=Ct(e,n,i,s,p),y=fo(Vs,_n),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Ct(r,t,a,o,v),f[1]=Ct(e,n,i,s,v)),Xa(h)}function SV(r,e,t,n,a,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Ct(r,t,a,o,d),g=Ct(e,n,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Lt(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function bm(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function xV(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(za(i)){if(jI(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(za(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var v=Xa(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function QI(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function $u(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function eL(r,e,t,n,a,i,o,s,l){var u,f=.005,v=1/0;_n[0]=o,_n[1]=s;for(var c=0;c<1;c+=.05){kr[0]=Lt(r,t,a,c),kr[1]=Lt(e,n,i,c);var h=fo(_n,kr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<qI);d++){var p=u-f,g=u+f;kr[0]=Lt(r,t,a,p),kr[1]=Lt(e,n,i,p);var h=fo(kr,_n);if(p>=0&&h<v)u=p,v=h;else{Vs[0]=Lt(r,t,a,g),Vs[1]=Lt(e,n,i,g);var y=fo(Vs,_n);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Lt(r,t,a,u),l[1]=Lt(e,n,i,u)),Xa(v)}function wV(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Lt(r,t,a,c),d=Lt(e,n,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var bV=/cubic-bezier\(([0-9,\.e ]+)\)/;function G_(r){var e=r&&bV.exec(r);if(e){var t=e[1].split(","),n=+Br(t[0]),a=+Br(t[1]),i=+Br(t[2]),o=+Br(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:th(0,n,i,1,l,s)&&Ct(0,a,o,1,s[0])}}}var CV=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ot,this.ondestroy=e.ondestroy||ot,this.onrestart=e.onrestart||ot,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:Pu[e]||G_(e)},r})(),tL=(function(){function r(e){this.value=e}return r})(),TV=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new tL(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Ks=(function(){function r(e){this._list=new TV,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==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=t:s=new tL(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),$x={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 Kr(r){return r=Math.round(r),r<0?0:r>255?255:r}function AV(r){return r=Math.round(r),r<0?0:r>360?360:r}function Yu(r){return r<0?0:r>1?1:r}function Ap(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Kr(parseFloat(e)/100*255):Kr(parseInt(e,10))}function Za(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Yu(parseFloat(e)/100):Yu(parseFloat(e))}function Mp(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Fa(r,e,t){return r+(e-r)*t}function Dr(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function Cm(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var rL=new Ks(20),rv=null;function as(r,e){rv&&Cm(rv,e),rv=rL.put(r,rv||e.slice())}function hr(r,e){if(r){e=e||[];var t=rL.get(r);if(t)return Cm(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in $x)return Cm(e,$x[n]),as(r,e),e;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(e,0,0,0,1);return}return Dr(e,(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),as(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Dr(e,0,0,0,1);return}return Dr(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),as(r,e),e}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(e,+u[0],+u[1],+u[2],1):Dr(e,0,0,0,1);f=Za(u.pop());case"rgb":if(u.length>=3)return Dr(e,Ap(u[0]),Ap(u[1]),Ap(u[2]),u.length===3?f:Za(u[3])),as(r,e),e;Dr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Dr(e,0,0,0,1);return}return u[3]=Za(u[3]),Tm(u,e),as(r,e),e;case"hsl":if(u.length!==3){Dr(e,0,0,0,1);return}return Tm(u,e),as(r,e),e;default:return}}Dr(e,0,0,0,1)}}function Tm(r,e){var t=(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 e=e||[],Dr(e,Kr(Mp(o,i,t+1/3)*255),Kr(Mp(o,i,t)*255),Kr(Mp(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function MV(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,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-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-n)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:n===i&&(l=2/3+v-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 Am(r,e){var t=hr(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Tn(t,t.length===4?"rgba":"rgb")}}function Dp(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=Kr(Fa(o[0],s[0],l)),t[1]=Kr(Fa(o[1],s[1],l)),t[2]=Kr(Fa(o[2],s[2],l)),t[3]=Yu(Fa(o[3],s[3],l)),t}}function DV(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=hr(e[a]),s=hr(e[i]),l=n-a,u=Tn([Kr(Fa(o[0],s[0],l)),Kr(Fa(o[1],s[1],l)),Kr(Fa(o[2],s[2],l)),Yu(Fa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function qa(r,e,t,n){var a=hr(r);if(r)return a=MV(a),e!=null&&(a[0]=AV(ie(e)?e(a[0]):e)),t!=null&&(a[1]=Za(ie(t)?t(a[1]):t)),n!=null&&(a[2]=Za(ie(n)?n(a[2]):n)),Tn(Tm(a),"rgba")}function rh(r,e){var t=hr(r);if(t&&e!=null)return t[3]=Yu(e),Tn(t,"rgba")}function Tn(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function nh(r,e){var t=hr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Yx=new Ks(100);function Mm(r){if(Z(r)){var e=Yx.get(r);return e||(e=Am(r,-.1),Yx.put(r,e)),e}else if(yd(r)){var t=F({},r);return t.colorStops=U(r.colorStops,function(n){return{offset:n.offset,color:Am(n.color,-.1)}}),t}return r}var ah=Math.round;function Xu(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=hr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Xx=1e-4;function Ga(r){return r<Xx&&r>-Xx}function nv(r){return ah(r*1e3)/1e3}function Dm(r){return ah(r*1e4)/1e4}function IV(r){return"matrix("+nv(r[0])+","+nv(r[1])+","+nv(r[2])+","+nv(r[3])+","+Dm(r[4])+","+Dm(r[5])+")"}var LV={left:"start",right:"end",center:"middle",middle:"middle"};function PV(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function RV(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function EV(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function nL(r){return r&&!!r.image}function kV(r){return r&&!!r.svgElement}function H_(r){return nL(r)||kV(r)}function aL(r){return r.type==="linear"}function iL(r){return r.type==="radial"}function oL(r){return r&&(r.type==="linear"||r.type==="radial")}function xd(r){return"url(#"+r+")"}function sL(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function lL(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*wc,a=Q(r.scaleX,1),i=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+ah(o*wc)+"deg, "+ah(s*wc)+"deg)"),l.join(" ")}var OV=(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}})(),Im=Array.prototype.slice;function jn(r,e,t){return(e-r)*t+r}function Ip(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=jn(e[i],t[i],n);return r}function NV(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=jn(e[o][s],t[o][s],n)}return r}function av(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function Zx(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function BV(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function VV(r,e,t){var n=r,a=e;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(t===1?a[l]:Im.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===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 Ru(r){if($t(r)){var e=r.length;if($t(r[0])){for(var t=[],n=0;n<e;n++)t.push(Im.call(r[n]));return t}return Im.call(r)}return r}function Ac(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 zV(r){return $t(r&&r[0])?2:1}var iv=0,Mc=1,uL=2,yu=3,Lm=4,Pm=5,qx=6;function jx(r){return r===Lm||r===Pm}function ov(r){return r===Mc||r===uL}var Nl=[0,0,0,0],FV=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=qx,l=t;if($t(t)){var u=zV(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!Wt(t))s=iv;else if(Z(t))if(!isNaN(+t))s=iv;else{var f=hr(t);f&&(l=f,s=yu)}else if(yd(t)){var v=F({},l);v.colorStops=U(t.colorStops,function(h){return{offset:h.offset,color:hr(h.color)}}),aL(t)?s=Lm:iL(t)&&(s=Pm),l=v}i===0?this.valType=s:(s!==this.valType||s===qx)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return n&&(c.easing=n,c.easingFunc=ie(n)?n:Pu[n]||G_(n)),a.push(c),c},r.prototype.prepare=function(e,t){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=ov(a),u=jx(a),f=0;f<i;f++){var v=n[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?VV(c,h,a):u&&BV(c.colorStops,h.colorStops))}if(!s&&a!==Pm&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<i;f++)a===iv?n[f].additiveValue=n[f].value-d:a===yu?n[f].additiveValue=av([],n[f].value,d,-1):ov(a)&&(n[f].additiveValue=a===Mc?av([],n[f].value,d,-1):Zx([],n[f].value,d,-1))}},r.prototype.step=function(e,t){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===yu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Nl:e[l];if((ov(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(ov(i))i===Mc?Ip(m,h[a],d[a],y):NV(m,h[a],d[a],y);else if(jx(i)){var _=h[a],S=d[a],x=i===Lm;e[l]={type:x?"linear":"radial",x:jn(_.x,S.x,y),y:jn(_.y,S.y,y),colorStops:U(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:jn(b.offset,C.offset,y),color:Ac(Ip([],b.color,C.color,y))}}),global:S.global},x?(e[l].x2=jn(_.x2,S.x2,y),e[l].y2=jn(_.y2,S.y2,y)):e[l].r=jn(_.r,S.r,y)}else if(u)Ip(m,h[a],d[a],y),n||(e[l]=Ac(m));else{var w=jn(h[a],d[a],y);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===iv?e[n]=e[n]+a:t===yu?(hr(e[n],Nl),av(Nl,Nl,a,1),e[n]=Ac(Nl)):t===Mc?av(e[n],e[n],a,1):t===uL&&Zx(e[n],e[n],a,1)},r})(),U_=(function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){N_("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(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,De(t),n)},r.prototype.whenWithKeys=function(e,t,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 FV(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===yu&&u&&(u=Ac(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ru(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Ru(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=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 v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new CV({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Ru(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||De(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Rs(){return new Date().getTime()}var GV=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Rs()-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,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Qc(n),!t._paused&&t.update())}Qc(n)},e.prototype.start=function(){this._running||(this._time=Rs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Rs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Rs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new U_(t,n.loop);return this.addAnimator(a),a},e})($r),HV=300,Lp=Le.domSupported,Pp=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=U(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}})(),Kx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Jx=!1;function Rm(r){var e=r.pointerType;return e==="pen"||e==="touch"}function UV(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 Rp(r){r&&(r.zrByTouch=!0)}function WV(r,e){return Lr(r.dom,new $V(r,e),!0)}function fL(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var $V=(function(){function r(e,t){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.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 e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[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 e=r.toElement||r.relatedTarget;fL(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Jx=!0,r=Lr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Jx||(r=Lr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Lr(this.dom,r),Rp(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),Rp(r),this.handler.processGesture(r,"change"),Zr.mousemove.call(this,r)},touchend:function(r){r=Lr(this.dom,r),Rp(r),this.handler.processGesture(r,"end"),Zr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<HV&&Zr.click.call(this,r)},pointerdown:function(r){Zr.mousedown.call(this,r)},pointermove:function(r){Rm(r)||Zr.mousemove.call(this,r)},pointerup:function(r){Zr.mouseup.call(this,r)},pointerout:function(r){Rm(r)||Zr.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){Zr[r]=function(e){e=Lr(this.dom,e),this.trigger(r,e)}});var Em={pointermove:function(r){Rm(r)||Em.mousemove.call(this,r)},pointerup:function(r){Em.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function YV(r,e){var t=e.domHandlers;Le.pointerEventsSupported?M(Pp.pointer,function(n){Dc(e,n,function(a){t[n].call(r,a)})}):(Le.touchEventsSupported&&M(Pp.touch,function(n){Dc(e,n,function(a){t[n].call(r,a),UV(e)})}),M(Pp.mouse,function(n){Dc(e,n,function(a){a=z_(a),e.touching||t[n].call(r,a)})}))}function XV(r,e){Le.pointerEventsSupported?M(Kx.pointer,t):Le.touchEventsSupported||M(Kx.mouse,t);function t(n){function a(i){i=z_(i),fL(r,i.target)||(i=WV(r,i),e.domHandlers[n].call(r,i))}Dc(e,n,a,{capture:!0})}}function Dc(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Sm(r.domTarget,e,t,n)}function Ep(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&nV(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Qx=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),ZV=(function(r){Je(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new Qx(t,Zr),Lp&&(a._globalHandlerScope=new Qx(document,Em)),YV(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Ep(this._localHandlerScope),Lp&&Ep(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Lp&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?XV(this,n):Ep(n)}},e})($r),vL=1;Le.hasGlobalWindow&&(vL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ih=vL,km=.4,Om="#333",Nm="#ccc",qV="#eee",ew=yl,tw=5e-5;function xi(r){return r>tw||r<-tw}var wi=[],is=[],kp=nt(),Op=Math.abs,Un=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return ni(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return xi(this.rotation)||xi(this.x)||xi(this.y)||xi(this.scaleX-1)||xi(this.scaleY-1)||xi(this.skewX)||xi(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ew(n),this.invTransform=null);return}n=n||nt(),t?this.getLocalTransform(n):ew(n),e&&(t?Vr(n,e,n):_o(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||nt(),Gr(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(wi);var n=wi[0]<0?-1:1,a=wi[1]<0?-1:1,i=((wi[0]-n)*t+n)/wi[0]||0,o=((wi[1]-a)*t+a)/wi[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||nt(),Vr(is,e.invTransform,t),t=is);var n=this.originX,a=this.originY;(n||a)&&(kp[4]=n,kp[5]=a,Vr(is,t,kp),is[4]-=n,is[5]-=a,t=is),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&st(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&st(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Op(e[0]-1)>1e-10&&Op(e[3]-1)>1e-10?Math.sqrt(Op(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){On(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&hi(t,t,u),t[4]+=n+f,t[5]+=a+v,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),ni=Un.getLocalTransform;function zs(){return new Un}var fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function On(r,e){return NB(r,e,fa)}function An(r){sv||(sv=new Ks(100)),r=r||la;var e=sv.get(r);return e||(e={font:r,strWidthCache:new Ks(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:rr.measureText("国",r).width,asciiCharWidth:rr.measureText("a",r).width},sv.put(r,e)),e}var sv;function jV(r){if(!(Np>=rw)){r=r||la;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=rr.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?Np=rw:a>2&&Np++,e}}var Np=0,rw=5;function cL(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=jV(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Mn(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=rr.measureText(e,r.font).width,t.put(e,n)),n}function nw(r,e,t,n){var a=Mn(An(e),r),i=Lf(e),o=Js(0,a,t),s=vo(0,i,n),l=new se(o,s,a,i);return l}function wd(r,e,t,n){var a=((r||"")+"").split(`
29
- `),i=a.length;if(i===1)return nw(a[0],e,t,n);for(var o=new se(0,0,0,0),s=0;s<a.length;s++){var l=nw(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Js(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function vo(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function Lf(r){return An(r).stWideCharWidth}function Nn(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function oh(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(n instanceof Array)l+=Nn(n[0],t.width),u+=Nn(n[1],t.height),f=null,v=null;else switch(n){case"left":l-=a,u+=s,f="right",v="middle";break;case"right":l+=a+o,u+=s,v="middle";break;case"top":l+=o/2,u-=a,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=a,u+=s,v="middle";break;case"insideRight":l+=o-a,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",v="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,v="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Bp="__zr_normal__",Vp=fa.concat(["ignore"]),KV=En(fa,function(r,e){return r[e]=!0,r},{ignore:!1}),os={},JV=new se(0,0,0,0),lv=[],Ic=0,bd=1,Cd=(function(){function r(e){this.id=BI(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(t);var f=n.position!=null,v=n.autoOverflowArea,c=void 0;if((v||f)&&(c=JV,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(os,n,c):oh(os,n,c),i.x=os.x,i.y=os.y,o=os.align,s=os.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=Nn(h[0],c.width),p=Nn(h[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+p+(a?0:c.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(v){var m=y.overflowRect=y.overflowRect||new se(0,0,0,0);i.getLocalTransform(lv),Gr(lv,lv),se.copy(m,c),m.applyTransform(lv)}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,t.setDefaultTextStyle(y)),t.__dirty|=vr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Nm:Om},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&hr(t);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,Tn(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(fe(e))for(var n=e,a=De(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Bp)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Vp)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Bp,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===Bp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){N_("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,v=aw(this,f,u,a);v&&!this.__inHover&&(this.__inHover=v),this._applyStateObj(e,u,this._normalState,t,ow(this,n,l),l);var c=this._textGuide;return f&&f.useState(e,t,n,!!v),c&&c.useState(e,t,n,!!v),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Ic,this.__dirty&=~vr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var v=a[o-1],c=this._textContent,h=aw(this,c,v,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,ow(this,t,p),p);var g=this._textGuide;c&&c.useStates(e,t,!!h),g&&g.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Ic,this.__dirty&=~vr)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=pe(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=pe(a,e),o=pe(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];F(t,i),i.textConfig&&(n=n||{},F(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){if(this.__inHover!==bd){var s=!(t&&a);t&&t.textConfig?(this.textConfig=F({},a?this.textConfig:n.textConfig),F(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Vp.length;f++){var v=Vp[f],c=i&&KV[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&n[v]!=null&&(c?(u=!0,l[v]=n[v]):this[v]=n[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Un,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),F(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=vr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this,i=new U_(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=pe(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){zp(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){zp(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=zp(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Ic,e.__dirty=vr;function t(n,a,i,o){Object.defineProperty(e,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&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();xt(Cd,$r);xt(Cd,Un);function zp(r,e,t,n,a){t=t||{};var i=[];hL(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Fp(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function QV(r){return $t(r[0])}function ez(r,e,t){if($t(e[t]))if($t(r[t])||(r[t]=[]),dr(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Fp(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(QV(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Fp(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Fp(i,a,o);i.length=a.length}else r[t]=e[t]}function tz(r,e){return r===e||$t(r)&&$t(e)&&rz(r,e)}function rz(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function hL(r,e,t,n,a,i,o,s){for(var l=De(n),u=a.duration,f=a.delay,v=a.additive,c=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&&t[y]!=null&&(h||i[y]))if(fe(m)&&!$t(m)&&!yd(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}hL(r,y,t[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var w=x.stopTracks(p);if(w){var b=pe(d,x);d.splice(b,1)}}}if(a.force||(p=ze(p,function(D){return!tz(n[D],t[D])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=t[y],c?T[y]=n[y]:t[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=Ru(t[y]),ez(t,n,y)}}var x=new U_(t,!1,!1,v?ze(d,function(L){return L.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),c&&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,e),o.push(x)}}function aw(r,e,t,n){return!(t&&t.hoverLayer||n)||iw(r)||e&&iw(e)?Ic:bd}function iw(r){return r.type==="text"||r.type==="tspan"}function ow(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var oe=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=pe(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=pe(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new se(0,0,0,0),a=t||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},e})(Cd);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 Lc={},dL={};function nz(r){delete dL[r]}function az(r){if(!r)return!1;if(typeof r=="string")return nh(r,1)<km;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=nh(e[a].color,1);return t/=n,t<km}return!1}var iz=(function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new _V,o=n.renderer||"canvas";Lc[o]||(o=De(Lc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Lc[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Le.node&&!Le.worker&&!l?new ZV(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,v=f==null||f==="auto"?Le.touchEventsSupported:!!f,c=44,h;v&&(h=Q(n.pointerSize,c)),this.handler=new YI(i,s,u,s.root,h),this.animation=new GV({stage:{update:l?null:function(){return a._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=az(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.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(e){var t,n=Rs(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(t=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:i}));var o=Rs();t?(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(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof oe&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,nz(this.id))},r})();function sw(r,e){var t=new iz(BI(),r,e);return dL[t.id]=t,t}function oz(r,e){Lc[r]=e}var Bm;function sz(r){if(typeof Bm=="function")return Bm(r)}function lz(r){Bm=r}var lw=1e-4,pL=20,uz=14;function fz(r){return r.replace(/^\s+|\s+$/g,"")}var He=Math.min,we=Math.max,it=Math.abs,va=Math.round,rn=Math.floor,Uo=Math.ceil,Wo=Math.pow,Zu=Math.log,Vm=Math.LN10,sh=Math.PI,vz=Math.random;function Be(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[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 q=cz;function cz(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return lh(r,e,t)}function lh(r,e,t){return Z(r)?gL(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function hz(r){return Z(r)&&gL(r)}function gL(r){return!!fz(r).match(/%$/)}function ke(r,e,t){return isNaN(e)?t?""+r:+r:(e=He(we(0,e),pL),r=(+r).toFixed(e),t?r:+r)}function Nt(r){return r.sort(function(e,t){return e-t}),r}function ea(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(va(r*e)/e===r)return t}return dz(r)}function dz(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return we(0,o-n)}function W_(r,e,t){var n=it(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var a=Zu(2*it(t||1)*it(n))/Vm,i=Zu(it(e))/Vm,o=we(0,Uo(-a+i));return isFinite(o)||(o=NaN),o}function pz(r,e){var t=En(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Wo(10,e),a=U(r,function(h){return(isNaN(h)?0:h)/t*n*100}),i=n*100,o=U(a,function(h){return rn(h)}),s=En(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,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return U(o,function(h){return h/n})}function Yi(r,e){var t=we(ea(r),ea(e)),n=r+e;return t>pL?n:ke(n,t)}var uh=Wo(2,53)-1;function yL(r){var e=sh*2;return(r%e+e)%e}function Qs(r){return r>-lw&&r<lw}var gz=/^(?:(\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 $o(r){if(r instanceof Date)return r;if(Z(r)){var e=gz.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(va(r))}function mL(r){return Wo(10,$_(r))}function $_(r){if(r===0)return 0;var e=rn(Zu(r)/Vm);return r/Wo(10,e)>=10&&e++,e}var _L=2;function Y_(r,e){var t=$_(r),n=Wo(10,t),a=r/n,i;return e===_L?i=1:e?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,-t)}function Gp(r,e){var t=(r.length-1)*e+1,n=rn(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function uw(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=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 ca(r){var e=parseFloat(r);return e==r&&(e!==0||!Z(r)||r.indexOf("x")<=0)?e:NaN}function SL(r){return!isNaN(ca(r))}function X_(){return va(vz()*9)}function xL(r,e){return e===0?r:xL(e,r%e)}function fw(r,e){return r==null?e:e==null?r:r*e/xL(r,e)}function Hr(r){return r!=null&&isFinite(r)}var yz="[ECharts] ",mz=typeof console<"u"&&console.warn&&console.log;function _z(r,e,t){mz&&console[r](yz+e)}function wL(r,e){_z("error",r)}function Ve(r){throw new Error(r)}function vw(r,e,t){return(e-r)*t+r}var bL="series\0",CL="\0_ec_\0";function Ye(r){return r instanceof Array?r:r==null?[]:[r]}function So(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var cw=["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 ml(r){return fe(r)&&!H(r)&&!(r instanceof Date)?r.value:r}function Sz(r){return fe(r)&&!(r instanceof Array)}function TL(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=K();M(e,function(l,u){if(!fe(l)){e[u]=null;return}});var s=xz(r,o,t);return(n||a)&&wz(s,r,o,e),n&&bz(s,e),n||a?Cz(s,e,a):i&&Tz(s,e),Az(s),s}function xz(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||qu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function wz(r,e,t,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Eu(a.id),s=t.get(o);if(s!=null){var l=r[s];Yt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function bz(r,e){M(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!qu(t)&&!qu(i)&&AL("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function Cz(r,e,t){M(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||qu(a.existing)||a.existing&&n.id!=null&&!AL("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function Tz(r,e){M(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Az(r){var e=K();M(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),M(r,function(t){var n=t.newOption;Yt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),M(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(fe(i)){if(o.name=i.name!=null?Eu(i.name):a?a.name:bL+n,a)o.id=Eu(a.id);else if(i.id!=null)o.id=Eu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function AL(r,e,t){var n=mt(e[r],null),a=mt(t[r],null);return n!=null&&a!=null&&n===a}function Eu(r){return mt(r,"")}function mt(r,e){return r==null?e:Z(r)?r:Ee(r)||cm(r)?r+"":e}function Z_(r){var e=r.name;return!!(e&&e.indexOf(bL))}function qu(r){return r&&r.id!=null&&Eu(r.id).indexOf(CL)===0}function Mz(r){return CL+r}function Dz(r,e,t){M(r,function(n){var a=n.newOption;fe(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=Iz(e,a,n.existing,t))})}function Iz(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function Lz(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=mt(o[u].seriesId,null);if(v==null)return;for(var c=Ye(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[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 xo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return H(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return H(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function me(){var r="__ec_inner_"+Pz++;return function(e){return e[r]||(e[r]={})}}var Pz=X_();function Fs(r,e,t){var n=q_(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var v=_l(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function q_(r,e){var t;if(Z(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=K(),i={},o=!1;return M(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var at={useDefault:!0,enableAll:!1,enableNone:!1},Rz={useDefault:!1,enableAll:!0,enableNone:!0};function _l(r,e,t,n){n=n||at;var a=t.index,i=t.id,o=t.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(e))?[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:e,index:a,id:i,name:o}),s}function j_(r,e,t){var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var a={mainType:e,query:n};return t&&(a.subType=t),a}function ML(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Ez(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function kz(r){return r==="auto"?Le.domSupported?"html":"richText":r||"html"}function zm(r,e){var t=K(),n=[];return M(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function DL(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Ee(n)){var o=vw(t||0,n,a);return ke(o,i?Math.max(ea(t||0),ea(n)):e)}else{if(Z(n))return a<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(a<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=vw(h,d,a);s[v]=ke(o,i?Math.max(ea(h),ea(d)):e)}}return s}}var ja=(function(){function r(){}return r.prototype.reset=function(e,t,n,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=n??(a>0?e.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 Hp(r){r.option=r.parentModel=r.ecModel=null}function Ot(){return[1/0,-1/0]}function Fm(r,e){ha(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function IL(r,e){ha(e)&&e<r[0]&&(r[0]=e)}function LL(r,e){ha(e)&&e>r[1]&&(r[1]=e)}function Oz(r,e){wo(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function ha(r){return r!=null&&isFinite(r)}function wo(r,e){return ha(r)&&ha(e)&&r<=e}function Nz(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Pc(r){wo(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Sl(){var r="__ec_once_"+Bz++;return function(e,t){J(e,r)||(e[r]=1,t())}}var Bz=X_();function Td(r,e,t){var n=K(),a=0;M(r,function(i){var o=e(i),s=n.get(o)||0;t&&t(i,s),!s&&!t&&(r[a++]=i),n.set(o,s+1)}),t||(r.length=a)}function Vz(r){return r.value+""}function zz(r){return r+""}function Dn(r,e){return Q(e,!0)?r.seriesIndex+2:0}function PL(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function wt(r,e){return{seriesType:r,overallReset:e}}function Pf(r){return{overallReset:r}}var Fz=".",bi="___EC__COMPONENT__CONTAINER___",RL="___EC__EXTENDED_CLASS___";function xn(r){var e={main:"",sub:""};if(r){var t=r.split(Fz);e.main=t[0]||"",e.sub=t[1]||""}return e}function Gz(r){Yt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Hz(r){return!!(r&&r[RL])}function K_(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return Uz(n)?a=(function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},BB(a,this)),F(a.prototype,t),a[RL]=!0,a.extend=this.extend,a.superCall=Yz,a.superApply=Xz,a.superClass=n,a}}function Uz(r){return ie(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function EL(r,e){r.extend=e.extend}var Wz=Math.round(Math.random()*10);function $z(r){var e=["__\0is_clz",Wz++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function Yz(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function Xz(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ad(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Gz(a),n.prototype.type=a;var i=xn(a);if(!i.sub)e[i.main]=n;else if(i.sub!==bi){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[bi]&&(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=xn(n),i=[],o=e[a.main];return o&&o[bi]?M(o,function(s,l){l!==bi&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=xn(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return M(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=xn(n),i=e[a.main];return i&&i[bi]};function t(n){var a=e[n.main];return(!a||!a[bi])&&(a=e[n.main]={},a[bi]=!0),a}}function bo(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!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,e);u!=null&&(o[r[s][0]]=u)}}return o}}var Zz=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],qz=bo(Zz),jz=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return qz(this,e,t)},r})(),Gm=new Ks(50);function Kz(r){if(typeof r=="string"){var e=Gm.get(r);return e&&e.image}else return r}function J_(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Gm.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!Md(e)&&i.pending.push(o)):(e=rr.loadImage(r,hw,hw),e.__zrImageSrc=r,Gm.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function hw(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Md(r){return r&&r.width&&r.height}var Up=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Jz(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
38
- `);i=kL(t,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)OL(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
39
- `),r.isTruncated=s}function kL(r,e,t,n){n=n||{};var a=F({},n);t=Q(t,"..."),a.maxIterations=Q(n.maxIterations,2);var i=a.minChar=Q(n.minChar,0),o=a.fontMeasureInfo=An(e),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=Mn(o,t);return f>l&&(t="",f=0),l=r-f,a.ellipsis=t,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function OL(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Mn(i,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?Qz(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Mn(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function Qz(r,e,t){for(var n=0,a=0,i=r.length;a<i&&n<e;a++)n+=cL(t,r.charCodeAt(a));return a}function eF(r,e,t,n){var a=Q_(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=Lf(u),c=Q(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?NL(a,e.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
40
- `):[];var m=y.length*c;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(a&&f&&p!=null)for(var S=kL(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},w=0;w<y.length;w++)OL(x,y[w],S),y[w]=x.textLine,d=d||x.isTruncated;for(var b=g,T=0,C=An(u),w=0;w<y.length;w++)T=Math.max(Mn(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:c,calculatedLineHeight:v,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var tF=(function(){function r(){}return r})(),dw=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),rF=(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 nF(r,e,t,n,a){var i=new rF,o=Q_(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var v=e.height;v==null&&n!=null&&(v=n-u);for(var c=e.overflow,h=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Up.lastIndex=0,p;(p=Up.exec(o))!=null;){var g=p.index;g>d&&Wp(i,o.substring(d,g),e,h),Wp(i,p[2],e,h,p[1]),d=Up.lastIndex}d<o.length&&Wp(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S=c==="truncate",x=e.lineOverflow==="truncate",w={};function b(ye,Ne,ce){ye.width=Ne,ye.lineHeight=ce,m+=ce,_=Math.max(_,Ne)}e:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,D=0,L=0;L<C.tokens.length;L++){var I=C.tokens[L],P=I.styleName&&e.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,O=I.font=P.font||e.font;I.contentHeight=Lf(O);var k=Q(P.height,I.contentHeight);if(I.innerHeight=k,R&&(k+=R[0]+R[2]),I.height=k,I.lineHeight=xr(P.lineHeight,e.lineHeight,k),I.align=P&&P.align||a,I.verticalAlign=P&&P.verticalAlign||"middle",x&&v!=null&&m+I.lineHeight>v){var V=i.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),b(C,D,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<V;break e}var z=P.width,G=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")I.percentWidth=z,y.push(I),I.contentWidth=Mn(An(O),I.text);else{if(G){var W=P.backgroundColor,X=W&&W.image;X&&(X=Kz(X),Md(X)&&(I.width=Math.max(I.width,X.width*k/X.height)))}var Y=S&&f!=null?f-D:null;Y!=null&&Y<I.width?!G||Y<E?(I.text="",I.width=I.contentWidth=0):(Jz(w,I.text,Y-E,O,e.ellipsis,{minChar:e.truncateMinChar}),I.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,I.width=I.contentWidth=Mn(An(O),I.text)):I.contentWidth=Mn(An(O),I.text)}I.width+=E,D+=I.width,P&&(A=Math.max(A,I.lineHeight))}b(C,D,A)}i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(v,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 Wp(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(n){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Nn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
41
- `),u=!0),n.accumWidth=d}else{var p=NL(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=e.split(`
42
- `));for(var g=An(l),y=0;y<f.length;y++){var m=f[y],_=new tF;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:Mn(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new dw)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new dw([_]))}}function aF(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var iF=En(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function oF(r){return aF(r)?!!iF[r]:!0}function NL(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,v=An(e),c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
43
- `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=cL(v,h.charCodeAt(0)),p=n?!1:!oF(h);if(i.length?f+d>t:a+f+d>t){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 pw(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(gw,Js(t,o,a),vo(n,s,i),o,s),se.intersect(e,gw,null,yw);var l=yw.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Js(l.x,l.width,a,!0),r.baseY=vo(l.y,l.height,i,!0)}}var gw=new se(0,0,0,0),yw={outIntersectRect:{},clamp:!0};function Q_(r){return r!=null?r+="":r=""}function sF(r){var e=Q_(r.text),t=r.font,n=Mn(An(t),e),a=Lf(t);return Hm(r,n,a,null)}function Hm(r,e,t,n){var a=new se(Js(r.x||0,e,r.textAlign),vo(r.y||0,t,r.textBaseline),e,t),i=n??(BL(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function BL(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Um="__zr_style_"+Math.round(Math.random()*10),co={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Dd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};co[Um]=!0;var mw=["z","z2","invisible"],lF=["invisible"],Ur=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=De(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uF(this,t,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},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=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;t=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(t,a,n):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new se(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:F(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=gu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&gu)},e.prototype.styleUpdated=function(){this.__dirty&=~gu},e.prototype.createStyle=function(t){return _d(co,t)},e.prototype.useStyle=function(t){t[Um]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[Um]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,mw)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===bd,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 v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var c=De(v),h=0;h<c.length;h++){var d=c[h];d in f&&(f[d]=f[d],this.style[d]=v[d])}for(var p=De(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?lF:mw,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])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return F(t,n),t},e.prototype.getAnimationStyleProps=function(){return Dd},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=vr|gu})(),e})(Cd),$p=new se(0,0,0,0),Yp=new se(0,0,0,0);function uF(r,e,t){return $p.copy(r.getBoundingRect()),r.transform&&$p.applyTransform(r.transform),Yp.width=e,Yp.height=t,!$p.intersect(Yp)}var ur=Math.min,fr=Math.max,Xp=Math.sin,Zp=Math.cos,Ci=Math.PI*2,uv=Ho(),fv=Ho(),vv=Ho();function Id(r,e,t){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]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function _w(r,e,t,n,a,i){a[0]=ur(r,t),a[1]=ur(e,n),i[0]=fr(r,t),i[1]=fr(e,n)}var Sw=[],xw=[];function fF(r,e,t,n,a,i,o,s,l,u){var f=KI,v=Ct,c=f(r,t,a,o,Sw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var d=v(r,t,a,o,Sw[h]);l[0]=ur(d,l[0]),u[0]=fr(d,u[0])}c=f(e,n,i,s,xw);for(var h=0;h<c;h++){var p=v(e,n,i,s,xw[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(e,l[1]),u[1]=fr(e,u[1]),l[1]=ur(s,l[1]),u[1]=fr(s,u[1])}function vF(r,e,t,n,a,i,o,s){var l=QI,u=Lt,f=fr(ur(l(r,t,a),1),0),v=fr(ur(l(e,n,i),1),0),c=u(r,t,a,f),h=u(e,n,i,v);o[0]=ur(r,a,c),o[1]=ur(e,i,h),s[0]=fr(r,a,c),s[1]=fr(e,i,h)}function cF(r,e,t,n,a,i,o,s,l){var u=Ba,f=Va,v=Math.abs(a-i);if(v%Ci<1e-4&&v>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(uv[0]=Zp(a)*t+r,uv[1]=Xp(a)*n+e,fv[0]=Zp(i)*t+r,fv[1]=Xp(i)*n+e,u(s,uv,fv),f(l,uv,fv),a=a%Ci,a<0&&(a=a+Ci),i=i%Ci,i<0&&(i=i+Ci),a>i&&!o?i+=Ci:a<i&&o&&(a+=Ci),o){var c=i;i=a,a=c}for(var h=0;h<i;h+=Math.PI/2)h>a&&(vv[0]=Zp(h)*t+r,vv[1]=Xp(h)*n+e,u(s,vv,s),f(l,vv,l))}var Xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ti=[],Ai=[],un=[],ba=[],fn=[],vn=[],qp=Math.min,jp=Math.max,Mi=Math.cos,Di=Math.sin,$n=Math.abs,Wm=Math.PI,Ra=Wm*2,Kp=typeof Float32Array<"u",Bl=[];function Jp(r){var e=Math.round(r/Wm*1e8)/1e8;return e%2*Wm}function Ld(r,e){var t=Jp(r[0]);t<0&&(t+=Ra);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Ra?a=t+Ra:e&&t-a>=Ra?a=t-Ra:!e&&t>a?a=t+(Ra-Jp(t-a)):e&&t<a&&(a=t-(Ra-Jp(a-t))),r[0]=t,r[1]=a}var Bn=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=$n(n/ih/e)||0,this._uy=$n(n/ih/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Xe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=$n(e-this._xi),a=$n(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Xe.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Xe.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Xe.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),Bl[0]=a,Bl[1]=i,Ld(Bl,o),a=Bl[0],i=Bl[1];var s=i-a;return this.addData(Xe.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=Mi(i)*n+e,this._yi=Di(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Xe.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xe.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Kp&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(Kp&&(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<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,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 v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Kp&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){un[0]=un[1]=fn[0]=fn[1]=Number.MAX_VALUE,ba[0]=ba[1]=vn[0]=vn[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Xe.M:t=a=e[o++],n=i=e[o++],fn[0]=a,fn[1]=i,vn[0]=a,vn[1]=i;break;case Xe.L:_w(t,n,e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.C:fF(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.Q:vF(t,n,e[o++],e[o++],e[o],e[o+1],fn,vn),t=e[o++],n=e[o++];break;case Xe.A:var u=e[o++],f=e[o++],v=e[o++],c=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(a=Mi(h)*v+u,i=Di(h)*c+f),cF(u,f,v,c,h,d,p,fn,vn),t=Mi(d)*v+u,n=Di(d)*c+f;break;case Xe.R:a=t=e[o++],i=n=e[o++];var g=e[o++],y=e[o++];_w(a,i,a+g,i+y,fn,vn);break;case Xe.Z:t=a,n=i;break}Ba(un,un,fn),Va(ba,ba,vn)}return o===0&&(un[0]=un[1]=ba[0]=ba[1]=0),new se(un[0],un[1],ba[0]-un[0],ba[1]-un[1])},r.prototype._calculateLength=function(){var e=this.data,t=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,v=0,c=0;c<t;){var h=e[c++],d=c===1;d&&(i=e[c],o=e[c+1],s=i,l=o);var p=-1;switch(h){case Xe.M:i=s=e[c++],o=l=e[c++];break;case Xe.L:{var g=e[c++],y=e[c++],m=g-i,_=y-o;($n(m)>n||$n(_)>a||c===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Xe.C:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++],w=e[c++],b=e[c++];p=SV(i,o,S,x,g,y,w,b,10),i=w,o=b;break}case Xe.Q:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++];p=wV(i,o,S,x,g,y,10),i=g,o=y;break}case Xe.A:var T=e[c++],C=e[c++],A=e[c++],D=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1,d&&(s=Mi(L)*A+T,l=Di(L)*D+C),p=jp(A,D)*qp(Ra,Math.abs(I)),i=Mi(P)*A+T,o=Di(P)*D+C;break;case Xe.R:{s=i=e[c++],l=o=e[c++];var R=e[c++],E=e[c++];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[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=t<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*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&&(e.lineTo(S,x),_=0),b){case Xe.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case Xe.L:{v=n[w++],c=n[w++];var C=$n(v-u),A=$n(c-f);if(C>a||A>i){if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+v*L,f*(1-L)+c*L);break e}g+=D}e.lineTo(v,c),u=v,f=c,_=0}else{var I=C*C+A*A;I>_&&(S=v,x=c,_=I)}break}case Xe.C:{var P=n[w++],R=n[w++],E=n[w++],O=n[w++],k=n[w++],V=n[w++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;ri(u,P,E,k,L,Ti),ri(f,R,O,V,L,Ai),e.bezierCurveTo(Ti[1],Ai[1],Ti[2],Ai[2],Ti[3],Ai[3]);break e}g+=D}e.bezierCurveTo(P,R,E,O,k,V),u=k,f=V;break}case Xe.Q:{var P=n[w++],R=n[w++],E=n[w++],O=n[w++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;$u(u,P,E,L,Ti),$u(f,R,O,L,Ai),e.quadraticCurveTo(Ti[1],Ai[1],Ti[2],Ai[2]);break e}g+=D}e.quadraticCurveTo(P,R,E,O),u=E,f=O;break}case Xe.A:var z=n[w++],G=n[w++],W=n[w++],X=n[w++],Y=n[w++],ee=n[w++],ye=n[w++],Ne=!n[w++],ce=W>X?W:X,te=$n(W-X)>.001,ge=Y+ee,re=!1;if(h){var D=d[y++];g+D>m&&(ge=Y+ee*(m-g)/D,re=!0),g+=D}if(te&&e.ellipse?e.ellipse(z,G,W,X,ye,Y,ge,Ne):e.arc(z,G,ce,Y,ge,Ne),re)break e;T&&(s=Mi(Y)*W+z,l=Di(Y)*X+G),u=Mi(ge)*W+z,f=Di(ge)*X+G;break;case Xe.R:s=u=n[w],l=f=n[w+1],v=n[w++],c=n[w++];var he=n[w++],We=n[w++];if(h){var D=d[y++];if(g+D>m){var Pe=m-g;e.moveTo(v,c),e.lineTo(v+qp(Pe,he),c),Pe-=he,Pe>0&&e.lineTo(v+he,c+qp(Pe,We)),Pe-=We,Pe>0&&e.lineTo(v+jp(he-Pe,0),c+We),Pe-=he,Pe>0&&e.lineTo(v,c+jp(We-Pe,0));break e}g+=D}e.rect(v,c,he,We);break;case Xe.Z:if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Xe,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function ka(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function hF(r,e,t,n,a,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>e+v&&f>n+v&&f>i+v&&f>s+v||f<e-v&&f<n-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>a+v&&u>o+v||u<r-v&&u<t-v&&u<a-v&&u<o-v)return!1;var c=JI(r,e,t,n,a,i,o,s,u,f,null);return c<=v/2}function VL(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=eL(r,e,t,n,a,i,s,l,null);return f<=u/2}var ww=Math.PI*2;function _r(r){return r%=ww,r<0&&(r+=ww),r}var Vl=Math.PI*2;function dF(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(n-a)%Vl<1e-4)return!0;if(i){var v=n;n=_r(a),a=_r(v)}else n=_r(n),a=_r(a);n>a&&(a+=Vl);var c=Math.atan2(l,s);return c<0&&(c+=Vl),c>=n&&c<=a||c+Vl>=n&&c+Vl<=a}function Kn(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Ca=Bn.CMD,Ii=Math.PI*2,pF=1e-4;function gF(r,e){return Math.abs(r-e)<pF}var Kt=[-1,-1,-1],Rr=[-1,-1];function yF(){var r=Rr[0];Rr[0]=Rr[1],Rr[1]=r}function mF(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=th(e,n,i,s,u,Kt);if(f===0)return 0;for(var v=0,c=-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,t,a,o,g);m<l||(c<0&&(c=KI(e,n,i,s,Rr),Rr[1]<Rr[0]&&c>1&&yF(),h=Ct(e,n,i,s,Rr[0]),c>1&&(d=Ct(e,n,i,s,Rr[1]))),c===2?g<Rr[0]?v+=h<e?y:-y:g<Rr[1]?v+=d<h?y:-y:v+=s<d?y:-y:g<Rr[0]?v+=h<e?y:-y:v+=s<h?y:-y)}return v}function _F(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=xV(e,n,i,s,Kt);if(l===0)return 0;var u=QI(e,n,i);if(u>=0&&u<=1){for(var f=0,v=Lt(e,n,i,u),c=0;c<l;c++){var h=Kt[c]===0||Kt[c]===1?.5:1,d=Lt(r,t,a,Kt[c]);d<o||(Kt[c]<u?f+=v<e?h:-h:f+=i<v?h:-h)}return f}else{var h=Kt[0]===0||Kt[0]===1?.5:1,d=Lt(r,t,a,Kt[0]);return d<o?0:i<e?h:-h}}function SF(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Ii-1e-4){n=0,a=Ii;var f=i?1:-1;return o>=Kt[0]+r&&o<=Kt[1]+r?f:0}if(n>a){var v=n;n=a,a=v}n<0&&(n+=Ii,a+=Ii);for(var c=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=Ii+p),(p>=n&&p<=a||p+Ii>=n&&p+Ii<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function zL(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,c,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Ca.M&&d>1&&(t||(s+=Kn(l,u,f,v,n,a))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case Ca.M:f=i[d++],v=i[d++],l=f,u=v;break;case Ca.L:if(t){if(ka(l,u,i[d],i[d+1],e,n,a))return!0}else s+=Kn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ca.C:if(t){if(hF(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=mF(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 Ca.Q:if(t){if(VL(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=_F(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ca.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++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=Kn(l,u,c,h,n,a);var T=(n-y)*S/_+y;if(t){if(dF(y,m,S,x,x+w,b,e,T,a))return!0}else s+=SF(y,m,S,x,x+w,b,T,a);l=Math.cos(x+w)*_+y,u=Math.sin(x+w)*S+m;break;case Ca.R:f=l=i[d++],v=u=i[d++];var C=i[d++],A=i[d++];if(c=f+C,h=v+A,t){if(ka(f,v,c,v,e,n,a)||ka(c,v,c,h,e,n,a)||ka(c,h,f,h,e,n,a)||ka(f,h,f,v,e,n,a))return!0}else s+=Kn(c,v,c,h,n,a),s+=Kn(f,h,f,v,n,a);break;case Ca.Z:if(t){if(ka(l,u,f,v,e,n,a))return!0}else s+=Kn(l,u,f,v,n,a);l=f,u=v;break}}return!t&&!gF(u,v)&&(s+=Kn(l,u,f,v,n,a)||0),s!==0}function xF(r,e,t){return zL(r,0,!1,e,t)}function wF(r,e,t,n){return zL(r,e,!0,t,n)}var fh=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},co),bF={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Dd.style)},Qp=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),Ae=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.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<Qp.length;++s)a[Qp[s]]=this[Qp[s]];a.__dirty|=vr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=De(t);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=t[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Z(t)){var n=nh(t,0);return n>.5?Om:n>.2?qV:Nm}else if(t)return Nm}return Om},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(Z(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=nh(t,0)<km;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Ms},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Bn(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ms)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);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 t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,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)),wF(s,l/u,t,n)))return!0}if(this.hasFill())return xF(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ms,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:F(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ms)},e.prototype.createStyle=function(t){return _d(fh,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){if(r.prototype._applyStateObj.call(this,t,n,a,i,o,s),this.__inHover!==bd){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=F({},a.shape),F(u,n.shape)):(u=F({},i?this.shape:a.shape),F(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=F({},this.shape);for(var f={},v=De(u),c=0;c<v.length;c++){var h=v[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return bF},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(i){Je(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ae(t.style)},o.prototype.getDefaultShape=function(){return ae(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=vr|gu|Ms})(),e})(Ur),CF=le({strokeFirst:!0,font:la,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},fh),el=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return BL(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return _d(CF,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=sF(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Ur);el.prototype.type="tspan";var TF=le({x:0,y:0},co),AF={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Dd.style)};function MF(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Rt=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return _d(TF,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=MF(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return AF},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new se(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ur);Rt.prototype.type="image";function DF(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(t=t+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 v;s+l>a&&(v=s+l,s*=a/v,l*=a/v),u+f>a&&(v=u+f,u*=a/v,f*=a/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+f,n+i),f!==0&&r.arc(t+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Es=Math.round;function Pd(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Es(n*2)===Es(a*2)&&(r.x1=r.x2=Sr(n,s,!0)),Es(i*2)===Es(o*2)&&(r.y1=r.y2=Sr(i,s,!0))),r}}function FL(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.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,e,t){if(!e)return r;var n=Es(r*2);return(n+Es(e))%2===0?n/2:(n+(t?1:-1))/2}var IF=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),LF={},be=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new IF},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=FL(LF,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?DF(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ae);be.prototype.type="rect";var bw={fill:"#000"},Cw=2,cn={},PF={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},Dd.style)},Re=(function(r){Je(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=bw,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,kF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=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?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||bw},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return F(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=De(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},F(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return PF},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||la,a=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";pw(cn,i.overflowRect,o,s,l,u),o=cn.baseX,s=cn.baseY;var f=Pw(t),v=eF(f,t,cn.outerWidth,cn.outerHeight),c=eg(t),h=!!t.backgroundColor,d=v.outerHeight,p=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=vo(s,v.contentHeight,u);if(c||a){var S=Js(o,p,l),x=vo(s,d,u);c&&this._renderBackground(t,t,S,x,p,d)}_+=y/2,a&&(m=Lw(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var w=0,b=!1,T=!1,C=Iw("fill"in t?t.fill:(T=!0,i.fill)),A=Dw("stroke"in t?t.stroke:!h&&(!i.autoStroke||T)?(w=Cw,b=!0,i.stroke):null),D=t.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(el),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=A,P.fill=C,A&&(P.lineWidth=t.lineWidth||w,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=n,Aw(P,t),_+=y,I.setBoundingRect(Hm(P,v.contentWidth,v.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,a=t.align||n.align,i=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;pw(cn,n.overflowRect,o,s,a,i),o=cn.baseX,s=cn.baseY;var l=Pw(t),u=nF(l,t,cn.outerWidth,cn.outerHeight,a),f=u.width,v=u.outerWidth,c=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var d=Js(o,v,a),p=vo(s,c,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;eg(t)&&this._renderBackground(t,t,d,p,v,c);for(var _=!!t.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,D=g,L=m,I=b-1,P=void 0;A<b&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,t,T,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(f-(D-g)-(m-L)-C)/2;A<=I;)P=w[A],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+a/2;f==="top"?v=i+t.height/2:f==="bottom"&&(v=i+a-t.height/2);var c=!t.isLineHolder&&eg(u);c&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,v-t.height/2,t.width,t.height);var h=!!u.backgroundColor,d=t.textPadding;d&&(o=Lw(o,s,d),v-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(el),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=Iw("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Dw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Cw,S=!0,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=v,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=t.font||la,g.opacity=xr(u.opacity,n.opacity,1),Aw(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(Hm(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,c=l&&!v,h=t.borderRadius,d=this,p,g;if(c||t.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(c){var m=p.style;m.fill=l||null,m.fillOpacity=Q(t.fillOpacity,1)}else if(v){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(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=xr(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return HL(t)&&(n=[t.fontStyle,t.fontWeight,GL(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Br(n)||t.textFont||t.font},e})(Ur),RF={left:!0,right:1,center:1},EF={top:1,bottom:1,middle:1},Tw=["fontStyle","fontWeight","fontSize","fontFamily"];function GL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?E_+"px":r+"px"}function Aw(r,e){for(var t=0;t<Tw.length;t++){var n=Tw[t],a=e[n];a!=null&&(r[n]=a)}}function HL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function kF(r){return Mw(r),M(r.rich,Mw),r}function Mw(r){if(r){r.font=Re.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||RF[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||EF[t]?t:"top";var n=r.padding;n&&(r.padding=md(r.padding))}}function Dw(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Iw(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Lw(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Pw(r){var e=r.text;return e!=null&&(e+=""),e}function eg(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ve=me(),$m=function(r,e,t,n){if(n){var a=ve(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ve(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},xl="undefined",Vn="series",UL=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),br="original",Pt="arrayRows",Cr="objectRows",an="keyedColumns",Ka="typedArray",WL="unknown",Jr="column",Yo="row",$L="Roam",OF=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],YL=(function(){function r(e){M(OF,function(t){this[t]=j(e[t],e)},this)}return r})();function XL(r,e){return e.mainType===Vn?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var Rw=1,Ew={},ZL=me(),eS=me(),tS=0,Rf=1,Rd=2,ir=["emphasis","blur","select"],ju=["normal","emphasis","blur","select"],wl=10,NF=9,ho="highlight",Rc="downplay",vh="select",Ym="unselect",ch="toggleSelect",rS="selectchanged";function ss(r){return r!=null&&r!=="none"}function Ed(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function qL(r){Ed(r,"emphasis",Rd)}function jL(r){r.hoverState===Rd&&Ed(r,"normal",tS)}function nS(r){Ed(r,"blur",Rf)}function KL(r){r.hoverState===Rf&&Ed(r,"normal",tS)}function BF(r){r.selected=!0}function VF(r){r.selected=!1}function kw(r,e,t){e(r,t)}function _a(r,e,t){kw(r,e,t),r.isGroup&&r.traverse(function(n){kw(n,e,t)})}function hh(r,e){switch(e){case"emphasis":r.hoverState=Rd;break;case"normal":r.hoverState=tS;break;case"blur":r.hoverState=Rf;break;case"select":r.selected=!0}}function zF(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[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(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function FF(r,e,t,n){var a=t&&pe(t,"select")>=0,i=!1;if(r instanceof Ae){var o=ZL(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ss(s)||ss(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=F({},n),u=F({},u),u.fill=s):!ss(u.fill)&&ss(s)?(i=!0,n=F({},n),u=F({},u),u.fill=Mm(s)):!ss(u.stroke)&&ss(l)&&(i||(n=F({},n),u=F({},u)),u.stroke=Mm(l)),n.style=u}}if(n&&n.z2==null){i||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??wl)}return n}function GF(r,e,t){if(t&&t.z2==null){t=F({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??NF)}return t}function HF(r,e,t){var n=pe(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:zF(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=F({},t),o=F({opacity:n?a:i.opacity*.1},o),t.style=o),t}function tg(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return FF(this,r,e,t);if(r==="blur")return HF(this,r,t);if(r==="select")return GF(this,r,t)}return t}function Co(r){r.stateProxy=tg;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=tg),t&&(t.stateProxy=tg)}function Ow(r,e){!t2(r,e)&&!r.__highByOuter&&_a(r,qL)}function Nw(r,e){!t2(r,e)&&!r.__highByOuter&&_a(r,jL)}function da(r,e){r.__highByOuter|=1<<(e||0),_a(r,qL)}function pa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&_a(r,jL)}function JL(r){_a(r,nS)}function aS(r){_a(r,KL)}function QL(r){_a(r,BF)}function e2(r){_a(r,VF)}function t2(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function r2(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=eS(i),s=XL(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){KL(u)}),l&&t.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Xm(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&aS(c)}}if(r!=null&&!(!e||e==="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,v=u.coordinateSystem;v&&v.master&&(v=v.master);var c=v&&s?v===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||nS(g)}),$t(e))i(u.getData(),e);else if(fe(e))for(var d=De(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),eS(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var v=n.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,a)}})}}function Zm(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){eS(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){nS(i)})}}}function UF(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=xo(a,e);i=(H(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=ve(o);Xm(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&Xm(n,f,v,t)}}}function iS(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function WF(r,e,t){var n=ve(r),a=iS(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&Zm(n.componentMainType,n.componentIndex,t),M(i,function(s){return Ow(s,e)})):(Xm(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Zm(n.componentMainType,n.componentIndex,t),Ow(r,e))}function $F(r,e,t){r2(t);var n=ve(r),a=iS(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?M(a,function(i){return Nw(i,e)}):Nw(r,e)}function YF(r,e,t){if(jm(e)){var n=e.dataType,a=r.getData(n),i=xo(a,e);H(i)||(i=[i]),r[e.type===ch?"toggleSelect":e.type===vh?"select":"unselect"](i,n)}}function Bw(r){var e=r.getAllData();M(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?QL(i):e2(i)})})}function XF(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();M(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function po(r,e,t){io(r,!0),_a(r,Co),qm(r,e,t)}function ZF(r){io(r,!1)}function et(r,e,t,n){n?ZF(r):po(r,e,t)}function qm(r,e,t){var n=ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var Vw=["emphasis","blur","select"],qF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _t(r,e,t,n){t=t||"itemStyle";for(var a=0;a<Vw.length;a++){var i=Vw[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[qF[t]]()}}function io(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Ku(r){return!!(r&&r.__highDownDispatcher)}function jF(r,e,t){var n=ve(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function KF(r){var e=Ew[r];return e==null&&Rw<=32&&(e=Ew[r]=Rw++),e}function jm(r){var e=r.type;return e===vh||e===Ym||e===ch}function zw(r){var e=r.type;return e===ho||e===Rc}function JF(r){var e=ZL(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var ls=Bn.CMD,QF=[[],[],[]],Fw=Math.sqrt,e5=Math.atan2;function n2(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,f=ls.M,v=ls.C,c=ls.L,h=ls.R,d=ls.A,p=ls.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case f:i=1;break;case c:i=1;break;case v:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=Fw(e[0]*e[0]+e[1]*e[1]),_=Fw(e[2]*e[2]+e[3]*e[3]),S=e5(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],st(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],st(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var x=QF[l];x[0]=t[o++],x[1]=t[o++],st(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}}var rg=Math.sqrt,cv=Math.sin,hv=Math.cos,zl=Math.PI;function Gw(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Km(r,e){return(r[0]*e[0]+r[1]*e[1])/(Gw(r)*Gw(e))}function Hw(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Km(r,e))}function Uw(r,e,t,n,a,i,o,s,l,u,f){var v=l*(zl/180),c=hv(v)*(r-t)/2+cv(v)*(e-n)/2,h=-1*cv(v)*(r-t)/2+hv(v)*(e-n)/2,d=c*c/(o*o)+h*h/(s*s);d>1&&(o*=rg(d),s*=rg(d));var p=(a===i?-1:1)*rg((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+t)/2+hv(v)*g-cv(v)*y,_=(e+n)/2+cv(v)*g+hv(v)*y,S=Hw([1,0],[(c-g)/o,(h-y)/s]),x=[(c-g)/o,(h-y)/s],w=[(-1*c-g)/o,(-1*h-y)/s],b=Hw(x,w);if(Km(x,w)<=-1&&(b=zl),Km(x,w)>=1&&(b=0),b<0){var T=Math.round(b/zl*1e6)/1e6;b=zl*2+T%2*zl}f.addData(u,m,_,o,s,S,b,v,i)}var t5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,r5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function n5(r){var e=new Bn;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Bn.CMD,l=r.match(t5);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(r5)||[],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=t,C=n,A=void 0,D=void 0;switch(v){case"l":t+=h[g++],n+=h[g++],c=s.L,e.addData(c,t,n);break;case"L":t=h[g++],n=h[g++],c=s.L,e.addData(c,t,n);break;case"m":t+=h[g++],n+=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="l";break;case"M":t=h[g++],n=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="L";break;case"h":t+=h[g++],c=s.L,e.addData(c,t,n);break;case"H":t=h[g++],c=s.L,e.addData(c,t,n);break;case"v":n+=h[g++],c=s.L,e.addData(c,t,n);break;case"V":n=h[g++],c=s.L,e.addData(c,t,n);break;case"C":c=s.C,e.addData(c,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),t=h[g-2],n=h[g-1];break;case"c":c=s.C,e.addData(c,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n),t+=h[g-2],n+=h[g-1];break;case"S":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,T=h[g++],C=h[g++],t=h[g++],n=h[g++],e.addData(c,y,m,T,C,t,n);break;case"s":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,T=t+h[g++],C=n+h[g++],t+=h[g++],n+=h[g++],e.addData(c,y,m,T,C,t,n);break;case"Q":T=h[g++],C=h[g++],t=h[g++],n=h[g++],c=s.Q,e.addData(c,T,C,t,n);break;case"q":T=h[g++]+t,C=h[g++]+n,t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,T,C,t,n);break;case"T":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t=h[g++],n=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"t":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=t,C=n,t=h[g++],n=h[g++],c=s.A,Uw(T,C,t,n,w,b,_,S,x,c,e);break;case"a":_=h[g++],S=h[g++],x=h[g++],w=h[g++],b=h[g++],T=t,C=n,t+=h[g++],n+=h[g++],c=s.A,Uw(T,C,t,n,w,b,_,S,x,c,e);break}}(v==="z"||v==="Z")&&(c=s.Z,e.addData(c),t=a,n=i),o=c}return e.toStatic(),e}var a2=(function(r){Je(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ae);function i2(r){return r.setData!=null}function o2(r,e){var t=n5(r),n=F({},e);return n.buildPath=function(a){var i=i2(a);if(i&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&t.rebuildPath(o,1)}},n.applyTransform=function(a){n2(t,a),this.dirtyShape()},n}function s2(r,e){return new a2(o2(r,e))}function a5(r,e){var t=o2(r,e),n=(function(a){Je(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(a2);return n}function i5(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new Ae(e);return o.createPathProxy(),o.buildPath=function(s){if(i2(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function oS(r,e){e=e||{};var t=new Ae;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?n2(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var o5=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Sa=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new o5},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ae);Sa.prototype.type="circle";var s5=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),kd=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new s5},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e})(Ae);kd.prototype.type="ellipse";var l2=Math.PI,ng=l2*2,Li=Math.sin,us=Math.cos,l5=Math.acos,zt=Math.atan2,Ww=Math.abs,ku=Math.sqrt,mu=Math.max,hn=Math.min,Xr=1e-4;function u5(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=v*l-f*u;if(!(c*c<Xr))return c=(f*(e-i)-v*(r-a))/c,[r+c*l,e+c*u]}function dv(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/ku(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=e+v,d=t+f,p=n+v,g=(c+d)/2,y=(h+p)/2,m=d-c,_=p-h,S=m*m+_*_,x=a-i,w=c*p-d*h,b=(_<0?-1:1)*ku(mu(0,x*x*S-w*w)),T=(w*_-m*b)/S,C=(-w*m-_*b)/S,A=(w*_+m*b)/S,D=(-w*m+_*b)/S,L=T-g,I=C-y,P=A-g,R=D-y;return L*L+I*I>P*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-v,x1:T*(a/x-1),y1:C*(a/x-1)}}function f5(r){var e;if(H(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function v5(r,e){var t,n=mu(e.r,0),a=mu(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,v=e.cy,c=!!e.clockwise,h=Ww(u-l),d=h>ng&&h%ng;if(d>Xr&&(h=d),!(n>Xr))r.moveTo(f,v);else if(h>ng-Xr)r.moveTo(f+n*us(l),v+n*Li(l)),r.arc(f,v,n,l,u,!c),a>Xr&&(r.moveTo(f+a*us(u),v+a*Li(u)),r.arc(f,v,a,u,l,c));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,D=void 0,L=void 0,I=void 0,P=void 0,R=n*us(l),E=n*Li(l),O=a*us(u),k=a*Li(u),V=h>Xr;if(V){var z=e.cornerRadius;z&&(t=f5(z),p=t[0],g=t[1],y=t[2],m=t[3]);var G=Ww(n-a)/2;if(_=hn(G,y),S=hn(G,m),x=hn(G,p),w=hn(G,g),C=b=mu(_,S),A=T=mu(x,w),(b>Xr||T>Xr)&&(D=n*us(u),L=n*Li(u),I=a*us(l),P=a*Li(l),h<l2)){var W=u5(R,E,I,P,D,L,O,k);if(W){var X=R-W[0],Y=E-W[1],ee=D-W[0],ye=L-W[1],Ne=1/Li(l5((X*ee+Y*ye)/(ku(X*X+Y*Y)*ku(ee*ee+ye*ye)))/2),ce=ku(W[0]*W[0]+W[1]*W[1]);C=hn(b,(n-ce)/(Ne+1)),A=hn(T,(a-ce)/(Ne-1))}}}if(!V)r.moveTo(f+R,v+E);else if(C>Xr){var te=hn(y,C),ge=hn(m,C),re=dv(I,P,R,E,n,te,c),he=dv(D,L,O,k,n,ge,c);r.moveTo(f+re.cx+re.x0,v+re.cy+re.y0),C<b&&te===ge?r.arc(f+re.cx,v+re.cy,C,zt(re.y0,re.x0),zt(he.y0,he.x0),!c):(te>0&&r.arc(f+re.cx,v+re.cy,te,zt(re.y0,re.x0),zt(re.y1,re.x1),!c),r.arc(f,v,n,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),!c),ge>0&&r.arc(f+he.cx,v+he.cy,ge,zt(he.y1,he.x1),zt(he.y0,he.x0),!c))}else r.moveTo(f+R,v+E),r.arc(f,v,n,l,u,!c);if(!(a>Xr)||!V)r.lineTo(f+O,v+k);else if(A>Xr){var te=hn(p,A),ge=hn(g,A),re=dv(O,k,D,L,a,-ge,c),he=dv(R,E,I,P,a,-te,c);r.lineTo(f+re.cx+re.x0,v+re.cy+re.y0),A<T&&te===ge?r.arc(f+re.cx,v+re.cy,A,zt(re.y0,re.x0),zt(he.y0,he.x0),!c):(ge>0&&r.arc(f+re.cx,v+re.cy,ge,zt(re.y0,re.x0),zt(re.y1,re.x1),!c),r.arc(f,v,a,zt(re.cy+re.y1,re.cx+re.x1),zt(he.cy+he.y1,he.cx+he.x1),c),te>0&&r.arc(f+he.cx,v+he.cy,te,zt(he.y1,he.x1),zt(he.y0,he.x0),!c))}else r.lineTo(f+O,v+k),r.arc(f,v,a,u,l,c)}r.closePath()}}}var c5=(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(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new c5},e.prototype.buildPath=function(t,n){v5(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ae);Xt.prototype.type="sector";var h5=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Ef=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new h5},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e})(Ae);Ef.prototype.type="ring";function d5(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,f,v;if(n){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)Ba(f,f,r[c]),Va(v,v,r[c]);Ba(f,f,n[0]),Va(v,v,n[1])}for(var c=0,h=r.length;c<h;c++){var d=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){a.push(ra(r[c]));continue}else l=r[c-1],u=r[c+1];no(i,u,l),bc(i,i,e);var p=gm(d,l),g=gm(d,u),y=p+g;y!==0&&(p/=y,g/=y),bc(o,i,-p),bc(s,i,g);var m=Px([],d,o),_=Px([],d,s);n&&(Va(m,m,f),Ba(m,m,v),Va(_,_,f),Ba(_,_,v)),a.push(m),a.push(_)}return t&&a.push(a.shift()),a}function u2(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=d5(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?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,v=a.length;s<v;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var p5=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Zt=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new p5},e.prototype.buildPath=function(t,n){u2(t,n,!0)},e})(Ae);Zt.prototype.type="polygon";var g5=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Bt=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new g5},e.prototype.buildPath=function(t,n){u2(t,n,!1)},e})(Ae);Bt.prototype.type="polyline";var y5={},m5=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),dt=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new m5},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=Pd(y5,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&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(Ae);dt.prototype.type="line";var lr=[],_5=(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 $w(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?Wx:Ct)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Wx:Ct)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?bm:Lt)(r.x1,r.cpx1,r.x2,e),(t?bm:Lt)(r.y1,r.cpy1,r.y2,e)]}var kf=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _5},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,v=n.cpy2,c=n.percent;c!==0&&(t.moveTo(a,i),f==null||v==null?(c<1&&($u(a,l,o,c,lr),l=lr[1],o=lr[2],$u(i,u,s,c,lr),u=lr[1],s=lr[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(ri(a,l,f,o,c,lr),l=lr[1],f=lr[2],o=lr[3],ri(i,u,v,s,c,lr),u=lr[1],v=lr[2],s=lr[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return $w(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=$w(this.shape,t,!0);return gl(n,n)},e})(Ae);kf.prototype.type="bezier-curve";var S5=(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})(),Od=(function(r){Je(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new S5},e.prototype.buildPath=function(t,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),v=Math.sin(s);t.moveTo(f*o+a,v*o+i),t.arc(a,i,o,s,l,!u)},e})(Ae);Od.prototype.type="arc";var Nd=(function(r){Je(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ae.prototype.getBoundingRect.call(this)},e})(Ae),f2=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),bl=(function(r){Je(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(f2),v2=(function(r){Je(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(f2),ag=Math.min,x5=Math.max,pv=Math.abs,Pi=[0,0],Ri=[0,0],It=WI(),gv=It.minTv,yv=It.maxTv,c2=(function(){function r(e,t){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;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);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(e,t,n){var a=!0,i=!t;return t&&ue.set(t,0,0),It.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!It.negativeSize&&ue.copy(t,a?It.useDir?It.dirMinTv:gv:yv),a},r.prototype._intersectCheckOneSide=function(e,t,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Pi),e._getProjMinMaxOnAxis(o,t._corners,Ri),It.negativeSize||Pi[1]<Ri[0]||Pi[0]>Ri[1]){if(i=!1,It.negativeSize||n)return i;var l=pv(Ri[0]-Pi[1]),u=pv(Pi[0]-Ri[1]);ag(l,u)>yv.len()&&(l<u?ue.scale(yv,s,-l*a):ue.scale(yv,s,u*a))}else if(!n){var l=pv(Ri[0]-Pi[1]),u=pv(Pi[0]-Ri[1]);(It.useDir||ag(l,u)<gv.len())&&((l<u||!It.bidirectional)&&(ue.scale(gv,s,l*a),It.useDir&&It.calcDirMTV()),(l>=u||!It.bidirectional)&&(ue.scale(gv,s,-u*a),It.useDir&&It.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+i[e];s=ag(f,s),l=x5(f,l)}n[0]=s+It.touchThreshold,n[1]=l-It.touchThreshold,It.negativeSize=n[1]<n[0]},r})(),h2=0,w5=1,b5=2,C5=1,Ec=0,T5=[],A5=(function(r){Je(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=w5,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=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(T5)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,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(t,n))return!0}return!1},e})(Ur),d2=me();function Cl(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),ie(v)&&(v=v(t,a)),ie(u)&&(u=u(t));var c={duration:u||0,delay:v,easing:f};return c}else return null}function sS(r,e,t,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||e.stopAnimation("leave");var f=Cl(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Oe(r,e,t,n,a,i){sS("update",r,e,t,n,a,i)}function Ke(r,e,t,n,a,i){sS("enter",r,e,t,n,a,i)}function Gs(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function ai(r,e,t,n,a,i){Gs(r)||sS("leave",r,e,t,n,a,i)}function Yw(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),ai(r,{style:{opacity:0}},e,t,n)}function na(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||Yw(a,e,t,n)}):Yw(r,e,t,n)}function Wr(r){d2(r).oldStyle=r.style}function M5(r){return d2(r).oldStyle}var Jm={},de=["x","y"],lt=["width","height"],p2=0,g2=1,Tl=2;function D5(r){return Ae.extend(r)}var I5=a5;function L5(r,e){return I5(r,e)}function on(r,e){Jm[r]=e}function dh(r){if(Jm.hasOwnProperty(r))return Jm[r]}function Ju(r,e,t,n){var a=s2(r,e);return t&&(n==="center"&&(t=m2(t,a.getBoundingRect())),_2(a,t)),a}function y2(r,e,t){var n=new Rt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(m2(e,i))}}});return n}function m2(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);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=i5;function _2(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function tl(r,e){return Pd(r,r,{lineWidth:e}),r}function P5(r,e){return FL(r,r,e),r}var kc=Sr;function Hs(r,e){for(var t=yl([]);r&&r!==e;)Vr(t,r.getLocalTransform(),t),r=r.parent;return t}function Qr(r,e,t){return e&&!$t(e)&&(e=Un.getLocalTransform(e)),t&&(e=Gr([],e)),st([],r,e)}function Bd(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:it(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:it(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Qr(i,e,t),it(i[0])>it(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Xw(r){return!r.isGroup}function R5(r){return r.shape!=null}function Of(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){Xw(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return R5(o)&&(s.shape=ae(o.shape)),s}var i=n(r);e.traverse(function(o){if(Xw(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Oe(o,l,t,ve(o).dataIndex)}}})}function S2(r,e){return U(r,function(t){var n=t[0];n=we(n,e.x),n=He(n,e.x+e.width);var a=t[1];return a=we(a,e.y),a=He(a,e.y+e.height),[n,a]})}function E5(r,e){var t=we(r.x,e.x),n=He(r.x+r.width,e.x+e.width),a=we(r.y,e.y),i=He(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Nf(r,e,t){var n=F({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),le(a,t),new Rt(n)):Ju(r.replace("path://",""),n,t,"center")}function _u(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(x2(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function x2(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=ig(f,v,l,u);if(k5(c))return!1;var h=r-a,d=e-i,p=ig(h,d,l,u)/c;if(p<0||p>1)return!1;var g=ig(h,d,f,v)/c;return!(g<0||g>1)}function ig(r,e,t,n){return r*n-t*e}function k5(r){return r<=1e-6&&r>=-1e-6}function To(r,e,t,n,a){return e==null||(Ee(e)?rt[0]=rt[1]=rt[2]=rt[3]=e:(rt[0]=e[0],rt[1]=e[1],rt[2]=e[2],rt[3]=e[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])),t&&(rt[0]=-rt[0],rt[1]=-rt[1],rt[2]=-rt[2],rt[3]=-rt[3]),Zw(r,rt,"x","width",3,1,a&&a[0]||0),Zw(r,rt,"y","height",0,2,a&&a[1]||0)),r}var rt=[0,0,0,0];function Zw(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=we(0,He(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:it(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function xa(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=Z(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&M(De(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Qm(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function di(r,e){if(r)if(H(r))for(var t=0;t<r.length;t++)Qm(r[t],e);else Qm(r,e)}function lS(r){return!r||it(r[1])<mv&&it(r[2])<mv||it(r[0])<mv&&it(r[3])<mv}var mv=1e-5;function Qu(r,e){return r?se.copy(r,e):e.clone()}function uS(r,e){return e?_o(r||nt(),e):void 0}function Ao(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function w2(r){var e=-1/0,t=1/0;Qm(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>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Vd(r,e,t){b2(r,e,t,-1/0)}function b2(r,e,t,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(b2(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=we(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function fS(r){return r.animation={duration:0},r}function zd(r,e){return e?_o(Su.transform,e):yl(Su.transform),Su.decomposeTransform(),On(r,Su),r}var Su=new Un;Su.transform=nt();function e0(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}on("circle",Sa);on("ellipse",kd);on("sector",Xt);on("ring",Ef);on("polygon",Zt);on("polyline",Bt);on("rect",be);on("line",dt);on("bezierCurve",kf);on("arc",Od);const Xo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Od,BezierCurve:kf,BoundingRect:se,Circle:Sa,CompoundPath:Nd,Ellipse:kd,Group:oe,HOVER_LAYER_FOR_INCREMENTAL:Tl,HOVER_LAYER_FROM_THRESHOLD:g2,HOVER_LAYER_NO:p2,Image:Rt,IncrementalDisplayable:A5,Line:dt,LinearGradient:bl,OrientedBoundingRect:c2,Path:Ae,Point:ue,Polygon:Zt,Polyline:Bt,RadialGradient:v2,Rect:be,Ring:Ef,Sector:Xt,Text:Re,WH:lt,XY:de,applyTransform:Qr,calcZ2Range:w2,clipPointsByRect:S2,clipRectByRect:E5,createIcon:Nf,decomposeTransform:zd,ensureCopyRect:Qu,ensureCopyTransform:uS,expandOrShrinkRect:To,extendPath:L5,extendShape:D5,getCurrentCanvasPainter:e0,getShapeClass:dh,getTransform:Hs,groupTransition:Of,initProps:Ke,isBoundingRectAxisAligned:lS,isElementRemoved:Gs,lineLineIntersect:x2,linePolygonIntersect:_u,makeImage:y2,makePath:Ju,mergePath:Or,payloadDisableAnimation:fS,registerShape:on,removeElement:ai,removeElementWithFadeOut:na,resizePath:_2,retrieveZInfo:Ao,setTooltipConfig:xa,subPixelOptimize:kc,subPixelOptimizeLine:tl,subPixelOptimizeRect:P5,transformDirection:Bd,traverseElements:di,traverseUpdateZ:Vd,updateProps:Oe},Symbol.toStringTag,{value:"Module"}));var Fd={};function C2(r,e){for(var t=0;t<ir.length;t++){var n=ir[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function t0(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ie(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<ir.length;u++){var f=ir[u],v=e[f];l[f]=Q(n?n.getFormattedLabel(a,f,null,i,v&&v.get("formatter")):null,s)}return l}function Mt(r,e,t,n){t=t||Fd;for(var a=r instanceof Re,i=!1,o=0;o<ju.length;o++){var s=e[ju[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=t0(t,e),f=e.normal,v=!!f.getShallow("show"),c=Ze(f,n&&n.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(ph(f,t,!1));for(var o=0;o<ir.length;o++){var h=ir[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Q(s.getShallow("show"),v);if(p!==v&&(d.ignore=!p),d.style=Ze(s,n&&n[h],t,!0,!a),d.style.text=u[h],!a){var g=r.ensureState(h);g.textConfig=ph(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!v,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Al(l).setLabelText=function(y){var m=t0(t,e,y);C2(l,m)})}else l&&(l.ignore=!0);r.dirty()}function St(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<ir.length;n++){var a=ir[n];t[a]=r.getModel([a,e])}return t}function Ze(r,e,t,n,a){var i={};return O5(i,r,t,n,a),e&&F(i,e),i}function ph(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Q(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.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"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function O5(r,e,t,n,a){t=t||Fd;var i=e.ecModel,o=i&&i.option.textStyle,s=N5(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=e.getModel(["rich",v]);Jw(l[v]={},c,o,e,f,t,n,a,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Ee(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=ks.minMargin;else{var y=e.get("textMargin");y!=null&&(p.margin=md(y),p.__marginType=ks.textMargin)}Jw(r,e,o,null,null,t,n,a,!0,!1)}function N5(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Fd).rich;if(t){e=e||{};for(var n=De(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var qw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],jw=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Kw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Jw(r,e,t,n,a,i,o,s,l,u){t=!o&&t||Fd;var f=i&&i.inheritColor,v=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Q(e.getShallow("opacity"),t.opacity);(v==="inherit"||v==="auto")&&(f?v=f:v=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(v=v||t.color,c=c||t.textBorderColor),v!=null&&(r.fill=v),c!=null&&(r.stroke=c);var d=Q(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Q(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=Q(e.getShallow("textBorderDashOffset"),t.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<qw.length;y++){var m=qw[y],_=a!==!1&&n?xr(e.getShallow(m),n.getShallow(m),t[m]):Q(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var y=0;y<jw.length;y++){var m=jw[y],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<Kw.length;y++){var m=Kw[y],_=e.getShallow(m);_!=null&&(r[m]=_)}var x=e.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 vS(r,e){var t=e&&e.getModel("textStyle");return Br([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Al=me();function T2(r,e,t,n){if(r){var a=Al(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function A2(r,e,t,n,a){var i=Al(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 v=DL(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var c=t0({labelDataIndex:e,labelFetcher:a,defaultText:o?o(v):v+""},i.statesModels,v);C2(r,c)}r.percent=0,(i.prevValue==null?Ke:Oe)(r,{percent:1},n,e,null,u)}var ks={minMargin:1,textMargin:2},B5=["textStyle","color"],og=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],sg=new Re,V5=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(B5):null)},r.prototype.getFont=function(){return vS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<og.length;n++)t[og[n]]=this.getShallow(og[n]);return sg.useStyle(t),sg.update(),sg.getBoundingRect()},r})(),M2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],z5=bo(M2),F5=(function(){function r(){}return r.prototype.getLineStyle=function(e){return z5(this,e)},r})(),D2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],G5=bo(D2),H5=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return G5(this,e,t)},r})(),Ie=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){_e(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ae(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();K_(Ie);$z(Ie);xt(Ie,F5);xt(Ie,H5);xt(Ie,jz);xt(Ie,V5);var U5=Math.round(Math.random()*10);function Zo(r){return[r||"",U5++].join("_")}function W5(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=xn(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=xn(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function $5(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,v=u.noEntryList,c={};for(M(i,function(m){c[m]=!0});v.length;){var h=v.pop(),d=f[h],p=!!c[h];p&&(s.call(l,h,d.originalDeps.slice()),delete c[h]),M(d.successor,p?y:g)}M(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){c[m]=!0,g(m)}};function t(i){var o={},s=[];return M(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),v=a(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),M(v,function(c){pe(u.predecessor,c)<0&&u.predecessor.push(c);var h=n(o,c);pe(h.successor,c)<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 M(i,function(l){pe(o,l)>=0&&s.push(l)}),s}}function pi(r,e){return _e(_e({},r,!0),e,!0)}const Y5={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:". "}}}},X5={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 gh="ZH",cS="EN",Us=cS,Oc={},hS={},I2=Le.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Us).toUpperCase();return r.indexOf(gh)>-1?gh:Us})():Us;function L2(r,e){r=r.toUpperCase(),hS[r]=new Ie(e),Oc[r]=e}function Z5(r){if(Z(r)){var e=Oc[r.toUpperCase()]||{};return r===gh||r===cS?ae(e):_e(ae(e),ae(Oc[Us]),!1)}else return _e(ae(r),ae(Oc[Us]),!1)}function r0(r){return hS[r]}function q5(){return hS[Us]}L2(cS,Y5);L2(gh,X5);var n0=null;function j5(r){n0||(n0=r)}function vt(){return n0}function P2(r,e){var t=vt(),n=e.breakOption,a=e.breakParsed;return!a&&t&&(a=t.parseAxisBreakOption(n,r)),a}function yh(r){var e=r.brk;return e?e.breaks:[]}function mh(r){var e=r.brk;return e?e.hasBreaks():!1}var dS=1e3,pS=dS*60,Ou=pS*60,Nr=Ou*24,Qw=Nr*365,K5={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})/},Nc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},J5="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",_v="{yyyy}-{MM}-{dd}",eb={year:"{yyyy}",month:"{yyyy}-{MM}",day:_v,hour:_v+" "+Nc.hour,minute:_v+" "+Nc.minute,second:_v+" "+Nc.second,millisecond:J5},yr=["year","month","day","hour","minute","second","millisecond"],Q5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eG(r){return!Z(r)&&!ie(r)?tG(r):r}function tG(r){r=r||{};var e={},t=!0;return M(yr,function(n){t&&(t=r[n]==null)}),M(yr,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=yr[s],u=fe(i)&&!H(i)?i[l]:i,f=void 0;H(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Nc[n]:K5[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function Ta(r,e){return r+="","0000".substr(0,e-r.length)+r}function Nu(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 rG(r){return r===Nu(r)}function nG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Gd(r,e,t,n){var a=$o(r),i=a[R2(t)](),o=a[gS(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[yS(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[mS(t)](),v=(f-1)%12+1,c=a[_S(t)](),h=a[SS(t)](),d=a[xS(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Ie?n:r0(n||I2)||q5(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ta(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ta(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ta(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ta(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ta(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,Ta(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Ta(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ta(d,3)).replace(/{S}/g,d+"")}function aG(r,e,t,n,a){var i=null;if(Z(t))i=t;else if(ie(t)){var o={time:r.time,level:r.time?r.time.level:0},s=vt();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ws(r.value,a);i=t[f][f][0]}}return Gd(new Date(r.value),i,a,n)}function Ws(r,e){var t=$o(r),n=t[gS(e)]()+1,a=t[yS(e)](),i=t[mS(e)](),o=t[_S(e)](),s=t[SS(e)](),l=t[xS(e)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&a===1,d=h&&n===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function a0(r,e,t){switch(e){case"year":r[E2(t)](0);case"month":r[k2(t)](1);case"day":r[O2(t)](0);case"hour":r[N2(t)](0);case"minute":r[B2(t)](0);case"second":r[V2(t)](0)}return r}function R2(r){return r?"getUTCFullYear":"getFullYear"}function gS(r){return r?"getUTCMonth":"getMonth"}function yS(r){return r?"getUTCDate":"getDate"}function mS(r){return r?"getUTCHours":"getHours"}function _S(r){return r?"getUTCMinutes":"getMinutes"}function SS(r){return r?"getUTCSeconds":"getSeconds"}function xS(r){return r?"getUTCMilliseconds":"getMilliseconds"}function iG(r){return r?"setUTCFullYear":"setFullYear"}function E2(r){return r?"setUTCMonth":"setMonth"}function k2(r){return r?"setUTCDate":"setDate"}function O2(r){return r?"setUTCHours":"setHours"}function N2(r){return r?"setUTCMinutes":"setMinutes"}function B2(r){return r?"setUTCSeconds":"setSeconds"}function V2(r){return r?"setUTCMilliseconds":"setMilliseconds"}function z2(r){if(!SL(r))return Z(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function F2(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bf=md;function i0(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Br(f)?f:"-"}function i(f){return Hr(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?$o(r):r;if(isNaN(+l)){if(s)return"-"}else return Gd(l,n,t)}if(e==="ordinal")return cm(r)?a(r):Ee(r)&&i(r)?r+"":"-";var u=ca(r);return i(u)?z2(u):cm(r)?a(r):typeof r=="boolean"?r+"":"-"}var tb=["a","b","c","d","e","f","g"],lg=function(r,e){return"{"+r+(e??"")+"}"};function G2(r,e,t){H(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=tb[i];r=r.replace(lg(o),lg(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(lg(tb[l],s),t?Qt(u):u)}return r}function H2(r,e,t){return M(e,function(n,a){r=r.replace("{"+a+"}",n)}),r}function oG(r,e){var t=Z(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.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)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Qt(n)+";"+(e||"")+'"></span>';var o=t.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 Mo(r,e){return e=e||"transparent",Z(r)?r:fe(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function _h(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Bc={},ug={},Vf=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Bc),this._normalMasterList=n(ug);function n(a,i){var o=[];return M(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){M(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Bc[e]=t;return}ug[e]=t},r.get=function(e){return ug[e]||Bc[e]},r})();function sG(r){return!!Bc[r]}var lG=1,U2=2;function uG(r){W2.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var W2=K();function $2(r){var e=r.getShallow("coord",!0),t=lG;if(e==null){var n=W2.get(r.type);n&&n.getCoord2&&(t=U2,e=n.getCoord2(r))}return{coord:e,from:t}}var $s=0,Vc=1,Y2=2;function X2(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=$s;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Vc,i||(a=$s)):n==="box"&&(a=Y2,!i&&!sG(t)&&(a=$s))}return{coordSysType:t,kind:a}}function zf(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=X2(e),o=i.kind,s=i.coordSysType;if(a&&o!==Vc&&(o=Vc,s=t),o===$s||s!==t)return $s;var l=n(t,e);return l?(o===Vc?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):$s}var Z2=function(r,e){var t=e.getReferringComponents(r,at).models[0];return t&&t.coordinateSystem},zc=M,q2=["left","right","top","bottom","width","height"],oo=[["width","left","right"],["height","top","bottom"]];function wS(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),v=e.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+t,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+t:o=d+t)})}var go=wS;xe(wS,"vertical");xe(wS,"horizontal");function j2(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function fG(r,e){var t=bt(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===xu.point)i=t.refPoint,a=tt(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=H(o)?o:[o,o];a=tt(n,t.refContainer),i=t.boxCoordFrom===U2?t.refPoint:[q(s[0],a.width)+a.x,q(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function K2(r,e){var t=fG(r,e),n=t.viewRect,a=t.center,i=r.get("radius");H(i)||(i=[0,i]);var o=q(n.width,e.getWidth()),s=q(n.height,e.getHeight()),l=Math.min(o,s),u=q(i[0],l/2),f=q(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function tt(r,e,t){t=Bf(t||0);var n=e.width,a=e.height,i=q(r.left,n),o=q(r.top,a),s=q(r.right,n),l=q(r.bottom,a),u=q(r.width,n),f=q(r.height,a),v=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-c-i),isNaN(f)&&(f=a-l-v-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-c),isNaN(o)&&(o=a-l-f-v),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=n-c-i-(s||0)),isNaN(f)&&(f=a-v-o-(l||0));var d=new se((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function J2(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),tt(s,e)}var xu={rect:1,point:2};function bt(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=$2(r),u=l.coord,f=l.from;if(o.dataToLayout){i=xu.rect,s=f;var v=o.dataToLayout(u);n=v.contentRect||v.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=xu.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=xu.rect),i===xu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function Hd(r,e,t,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,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var v=tt(le({width:u.width,height:u.height},e),t,n),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function vG(r,e){return r[oo[e][0]]!=null||r[oo[e][1]]!=null&&r[oo[e][2]]!=null}function ef(r){var e=r.layoutMode||r.constructor.layoutMode;return fe(e)?e:e?{type:e}:null}function zn(r,e,t){var n=t&&t.ignoreSize;!H(n)&&(n=[n,n]);var a=o(oo[0],0),i=o(oo[1],1);l(oo[0],r,a),l(oo[1],r,i);function o(u,f){var v={},c=0,h={},d=0,p=2;if(zc(u,function(m){h[m]=r[m]}),zc(u,function(m){J(e,m)&&(v[m]=h[m]=e[m]),s(v,m)&&c++,s(h,m)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!c)return h;if(c>=p)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!J(v,y)&&J(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){zc(u,function(c){f[c]=v[c]})}}function qo(r){return Q2({},r)}function Q2(r,e){return e&&r&&zc(q2,function(t){J(e,t)&&(r[t]=e[t])}),r}var cG=me(),Me=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Zo("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=ef(this),i=a?qo(t):{},o=n.getTheme();_e(t,o.get(this.mainType)),_e(t,this.getDefaultOption()),a&&zn(t,i,a)},e.prototype.mergeOption=function(t,n){_e(this.option,t,!0);var a=ef(this);a&&zn(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Hz(t))return t.defaultOption;var n=cG(this);if(!n.defaultOption){for(var a=[],i=t;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},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return _l(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return j2(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Ie);EL(Me,Ie);Ad(Me);W5(Me);$5(Me,hG);function hG(r){var e=[];return M(Me.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return xn(t).main}),r!=="dataset"&&pe(e,"dataset")<=0&&e.unshift("dataset"),e}var N={color:{},darkColor:{},size:{}},ut=N.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)"};F(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 Ei in ut)if(ut.hasOwnProperty(Ei)){var rb=ut[Ei];Ei==="theme"?N.darkColor.theme=ut.theme.slice():Ei==="highlight"?N.darkColor.highlight="rgba(255,231,130,0.4)":Ei.indexOf("accent")===0?N.darkColor[Ei]=qa(rb,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):N.darkColor[Ei]=qa(rb,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}N.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var eP="";typeof navigator<"u"&&(eP=navigator.platform||"");var fs="rgba(0, 0, 0, 0.2)",tP=N.color.theme[0],dG=qa(tP,null,null,.9);const rP={darkMode:"auto",colorBy:"series",color:N.color.theme,gradientColor:[dG,tP],aria:{decal:{decals:[{color:fs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:eP.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},nP=me();function pG(r){nP(r).datasetMap=K()}function aP(r,e,t){var n={},a=CS(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=nP(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,v;r=r.slice(),M(r,function(p,g){var y=fe(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(n[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(n[y],_,m),h(o,_,m),c.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 bS(r,e,t){var n={},a=CS(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Cr||i===an)&&M(o,function(f,v){(fe(f)?f.name:f)==="name"&&(s=v)});var l=(function(){for(var f={},v={},c=[],h=0,d=Math.min(5,t);h<d;h++){var p=oP(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);c.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&&c[f.n]===Et.Not)&&(f.n=h),y(f)&&c[f.n]!==Et.Not)return f;g||(p===Et.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(v)?v:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function CS(r){var e=r.get("data",!0);if(!e)return _l(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},at).models[0]}function gG(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:_l(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},at).models}function iP(r,e){return oP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function oP(r,e,t,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):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Et.Must:Et.Not;if(e===Pt){var v=r;if(t===Yo){for(var c=v[i],h=0;h<(c||[]).length&&h<s;h++)if((o=S(c[a+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var d=v[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(e===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(e===an){var y=r;if(!l)return Et.Not;var c=y[l];if(!c||dr(c))return Et.Not;for(var h=0;h<c.length&&h<s;h++)if((o=S(c[h]))!=null)return o}else if(e===br)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=ml(g);if(!H(_))return Et.Not;if((o=S(_[i]))!=null)return o}function S(x){var w=Z(x);if(x!=null&&isFinite(Number(x))&&x!=="")return w?Et.Might:Et.Not;if(w&&x!=="-")return Et.Must}return Et.Not}var o0=K();function yG(r,e){Yt(o0.get(r)==null&&e),o0.set(r,e)}function mG(r,e,t){var n=o0.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var nb=me(),_G=me(),TS=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Ye(this.get("color",!0)),i=this.get("colorLayer",!0);return sP(this,nb,a,i,e,t,n)},r.prototype.clearColorPalette=function(){xG(this,nb)},r})();function s0(r,e,t,n){var a=Ye(r.get(["aria","decal","decals"]));return sP(r,_G,a,null,e,t,n)}function SG(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function sP(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:SG(n,o);if(f=f||t,!(!f||!f.length)){var v=f[l];return a&&(u[a]=v),s.paletteIdx=(l+1)%f.length,v}}function xG(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Sv,Fl,ab,ib="\0_ec_inner",wG=1,AS=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ie(i),this._locale=new Ie(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=lb(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,lb(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?ab(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=n&&n.replaceMergeMainTypeMap;pG(this),M(t,function(v,c){v!=null&&(Me.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?ae(v):_e(a[c],v,!0))}),u&&u.each(function(v,c){Me.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Me.topologicalTravel(s,Me.getAllClassMainTypes(),f,this);function f(v){var c=mG(this,v,Ye(t[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=TL(h,c,d);Dz(p,v,Me),a[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;M(p,function(S,x){var w=S.existing,b=S.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=v==="series",C=Me.getClass(v,S.keyInfo.subType,!T);if(!C)return;if(v==="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=F({componentIndex:x},S.keyInfo);w=new C(b,this,this,A),F(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[v]=g,i.set(v,y),o.set(v,m),v==="series"&&Sv(this)}this._seriesIndices||Sv(this)},e.prototype.getOption=function(){var t=ae(this.option);return M(t,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]&&!qu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[ib],t},e.prototype.setTheme=function(t){this._theme=new Ie(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);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]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(Ye(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=ob("id",i,s):o!=null?l=ob("name",o,s):l=ze(s,function(u){return!!u}),sb(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):ze(this._componentsMap.get(a),function(u){return!!u});return l(sb(o,t));function s(u){var f=a+"Index",v=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[v]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[v],name:u[c]}:null}function l(u){return t.filter?ze(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(ie(t)){var o=n,s=t;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var d=v[h];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=Z(t)?i.get(t):fe(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=mt(t,null);return ze(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ze(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Fl(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){M(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Fl(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return M(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Fl(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Fl(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=K(a)},e.prototype.restoreData=function(t){Sv(this);var n=this._componentsMap,a=[];n.each(function(i,o){Me.hasClass(o)&&a.push(o)}),Me.topologicalTravel(a,Me.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!bG(o,t))&&o.restoreData()})})},e.internalField=(function(){Sv=function(t){var n=t._seriesIndices=[];M(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=K(n)},Fl=function(t){},ab=function(t,n){t.option={},t.option[ib]=wG,t._componentsMap=K({series:[]}),t._componentsCount=K();var a=n.aria;fe(a)&&a.enabled==null&&(a.enabled=!0),CG(n,t._theme.option),_e(n,rP,!1),t._mergeOption(n,null)}})(),e})(Ie);function bG(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function CG(r,e){var t=r.color&&!r.colorLayer;M(e,function(n,a){a==="colorLayer"&&t||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 ob(r,e,t){if(H(e)){var n=K();return M(e,function(i){if(i!=null){var o=mt(i,null);o!=null&&n.set(i,!0)}}),ze(t,function(i){return i&&n.get(i[r])})}else{var a=mt(e,null);return ze(t,function(i){return i&&a!=null&&i[r]===a})}}function sb(r,e){return e.hasOwnProperty("subType")?ze(r,function(t){return t&&t.subType===e.subType}):r}function lb(r){var e=K();return r&&M(Ye(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}xt(AS,TS);var TG=/^(min|max)?(.+)$/,AG=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(M(Ye(e.series),function(o){o&&o.data&&dr(o.data)&&Kc(o.data)}),M(Ye(e.dataset),function(o){o&&o.source&&dr(o.source)&&Kc(o.source)})),e=ae(e);var a=this._optionBackup,i=MG(e,t,!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(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ae(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=ae(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=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++)DG(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!LG(o,this._currentMediaIndices)&&(s=U(o,function(f){return ae(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function MG(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&H(u)&&M(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),c(i),M(l,function(h){return c(h)}),M(n,function(h){return c(h.option)});function c(h){M(e,function(d){d(h,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function DG(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return M(r,function(i,o){var s=o.match(TG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();IG(n[u],i,l)||(a=!1)}}),a}function IG(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function LG(r,e){return r.join(",")===e.join(",")}var Yr=M,tf=fe,ub=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fg(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=ub.length;t<n;t++){var a=ub[t],i=e.normal,o=e.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 Ut(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,le(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function wu(r){Ut(r,"itemStyle"),Ut(r,"lineStyle"),Ut(r,"areaStyle"),Ut(r,"label"),Ut(r,"labelLine"),Ut(r,"upperLabel"),Ut(r,"edgeLabel")}function ht(r,e){var t=tf(r)&&r[e],n=tf(t)&&t.textStyle;if(n)for(var a=0,i=cw.length;a<i;a++){var o=cw[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function Pr(r){r&&(wu(r),ht(r,"label"),r.emphasis&&ht(r.emphasis,"label"))}function PG(r){if(tf(r)){fg(r),wu(r),ht(r,"label"),ht(r,"upperLabel"),ht(r,"edgeLabel"),r.emphasis&&(ht(r.emphasis,"label"),ht(r.emphasis,"upperLabel"),ht(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(fg(e),Pr(e));var t=r.markLine;t&&(fg(t),Pr(t));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]);M(r.categories,function(u){wu(u)})}if(a&&!dr(a))for(var o=0;o<a.length;o++)Pr(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Pr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)H(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"?(Ut(r.breadcrumb,"itemStyle"),M(r.levels,function(u){wu(u)})):r.type==="tree"&&wu(r.leaves)}}function Yn(r){return H(r)?r:r?[r]:[]}function fb(r){return(H(r)?r[0]:r)||{}}function RG(r,e){Yr(Yn(r.series),function(n){tf(n)&&PG(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yr(t,function(n){Yr(Yn(r[n]),function(a){a&&(ht(a,"axisLabel"),ht(a.axisPointer,"label"))})}),Yr(Yn(r.parallel),function(n){var a=n&&n.parallelAxisDefault;ht(a,"axisLabel"),ht(a&&a.axisPointer,"label")}),Yr(Yn(r.calendar),function(n){Ut(n,"itemStyle"),ht(n,"dayLabel"),ht(n,"monthLabel"),ht(n,"yearLabel")}),Yr(Yn(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)}),Yr(Yn(r.geo),function(n){tf(n)&&(Pr(n),Yr(Yn(n.regions),function(a){Pr(a)}))}),Yr(Yn(r.timeline),function(n){Pr(n),Ut(n,"label"),Ut(n,"itemStyle"),Ut(n,"controlStyle",!0);var a=n.data;H(a)&&M(a,function(i){fe(i)&&(Ut(i,"label"),Ut(i,"itemStyle"))})}),Yr(Yn(r.toolbox),function(n){Ut(n,"iconStyle"),Yr(n.feature,function(a){Ut(a,"iconStyle")})}),ht(fb(r.axisPointer),"label"),ht(fb(r.tooltip).axisPointer,"label")}function EG(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function kG(r,e,t,n){for(var a=e.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]]=t)}function vb(r){r&&M(OG,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var OG=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],NG=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Gl(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<vg.length;t++){var n=vg[t][1],a=vg[t][0];e[n]!=null&&(e[a]=e[n])}}function cb(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function hb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function BG(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function lP(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&lP(r[t].children,e)}function uP(r,e){RG(r,e),r.series=Ye(r.series),M(r.series,function(t){if(fe(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),cb(t.label);var a=t.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)cb(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=EG(t,"pointer.color");o!=null&&kG(t,"itemStyle.color",o)}else if(n==="bar"){Gl(t),Gl(t.backgroundStyle),Gl(t.emphasis);var a=t.data;if(a&&!dr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Gl(a[i]),Gl(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),hb(t),lP(t.data,hb)}else n==="graph"||n==="sankey"?BG(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&le(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),vb(t)}}),r.dataRange&&(r.visualMap=r.dataRange),M(NG,function(t){var n=r[t];n&&(H(n)||(n=[n]),M(n,function(a){vb(a)}))})}var VG=Pf(zG);function zG(r){var e=K();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),M(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),FG(t)}})}function FG(r){M(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(e.stackedDimension,v);if(isNaN(c))return a;var h,d;s?d=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var p=NaN,g=t-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"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=Yi(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var Ud=(function(){function r(e){this.data=e.data||(e.sourceFormat===an?{}:[]),this.sourceFormat=e.sourceFormat||WL,this.seriesLayoutBy=e.seriesLayoutBy||Jr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&iP(this,n)===Et.Must&&(a.type="ordinal")}}return r})();function MS(r){return r instanceof Ud}function l0(r,e,t){t=t||fP(r);var n=e.seriesLayoutBy,a=HG(r,t,n,e.sourceHeader,e.dimensions),i=new Ud({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ae(e)});return i}function DS(r){return new Ud({data:r,sourceFormat:dr(r)?Ka:br})}function GG(r){return new Ud({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ae(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function fP(r){var e=WL;if(dr(r))e=Ka;else if(H(r)){r.length===0&&(e=Pt);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(H(a)||dr(a)){e=Pt;break}else if(fe(a)){e=Cr;break}}}}else if(fe(r)){for(var i in r)if(J(r,i)&&$t(r[i])){e=an;break}}return e}function HG(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:db(a),startIndex:o,dimensionsDetectedCount:i};if(e===Pt){var s=r;n==="auto"||n==null?pb(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},t,s,10):o=Ee(n)?n:n?1:0,!a&&o===1&&(a=[],pb(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===Yo?s.length:s[0]?s[0].length:null}else if(e===Cr)a||(a=UG(r));else if(e===an)a||(a=[],M(r,function(u,f){a.push(f)}));else if(e===br){var l=ml(r[0]);i=H(l)&&l.length||1}return{startIndex:o,dimensionsDefine:db(a),dimensionsDetectedCount:i}}function UG(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return De(t)}function db(r){if(r){var e=K();return U(r,function(t,n){t=fe(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function pb(r,e,t,n){if(e===Yo)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function vP(r){var e=r.sourceFormat;return e===Cr||e===an}var ki,Oi,Ni,Bi,gb,yb,cP=(function(){function r(e,t){var n=MS(e)?e:DS(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Ka&&(this._offset=0,this._dimSize=t,this._data=a),yb(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;yb=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine,h=gb[IS(u,f)];if(F(o,h),u===Ka)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=hP(u,f);o.getItem=j(d,null,s,v,c);var p=dP(u,f);o.count=j(p,null,s,v,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},n=function(o,s,l,u){for(var f=this._data,v=this._dimSize,c=0;c<v;c++){for(var h=u[c],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];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=(e={},e[Pt+"_"+Jr]={pure:!0,appendData:i},e[Pt+"_"+Yo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Cr]={pure:!0,appendData:i},e[an]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[br]={appendData:i},e[Ka]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),xv=function(r){H(r)||wL("series.data or dataset.source must be an array.")};ki={},ki[Pt+"_"+Jr]=xv,ki[Pt+"_"+Yo]=xv,ki[Cr]=xv,ki[an]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&wL("dimension name must not be null/undefined.")}},ki[br]=xv;var mb=function(r,e,t,n){return r[n]},WG=(Oi={},Oi[Pt+"_"+Jr]=function(r,e,t,n){return r[n+e]},Oi[Pt+"_"+Yo]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Oi[Cr]=mb,Oi[an]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Oi[br]=mb,Oi);function hP(r,e){var t=WG[IS(r,e)];return t}var _b=function(r,e,t){return r.length},$G=(Ni={},Ni[Pt+"_"+Jr]=function(r,e,t){return Math.max(0,r.length-e)},Ni[Pt+"_"+Yo]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Ni[Cr]=_b,Ni[an]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},Ni[br]=_b,Ni);function dP(r,e){var t=$G[IS(r,e)];return t}var cg=function(r,e,t){return r[e]},YG=(Bi={},Bi[Pt]=cg,Bi[Cr]=function(r,e,t){return r[t]},Bi[an]=cg,Bi[br]=function(r,e,t){var n=ml(r);return n instanceof Array?n[e]:n},Bi[Ka]=cg,Bi);function pP(r){var e=YG[r];return e}function IS(r,e){return r===Pt?r+"_"+e:r}function rl(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return pP(i)(n,o,s)}else{var l=n;return i===br&&(l=ml(n)),l}}}}var XG=/\{@(.+?)\}/g,Wd=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c=v==="series",h=n.userOutput&&n.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&H(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ie(i))return l.status=t,l.dimensionIndex=a,i(l);if(Z(i)){var f=G2(i,l);return f.replace(XG,function(v,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=rl(s,e,d);if(o&&H(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return rl(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function Sb(r){var e,t;return fe(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Bu(r){return new ZG(r)}var ZG=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.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(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(v||h<d)){var p=this._progress;if(H(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(e,t,n,a,i){xb.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:xb.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,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(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),xb=(function(){var r,e,t,n,a,i={reset:function(l,u,f,v){e=l,r=u,t=f,n=v,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function Ja(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ee(r)&&r!=null&&r!=="-"&&(r=+$o(r)),r==null||r===""?NaN:Number(r))}var qG=K({number:function(r){return parseFloat(r)},time:function(r){return+$o(r)},trim:function(r){return Z(r)?Br(r):r}});function gP(r){return qG.get(r)}var yP={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},jG=(function(){function r(e,t){if(!Ee(t)){var n="";Ve(n)}this._opFn=yP[e],this._rvalFloat=ca(t)}return r.prototype.evaluate=function(e){return Ee(e)?this._opFn(e,this._rvalFloat):this._opFn(ca(e),this._rvalFloat)},r})(),mP=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=Ee(e)?e:ca(e),a=Ee(t)?t:ca(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Z(e),l=Z(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),KG=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ca(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=ca(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function JG(r,e){return r==="eq"||r==="ne"?new KG(r==="eq",e):J(yP,r)?new jG(r,e):null}function _P(r){var e="",t=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,a=r.l),r.le!=null&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:n,l:a,le:i}}function SP(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var QG=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ja(e,t)},r})();function e3(r,e){var t=new QG,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Jr&&Ve(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(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)&&Ve(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=hP(a,Jr);e.__isBuiltIn&&(t.getRawDataItem=function(p){return v(n,i,s,p)},t.getRawData=j(t3,null,r)),t.cloneRawData=j(r3,null,r);var c=dP(a,Jr);t.count=j(c,null,n,i,s);var h=pP(a);t.retrieveValue=function(p,g){var y=v(n,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return t.getDimensionInfo=j(n3,null,s,l),t.cloneAllDimensionInfo=j(a3,null,s),t}function t3(r){var e=r.sourceFormat;if(!LS(e)){var t="";Ve(t)}return r.data}function r3(r){var e=r.sourceFormat,t=r.data;if(!LS(e)){var n="";Ve(n)}if(e===Pt){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Cr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(F({},t[i]));return a}}function n3(r,e,t){if(t!=null){if(Ee(t)||!isNaN(t)&&!J(e,t))return r[t];if(J(e,t))return e[t]}}function a3(r){return ae(r)}var xP=K();function i3(r){r=ae(r);var e=r.type,t="";e||Ve(t);var n=e.split(":");n.length!==2&&Ve(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,xP.set(e,r)}function o3(r,e,t){var n=Ye(r),a=n.length,i="";a||Ve(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=s3(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function s3(r,e,t,n){var a="";e.length||Ve(a),fe(r)||Ve(a);var i=r.type,o=xP.get(i);o||Ve(a);var s=U(e,function(u){return e3(u,o)}),l=Ye(o.transform({upstream:s[0],upstreamList:s,config:ae(r.config)}));return U(l,function(u,f){var v="";fe(u)||Ve(v),u.data||Ve(v);var c=fP(u.data);LS(c)||Ve(v);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Jr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Jr,sourceHeader:0,dimensions:u.dimensions};return l0(u.data,h,null)})}function LS(r){return r===Pt||r===Cr}var l3=typeof Uint32Array===xl?Array:Uint32Array,u3=typeof Uint16Array===xl?Array:Uint16Array,wP=typeof Int32Array===xl?Array:Int32Array,wb=typeof Float64Array===xl?Array:Float64Array,bP={float:wb,int:wP,ordinal:Array,number:Array,time:wb},hg;function vs(r){return r>65535?l3:u3}function f3(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function bb(r,e,t,n,a){var i=bP[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var u0=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=hg[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],vP(a),this._dimensions=U(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new bP[t||"float"](this._rawCount),this._rawExtent[i]=Ot(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ot());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];bb(n,u,f.type,l,!0)}for(var v=[],c=s;c<l;c++)for(var h=c-s,d=0;d<i;d++){var f=a[d],p=hg.arrayRows.call(this,e[h]||v,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,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 v=o[f];l[f]||(l[f]=Ot()),bb(i,f,v.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var c=[],h=e;h<t;h++){c=a.getItem(h,c);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(c,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=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),Nt(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=vs(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=vs(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],v=n._chunks,c=0;c<a;c++){var h=void 0,d=n.getRawIndex(c);if(l===0)h=t(c);else if(l===1){var p=v[f][d];h=t(p,c)}else{for(var g=0;g<l;g++)s[g]=v[e[g]][d];s[g]=c,h=t.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(e){var t=this.clone(),n=t._count;if(!n)return this;var a=De(e),i=a.length;if(!i)return this;var o=t.count(),s=vs(t._rawCount),l=new s(o),u=0,f=a[0],v=e[f][0],c=e[f][1],h=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=e[a[1]][0],x=e[a[1]][1],y=0;y<n;y++){var m=g[y],w=_[y];(m>=v&&m<=c||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=t.getRawIndex(y),m=h[a[0]][b];(m>=v&&m<=c||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=t.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=h[A][b];(m<e[A][0]||m>e[A][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ot();for(var v=0;v<s;v++){for(var c=e.getRawIndex(v),h=0;h<o;h++)l[h]=a[t[h]][c];l[o]=v;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=t[f],g=d[f],y=u[p],m=a[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,v,c,h=new(vs(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,c=w;for(var A=-1,D=0,_=w;_<b;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){D++,A<0&&(A=S);continue}v=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),v>f&&(f=v,c=S)}D>0&&D<b-w&&(h[s++]=Math.min(A,c),c=Math.max(A,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(vs(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],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<c&&(c=m,v=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);v<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(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=Ot(),c=new(vs(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<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],a=Ot();if(!n)return a;var i=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=_P(t),f=u.key,v=l[f];if(v)return v.slice();for(var c=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!t||SP(u,g))&&(g<c&&(c=g),g>h&&(h=g))}return l[f]=[c,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&En(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?f3(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ae(this._extent),e._rawExtent=ae(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return Ja(t[i],this._dimensions[i])}hg={arrayRows:e,objectRows:function(t,n,a,i){return Ja(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Ja(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),CP=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(wv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=dr(s)?Ka:br,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=Q(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=Q(v.sourceHeader,c.sourceHeader),p=Q(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;a=g?[l0(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[l0(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Tb(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var f=u.getSource(a||0),v="";a!=null&&!f&&Tb(v),s.push(f),l.push(u._getVersionSign())}),n?o=o3(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[GG(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,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];wv(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new u0,s.initData(new cP(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(wv(e)){var t=CS(e);return t?[t.getSourceManager()]:[]}else return U(gG(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(wv(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function Cb(r){var e=r.option.transform;e&&Kc(r.option.transform)}function wv(r){return r.mainType==="series"}function Tb(r){throw new Error(r)}var v3="line-height:1";function TP(r){var e=r.lineHeight;return e==null?v3:"line-height:"+Qt(e+"")+"px"}function AP(r,e){var t=r.color||N.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||N.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Qt(n+"")+"px;color:"+Qt(t)+";font-weight:"+Qt(a+""),valueStyle:"font-size:"+Qt(o+"")+"px;color:"+Qt(i)+";font-weight:"+Qt(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var c3=[0,10,20,30],h3=["",`
44
- `,`
45
-
46
- `,`
47
-
48
-
49
- `];function pt(r,e){return e.type=r,e}function f0(r){return r.type==="section"}function MP(r){return f0(r)?d3:p3}function DP(r){if(f0(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return M(r.blocks,function(a){var i=DP(a);i>=e&&(e=i+ +(n&&(!i||f0(a)&&!a.noHeader)))}),e}return 0}function d3(r,e,t,n){var a=e.noHeader,i=g3(DP(e)),o=[],s=e.blocks||[];Yt(!s||H(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new mP(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=e.valueFormatter,m=MP(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):v0(n,o.join(""),a?t:i.html);if(a)return v;var c=i0(e.header,"ordinal",r.useUTC),h=AP(n,r.renderMode).nameStyle,d=TP(n);return r.renderMode==="richText"?IP(r,c,h)+i.richText+v:v0(n,'<div style="'+h+";"+d+';">'+Qt(c)+"</div>"+v,t)}function p3(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=H(S)?S:[S],U(S,function(x,w){return i0(x,H(h)?h[w]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||N.color.secondary,a),c=i?"":i0(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!i,g=!s&&i,y=AP(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":v)+(i?"":IP(r,c,m))+(o?"":_3(r,d,p,g,_)):v0(n,(s?"":v)+(i?"":y3(c,!s,m))+(o?"":m3(d,p,g,_)),t)}}function Ab(r,e,t,n,a,i){if(r){var o=MP(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function g3(r){return{html:c3[r],richText:h3[r]}}function v0(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=TP(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function y3(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Qt(r)+"</span>"}function m3(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=H(r)?r:[r],'<span style="'+i+";"+n+'">'+U(r,function(o){return Qt(o)}).join("&nbsp;&nbsp;")+"</span>"}function IP(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function _3(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(H(e)?e.join(" "):e,i)}function LP(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return Mo(n)}function PP(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var dg=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=X_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=oG({color:t,type:e,renderMode:n,markerId:a});return Z(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?M(t,function(i){return F(n,i)}):F(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function RP(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=H(s),u=LP(e,t),f,v,c,h;if(o>1||l&&!o){var d=S3(s,e,t,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=rl(a,t,i[0]),v=p.type}else h=f=l?s[0]:s;var g=Z_(e),y=g&&e.name||"",m=a.getName(t),_=n?y:m;return pt("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[pt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Br(_),value:f,valueType:v,rawDataIndex:a.getRawIndex(t)})].concat(c||[])})}function S3(r,e,t,n,a){var i=e.getData(),o=En(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(v){f(rl(i,t,v),v)}):M(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(pt("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Aa=me();function bv(r,e){return r.getName(e)||r.getId(e)}var Fc="__universalTransitionEnabled",qe=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Bu({count:w3,reset:b3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Aa(this).sourceManager=new CP(this);i.prepareSource();var o=this.getInitialData(t,a);Db(o,this),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,Mb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=ef(this),i=a?qo(t):{},o=this.subType;Me.hasClass(o)&&(o+="Series"),_e(t,n.getTheme().get(this.subType)),_e(t,this.getDefaultOption()),So(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&zn(t,i,a)},e.prototype.mergeOption=function(t,n){t=_e(this.option,t,!0),this.fillDataTextStyle(t.data);var a=ef(this);a&&zn(this.option,t,a);var i=Aa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);Db(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Aa(this).dataBeforeProcessed=o,Mb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!dr(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&So(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=c0(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Aa(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=c0(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Aa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return K(t)},e.prototype.getSourceManager=function(){return Aa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Aa(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],v=1/0,c=-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<v||x===v&&S>=0&&c<0)&&(v=x,c=S,h=0),S===c&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(t,n,a){return RP({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Le.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=TS.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,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<t.length;s++){var l=t[s],u=bv(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=De(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[bv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Fc])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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 v=n[f],c=bv(t,v);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var h=n[l-1],c=bv(t,h);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Me.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Me);xt(qe,Wd);xt(qe,TS);EL(qe,Me);function Mb(r){var e=r.name;Z_(r)||(r.name=x3(r)||e)}function x3(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function w3(r){return r.model.getRawData().count()}function b3(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),C3}function C3(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Db(r,e){M(Wu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,xe(T3,e))})}function T3(r,e){var t=c0(r);return t&&t.setOutputEnd((e||this).count()),e}function c0(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.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=Zo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();K_(Qe);Ad(Qe);function jo(){var r=me();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var EP=me(),A3=jo(),Ue=(function(){function r(){this.group=new oe,this.uid=Zo("viewChart"),this.renderTask=Bu({plan:M3,reset:D3}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Lb(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Lb(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){di(this.group,e)},r.markUpdateMethod=function(e,t){EP(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function Ib(r,e,t){r&&Ku(r)&&(e==="emphasis"?da:pa)(r,t)}function Lb(r,e,t){var n=xo(r,e),a=e&&e.highlightKey!=null?KF(e.highlightKey):null;n!=null?M(Ye(n),function(i){Ib(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){Ib(i,t,a)})}K_(Ue);Ad(Ue);function M3(r){return A3(r.model)}function D3(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&EP(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),I3[l]}var I3={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Sh="\0__throttleOriginMethod",Pb="\0__throttleRate",Rb="\0__throttleType";function PS(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=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||e,g=f||t;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(v,p):s>=0?v():o=setTimeout(v,-s),a=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ml(r,e,t,n){var a=r[e];if(a){var i=a[Sh]||a,o=a[Rb],s=a[Pb];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=PS(i,t,n==="debounce"),a[Sh]=i,a[Rb]=n,a[Pb]=t}return a}}function rf(r,e){var t=r[e];t&&t[Sh]&&(t.clear&&t.clear(),r[e]=t[Sh])}var Eb=me(),kb={itemStyle:bo(D2,!0),lineStyle:bo(M2,!0)},L3={lineStyle:"stroke",itemStyle:"fill"};function kP(r,e){var t=r.visualStyleMapper||kb[e];return t||(console.warn("Unknown style type '"+e+"'."),kb.itemStyle)}function OP(r,e){var t=r.visualDrawType||L3[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var P3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=kP(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=OP(r,n),u=o[l],f=ie(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=F({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},Hl=new Ie,R3={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=kP(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Hl.option=l[n];var u=a(Hl),f=o.ensureUniqueItemVisual(s,"style");F(f,u),Hl.option.decal&&(o.setItemVisual(s,"decal",Hl.option.decal),Hl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},E3={performRawSeries:!0,overallReset:function(r){var e=K();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();Eb(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),a={},i=t.getData(),o=Eb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=OP(t,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();c[l]=t.getColorFromPalette(h,o,d)}})}})}},Cv=Math.PI;function k3(r,e){e=e||{},le(e,{text:"loading",textColor:N.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:N.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new oe,n=new be({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new Re({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new be({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Od({shape:{startAngle:-Cv/2,endAngle:-Cv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Cv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Cv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.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()})},t.resize(),t}var NP=(function(){function r(e,t,n,a){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__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(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,n):PL(e,t,n);e.pipelineContext=n.context=a},r.prototype.restorePipelines=function(e,t){var n=this,a=n._pipelineMap=K();t.eachSeries(function(i){var o=e.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 e=this._stageTaskMap,t=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Yt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,a.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(i=!0)}else v&&v.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&t.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(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Bu({plan:z3,reset:F3,count:H3}));h.context={model:v,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Bu({reset:O3});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=e.seriesType,f=e.getTargetSeries,v=e.dirtyOnOverallProgress,c=!1,h="";Yt(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):M(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Bu({reset:N3,onDirty:V3})));y.context={model:p,dirtyOnOverallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return ie(e)&&(e={overallReset:e,seriesType:U3(e)}),e.uid=Zo("stageHandler"),t&&(e.visualType=t),e},r})();function O3(r){r.overallReset(r.ecModel,r.api,r.payload)}function N3(r){return r.dirtyOnOverallProgress&&B3}function B3(){this.agent.dirty(),this.getDownstream().dirty()}function V3(){this.agent&&this.agent.dirty()}function z3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function F3(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ye(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?U(e,function(t,n){return BP(n)}):G3}var G3=BP(0);function BP(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function H3(r){return r.data.count()}function U3(r){xh=null;try{r(nf,VP)}catch{}return xh}var nf={},VP={},xh;zP(nf,AS);zP(VP,YL);nf.eachSeriesByType=nf.eachRawSeriesByType=function(r){xh=r};nf.eachComponent=function(r){r.mainType==="series"&&r.subType&&(xh=r.subType)};function zP(r,e){for(var t in e.prototype)r[t]=ot}var ne=N.darkColor,Ob=ne.background,Ul=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:{}}},Nb={label:{color:ne.secondary},itemStyle:{borderColor:ne.borderTint},dividerLineStyle:{color:ne.border}},FP={darkMode:!0,color:ne.theme,backgroundColor:Ob,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:Ob,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:Nb,y:Nb,backgroundColor:{borderColor:ne.axisLine},body:{itemStyle:{borderColor:ne.borderTint}}},timeAxis:Ul(),logAxis:Ul(),valueAxis:Ul(),categoryAxis:Ul(),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=Ul();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}}}};FP.categoryAxis.splitLine.show=!1;var W3=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(Z(e)){var i=xn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var c=o[v],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var d=u.slice(0,h);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.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(e,t.otherQuery,a,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),h0=["symbol","symbolSize","symbolRotate","symbolOffset"],Bb=h0.concat(["symbolKeepAspect"]),$3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<h0.length;o++){var s=h0[o],l=r.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(F({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=De(a);function f(v,c){for(var h=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];v.setItemVisual(c,g,a[g](h,d))}}return{dataEach:i?f:null}}},Y3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Bb.length;s++){var l=Bb[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function RS(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Ff(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function GP(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function HP(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=F({},a),o.dispatchAction(F(a,{type:n[1],seriesIndex:t(i,a)}))})})}function cs(r,e,t,n,a){var i=r+e;t.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 v=o.getData(),c=xo(v,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:H(c)?v.getName(c[0]):v.getName(c),selected:Z(l)?l:F({},l)})}})}function X3(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(cs("map","selectchanged",e,a,n),cs("pie","selectchanged",e,a,n)):n.fromAction==="select"?(cs("map","selected",e,a,n),cs("pie","selected",e,a,n)):n.fromAction==="unselect"&&(cs("map","unselected",e,a,n),cs("pie","unselected",e,a,n))})}function so(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Ir=new $r,UP={};function Z3(r,e){UP[r]=e}function q3(r){return UP[r]}var WP={};function j3(r,e){WP[r]=e}function K3(r){return WP[r]}var $d=me();function J3(r){$d(r).prepare={}}function Q3(r){$d(r).fullUpdate={}}function $P(r){return $d(r).prepare}function Dl(r){return $d(r).fullUpdate}var eH=Math.round(Math.random()*9),tH=typeof Object.defineProperty=="function",rH=(function(){function r(){this._id="__ec_inner_"+eH++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return tH?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),nH=Ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),aH=Ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),iH=Ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),c=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-v*h,l+s+c*h,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+v*h,l+s+c*h,t-f,l+s),r.closePath()}}),oH=Ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),sH={line:dt,rect:be,roundRect:be,square:be,circle:Sa,diamond:aH,pin:iH,arrow:oH,triangle:nH},lH={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},wh={};M(sH,function(r,e){wh[e]=new r});var uH=Ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=oh(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=wh[n];a||(n="rect",a=wh[n]),lH[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function fH(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||N.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function gt(r,e,t,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=y2(r.slice(8),new se(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Ju(r.slice(7),{},new se(e,t,n,a),o?"center":"cover"):l=new uH({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=fH,i&&l.setColor(i),l}function Il(r){return H(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ko(r,e){if(r!=null)return H(r)||(r=[r,r]),[q(r[0],e[0])||0,q(Q(r[1],r[0]),e[1])||0]}function lo(r){return isFinite(r)}function vH(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=lo(n)?n:0,a=lo(a)?a:1,i=lo(i)?i:0,o=lo(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function cH(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,l=l*i),o=lo(o)?o:.5,s=lo(s)?s:.5,l=l>=0&&lo(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function d0(r,e,t){for(var n=e.type==="radial"?cH(r,e,t):vH(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function hH(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Tv(r){return parseInt(r,10)}function Os(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Tv(s[n])||Tv(r.style[n]))-(Tv(s[i])||0)-(Tv(s[o])||0)||0}function dH(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ee(r)?[r]:H(r)?r:null}function ES(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&dH(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=U(t,function(i){return i/a}),n/=a)}return[t,n]}var pH=new Bn(!0);function bh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Vb(r){return typeof r=="string"&&r!=="none"}function Ch(r){var e=r.fill;return e!=null&&e!=="none"}function zb(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function Fb(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function p0(r,e,t){var n=J_(e.image,e.__image,t);if(Md(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*wc),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function gH(r,e,t,n,a){var i,o=bh(t),s=Ch(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var v=e.path||pH,c=e.__dirty;if(!n){var h=t.fill,d=t.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=e.getBoundingRect()),p&&(_=c?d0(r,h,b):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=c?d0(r,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),y&&(x=c||!e.__canvasFillPattern?p0(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(w=c||!e.__canvasStrokePattern?p0(r,d,e):e.__canvasStrokePattern,e.__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=e.getGlobalScale();v.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(i=ES(e),C=i[0],A=i[1]);var D=!0;(f||c&Ms)&&(v.setDPR(r.dpr),u?v.setContext(null):(v.setContext(r),D=!1),v.reset(),e.buildPath(v,e.shape,n),v.toStatic(),e.pathUpdated()),D&&v.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=A),n?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&Fb(r,t),s&&zb(r,t)):(s&&zb(r,t),o&&Fb(r,t)),C&&r.setLineDash([])}function yH(r,e,t){var n=e.__image=J_(t.image,e.__image,e,e.onload);if(!(!n||!Md(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.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),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,v=o-u,c=s-f;r.drawImage(n,u,f,v,c,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function mH(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||la,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=ES(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(bh(t)&&r.strokeText(a,t.x,t.y),Ch(t)&&r.fillText(a,t.x,t.y)):(Ch(t)&&r.fillText(a,t.x,t.y),bh(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var Gb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Hb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YP(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){er(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?co.opacity:o}(n||e.blend!==t.blend)&&(i||(er(r,a),i=!0),r.globalCompositeOperation=e.blend||co.blend);for(var s=0;s<Gb.length;s++){var l=Gb[s];(n||e[l]!==t[l])&&(i||(er(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(er(r,a),i=!0),r.shadowColor=e.shadowColor||co.shadowColor),i}function Ub(r,e,t,n,a){var i=e.style,o=n?null:t&&t.style||{};if(i===o)return!1;var s=YP(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(er(r,a),s=!0),Vb(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(er(r,a),s=!0),Vb(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),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(er(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<Hb.length;f++){var v=Hb[f],c=v[0];(n||i[c]!==o[c])&&(s||(er(r,a),s=!0),r[c]=i[c]||v[1])}return s}function _H(r,e,t,n,a){return YP(r,e.style,t&&t.style,n,a)}function XP(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function SH(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),XP(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function xH(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var Wb=1,$b=2,Yb=3,Xb=4;function wH(r){var e=Ch(r),t=bh(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function er(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function ZP(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};uo(r,e,t),Ys(r,t)}function uo(r,e,t){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~vr,e.__isRendered=!1;return}var a=e.__clipPaths,i=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||hH(a,i))&&(i&&(er(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(er(r,t),r.save(),SH(a,r,t),s=!0,t.prevElClipPaths=a)),t.allClipped){e.__dirty&=~vr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof Ae&&e.autoBatch&&wH(o);s||xH(n,u.transform)?(er(r,t),XP(r,e)):f||er(r,t),e instanceof Ae?(t.lastDrawType!==Wb&&(l=!0,t.lastDrawType=Wb),Ub(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),gH(r,e,o,f,t)):e instanceof el?(t.lastDrawType!==Yb&&(l=!0,t.lastDrawType=Yb),Ub(r,e,u,l,t),mH(r,e,o)):e instanceof Rt?(t.lastDrawType!==$b&&(l=!0,t.lastDrawType=$b),_H(r,e,u,l,t),yH(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==Xb&&(l=!0,t.lastDrawType=Xb),bH(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&er(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ys(r,e){er(r,e),e.prevElClipPaths&&r.restore()}function bH(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),uo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ys(r,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),uo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Ys(r,i),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var pg=new rH,Zb=new Ks(100),qb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&pg.delete(r);var i=pg.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/t,pg.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],v=!0,c=0;c<qb.length;++c){var h=o[qb[c]];if(h!=null&&!H(h)&&!Z(h)&&!Ee(h)&&typeof h!="boolean"){v=!1;break}f.push(h)}var d;if(v){d=f.join(",")+(a?"-svg":"");var p=Zb.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=jP(o.dashArrayX),y=CH(o.dashArrayY),m=qP(o.symbol),_=TH(g),S=KP(y),x=!a&&rr.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;x&&(x.width=b.width*t,x.height=b.height*t,T=x.getContext("2d")),A(),v&&Zb.put(d,x||w),u.image=x,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=fw(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=fw(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,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 D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var O=R/2%m.length,k=0,V=0,z=0;k<b.width*2;){for(var G=0,L=0;L<g[E].length;++L)G+=g[E][L];if(G<=0)break;if(V%2===0){var W=(1-o.symbolSize)*.5,X=k+g[E][V]*W,Y=I+y[P]*W,ee=g[E][V]*o.symbolSize,ye=y[P]*o.symbolSize,Ne=z/2%m[O].length;ce(X,Y,ee,ye,m[O][Ne])}k+=g[E][V],++z,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function ce(te,ge,re,he,We){var Pe=a?1:t,Fe=gt(We,te*Pe,ge*Pe,re*Pe,he*Pe,o.color,o.symbolKeepAspect);if(a){var $e=n.painter.renderOneToVNode(Fe);$e&&w.children.push($e)}else ZP(T,Fe)}}}}function qP(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Z(r[t])){e=!1;break}if(e)return qP([r]);for(var n=[],t=0;t<r.length;++t)Z(r[t])?n.push([r[t]]):n.push(r[t]);return n}function jP(r){if(!r||r.length===0)return[[0,0]];if(Ee(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!Ee(r[n])){t=!1;break}if(t)return jP([r]);for(var a=[],n=0;n<r.length;++n)if(Ee(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=U(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function CH(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ee(r)){var e=Math.ceil(r);return[e,e]}var t=U(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function TH(r){return U(r,function(e){return KP(e)})}function KP(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var AH=Pf(MH);function MH(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=nl(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=nl(a,e)}}})}var DH=1,IH=800,LH=900,PH=920,RH=1e3,EH=2e3,jb=5e3,JP=1e3,kH=1100,kS=2e3,QP=3e3,OH=4e3,Yd=4500,NH=4600,BH=5e3,VH=6e3,eR=7e3,zH={PROCESSOR:{SERIES_FILTER:IH,AXIS_STATISTICS:PH,FILTER:RH,STATISTIC:jb,STATISTICS:jb},VISUAL:{LAYOUT:JP,PROGRESSIVE_LAYOUT:kH,GLOBAL:kS,CHART:QP,POST_CHART_LAYOUT:NH,COMPONENT:OH,BRUSH:BH,CHART_ITEM:Yd,ARIA:VH,DECAL:eR}},yt="__flagInMainProcess",Av="__mainProcessVersion",Dt="__pendingUpdate",gg="__needsUpdateStatus",Kb=/^[a-zA-Z0-9_]+$/,yg="__connectUpdateStatus",Jb=0,FH=1,GH=2;function tR(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return nR(this,r,e)}}function rR(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nR(this,r,e)}}function nR(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),$r.prototype[e].apply(r,t)}var aR=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})($r),iR=aR.prototype;iR.on=rR("on");iR.off=rR("off");var Vi,mg,Mv,Xn,Dv,_g,Sg,hs,ds,Qb,eC,xg,tC,Iv,rC,oR,Tr,nC,ps,sR=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,new W3)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=t;var o="canvas",s="auto",l=!1;i[Av]=1,a.ssr&&lz(function(c){var h=ve(c),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=sw(t,{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=PS(j(u.flush,u),17),i._updateTheme(n),i._locale=Z5(a.locale||I2),i._coordSysMgr=new Vf;var f=i._api=rC(i);function v(c,h){return c.__prio-h.__prio}return Tc(Ah,v),Tc(m0,v),i._scheduler=new NP(i,f,m0,Ah),i._messageCenter=new aR,i._initEvents(),i.resize=j(i.resize,i),u.animation.on("frame",i._onframe,i),Qb(u,i),eC(u,i),Kc(i),i}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,a=this._api;if(nC(this),this[Dt]){var i=this[Dt].silent;this[yt]=!0,ps(this);try{Vi(this),Xn.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,hs.call(this,i),ds.call(this,i)}else if(t.unfinished){var o=DH;do{t.unfinished=!1;var s=rr.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),_g(this,n),t.performVisualTasks(n),Iv(this,this._model,a,"remain",{}),o-=rr.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,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,ps(this),!this._model||n){var l=new AG(this._api),u=this._theme,f=this._model=new AS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},_0);var v={seriesTransition:s,optionChanged:!0};if(a)this[Dt]={silent:i,updateParams:v},this[yt]=!1,this.getZr().wakeUp();else{try{Vi(this),Xn.update.call(this,null,v)}catch(c){throw this[Dt]=null,this[yt]=!1,c}this._ssr||this._zr.flush(),this[Dt]=null,this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype.setTheme=function(t,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,ps(this);try{this._updateTheme(t),a.setTheme(this._theme),Vi(this),Xn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[yt]=!1,s}this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype._updateTheme=function(t){Z(t)&&(t=lR[t]),t&&(t=ae(t),t&&uP(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Le.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;M(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(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(aC[a]){var l=s,u=s,f=-s,v=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(Vu,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),f=o(w.right,f),v=o(w.bottom,v),c.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=rr.createCanvas(),y=sw(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(c,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new be({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),M(c,function(_){var S=new Rt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Dv(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Dv(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Dv(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Fs(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Fs(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?RS(s,l,n):Ff(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(HH,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&so(l,function(p){var g=ve(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=F({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;M(y0,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),X3(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ML(this.getDom(),NS,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(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 Vu[n.id]},e.prototype.resize=function(t){if(!this[yt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Dt]&&(i==null&&(i=this[Dt].silent),a=!0,this[Dt]=null),this[yt]=!0,ps(this);try{a&&Vi(this),Xn.update.call(this,{type:"resize",animation:F({duration:0},t&&t.animation)})}catch(o){throw this[yt]=!1,o}this[yt]=!1,hs.call(this,i),ds.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(fe(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!S0[t]){var a=S0[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=F({},t);return n.type=g0[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(fe(n)||(n={silent:!!n}),!!Th[t.type]&&this._model){if(this[yt]){this._pendingActions.push(t);return}var a=n.silent;Sg.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&Le.browser.weChat&&this._throttledZrFlush(),hs.call(this,a),ds.call(this,a)}},e.prototype.updateLabelLayout=function(){Ir.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Vi=function(v){J3(v._model);var c=v._scheduler;c.restorePipelines(v._zr,v._model),c.prepareStageTasks(),mg(v,!0),mg(v,!1),c.plan()},mg=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<p.length;_++)p[_].__alive=!1;c?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=xn(w.type),D=c?Qe.getClass(A.main,A.sub):Ue.getClass(A.sub);C=new D,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},!c&&d.prepareView(C,w,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!c&&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)}},Mv=function(v,c,h,d,p){var g=v._model;if(g.setUpdatePayload(h),!d){M([].concat(v._componentsViews).concat(v._chartsViews),S);return}var y=j_(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=K(),M(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(zw(h))if(x instanceof qe)h.type===ho&&!h.notBlur&&!x.get(["emphasis","disabled"])&&UF(x,h,v._api);else{var b=iS(x.mainType,x.componentIndex,h.name,v._api),T=b.focusSelf,C=b.dispatchers;h.type===ho&&T&&!h.notBlur&&Zm(x.mainType,x.componentIndex,v._api),C&&M(C,function(A){h.type===ho?da(A):pa(A)})}else jm(h)&&x instanceof qe&&(YF(x,h,v._api),Bw(x),Tr(v))},v),g&&g.eachComponent(y,function(x){var w=_&&_.get(x.id)!=null;w||S(v[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},v);function S(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,v._api,h)}},Xn={prepareAndUpdate:function(v){Vi(this),Xn.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,c){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){Q3(h),h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,d),Ir.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,v),_g(this,h),g.update(h,d),n(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),xg(this,h,d,v,c),Ir.trigger("afterupdate",h,d)}},updateTransform:function(v){var c=this,h=c._model,d=c._api;if(h){h.setUpdatePayload(v);var p=[];h.eachComponent(function(y,m){if(y!==Vn){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,v);S&&S.update&&p.push(_)}else p.push(_)}});var g=K();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),c._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),Iv(c,h,d,v,{},g),Ir.trigger("afterupdate",h,d)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),Ue.markUpdateMethod(v,"updateView"),n(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),xg(this,c,this._api,v,{}),Ir.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(d){d.getData().clearAllVisual()}),Ue.markUpdateMethod(v,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,c._api,v)}}),h.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,h,c._api,v)}),Ir.trigger("afterupdate",h,this._api))},updateLayout:function(v){Xn.update.call(this,v)}};function t(v,c,h,d,p){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=Fs(g,h),S=0;S<y.length;S++){var x=y[S];if(x[c]&&(m=x[c](g,_,d,p))!=null)return m}}Dv=t,_g=function(v,c){var h=v._chartsMap,d=v._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Sg=function(v,c){var h=this,d=this.getModel(),p=v.type,g=v.escapeConnect,y=Th[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&xn(m[0]);this[yt]=!0,ps(this);var x=[v],w=!1;v.batch&&(w=!0,x=U(v.batch,function(E){return E=le(F({},E),v),E.batch=null,E}));var b=[],T,C=[],A=y.nonRefinedEventType,D=jm(v),L=zw(v);if(L&&r2(this._api),M(x,function(E){var O=y.action(E,d,h._api);if(y.refineEvent?C.push(O):T=O,T=T||F({},E),T.type=A,b.push(T),L){var k=q_(v),V=k.queryOptionMap,z=k.mainTypeSpecified,G=z?V.keys()[0]:"series";Mv(h,_,E,G),Tr(h)}else D?(Mv(h,_,E,"series"),Tr(h)):S&&Mv(h,_,E,S.main,S.sub)}),_!=="none"&&!L&&!D&&!S)try{this[Dt]?(Vi(this),Xn.update.call(this,v),this[Dt]=null):Xn[_].call(this,v)}catch(E){throw this[yt]=!1,E}if(w?T={type:A,escapeConnect:g,batch:b}:T=b[0],this[yt]=!1,!c){var I=void 0;if(y.refineEvent){var P=y.refineEvent(C,v,d,this._api).eventContent;Yt(fe(P)),I=le({type:y.refinedEventType},P),I.fromAction=v.type,I.fromActionPayload=v,I.escapeConnect=!0}var R=this._messageCenter;R.trigger(T.type,T),I&&R.trigger(I.type,I)}},hs=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();Sg.call(this,h,v)}},ds=function(v){!v&&this.trigger("updated")},Qb=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),v.animation.isFinished()&&!c[Dt]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):v.refresh()})},eC=function(v,c){v.on("mouseover",function(h){var d=h.target,p=so(d,Ku);p&&(WF(p,h,c._api),Tr(c))}).on("mouseout",function(h){var d=h.target,p=so(d,Ku);p&&($F(p,h,c._api),Tr(c))}).on("click",function(h){var d=h.target,p=so(d,function(m){return ve(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ve(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function a(v){var c=[],h=[],d=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?h:c).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:w})}),d){var p=c.concat(h),g,y;Tc(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=v.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)})}}xg=function(v,c,h,d,p){a(c),tC(v,c,h,d,p),M(v._chartsViews,function(g){g.__alive=!1}),Iv(v,c,h,d,p),M(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},tC=function(v,c,h,d,p,g){M(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,h,d),l(m,y),f(m,y)})},Iv=function(v,c,h,d,p,g){var y=v._scheduler;p=F(p||{},{updatedSeries:c.getSeries()}),Ir.trigger("series:beforeupdate",c,h,p);var m=!1;c.eachSeries(function(_){var S=v._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),Bw(_)}),y.unfinished=m||y.unfinished,Ir.trigger("series:layoutlabels",c,h,p),Ir.trigger("series:transition",c,h,p),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,c),Ir.trigger("series:afterupdate",c,h,p)},Tr=function(v){v[gg]=!0,v.getZr().wakeUp()},ps=function(v){v[Av]=(v[Av]+1)%1e6},nC=function(v){v[gg]&&(v.getZr().storage.traverse(function(c){Gs(c)||i(c)}),v[gg]=!1)};function i(v){for(var c=[],h=v.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}v.selected&&v.states.select&&c.push("select"),v.hoverState===Rd&&v.states.emphasis?c.push("emphasis"):v.hoverState===Rf&&v.states.blur&&c.push("blur"),v.useStates(c)}function o(v,c){var h=v._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>Q(c.get("hoverLayerThreshold"),rP.hoverLayerThreshold)&&!Le.node&&!Le.worker;(v._usingTHL||g)&&(c.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=v._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Tl&&(S.hoverLayer=g?g2:p2)})}}),v._usingTHL=g)}}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=Ao(v);c.eachRendered(function(d){return Vd(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!Gs(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(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Gs(y))return;if(y instanceof Ae&&JF(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)}})}rC=function(v){return new((function(c){B(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){da(d,p),Tr(v)},h.prototype.leaveEmphasis=function(d,p){pa(d,p),Tr(v)},h.prototype.enterBlur=function(d){JL(d),Tr(v)},h.prototype.leaveBlur=function(d){aS(d),Tr(v)},h.prototype.enterSelect=function(d){QL(d),Tr(v)},h.prototype.leaveSelect=function(d){e2(d),Tr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return v[Av]},h.prototype.usingTHL=function(){return v._usingTHL},h})(YL))(v)},oR=function(v){function c(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[yg]=d}}M(g0,function(h,d){v._messageCenter.on(d,function(p){if(aC[v.group]&&v[yg]!==Jb){if(p&&p.escapeConnect)return;var g=v.makeActionFromEvent(p),y=[];M(Vu,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,Jb),M(y,function(m){m[yg]!==FH&&m.dispatchAction(g)}),c(y,GH)}})})}})(),e})($r),OS=sR.prototype;OS.on=tR("on");OS.off=tR("off");OS.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var HH=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Th={},g0={},y0={},m0=[],_0=[],Ah=[],lR={},S0={},Vu={},aC={},UH=+new Date-0,NS="_echarts_instance_";function WH(r,e,t){{var n=$H(r);if(n)return n}var a=new sR(r,e,t);return a.id="ec_"+UH++,Vu[a.id]=a,ML(r,NS,a.id),oR(a),Ir.trigger("afterinit",a),a}function $H(r){return Vu[Ez(r,NS)]}function uR(r,e){lR[r]=e}function fR(r){pe(_0,r)<0&&_0.push(r)}function vR(r,e){VS(m0,r,e,EH)}function YH(r){BS("afterinit",r)}function XH(r){BS("afterupdate",r)}function BS(r,e){Ir.on(r,e)}function Wn(r,e,t){var n,a,i,o,s;ie(e)&&(t=e,e=""),fe(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Th[n]||(Yt(Kb.test(n)&&Kb.test(a)),i&&Yt(a!==n),Th[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},y0[a]=1,i&&s&&(y0[u]=1),g0[u]=n)}function ZH(r,e){Vf.register(r,e)}function qH(r,e){VS(Ah,r,e,JP,"layout")}function Jo(r,e){VS(Ah,r,e,QP,"visual")}var iC=[];function VS(r,e,t,n,a,i){if((ie(e)||fe(e))&&(t=e,e=n),!(pe(iC,t)>=0)){iC.push(t);var o=NP.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o)}}function cR(r,e){S0[r]=e}function jH(r,e,t){var n=q3("registerMap");n&&n(r,e,t)}var KH=i3;Jo(kS,P3);Jo(Yd,R3);Jo(Yd,E3);Jo(kS,$3);Jo(Yd,Y3);Jo(eR,AH);fR(uP);vR(LH,VG);cR("default",k3);Wn({type:ho,event:ho,update:ho},ot);Wn({type:Rc,event:Rc,update:Rc},ot);Wn({type:vh,event:rS,update:vh,action:ot,refineEvent:zS,publishNonRefinedEvent:!0});Wn({type:Ym,event:rS,update:Ym,action:ot,refineEvent:zS,publishNonRefinedEvent:!0});Wn({type:ch,event:rS,update:ch,action:ot,refineEvent:zS,publishNonRefinedEvent:!0});function zS(r,e,t,n){return{eventContent:{selected:XF(t),isFromClick:e.isFromClick||!1}}}uR("default",{});uR("dark",FP);var oC=[],JH={registerPreprocessor:fR,registerProcessor:vR,registerPostInit:YH,registerPostUpdate:XH,registerUpdateLifecycle:BS,registerAction:Wn,registerCoordinateSystem:ZH,registerLayout:qH,registerVisual:Jo,registerTransform:KH,registerLoading:cR,registerMap:jH,registerImpl:Z3,PRIORITY:zH,ComponentModel:Me,ComponentView:Qe,SeriesModel:qe,ChartView:Ue,registerComponentModel:function(r){Me.registerClass(r)},registerComponentView:function(r){Qe.registerClass(r)},registerSeriesModel:function(r){qe.registerClass(r)},registerChartView:function(r){Ue.registerClass(r)},registerCustomSeries:function(r,e){j3(r,e)},registerSubTypeDefaulter:function(r,e){Me.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){oz(r,e)}};function Se(r){if(H(r)){M(r,function(e){Se(e)});return}pe(oC,r)>=0||(oC.push(r),ie(r)&&(r={install:r}),r.install(JH))}function Wl(r){return r==null?0:r.length||1}function sC(r){return r}var ga=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||sC,this._newKeyGetter=a||sC,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Wl(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 e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],v=Wl(u),c=Wl(f);if(v>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(v===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Wl(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Wl(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),QH=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function e4(r,e){var t={},n=t.encode={},a=K(),i=[],o=[],s={};M(r.dimensions,function(c){var h=r.getDimensionInfo(c),d=h.coordDim;if(d){var p=h.coordDimIndex;wg(n,d)[p]=c,h.isExtraCoord||(a.set(d,1),t4(h.type)&&(i[0]=c),wg(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}UL.each(function(g,y){var m=wg(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(c,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=U(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var v=n.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new QH(s,e),t}function wg(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Mh(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function t4(r){return!(r==="ordinal"||r==="time")}var Gc=(function(){function r(e){this.otherDims={},e!=null&&F(this,e)}return r})(),r4=me(),n4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},hR=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=pR(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=vP(this.source),n=!gR(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=n4[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 e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function dR(r){return r instanceof hR}function FS(r){for(var e=K(),t=0;t<(r||[]).length;t++){var n=r[t],a=fe(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function pR(r){var e=r4(r);return e.dimNameMap||(e.dimNameMap=FS(r.dimensionsDefine))}function gR(r){return r>30}var $l=fe,Ma=U,a4=typeof Int32Array>"u"?Array:Int32Array,i4="e\0\0",lC=-1,o4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],s4=["_approximateExtent"],uC,Lv,Yl,Xl,bg,Zl,Cg,nr=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;dR(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var v=n[f],c=Z(v)?new Gc({name:v}):v instanceof Gc?v:new Gc(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]),a&&(c.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=c.storeDimIndex),d.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();M(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ee(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof u0&&(i=e),!i){var o=this.dimensions,s=MS(e)||$t(e)?new cP(e,o.length):e;i=new u0;var l=Ma(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=e4(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&Cg(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ka&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){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=e;f<t;f++){var v=a.getItem(f,u);if(!this.hasItemOption&&Sz(v)&&(this.hasItemOption=!0),v){var c=v.name;i[f]==null&&c!=null&&(i[f]=mt(c,null));var h=v.id;o[f]==null&&h!=null&&(o[f]=mt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Cg(this,f);uC(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){$l(e)?F(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Yl(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Lv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return H(e)?a.getValues(Ma(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?lC:a},r.prototype.each=function(e,t,n){ie(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ma(Xl(e),this._getStoreDimIndex,this);this._store.each(i,a?j(t,a):t)},r.prototype.filterSelf=function(e,t,n){ie(e)&&(n=t,t=e,e=[]);var a=n||this,i=Ma(Xl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?j(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=De(e);return M(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){ie(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Ma(Xl(e),this._getStoreDimIndex,this),s=Zl(this);return s._store=this._store.map(o,i?j(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=Ma(Xl(e),this._getStoreDimIndex,this);this._store.modify(o,i?j(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=Zl(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Zl(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Zl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ie(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new ga(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Lv(e,n)},function(n){return Lv(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},$l(e)?F(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),H(i)?i=i.slice():$l(i)&&(i=F({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,$l(t)?F(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){$l(e)?F(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;$m(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Ma(this.dimensions,this._getDimInfo,this),this.hostModel)),bg(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(V_(arguments)))})},r.internalField=(function(){uC=function(e){var t=e._invertedIndicesMap;M(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new a4(o.categories.length);for(var l=0;l<n.length;l++)n[l]=lC;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Yl=function(e,t,n){return mt(e._getCategory(t,n),null)},Lv=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Yl(e,e._idDimIdx,t)),n==null&&(n=i4+t),n},Xl=function(e){return H(e)||(e=e!=null?[e]:[]),e},Zl=function(e){var t=new r(e._schema?e._schema:Ma(e.dimensions,e._getDimInfo,e),e.hostModel);return bg(t,e),t},bg=function(e,t){M(o4.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,M(s4,function(n){e[n]=ae(t[n])}),e._calculationInfo=F({},t._calculationInfo)},Cg=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Yl(e,i,t)),l==null&&o!=null&&(a[t]=l=Yl(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}})(),r})();function Gf(r,e){MS(r)||(r=DS(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=K(),i=[],o=l4(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gR(o),l=n===r.dimensionsDefine,u=l?pR(r):FS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=K(f),c=new wP(o),h=0;h<c.length;h++)c[h]=-1;function d(C){var A=c[C];if(A<0){var D=n[C],L=fe(D)?D:{name:D},I=new Gc,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 c[C]=R,I.storeDimIndex=C,i.push(I),I}return i[A]}if(!s)for(var h=0;h<o;h++)d(h);v.each(function(C,A){var D=Ye(C).slice();if(D.length===1&&!Z(D[0])&&D[0]<0){v.set(A,!1);return}var L=v.set(A,[]);M(D,function(I,P){var R=Z(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),A,P))})});var p=0;M(t,function(C){var A,D,L,I;if(Z(C))A=C,I={};else{I=C,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=F({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=v.get(A);if(R!==!1){if(R=Ye(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(O,k){var V=d(O);if(l&&I.type!=null&&(V.type=I.type),g(le(V,I),A,k),V.name==null&&D){var z=D[k];!fe(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}L&&le(V.otherDims,L)})}});function g(C,A,D){UL.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,a.set(A,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)M(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=u4(S,a,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),x(b),b.type==null&&(iP(r,w)===Et.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Td(i,function(C){return C.name},function(C,A){A>0&&(C.name=C.name+(A-1))}),new hR({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function l4(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return M(e,function(i){var o;fe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function u4(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var f4=(function(){function r(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return r})();function v4(r){var e=r.get("coordinateSystem"),t=new f4(e),n=c4[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var c4={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",at).models[0],i=r.getReferringComponents("yAxis",at).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),gs(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),gs(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",at).models[0];e.coordSysDims=["single"],t.set("single",a),gs(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",at).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),gs(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),gs(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),gs(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",at).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function gs(r){return r.get("type")==="category"}function h4(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;d4(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,v,c,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(M(i,function(S,x){Z(S)&&(i[x]=S={name:S}),d(S)||(h=!1)}),M(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){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;M(i,function(S){S.coordDim===p&&y++});var m={name:v,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,g),_.storeDimIndex=s.ensureCalculationDimension(v,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:v}}function d4(r){return!dR(r.schema)}function ii(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function yR(r,e){return ii(r,e)?r.getCalculationInfo("stackResultDimension"):e}function p4(r,e){var t=r.get("coordinateSystem"),n=Vf.get(t),a;return e&&e.coordSysDims&&(a=U(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Mh(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function g4(r,e,t){var n,a;return t&&M(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function wa(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=DS(r)):(a=n.getSource(),i=a.sourceFormat===br);var o=v4(e),s=p4(e,o),l=t.useEncodeDefaulter,u=ie(l)?l:l?xe(aP,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Gf(a,f),c=g4(v.dimensions,t.createInvertedIndices,o),h=i?null:n.getSharedDataStore(v),d=h4(e,{schema:v,store:h}),p=new nr(v,e);p.setCalculationInfo(d);var g=c!=null&&y4(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function y4(r){if(r.sourceFormat===br){var e=m4(r.data||[]);return!H(ml(e))}}function m4(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var sn=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Ad(sn);var _4=0,af=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++_4,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&U(n,S4);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r})();function S4(r){return fe(r)&&r.value!=null?r.value:r+""}var cr=0,of=1,x4={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},mR=De(x4),aa=2,_R=3;function GS(r,e,t){var n;r=r||{};var a=vt();if(a){var i=a.createBreakScaleMapper(e,t);i.hasBreaks()&&(M(mR,function(o){i[o]&&(r[o]=j(i[o],i))}),n=i)}return n==null&&x0(r,t),{brk:n,mapper:r}}function HS(r,e){M(mR,function(t){r[t]=e[t]})}function US(r,e){r.freeze=ot}function sf(r){return r.getExtentUnsafe(cr,aa)}function Dh(r,e){return r.getExtentUnsafe(of,e)||r.getExtentUnsafe(cr,e)}function w4(r){var e=Dh(r,_R);return e[1]-e[0]}function Xd(r){var e=r.getExtentUnsafe(cr,_R);return e[1]-e[0]}function x0(r,e){var t=r||{},n=[];return t._extents=n,n[cr]=e?e.slice():Ot(),F(t,b4),t}var b4={needTransform:function(){return!1},normalize:function(r){var e=this._extents[of]||this._extents[cr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[of]||this._extents[cr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Dh(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[cr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){fC(this._extents,cr,r,e)},setExtent2:function(r,e,t){var n=this._extents;n[r]||(n[r]=n[cr].slice()),fC(n,r,e,t)},freeze:function(){}};function fC(r,e,t,n){wo(t,n)&&(r[e][0]=t,r[e][1]=n)}function SR(r){return Ih(r)||al(r)}function Ih(r){return r.type==="interval"}function Hf(r){return r.type==="time"}function al(r){return r.type==="log"}function qt(r){return r.type==="ordinal"}function C4(r){var e=$_(r),t=Wo(10,e),n=va(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ke(n*t,-e)}function Do(r){return ea(r)+2}function Pv(r,e){return Zu(r)/Zu(e)}function Tg(r,e,t){var n=t&&t.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return Wo(e,r)}function xR(r,e,t){var n=r.slice();if(n[0]===n[1]){var a=t&&t.ctnShp;if(n[0]!==0){var i=it(n[0]);e[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!ha(n[0])||!ha(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function T4(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Zd(r,e){return r=r||e,va(we(r,1))}function wR(r,e,t){var n=sf(r),a=n[0],i=r.count(),o=Math.max((e||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,v){t({value:u,offInterval:f},v)}}var lf=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,HS(n,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new af({})),H(a)&&(a=new af({categories:U(a,function(o){return fe(o)?o.value:o})})),n._ordinalMeta=a;var i=GS(null,null,t.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,US(n),n}return e.parse=function(t){return t==null?t=NaN:Z(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=va(t),t},e.prototype.getTicks=function(){var t=[];return wR(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.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}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){var t=sf(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(va(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,a){return this._mapper.setExtent2(t,n,a)}},e})(sn);sn.registerClass(lf);function WS(r,e,t,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,v=[],c=l.value-u.value,h=c/e,d=Do(h);f<e-1;){var p=ke(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&v.push(p),f++}var g=vt();g&&g.pruneTicksByBreak("auto",v,t,function(y){return y},n,o),i.push(v)}}return i}var Qa=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var a=P2(n,t),i=GS(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ae(this._cfg)},e.prototype.setConfig=function(t){var n=sf(this);this._cfg=t=ae(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Do(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,a=n.interval,i=sf(this),o=n.niceExtent,s=n.intervalPrecision,l=vt(),u=this.brk,f=l&&u,v=[];if(!a)return v;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(v,u.breaks,i),v;var c=3e3;i[0]<o[0]&&v.push({value:t.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(v.push({value:p}),p=ke(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=ke(p+y*a,s))}if(v.length>0&&p===v[v.length-1].value)break;if(v.length>c)return[]}var m=v.length?v[v.length-1].value:o[1];return i[1]>m&&v.push({value:t.expandToNicedExtent?ke(m+a,s):i[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,v,u.breaks,function(_){return _.value},n.interval,i),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(v,u.breaks,i),v},e.prototype.getMinorTicks=function(t){return WS(this,t,yh(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=ea(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=ke(t.value,a,!0);return z2(i)},e.type="interval",e})(sn);sn.registerClass(Qa);var A4=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},bR=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var a=P2(n,t),i=GS(n,a,null);return n.brk=i.brk,n}return e.prototype.getLabel=function(t){return Gd(t.value,eb[nG(Nu(this._minLevelUnit))]||eb.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,a){return aG(t,n,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=sf(this),i=vt(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return vt().addBreaksToTicks(l,o.breaks,a),l;l=E4(this._minLevelUnit,this._approxInterval,u,a,Xd(this),o);var f=yr.length-1,v=0;return M(l,function(c){c.time&&(f=Math.min(f,pe(yr,c.time.upperTimeUnit)),v=Math.max(v,c.time.level))}),s&&vt().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,a),s&&t.breakTicks!=="none"&&vt().addBreaksToTicks(l,o.breaks,a,function(c){for(var h=Math.max(pe(yr,Ws(c.vmin,u)),pe(yr,Ws(c.vmax,u))),d=0,p=0;p<yr.length;p++)if(!CR(yr[p],c.vmin,c.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:v,lowerTimeUnit:yr[y],upperTimeUnit:yr[g]}}),l},e.prototype.getMinorTicks=function(t){return WS(this,t,yh(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ee(t)?Math.round(t):+$o(t)},e.type="time",e})(sn),Rv=[["second",dS],["minute",pS],["hour",Ou],["quarter-day",Ou*6],["half-day",Ou*12],["day",Nr*1.2],["half-week",Nr*3.5],["week",Nr*7],["month",Nr*31],["quarter",Nr*95],["half-year",Qw/2],["year",Qw]];function CR(r,e,t,n){return a0(new Date(e),r,n).getTime()===a0(new Date(t),r,n).getTime()}function M4(r,e){return r/=Nr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function D4(r){var e=30*Nr;return r/=e,r>6?6:r>3?3:r>2?2:1}function I4(r){return r/=Ou,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function vC(r,e){return r/=e?pS:dS,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function L4(r){return we(Y_(r,!0),1)}function P4(r,e,t){var n=Math.max(0,pe(yr,e)-1);return a0(new Date(r),yr[n],t).getTime()}function R4(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function E4(r,e,t,n,a,i){var o=3e3,s=Q5,l=0;function u(E,O,k,V,z,G,W){for(var X=R4(z,E),Y=O,ee=new Date(Y);Y<k&&Y<=n[1]&&(W.push({value:Y}),!(l++>o));)if(ee[z](ee[V]()+E),Y=ee.getTime(),i){var ye=i.calcNiceTickMultiple(Y,X);ye>0&&(ee[z](ee[V]()+ye*E),Y=ee.getTime())}W.push({value:Y,notAdd:Y>n[1]})}function f(E,O,k){var V=[],z=!O.length;if(!CR(Nu(E),n[0],n[1],t)){z&&(O=[{value:P4(n[0],E,t)},{value:n[1]}]);for(var G=0;G<O.length-1;G++){var W=O[G].value,X=O[G+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(e/Nr/365)),ee=R2(t),ye=iG(t);break;case"half-year":case"quarter":case"month":Y=D4(e),ee=gS(t),ye=E2(t);break;case"week":case"half-week":case"day":Y=M4(e),ee=yS(t),ye=k2(t),Ne=!0;break;case"half-day":case"quarter-day":case"hour":Y=I4(e),ee=mS(t),ye=O2(t);break;case"minute":Y=vC(e,!0),ee=_S(t),ye=N2(t);break;case"second":Y=vC(e,!1),ee=SS(t),ye=B2(t);break;case"millisecond":Y=L4(e),ee=xS(t),ye=V2(t);break}X>=n[0]&&W<=n[1]&&u(Y,W,X,ee,ye,Ne,V),E==="year"&&k.length>1&&G===0&&k.unshift({value:k[0].value-Y})}}for(var G=0;G<V.length;G++)k.push(V[G])}}for(var v=[],c=[],h=0,d=0,p=0;p<s.length;++p){var g=Nu(s[p]);if(rG(s[p])){f(s[p],v[v.length-1]||[],c);var y=s[p+1]?Nu(s[p+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(E,O){return E.value-O.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(m.push(c[_]),S>=n[0]&&S<=n[1]&&h++)}var x=a/e;if(h>x*1.5&&d>x/1.5||(v.push(m),h>x||r===s[p]))break}c=[]}}}for(var w=ze(U(v,function(E){return ze(E,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.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 D=Ws(C[A].value,t);T.push({value:C[A].value,time:{level:b-p,upperTimeUnit:D,lowerTimeUnit:D}})}Td(T,Vz,null),T.sort(function(E,O){return E.value-O.value});var L=T[0],I=T[T.length-1],P=Ws(n[0],t),R=Ws(n[1],t);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 k4=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Nr,t[1]+=Nr),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Nr}r.setExtent(t[0],t[1]);var a=Zd(e.splitNumber,10),i=Xd(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Rv.length,u=Math.min(A4(Rv,i,0,l),l-1),f=Rv[u][1],v=Rv[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:v})};sn.registerClass(bR);var Ev=0,kv=1,O4=2,TR=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=Qa.parse,n.base=t.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[Ev]=a[kv]=i[Ev]=i[kv]=NaN,HS(n,e.mapperMethods);var s=vt(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},O4,u),n.powStub=new Qa({breakParsed:u.original}),n.intervalStub=new Qa({breakParsed:u.transformed}),US(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,a=this.powStub,i=vt(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(t||{}),function(f){var v=f.value,c=Tg(v,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,yh(a),this._lookup);d&&(h=d.vBreak,c=d.tickVal)}return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return WS(this,t,yh(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Pv(t,this.base))},scale:function(t){return Tg(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=Pv(t,this.base),n&&n.depth===aa?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var a=n?n.depth:null;return cC.depth=a,hC.lookup=this._lookup,Tg(a===aa?t:this.intervalStub.transformOut(t,cC),this.base,hC)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(cr,t,n)},setExtent2:function(t,n,a){if(!(!wo(n,a)||n<=0||a<=0)){var i=dC,o=dC;if(t===cr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[Ev]=n,i[kv]=a);var l=this.base;this.intervalStub.setExtent2(t,o[Ev]=Pv(n,l),o[kv]=Pv(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return wo(n[0],n[1])&&Hr(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e})(sn);sn.registerClass(TR);var cC={},hC={},dC=[],AR={value:1,category:1,time:1,log:1},MR=me();function qd(r){var e=r.get("type");return(e==null||!J(AR,e)&&!sn.getClass(e))&&(e="value"),e}function Uf(r,e,t){var n=vt(),a;switch(n&&(a=DR(r,e,t)),e){case"category":return new lf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ot()});case"time":return new bR({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new TR({logBase:r.get("logBase"),breakOption:a});case"value":return new Qa({breakOption:a});default:return new(sn.getClass(e)||Qa)({})}}function N4(r,e,t){var n=r.getExtentUnsafe(cr,null),a=n[0],i=n[1];return wo(a,i)?a===e||i===e?V4:a<e&&i>e?B4:w0:w0}var B4=1,V4=2,w0=3;function z4(r){MR(r).noOnMyZero=!0}function F4(r){return MR(r).noOnMyZero}function Wf(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=eG(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(Z(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(ie(e)){if(r.type==="category")return function(a,i){return e(Lh(r,a),a.value-r.scale.getExtent()[0],null)};var n=vt();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Lh(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Lh(r,e){var t=r.scale;return qt(t)?t.getLabel(e):e.value}function $S(r){var e=r.get("interval");return e??"auto"}function G4(r){return r.type==="category"&&$S(r.getLabelModel())===0}function H4(r,e){var t={};return M(r.mapDimensionsAll(e),function(n){t[yR(r,n)]=!0}),De(t)}function il(r){return r==="middle"||r==="center"}function uf(r){return r.getShallow("show")}function DR(r,e,t){var n=r.get("breaks",!0);if(n!=null)return!vt()||!t||!U4(e)?void 0:n}function U4(r){return r!=="category"}function IR(r,e,t,n,a,i){var o=al(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:aa},f=r.transformOut(n[0],u),v=r.transformOut(n[1],u),c=T4(t,n);e[0]&&!c[0]&&(f=a[0]),e[1]&&!c[1]&&(v=a[1]),l.setExtent(f,v)}s.setConfig(i)}function Ll(r,e){return qt(r)?r.getRawOrdinalNumber(e.value):e.value}function $f(r,e){return qt(r)&&!!e.get("boundaryGap")}var Yf=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),W4=Sl(),Ph="|&",Pl=me(),LR=-2,$4=-1,Y4=me();function YS(r,e){var t=r.model,n=Pl(Dl(t.ecModel)).keyed,a=n&&n.get(e);return a&&a.get(t.uid)}function X4(r,e){return RR(YS(r,e))}function Z4(r,e){var t=[];return PR(r.model.ecModel,function(n){for(var a=0;a<e.length;a++)e[a]&&n.serByIdx[e[a].seriesIndex]&&t.push(RR(n))}),t}function PR(r,e){var t=Pl(Dl(r)).keyed;t&&t.each(function(n,a){n.each(function(i,o){e(i,a,o)})})}function RR(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function q4(r,e){var t=r.model.ecModel,n=Pl(Dl(t)).axSer;n&&jd(t,n.get(r.model.uid),e)}function Io(r,e,t){var n=YS(r,e);n&&jd(r.model.ecModel,n.sers,t)}function jd(r,e,t){if(e)for(var n=0;n<e.length;n++){var a=e[n];r.isSeriesFiltered(a)||t(a)}}function j4(r,e){var t=YS(r,e);if(!t||!t.sers.length)return 0;var n=0;return jd(r.model.ecModel,t.sers,function(){n++}),n}function XS(r,e,t){var n=Pl(Dl(r)).keyed,a=n&&n.get(e);a&&a.each(function(i){t(i.axis)})}function ER(r,e){var t=r.model,n=Pl(Dl(t.ecModel)).keys;n&&M(n.get(t.uid),function(a){e(a)})}function K4(r){var e=Y4($P(r)),t=e.keyed||(e.keyed=K());PR(r,function(n,a,i){var o=t.get(a)||t.set(a,K()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&kR.liPosMinGap(r,n,s)})}function J4(r,e){kR[r]=e}var kR={};function Lo(r,e,t){if(r){var n=e.ecModel,a=Pl(Dl(n)),i=r.model.uid,o=a.axSer||(a.axSer=K()),s=o.get(i)||o.set(i,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===r,f=C0.get(b0(l,u,t))||C0.get(b0(l,u,null));if(f){var v=a.keyed||(a.keyed=K()),c=a.keys||(a.keys=K()),h=f.key,d=v.get(h)||v.set(h,K()),p=d.get(i);p||(p=d.set(i,{axis:r,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(r),(c.get(i)||c.set(i,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function b0(r,e,t){return r+Ph+Q(e,!0)+Ph+(t||"")}function ZS(r,e){var t=b0(e.seriesType,e.baseAxis,e.coordSysType);C0.set(t,e),W4(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:K4})})}var C0=K(),Q4=me(),ol=1,eU=2,tU=3,OR=(function(){function r(e,t,n,a,i){var o=qt(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(Ih(e)||al(e)||Hf(e))&&(IL(f,ql(e,t.get("dataMin",!0))),LL(f,ql(e,t.get("dataMax",!0)))),Nz(f)||(f[0]=f[1]=NaN);var v=[],c=[!1,!1],h=t.get("min",!0);h==="dataMin"?(v[0]=f[0],c[0]=!0):(v[0]=ql(e,ie(h)?h({min:f[0],max:f[1]}):h),c[0]=v[0]!=null);var d=t.get("max",!0);d==="dataMax"?(v[1]=f[1],c[1]=!0):(v[1]=ql(e,ie(d)?d({min:f[0],max:f[1]}):d),c[1]=v[1]!=null);var p=rU(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);v[0]==null&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),v[1]==null&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!ha(v[0])&&(v[0]=NaN),!ha(v[1])&&(v[1]=NaN);var y=l||Wt(v[0])||Wt(v[1])||o&&!s,m=Ih(e),_=m&&t.needIncludeZero&&t.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!c[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!c[1]&&(v[1]=0));var S=!1;v[0]>v[1]&&(v.reverse(),S=!0);var x=ql(e,t.get("startValue",!0)),w=x!=null;!Hr(x)&&a&&(x=e.getDefaultStartValue?e.getDefaultStartValue():0),Hr(x)&&(w||!m||_)&&(x<v[0]&&!c[0]?(v[0]=x,c[0]=!0):x>v[1]&&!c[1]&&(v[1]=x,c[1]=!0));var b=this._i={scale:e,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};pC(b,v)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,a=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],i[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],i[1]=a[1]=!0),pC(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function pC(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),Pc(e))}function ql(r,e){return e==null?null:Wt(e)?NaN:r.parse(e)}function rU(r,e){var t;if(qt(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),t=H(n)?n:[n,n]}return[gC(t[0]),gC(t[1])]}function gC(r){return Nn(typeof r=="boolean"?0:r,1)||0}function NR(r){var e=Q4(r.scale);return e.extent||(e.extent=Ot()),e}function nU(r,e){NR(r).dimIdxInCoord=e.get(r.dim)}function Po(r,e){var t=r.scale,n=r.model,a=r.dim;t.rawExtentInfo||aU(t,r,a,n,e)}function aU(r,e,t,n,a){var i=NR(e),o=i.extent,s=!1;q4(e,function(f){if(f.boxCoordinateSystem){var v=$2(f).coord,c=i.dimIdxInCoord;if(c>=0){if(H(v)){var h=v[c];h!=null&&!H(h)&&Fm(o,r.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;M(H4(d,t),function(g){Oz(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=oU(r,e,n),u=new OR(r,n,o,s,l);BR(r,u,a),i.extent=null}function iU(r,e){var t=r.scale;BR(t,new OR(t,r.model,e,!1,!1),tU)}function BR(r,e,t){r.rawExtentInfo=e,e.from=t}function Kd(r,e){qS.set(r,e)}var qS=K();function VR(r,e,t,n,a){r.rawExtentInfo||iU({scale:r,model:e},Ot());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),n&&i.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function oU(r,e,t){var n=$f(r,t),a=t.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return ER(e,function(o){i=!!qS.get(o)||i}),i}function sU(r,e,t,n){if(t.ctnShp){var a;if(ER(r,function(s){var l=qS.get(s);if(l){var u=l(r,n);u&&(a=a||[0,0],IL(a,u[0]),LL(a,u[1]),z4(r))}}),!!a){var i=e.getExtent();if(qt(e))r.onBand||e.setExtent2(of,He(i[0],i[0]+a[0]),we(i[1],i[1]+a[1]));else{var o=i.slice();t.zoomFixMM[0]||(o[0]=He(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),t.zoomFixMM[1]||(o[1]=we(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(of,o[0],o[1])}}}}function yC(r,e){var t=al(r),n=t?r.intervalStub:r,a=e.fixMinMax||[],i=t?r.getExtent():null,o=n.getExtent(),s=xR(o,a,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?uU(n,e):lU(n,e),u=l.intervalPrecision,f=l.interval,v=e.userInterval;v!=null&&(l.interval=v,l.intervalPrecision=Do(v)),a[0]||(s[0]=ke(rn(s[0]/f)*f,u)),a[1]||(s[1]=ke(Uo(s[1]/f)*f,u)),v!=null&&(l.niceExtent=s.slice()),IR(r,a,o,s,i,l)}function lU(r,e){var t=Zd(e.splitNumber,5),n=Xd(r),a=e.minInterval,i=e.maxInterval,o=Y_(n/t,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Do(o),l=r.getExtent(),u=[ke(Uo(l[0]/o)*o,s),ke(rn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function uU(r,e){var t=Zd(e.splitNumber,10),n=r.getExtent(),a=Xd(r),i=we(mL(a),1),o=t/a*i;o<=.5&&(i*=10);var s=Do(i),l=[ke(Uo(n[0]/i)*i,s),ke(rn(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function sl(r){var e=r.scale,t=r.model,n=t.axis,a=t.ecModel;fU(e,t,n,a)}function fU(r,e,t,n,a){var i=VR(r,e,n,t),o=Ih(r)||Hf(r);zR(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),t&&n&&sU(t,r,i,n)}function zR(r,e){vU[r.type](r,e)}var vU={interval:yC,log:yC,time:k4,ordinal:ot},cU=1e-8;function mC(r,e){return Math.abs(r-e)<cU}function Qi(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Kn(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!mC(a[0],s[0])||!mC(a[1],s[1]))&&(n+=Kn(a[0],a[1],s[0],s[1],e,t)),n!==0}var hU=[];function Ag(r,e){for(var t=0;t<r.length;t++)st(r[t],r[t],e)}function _C(r,e,t,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])&&(Ba(e,e,i),Va(t,t,i))}}function dU(r){for(var e=0,t=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;e+=f,t+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var FR=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),SC=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),xC=(function(){function r(e){this.type="linestring",this.points=e}return r})(),GR=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return dU(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?_C(s.exterior,a,i,t):M(s.points,function(l){_C(l,a,i,t)})}),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]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[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(Qi(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Qi(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,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(t,n,a,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];c.type==="polygon"?(Ag(c.exterior,u),M(c.interiors,function(h){Ag(h,u)})):M(c.points,function(h){Ag(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(FR),pU=(function(r){B(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=yl(hU),o=t;o&&!o.isGeoSVGGraphicRoot;)Vr(i,o.getLocalTransform(),i),o=o.parent;return Gr(i,i),st(a,a,i),a},e})(FR);function gU(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=HR(s,o,t);break;case"Polygon":Mg(s,o,t);break;case"MultiLineString":Mg(s,o,t);break;case"MultiPolygon":M(s,function(l,u){return Mg(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Mg(r,e,t){for(var n=0;n<r.length;n++)r[n]=HR(r[n],e[n],t)}function HR(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function yU(r,e){return r=gU(r),U(ze(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new SC(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new SC(l[0],l.slice(1)))});break;case"LineString":i.push(new xC([a.coordinates]));break;case"MultiLineString":i.push(new xC(a.coordinates))}var s=new GR(n[e||"name"],i,n.cp);return s.properties=n,s})}var mU=me(),zu=me(),nn={estimate:1,determine:2};function Rh(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function _U(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:U(UR(t,n),function(a,i){return{formattedLabel:Wf(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?xU(r,e):bU(r)}function SU(r,e,t){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:UR(a,n)}:r.type==="category"?wU(r,e):{ticks:n.getTicks(t)}}function UR(r,e){var t=e.getExtent(),n=[];return M(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&n.push(a)}),Td(n,zz,null),Nt(n),U(n,function(a){return{value:a}})}function xU(r,e){var t=r.getLabelModel(),n=WR(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function WR(r,e,t){var n=TU(r),a=$S(e),i=t.kind===nn.estimate;if(!i){var o=YR(n,a);if(o)return o}var s,l;ie(a)?s=Eh(r,a,!1):(l=a==="auto"?AU(r,t):a,s=Eh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return T0(n,a,u),!0}):T0(n,a,u),u}function wU(r,e){var t=CU(r),n=$S(e),a=YR(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ie(n))i=Eh(r,n,!0);else if(n==="auto"){var s=WR(r,r.getLabelModel(),Rh(nn.determine));o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tick})}else o=n,i=Eh(r,o,!0);return T0(t,n,{ticks:i,tickCategoryInterval:o})}function bU(r){var e=r.scale.getTicks(),t=Wf(r);return{labels:U(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var CU=$R("axisTick"),TU=$R("axisLabel");function $R(r){return function(t){return zu(t)[r]||(zu(t)[r]={list:[]})}}function YR(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function T0(r,e,t){return r.list.push({key:e,value:t}),t}function AU(r,e){if(e.kind===nn.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return zu(r).autoInterval=t,!0}),t}var n=zu(r).autoInterval;return n??(zu(r).autoInterval=r.calculateCategoryInterval(e))}function MU(r,e){var t=e.kind,n=IU(r),a=Wf(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 v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=wd(a({value:v}),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(t===nn.estimate)return e.out.noPxChangeTryDetermine.push(j(DU,null,r,w,l)),w;var b=XR(r,w,l);return b??w}function DU(r,e,t){return XR(r,e,t)==null}function XR(r,e,t){var n=mU(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function IU(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Eh(r,e,t){var n=Wf(r),a=r.scale,i=[],o=ie(e);return wR(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var LU=.8;function Vt(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,a=e.fromStat,i=e.min,o=w4(n);Hr(o)||(o=NaN);var s=r.getExtent(),l=it(s[1]-s[0]);return qt(n)?PU(t,r,o,l):a&&RU(t,r,o,l,a),i!=null&&(t.w=Hr(t.w)?we(i,t.w):i),t}function PU(r,e,t,n){var a=e.onBand,i=t+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&t&&n&&(r.w2=r.w*t/n)}function RU(r,e,t,n,a){var i=!1,o=-1/0;M(a.key?[X4(e,a.key)]:Z4(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===LR&&(i=!0))}),Hr(t)&&t>0&&Hr(o)?(r.w=n/t*o,r.w2=o):i&&(r.w=n*LU,r.w2=r.w*t/n)}var wC=[0,1],ln=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Be(e,wC,bC(this),t)},r.prototype.coordToData=function(e,t){var n=Be(e,bC(this),wC,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=SU(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=U(n.ticks,function(s){return{coord:this.dataToCoord(Ll(this.scale,s)),tick:s}},this),i=t.get("alignWithLabel"),o=EU(this,a,i);return U(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(qt(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),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(e){return e=e||Rh(nn.determine),_U(this,e).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(e){return e=e||Rh(nn.determine),MU(this,e)},r})();function bC(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function EU(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var a=Vt(r).w;if(!a)return!1;M(e,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}var jl=Math.PI*2,zi=Bn.CMD,kU=["top","right","bottom","left"];function OU(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function NU(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,v=s*t+e;if(Math.abs(n-a)%jl<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var c=n;n=_r(a),a=_r(c)}else n=_r(n),a=_r(a);n>a&&(a+=jl);var h=Math.atan2(s,o);if(h<0&&(h+=jl),h>=n&&h<=a||h+jl>=n&&h+jl<=a)return l[0]=f,l[1]=v,u-t;var d=t*Math.cos(n)+r,p=t*Math.sin(n)+e,g=t*Math.cos(a)+r,y=t*Math.sin(a)+e,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 kh(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,v=n-e,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=e+d*v;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function ZR(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var qr=[];function BU(r,e,t){var n=ZR(e.x,e.y,e.width,e.height,r.x,r.y,qr);return t.set(qr[0],qr[1]),n}function VU(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,v=r.x,c=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 zi.M:i=f[h++],o=f[h++],n=i,a=o;break;case zi.L:p=kh(n,a,f[h],f[h+1],v,c,qr,!0),n=f[h++],a=f[h++];break;case zi.C:p=JI(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,qr),n=f[h++],a=f[h++];break;case zi.Q:p=eL(n,a,f[h++],f[h++],f[h],f[h+1],v,c,qr),n=f[h++],a=f[h++];break;case zi.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=(v-g)*_/m+g;p=NU(g,y,_,S,S+x,w,b,c,qr),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case zi.R:i=n=f[h++],o=a=f[h++];var T=f[h++],C=f[h++];p=ZR(i,o,T,C,v,c,qr);break;case zi.Z:p=kh(n,a,i,o,v,c,qr,!0),n=i,a=o;break}p<u&&(u=p,t.set(qr[0],qr[1]))}return u}var jr=new ue,je=new ue,ft=new ue,wn=new ue,Sn=new ue;function CC(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||kU,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),v=f&&Gr([],f),c=e.get("length2")||0;u&&ft.copy(u);for(var h=0;h<o.length;h++){var d=o[h];OU(d,0,s,jr,wn),ue.scaleAndAdd(je,jr,wn,c),je.transform(v);var p=r.getBoundingRect(),g=u?u.distance(je):r instanceof Ae?VU(je,r.path,ft):BU(je,p,ft);g<l&&(l=g,je.transform(f),ft.transform(f),ft.toArray(i[0]),je.toArray(i[1]),jr.toArray(i[2]))}qR(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Oh=[],Jt=new ue;function qR(r,e){if(e<=180&&e>0){e=e/180*Math.PI,jr.fromArray(r[0]),je.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(wn,jr,je),ue.sub(Sn,ft,je);var t=wn.len(),n=Sn.len();if(!(t<.001||n<.001)){wn.scale(1/t),Sn.scale(1/n);var a=wn.dot(Sn),i=Math.cos(e);if(i<a){var o=kh(je.x,je.y,ft.x,ft.y,jr.x,jr.y,Oh,!1);Jt.fromArray(Oh),Jt.scaleAndAdd(Sn,o/Math.tan(Math.PI-e));var s=ft.x!==je.x?(Jt.x-je.x)/(ft.x-je.x):(Jt.y-je.y)/(ft.y-je.y);if(isNaN(s))return;s<0?ue.copy(Jt,je):s>1&&ue.copy(Jt,ft),Jt.toArray(r[1])}}}}function zU(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,jr.fromArray(r[0]),je.fromArray(r[1]),ft.fromArray(r[2]),ue.sub(wn,je,jr),ue.sub(Sn,ft,je);var n=wn.len(),a=Sn.len();if(!(n<.001||a<.001)){wn.scale(1/n),Sn.scale(1/a);var i=wn.dot(e),o=Math.cos(t);if(i<o){var s=kh(je.x,je.y,ft.x,ft.y,jr.x,jr.y,Oh,!1);Jt.fromArray(Oh);var l=Math.PI/2,u=Math.acos(Sn.dot(e)),f=l+u-t;if(f>=l)ue.copy(Jt,ft);else{Jt.scaleAndAdd(Sn,s/Math.tan(Math.PI/2-f));var v=ft.x!==je.x?(Jt.x-je.x)/(ft.x-je.x):(Jt.y-je.y)/(ft.y-je.y);if(isNaN(v))return;v<0?ue.copy(Jt,je):v>1&&ue.copy(Jt,ft)}Jt.toArray(r[1])}}}}function Dg(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;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 FU(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Na(n[0],n[1]),i=Na(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)*t,s=Cc([],n[1],n[0],o/a),l=Cc([],n[1],n[2],o/i),u=Cc([],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 jS(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<ju.length;l++){var u=ju[l],f=e[u],v=u==="normal";if(f){var c=f.get("show"),h=v?s:Q(a.states[u]&&a.states[u].ignore,s);if(h||!Q(c,o)){var d=v?n:n&&n.states[u];d&&(d.ignore=!0),n&&Dg(n,!0,u,f);continue}n||(n=new Bt,r.setTextGuideLine(n),!v&&(s||!o)&&Dg(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Dg(n,!1,u,f)}}if(n){le(n.style,t),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=FU}}function KS(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<ir.length;n++){var a=ir[n];t[a]=r.getModel([a,e])}return t}var TC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],GU=1,Nh=2,jR=GU|Nh;function Bh(r,e,t){t=t||jR,e?r.dirty|=t:r.dirty&=~t}function KR(r,e){return e=e||jR,r.dirty==null||!!(r.dirty&e)}function Fn(r){if(r)return KR(r)&&JR(r,r.label,r),r}function JR(r,e,t){var n=e.getComputedTransform();r.transform=uS(r.transform,n);var a=r.localRect=Qu(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ks.textMargin);for(var v=0;v<4;v++)Ig[v]=f===ks.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===ks.textMargin&&To(a,Ig,!1,!1);var c=r.rect=Qu(r.rect,a);return n&&c.applyTransform(n),f===ks.minMargin&&To(c,Ig,!1,!1),r.axisAligned=lS(n),(r.label=r.label||{}).ignore=e.ignore,Bh(r,!1),Bh(r,!0,Nh),r}var Ig=[0,0,0,0];function HU(r,e,t){return r.transform=uS(r.transform,t),r.localRect=Qu(r.localRect,e),r.rect=Qu(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=lS(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function A0(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function M0(r,e){for(var t=0;t<TC.length;t++){var n=TC[t];r[n]==null&&(r[n]=e[n])}return Fn(r)}function AC(r){var e=r.obb;return(!e||KR(r,Nh))&&(r.obb=e=e||new c2,e.fromBoundingRect(r.localRect,r.transform),Bh(r,!1,Nh)),e}function D0(r,e,t,n,a){var i=r.length,o=de[e],s=lt[e];if(i<2)return!1;r.sort(function(b,T){return b.rect[o]-T.rect[o]});for(var l=0,u,f=!1,v=0;v<i;v++){var c=r[v],h=c.rect;u=h[o]-l,u<0&&(h[o]-=u,c.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]-t,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 D=A+b;D<0&&x(-D*C,1)}else x(-b*C,1)}}function S(b,T,C){b!==0&&(f=!0);for(var A=T;A<C;A++){var D=r[A],L=D.rect;L[o]+=b,D.label[o]+=b}}function x(b,T){for(var C=[],A=0,D=1;D<i;D++){var L=r[D-1].rect,I=Math.max(r[D].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 D=0;D<i-1;D++){var R=C[D]*P;S(R,0,D+1)}else for(var D=i-1;D>0;D--){var R=C[D-1]*P;S(-R,D,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 UU(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function QR(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(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=Fn(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Jd(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function Jd(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:AC(r).intersect(AC(e),t,n)}function WU(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function $U(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:WU(n&&n.shape.points)}}var MC=["align","verticalAlign","width","height","fontSize"],jt=new Un,Lg=me(),YU=me();function Ov(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var Nv=["x","y","rotation"],XU=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,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?jt.setLocalTransform(u):(jt.x=jt.y=jt.rotation=jt.originX=jt.originY=0,jt.scaleX=jt.scaleY=1),jt.rotation=_r(jt.rotation);var v=a.__hostTarget,c;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();se.applyTransform(c,c,h)}var d=c&&v.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:jt.x,y:jt.y,scaleX:jt.scaleX,scaleY:jt.scaleY,rotation:jt.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(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(ie(a)||De(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ve(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){CC(_,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($U(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=q(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=q(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}var d=Lg(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<MC.length;p++){var g=MC[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(e){var t=e.getWidth(),n=e.getHeight(),a=[];M(this._labelList,function(l){l.defaultAttr.ignore||a.push(M0({},l))});var i=ze(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ze(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});D0(i,0,0,t),D0(o,1,0,n);var s=ze(a,function(l){return l.layoutOption.hideOverlap});UU(s),QR(s)},r.prototype.processLabelsOverall=function(){var e=this;M(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Lg(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=ve(e),i=a.dataIndex;if(n&&i!=null){var o=t.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 v=s.getModel("labelLine");jS(e,KS(s),l),CC(e,v)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Gs(e))){var i=Lg(n),o=i.oldLayout,s=ve(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(pe(c,"select")>=0&&n.attr(i.oldLayoutSelect),pe(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Oe(n,u,t,l)}else if(n.attr(u),!Al(n).valueAnimation){var v=Q(n.style.opacity,1);n.style.opacity=0,Ke(n,{style:{opacity:v}},t,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Ov(h,u,Nv),Ov(h,n.states.select,Nv)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Ov(d,u,Nv),Ov(d,n.states.emphasis,Nv)}A2(n,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var i=YU(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Oe(a,{shape:p},t)):(a.setShape(p),a.style.strokePercent=0,Ke(a,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Pg=me();function ZU(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=Pg(t).labelManager;a||(a=Pg(t).labelManager=new XU),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=Pg(t).labelManager;M(n.updatedSeries,function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Rg=Math.sin,Eg=Math.cos,eE=Math.PI,Fi=Math.PI*2,qU=180/eE,tE=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Ga(v-Fi)||(f?u>=Fi:-u>=Fi),h=u>0?u%Fi:u%Fi+Fi,d=!1;c?d=!0:Ga(v)?d=!1:d=h>=eE==!!f;var p=e+n*Eg(o),g=t+a*Rg(o);this._start&&this._add("M",p,g);var y=Math.round(i*qU);if(c){var m=1/this._p,_=(f?1:-1)*(Fi-m);this._add("A",n,a,y,1,+f,e+n*Eg(o+_),t+a*Rg(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=e+n*Eg(s),x=t+a*Rg(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),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(e,t,n,a,i,o,s,l,u){for(var f=[],v=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*v)/v)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),JS="none",jU=Math.round;function KU(r){var e=r.fill;return e!=null&&e!==JS}function JU(r){var e=r.stroke;return e!=null&&e!==JS}var I0=["lineCap","miterLimit","lineJoin"],QU=U(I0,function(r){return"stroke-"+r.toLowerCase()});function eW(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Rt){r("opacity",a);return}if(KU(e)){var i=Xu(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",JS);if(JU(e)){var s=Xu(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,v=e.strokeFirst;if(u!==1&&r("stroke-width",u),v&&r("paint-order",v?"stroke":"fill"),f<1&&r("stroke-opacity",f),e.lineDash){var c=ES(t),h=c[0],d=c[1];h&&(d=jU(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}for(var p=0;p<I0.length;p++){var g=I0[p];if(e[g]!==fh[g]){var y=e[g]||fh[g];y&&r(QU[p],y)}}}}var rE="http://www.w3.org/2000/svg",nE="http://www.w3.org/1999/xlink",tW="http://www.w3.org/2000/xmlns/",rW="http://www.w3.org/XML/1998/namespace",DC="ecmeta_";function aE(r){return document.createElementNS(rE,r)}function Tt(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function nW(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function aW(r){return"</"+r+">"}function QS(r,e){e=e||{};var t=e.newline?`
50
- `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return nW(o,s)+(o!=="style"?Qt(l):l||"")+(i?""+t+U(i,function(u){return n(u)}).join(t)+t:"")+aW(o)}return n(r)}function iW(r,e,t){t=t||{};var n=t.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(e),function(l){return"@keyframes "+l+a+U(De(e[l]),function(u){return u+a+U(De(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function L0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IC(r,e,t,n){return Tt("svg","root",{width:r,height:e,xmlns:rE,"xmlns:xlink":nE,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var oW=0;function iE(){return oW++}var LC={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"},Xi="transform-origin";function sW(r,e,t){var n=F({},r.shape);F(n,e),r.buildPath(t,n);var a=new tE;return a.reset(sL(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function lW(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Xi]=t+"px "+n+"px")}var uW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function oE(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function fW(r,e,t){var n=r.shape.paths,a={},i,o;if(M(n,function(l){var u=L0(t.zrId);u.animation=!0,Qd(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=De(f),h=c.length;if(h){o=c[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 v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=oE(a,t);return i.replace(o,s)}}function PC(r){return Z(r)?LC[r]?"cubic-bezier("+LC[r]+")":G_(r)?r:"":""}function Qd(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Nd){var s=fW(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],v=[f.getMaxTime()/1e3+"s"],c=PC(f.getClip().easing),h=f.getDelay();c?v.push(c):v.push("linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var d=v.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(ce,te,ge){for(var re=ce.getTracks(),he=ce.getMaxTime(),We=0;We<re.length;We++){var Pe=re[We];if(Pe.needsAnimate()){var Fe=Pe.keyframes,$e=Pe.propName;if(ge&&($e=ge($e)),$e)for(var ct=0;ct<Fe.length;ct++){var pr=Fe[ct],sr=Math.round(pr.time/he*100)+"%",gi=PC(pr.easing),rs=pr.rawValue;(Z(rs)||Ee(rs))&&(te[sr]=te[sr]||{},te[sr][$e]=pr.rawValue,gi&&(te[sr][T]=gi))}}}}for(var A=0;A<S;A++){var D=_[A],L=D.targetName;L?L==="shape"&&C(D,w):!n&&C(D,x)}for(var I in x){var P={};On(P,r),F(P,x[I]);var R=lL(P),E=x[I][T];b[I]=R?{transform:R}:{},lW(b[I],P),E&&(b[I][T]=E)}var O,k=!0;for(var I in w){b[I]=b[I]||{};var V=!O,E=w[I][T];V&&(O=new Bn);var z=O.len();O.reset(),b[I].d=sW(r,w[I],O);var G=O.len();if(!V&&z!==G){k=!1;break}E&&(b[I][T]=E)}if(!k)for(var I in b)delete b[I].d;if(!n)for(var A=0;A<S;A++){var D=_[A],L=D.targetName;L==="style"&&C(D,b,function(re){return uW[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][Xi]!==b[ye][Xi]){X=!1;break}Y=b[ee][Xi]}if(X&&Y){for(var I in b)b[I][Xi]&&delete b[I][Xi];e[Xi]=Y}if(ze(W,function(ce){return De(b[ce]).length>0}).length){var Ne=oE(b,t);return Ne+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+iE();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function vW(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};RC(n,e,t)}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=Mm(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),RC(n,e,t)}}function RC(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+iE(),t.cssStyleCache[a]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var ff=Math.round;function sE(r){return r&&Z(r.src)}function lE(r){return r&&ie(r.toDataURL)}function e1(r,e,t,n){eW(function(a,i){var o=a==="fill"||a==="stroke";o&&oL(i)?fE(e,r,a,n):o&&H_(i)?vE(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),mW(t,r,n)}function t1(r,e){var t=sz(e);t&&(t.each(function(n,a){n!=null&&(r[(DC+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[DC+"silent"]="true"))}function EC(r){return Ga(r[0]-1)&&Ga(r[1])&&Ga(r[2])&&Ga(r[3]-1)}function cW(r){return Ga(r[4])&&Ga(r[5])}function r1(r,e,t){if(e&&!(cW(e)&&EC(e))){var n=1e4;r.transform=EC(e)?"translate("+ff(e[4]*n)/n+" "+ff(e[5]*n)/n+")":IV(e)}}function kC(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(ff(n[i][0]*t)/t),a.push(ff(n[i][1]*t)/t);e.points=a.join(" ")}function OC(r){return!r.smooth}function hW(r){var e=U(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=ff(s*a)/a)}}}var dW={circle:[hW(["cx","cy","r"])],polyline:[kC,OC],polygon:[kC,OC]};function pW(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function uE(r,e){var t=r.style,n=r.shape,a=dW[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&sL(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&pW(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;v&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new tE),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return r1(i,r.transform),e1(i,t,r,e),t1(i,r),e.animation&&Qd(r,i,e),e.emphasis&&vW(r,i,e),Tt(s,r.id+"",i)}function gW(r,e){var t=r.style,n=t.image;if(n&&!Z(n)&&(sE(n)?n=n.src:lE(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),r1(l,r.transform),e1(l,t,r,e),t1(l,r),e.animation&&Qd(r,l,e),Tt("image",r.id+"",l)}}function yW(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||la,i=t.x||0,o=PV(t.y||0,Lf(a),t.textBaseline),s=LV[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(HL(t)){var u="",f=t.fontStyle,v=GL(t.fontSize);if(!parseFloat(v))return;var c=t.fontFamily||kI,h=t.fontWeight;u+="font-size:"+v+";font-family:"+c+";",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),r1(l,r.transform),e1(l,t,r,e),t1(l,r),e.animation&&Qd(r,l,e),Tt("text",r.id+"",l,void 0,n)}}function NC(r,e){if(r instanceof Ae)return uE(r,e);if(r instanceof Rt)return gW(r,e);if(r instanceof el)return yW(r,e)}function mW(r,e,t){var n=r.style;if(RV(n)){var a=EV(r),i=t.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,v=n.shadowOffsetY||0,c=n.shadowBlur,h=Xu(n.shadowColor),d=h.opacity,p=h.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Tt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tt("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}e.filter=xd(o)}}function fE(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(aL(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(iL(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 v=Dm(s[u].offset)*100+"%",c=s[u].color,h=Xu(c),d=h.color,p=h.opacity,g={offset:v};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Tt("stop",u+"",g))}var y=Tt(i,"",o,l),m=QS(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)),e[t]=xd(S)}function vE(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(nL(a)){var c=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(Z(p)?d=p:sE(p)?d=p.src:lE(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Yt(c,g),Yt(h,g)}else if(c==null||h==null){var y=function(A,D){if(A){var L=A.elm,I=c||D.width,P=h||D.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=J_(d,null,r,function(A){l||y(w,A),y(v,A)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=Tt("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(v=ae(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(v){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=lL(a);x&&(o.patternTransform=x);var w=Tt("pattern","",o,[v]),b=QS(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,[v])),e[t]=xd(C)}}function _W(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Tt("clipPath",i,o,[uE(r,t)])}e["clip-path"]=xd(i)}function BC(r){return document.createTextNode(r)}function eo(r,e,t){r.insertBefore(e,t)}function VC(r,e){r.removeChild(e)}function zC(r,e){r.appendChild(e)}function cE(r){return r.parentNode}function hE(r){return r.nextSibling}function kg(r,e){r.textContent=e}var FC=58,SW=120,xW=Tt("","");function P0(r){return r===void 0}function mn(r){return r!==void 0}function wW(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function bu(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function vf(r){var e,t=r.children,n=r.tag;if(mn(n)){var a=r.elm=aE(n);if(n1(xW,r),H(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&zC(a,vf(i))}else mn(r.text)&&!fe(r.text)&&zC(a,BC(r.text))}else r.elm=BC(r.text);return r.elm}function dE(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&eo(r,vf(i),e)}}function Vh(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(mn(a.tag)){var i=cE(a.elm);VC(i,a.elm)}else VC(r,a.elm)}}function n1(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==SW?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(tW,t,o):t.charCodeAt(3)===FC?n.setAttributeNS(rW,t,o):t.charCodeAt(5)===FC?n.setAttributeNS(nE,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function bW(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],v,c,h,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:f==null?f=t[--l]:bu(o,u)?(Ds(o,u),o=e[++n],u=t[++a]):bu(s,f)?(Ds(s,f),s=e[--i],f=t[--l]):bu(o,f)?(Ds(o,f),eo(r,o.elm,hE(s.elm)),o=e[++n],f=t[--l]):bu(s,u)?(Ds(s,u),eo(r,s.elm,o.elm),s=e[--i],u=t[++a]):(P0(v)&&(v=wW(e,n,i)),c=v[u.key],P0(c)?eo(r,vf(u),o.elm):(h=e[c],h.tag!==u.tag?eo(r,vf(u),o.elm):(Ds(h,u),e[c]=void 0,eo(r,h.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(d=t[l+1]==null?null:t[l+1].elm,dE(r,d,t,a,l)):Vh(r,e,n,i))}function Ds(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(n1(r,e),P0(e.text)?mn(n)&&mn(a)?n!==a&&bW(t,n,a):mn(a)?(mn(r.text)&&kg(t,""),dE(t,null,a,0,a.length-1)):mn(n)?Vh(t,n,0,n.length-1):mn(r.text)&&kg(t,""):r.text!==e.text&&(mn(n)&&Vh(t,n,0,n.length-1),kg(t,e.text)))}function CW(r,e){if(bu(r,e))Ds(r,e);else{var t=r.elm,n=cE(t);vf(e),n!==null&&(eo(n,e.elm,hE(t)),Vh(n,[r],0,0))}return e}var TW=0,AW=(function(){function r(e,t,n){if(this.type="svg",this.configLayer=MW(),this.storage=t,this._opts=n=F({},n),this.root=e,this._id="zr"+TW++,this._oldVNode=IC(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=aE("svg");n1(null,this._oldVNode),a.appendChild(i),e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",CW(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return NC(e,L0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=L0(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=DW(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Tt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=U(De(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(Tt("defs","defs",{},u)),e.animation){var f=iW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=Tt("style","stl",{},[],f);o.push(v)}}return IC(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},QS(this.renderToVNode({animation:Q(e.cssAnimation,!0),emphasis:Q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var v=e[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(c&&l&&c[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={};_W(c[y],m,t);var _=Tt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=c;var S=NC(v,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=Os(a,0,n),t=Os(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(H_(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=OV(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();function MW(r){return function(){}}function DW(r,e,t,n){var a;if(t&&t!=="none")if(a=Tt("rect","bg",{width:r,height:e,x:"0",y:"0"}),oL(t))fE({fill:t},a.attrs,"fill",n);else if(H_(t))vE({style:{fill:t},dirty:ot,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=Xu(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function IW(r){r.registerPainter("svg",AW)}function GC(r,e,t){var n=rr.createCanvas(),a=e.getWidth(),i=e.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*t,n.height=i*t,n}function Og(r){return!r.__cursors.get(h2)}function HC(r){var e=r.__cursors.get(h2);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var pE=(function(r){Je(e,r);function e(t,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=Ec,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||ih,typeof t=="string"?o=GC(t,n,a):fe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(FI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.afterBrush=function(){this.__prevIdx=HC(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=GC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,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 D=new se(0,0,0,0);D.copy(A),D.union(S),o[C]=D,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 v=HC(this),c=v.startIdx;c<v.endIdx;++c){var h=t[c];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&vr||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&vr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,c=y.startIdx;c<y.endIdx;++c){var h=n[c],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 c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(m=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(yd(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||d0(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else zB(n)&&(n.scaleX=n.scaleX||v,n.scaleY=n.scaleY||v,_=p0(o,n,{dirty:function(){c.setUnpainted(),c.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&&M(a,function(p){d(p.x*v,p.y*v,p.width*v,p.height*v)})},e})($r),UC=1e5,Gi=314159,Ng=void 0,LW=1,Bg=2;function PW(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function RW(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function WC(r,e,t,n){var a=new pE(r,e,e.dpr);return a.zlevel=t,a.zlevel2=n,a.__builtin__=!0,gE(a),a}function gE(r){r.__cursorStack=[],r.__cursors=K()}function EW(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function kW(r,e){var t=r.__cursors,n=+e;return t.get(n)||(r.__cursorStack.push(n),t.set(n,EW({key:n})))}function Bv(r,e){for(var t=r.__cursorStack,n=0;n<t.length;n++)e(r.__cursors.get(t[n]))}function Vg(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Ft(r,e,t){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];(!t||(!(t&Fu)||s.__builtin__)&&(!(t&R0)||!s.__builtin__)&&(!(t&yE)||s!==r.hoverlayer))&&e(s,i,o,a)}}var Fu=1,R0=2,yE=4,Vv=Fu|yE,OW=(function(){function r(e,t,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||ih,this._singleCanvas=i,this.root=e;var o=e.style;if(o&&(FI(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],i){var l=e,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 v=WC(l,this,Gi,Ec);v.initContext(),this._insertLayer(v,Gi,Ec,!0),this._domRoot=e}else{this._width=Os(e,0,n),this._height=Os(e,1,n);var s=this._domRoot=RW(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!fe(e)?t={paintAll:!!e}:t=e||{};var n=Q(t.refresh,!0),a=Q(t.refreshHover,!1);if(a&&(this._hoverLayerDirty=Bg),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.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,v){l.refresh&&l.refresh(v===0?s:null)},R0),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Ng,n!==Ng&&(!t&&n===Bg&&(t=this._i.hoverlayer=this._ensureLayer(UC)),!!t)){t.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){i||(i=t.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),uo(i,l,a),u&&(l.style=f)}}i&&(Ys(i,a),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(UC)},r.prototype.paintOne=function(e,t){ZP(e,t)},r.prototype._paintList=function(e,t,n){if(this._redrawId===n){var a=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),a)Ft(this._i,function(o){o.afterBrush&&o.afterBrush()},Vv),this._paintHoverList(e);else{var i=this;Qc(function(){i._paintList(e,t,n)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Gi).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),Ft(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)},Fu)},r.prototype._doPaintList=function(e,t){var n=this,a=!0;return Ft(this._i,function(i){var o=!1;if(Bv(i,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!Og(i)?i.createRepaintRects(e,t,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)}Bv(i,function(v){var c=n._paintPerCursor(i,v,e,s,u);a=a&&c})}},Vv),Le.wxa&&Ft(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},r.prototype._paintPerCursor=function(e,t,n,a,i){var o=e.ctx;if(a)if(!a.length)t.drawIdx=t.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(e,t,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,n,null,i),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,l=Og(e),u=l&&rr.getTime(),f=t.drawIdx,v=t.notClearIdx,c=v>=0?Math.min(v,f):f;c<t.endIdx;c++){var h=n[c];if(!(c<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Bg),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(uo(s,h,o),h.setPrevPaintRect(d))}else uo(s,h,o);if(l){var p=rr.getTime()-u;if(p>15){c++;break}}}}Ys(s,o),t.drawIdx=Math.max(c,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,n){t=t||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=Gi,t=0);var i=Vg(this._i,e)[t];return i||(i=WC("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&_e(i,this._layerConfig[e],!0),(n||a&&e!==Gi)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][n])&&PW(e)){for(var f=s.length,v=0;v<f&&(s[v].zl<t||s[v].zl===t&&s[v].zl2<n);)v++;if(v>0&&(u=Vg(i,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:t,zl2:n}),Vg(i,t)[n]=e,!a&&!e.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)})},r.prototype.eachBuiltinLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)},Fu)},r.prototype.eachOtherLayer=function(e,t){return Ft(this._i,function(n,a){e.call(t,n,a)},R0)},r.prototype.getLayers=function(){var e={};return Ft(this._i,function(t,n,a){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var a=1;a<e.length;a++){var i=e[a];if(i.zlevel!==e[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}Ft(n._i,function(g){g.__dirty=!1,Bv(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Vv);for(var o,s=null,l=null,u=!1,f=0,v=e.length;f<v;f++){var i=e[f],c=i.zlevel,h=i.incremental,d=void 0;if(o!==c&&(o=c,u=!1),h?(u=!0,d=C5):d=u?b5:Ec,(!s||c!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(c,d),l=null,!s.__builtin__)){N_("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=kW(s,h),!l.used))if(l.used=!0,!t&&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&vr&&!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;(Og(g)?x<S.drawIdx:x!==S.endIdx||!x||e[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?e[x-1].id:NaN}}g.__dirty&&(Bv(g,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Ng&&(n._hoverLayerDirty=LW))},Vv)},r.prototype.clear=function(){return Ft(this._i,function(e){e.clear(),gE(e)},Fu),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ft(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?_e(n[e],t,!0):n[e]=t,Ft(this._i,function(a,i){_e(a,n[i],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,a=t.length-1;a>=0;a--){var i=t[a];if(i.zl===e){var o=n[e][i.zl2];if(o.__builtin__)continue;if(t.splice(a,1),n[e][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;e!=null&&(a.width=e),t!=null&&(a.height=t),e=Os(i,0,a),t=Os(i,1,a),n.style.display="",(this._width!==e||t!==this._height)&&(n.style.width=e+"px",n.style.height=t+"px",Ft(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Gi).resize(e,t)}return this},r.prototype.clearLayer=function(e){M(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Gi][0].dom;var t=new pE("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;Ft(this._i,function(v){v.__builtin__?n.drawImage(v.dom,0,0,a,i):v.renderToCanvas&&(n.save(),v.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];uo(n,f,o)}Ys(n,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function NW(r){r.registerPainter("canvas",OW)}var BW=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new oe,a=gt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=gt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=N.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize: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},e})(qe);function ll(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=rl(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(rl(r,e,t[o]));return i.join(" ")}}function mE(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!H(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Xf=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=gt(t,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=VW,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){da(this.childAt(0))},e.prototype.downplay=function(){pa(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):Oe(h,d,s,n),Wr(h)}if(this._updateCommon(t,n,l,a,i),f){var h=this.childAt(0);if(!v){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)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=St(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Ko(t.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(n,"style"),b=w.fill;if(s instanceof Rt){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(F({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.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 D=o&&o.useNameLabel;Mt(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:w.opacity});function L(R){return D?t.getName(R):ll(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=v,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,c,h,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ai(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ai(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Il(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(oe);function VW(r,e){this.parent.drift(r,e)}function zv(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function $C(r){return r!=null&&!fe(r)&&(r={isIgnore:r}),r||{}}function YC(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:St(e),cursorStyle:e.get("cursor")}}function XC(r,e,t,n,a,i,o){var s=new r(e,t,n,a);return s.setPosition(i),e.setItemGraphicEl(t,s),o.add(s),s}var Zf=(function(){function r(e){this.group=new oe,this._SymbolCtor=e||Xf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=$C(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=YC(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||n.removeAll(),e.diff(i).add(function(v){var c=f(v);zv(e,c,v,t)&&XC(o,e,v,l,u,c,n)}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!zv(e,d,v,t)){n.remove(h);return}var p=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,v,l,u),h.setPosition(d);else{h.updateData(e,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Oe(h,y,a)}n.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,a=t.getStore(),i=0,o=a.count();i<o;i++){var s=t.getItemGraphicEl(i),l=n._getSymbolPoint(i);zv(t,l,i,e)?(s=s||XC(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),t.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YC(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n,a){this._progressiveEls=[],a=$C(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Tl)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(zv(t,s,o,a)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){di(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function _E(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=zW(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=U(r.dimensions,function(d){return e.mapDimension(d)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return ii(e,v[0])&&(c=!0,v[0]=h),ii(e,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function zW(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:Ee(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function SE(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function zr(r,e){return!isFinite(r)||!isFinite(e)}var FW=typeof Float32Array!==xl?Float32Array:void 0,GW=typeof Float64Array!==xl?Float64Array:void 0;function bn(r){return a1({ctor:FW},r).arr}function a1(r,e){var t=r.arr,n=r.ctor;if(e>uh&&(e=uh),!t||r.typed&&t.length<e){var a=void 0;if(n)try{a=new n(e),r.typed=!0,t&&a.set(t)}catch{}if(!a&&(a=[],r.typed=!1,t))for(var i=0,o=t.length;i<o;i++)a[i]=t[i];r.arr=a}return r}function HW(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function UW(r,e,t,n,a,i,o,s){for(var l=HW(r,e),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=_E(a,e,o),y=r.getLayout("points")||[],m=e.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],D=m[b+1];(isNaN(T)||isNaN(C))&&(T=A,C=D),u.push(T,C),f.push(A,D),v.push(t[w],t[w+1]),c.push(n[b],n[b+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);b=L*2,u.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=SE(g,a,e,L);v.push(R[0],R[1]),c.push(n[b],n[b+1]),p.push(e.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,O=bn(E),k=bn(E),V=bn(E),z=bn(E),G=[],_=0;_<d.length;_++){var W=d[_],X=_*2,Y=W*2;O[X]=u[Y],O[X+1]=u[Y+1],k[X]=f[Y],k[X+1]=f[Y+1],V[X]=v[Y],V[X+1]=v[Y+1],z[X]=c[Y],z[X+1]=c[Y+1],G[_]=h[W]}return{current:O,next:k,stackedOnCurrent:V,stackedOnNext:z,status:G}}var Da=Math.min,Ia=Math.max;function E0(r,e,t,n,a,i,o,s,l){for(var u,f,v,c,h,d,p=t,g=0;g<n;g++){var y=e[p*2],m=e[p*2+1];if(p>=a||p<0)break;if(zr(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,w=e[x*2],b=e[x*2+1];w===y&&b===m&&g<n;)g++,x+=i,p+=i,w=e[x*2],b=e[x*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;zr(w,b)&&T<n;)T++,x+=i,w=e[x*2],b=e[x*2+1];var C=.5,A=0,D=0,L=void 0,I=void 0;if(T>=n||zr(w,b))h=y,d=m;else{A=w-u,D=b-f;var P=y-u,R=w-y,E=m-f,O=b-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(R);var z=A>0?1:-1;h=y-z*k*o,d=m,L=y+z*V*o,I=m}else if(s==="y"){k=Math.abs(E),V=Math.abs(O);var G=D>0?1:-1;h=y,d=m-G*k*o,L=y,I=m+G*V*o}else k=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+O*O),C=V/(V+k),h=y-A*o*(1-C),d=m-D*o*(1-C),L=y+A*o*C,I=m+D*o*C,L=Da(L,Ia(w,y)),I=Da(I,Ia(b,m)),L=Ia(L,Da(w,y)),I=Ia(I,Da(b,m)),A=L-y,D=I-m,h=y-A*k/V,d=m-D*k/V,h=Da(h,Ia(u,y)),d=Da(d,Ia(f,m)),h=Ia(h,Da(u,y)),d=Ia(d,Da(f,m)),A=y-h,D=m-d,L=y+A*V/k,I=m+D*V/k}r.bezierCurveTo(v,c,h,d,y,m),v=L,c=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var xE=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),WW=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new xE},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&zr(a[o*2-2],a[o*2-1]);o--);for(;i<o&&zr(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=E0(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Bn.CMD,s,l,u=n==="x",f=[],v=0;v<i.length;){var c=i[v++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],d=i[v++],_=u?(t-s)/(h-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?th(s,h,p,y,t,f):th(l,d,g,m,t,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?[t,S]:[S,t]}}s=y,l=m;break}}},e})(Ae),$W=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(xE),wE=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new $W},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&zr(a[s*2-2],a[s*2-1]);s--);for(;o<s&&zr(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=E0(t,a,o,s,s,1,n.smooth,l,n.connectNulls);E0(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(Ae);function bE(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.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 v=new be({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),d=c.inverse;h?(d&&(v.shape.x+=l),v.shape.width=0):(d||(v.shape.y+=u),v.shape.height=0);var p=ie(a)?function(g){a(g,v)}:null;Ke(v,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return v}function CE(r,e,t){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(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ke(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function Ro(r,e,t,n,a){if(r){if(r.type==="polar")return CE(r,e,t);if(r.type==="cartesian2d")return bE(r,e,t,n,a)}else return null;return null}var cf=0,hf=1,df=2;function Ns(r,e,t){r?e.setClipPath(t):e.removeClipPath()}function TE(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Eo(r,e){return r.type===e}function ZC(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function AE(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||J(r,"text")))}function ME(r,e,t){var n=r,a,i,o;if(e==="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");t?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 qC(o,r),M(o.rich,function(l){qC(l,l)}),{textConfig:a,textContent:i}}function qC(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function jC(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||N.color.neutral99;KC(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||N.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||N.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,M(e.rich,function(s){KC(s,s)}),n}function KC(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function JC(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function QC(r){for(var e=Ot(),t=Ot(),n=0;n<r.length;){var a=r[n++],i=r[n++];zr(a,i)||(Fm(e,a),Fm(t,i))}return[e,t]}function eT(r,e){var t=QC(r),n=t[0],a=t[1],i=QC(e),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 tT(r){return Ee(r)?r:r?.5:0}function YW(r,e,t){if(t.valueDim==null)return[];for(var n=e.count(),a=bn(n*2),i=0;i<n;i++){var o=SE(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function La(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(a){for(l=0;l<r.length;l+=2){var h=e||r;zr(h[l],h[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+v[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=v[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function XW(r,e){var t=[],n=r.length,a,i;function o(f,v,c){var h=f.coord,d=(c-h)/(v.coord-h),p=DV(d,[f.color,v.color]);return{coord:c,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZW(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.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=e.getAxis(a),u=U(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=XW(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new bl(0,0,0,0,c,!0);return m[a]=p,m[a+"2"]=g,m}}}function qW(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&jW(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){l.tick.offInterval||(s[Ll(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function jW(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Xf.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function KW(r){for(var e=r.length/2;e>0&&zr(r[e*2-2],r[e*2-1]);e--);return e-1}function rT(r,e){return[r[e*2],r[e*2+1]]}function JW(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!zr(o,r[u*2+1-a])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function DE(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<ir.length;e++)if(r.get([ir[e],"endLabel","show"]))return!0;return!1}function zg(r,e,t,n){if(Eo(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=DE(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=bE(e,t,n,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);u?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return l&&l(1,f),f}else return CE(e,t,n)}function QW(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.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 e$=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new oe,n=new Zf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=j(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=_E(i,s,_),x=m&&YW(i,s,S),w=t.get("showSymbol"),b=t.get("connectNulls"),T=w&&!v&&qW(t,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=v?!1:t.get("step"),D;i&&i.getArea&&t.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=ZW(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===i.type&&A===this._step))w&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),A&&(x&&(x=La(x,f,i,A,b)),f=La(f,null,i,A,b)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Mo(L)),g.setClipPath(zg(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Mo(L));var I=g.getClipPath();if(I){var P=zg(this,i,!1,t);Ke(I,{shape:P.shape},t)}else g.setClipPath(zg(this,i,!0,t));w&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!JC(this._stackedOnPoints,x)||!JC(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,a,A,_,b):(A&&(x&&(x=La(x,f,i,A,b)),f=La(f,null,i,A,b)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var R=t.getModel("emphasis"),E=R.get("focus"),O=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),_t(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}ve(d).seriesIndex=t.seriesIndex,et(d,E,O,k);var z=tT(t.get("smooth")),G=t.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:G,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=tT(W.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:X,smoothMonotone:G,connectNulls:b}),_t(p,t,"areaStyle"),ve(p).seriesIndex=t.seriesIndex,et(p,E,O,k)}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=t.get("triggerEvent"),ye=t.get("triggerLineEvent"),Ne=ye===!0||ee===!0||ee==="line",ce=ye===!0||ee===!0||ee==="area";this.packEventData(t,d,Ne),p&&this.packEventData(t,p,ce)},e.prototype.packEventData=function(t,n,a){ve(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=xo(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],v=l[s*2+1];if(zr(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new Xf(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,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 Ue.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=xo(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 Ue.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;hh(this._polyline,t),n&&hh(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new WW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new wE({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,f=u.get("animationDuration");ie(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=ie(v)?v(null):v;t.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(v)?v(d):f*b+c,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}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(DE(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Re({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=KW(l);f>=0&&(Mt(s,St(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?mE(o,h):ll(o,v)},enableTextSetter:!0},QW(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=a.getLayout("points"),c=a.hostModel,h=c.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=JW(v,S,b),C=T.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!h){var L=rT(v,C[0]);u.attr({x:L[0]+x,y:L[1]+w}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+x,y:L[1]+w});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=DL(a,d,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,L=rT(v,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+w})}if(o){var E=Al(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,c=UW(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=La(c.stackedOnCurrent,c.current,a,o,l),h=La(c.current,null,a,o,l),g=La(c.stackedOnNext,c.next,a,o,l),p=La(c.next,null,a,o,l)),eT(h,p)>3e3||f&&eT(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),Oe(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Oe(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var w=t.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()}})},e.prototype.remove=function(t){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},e.type="line",e})(Ue);function qf(r,e){return{seriesType:r,plan:jo(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||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");ii(n,s[0])&&(s[0]=u),ii(n,s[1])&&(s[1]=u);var f=n.getStore(),v=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&bn(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var w=f.get(v,_);x=a.dataToPoint(w,null,m)}else y[0]=f.get(v,_),y[1]=f.get(c,_),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 t$={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},r$=function(r){return Math.round(r.length/2)};function IE(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;Z(i)?d=t$[i]:ie(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,d,r$))}}}}}function n$(r){r.registerChartView(e$),r.registerSeriesModel(BW),r.registerLayout(qf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,IE("line"))}var LE=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(ln),k0=null;function a$(r){k0||(k0=r)}function jf(){return k0}var ep="expandAxisBreak",PE="collapseAxisBreak",RE="toggleAxisBreak",i1="axisbreakchanged",i$={type:ep,event:i1,update:"update",refineEvent:o1},o$={type:PE,event:i1,update:"update",refineEvent:o1},s$={type:RE,event:i1,update:"update",refineEvent:o1};function o1(r,e,t,n){var a=[];return M(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function l$(r){r.registerAction(i$,e),r.registerAction(o$,e),r.registerAction(s$,e);function e(t,n){var a=[],i=Fs(n,t);function o(s,l){M(i[s],function(u){var f=u.updateAxisBreaks(t);M(f.breaks,function(v){var c;a.push(le((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Ha=Math.PI,u$=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],f$=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ko=me(),EE=me(),kE=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function v$(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=s1(r.axisName)&&il(r.nameLocation);M(n,function(d){var p=Fn(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Gr(Kl,g.transform):yl(Kl),p.transform&&Vr(Kl,Kl,p.transform),se.copy(Fv,p.localRect),Fv.applyTransform(Kl),s?s.union(Fv):se.copy(s=new se(0,0,0,0),Fv))}});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 v=a.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new se(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Kl=nt(),Fv=new se(0,0,0,0),OE=function(r,e,t,n,a,i){if(il(r.nameLocation)){var o=i.stOccupiedRect;o&&NE(HU({},o,i.transGroup.transform),n,a)}else BE(i.labelInfoList,i.dirVec,n,a)};function NE(r,e,t){var n=new ue;Jd(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&A0(e,n)}function BE(r,e,t,n){for(var a=ue.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||NE(s,t,n)}}var ar=(function(){function r(e,t,n,a){this.group=new oe,this._axisModel=e,this._api=t,this._local={},this._shared=a||new kE(OE),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=Q(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:a,nameLocation:xr(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:s1(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.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(t);l.transGroup=this._transformGroup,l.dirVec=new ue(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(c$,function(a){e[a]&&h$[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=yL(t-e),i,o;return Qs(a)?(o=n>0?"top":"bottom",i="center"):Qs(a-Ha)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ha?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),c$=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],h$={axisLine:function(r,e,t,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],v=[l[1],0],c=f[0]>v[0];u&&(st(f,f,u),st(v,v,u));var h=F({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&mh(n.axis.scale))jf().buildAxisBreakLine(n,a,i,d);else{var p=new dt(F({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},d));tl(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"]);Z(g)&&(g=[g,g]),(Z(y)||Ee(y))&&(y=[y,y]);var m=Ko(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];M([{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]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[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=c?v: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,e,t,n,a,i,o,s){var l=aT(e,a,s);l&&nT(r,e,t,n,a,i,o,nn.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=aT(e,a,s);l&&nT(r,e,t,n,a,i,o,nn.determine);var u=y$(r,a,i,n);g$(r,e.labelLayoutList,u),m$(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(s1(u)){var f=r.nameLocation,v=r.nameDirection,c=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+v*h,y.y=v);var m=nt();y.transform(hi(m,m,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Ha/180);var S,x;il(f)?S=ar.innerTextLayout(r.rotation,_??r.rotation,v):(S=d$(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=c.getFont(),b=n.get("nameTruncate",!0)||{},T=b.ellipsis,C=tr(r.raw.nameTruncateMaxWidth,b.maxWidth,x),A=s.nameMarginLevel||0,D=new Re({x:g.x,y:g.y,rotation:S.rotation,silent:ar.isLabelSilent(n),style:Ze(c,{text:u,font:w,overflow:"truncate",width:C,ellipsis:T,fill:c.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(xa({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var L=ar.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ve(D).eventData=L}i.add(D),D.updateTransform(),e.nameEl=D;var I=l.nameLayout=Fn({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:il(f)?u$[A]:f$[A]});if(l.nameLocation=f,a.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,I,y,P)}}}};function nT(r,e,t,n,a,i,o,s){zE(e)||_$(r,e,a,s,n,o);var l=e.labelLayoutList;S$(r,n,l,i),b$(n,r.rotation,l);var u=r.optionHideOverlap;p$(n,l,u),u&&QR(ze(l,function(f){return f&&!f.label.ignore})),v$(r,t,n,l)}function d$(r,e,t,n){var a=yL(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Qs(a-Ha/2)?(o=l?"bottom":"top",i="center"):Qs(a-Ha*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ha*1.5&&a>Ha/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function p$(r,e,t){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(G4(n))return;function i(u,f,v){var c=Fn(e[f]),h=Fn(e[v]),d=n.scale;if(!(!c||!h)){if(u==null){if(!t&&a)return;var p=ko(c.label).labelInfo.tick;if(Hf(d)&&p.notNice||qt(d)&&p.offInterval){Is(c.label);return}}if(u===!1||c.suggestIgnore){Is(c.label);return}if(h.suggestIgnore){Is(h.label);return}var g=.1;if(!t){var y=[0,0,0,0];c=M0({marginForce:y},c),h=M0({marginForce:y},h)}Jd(c,h,null,{touchThreshold:g})&&Is(u?h.label:c.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function g$(r,e,t){r.showMinorTicks||M(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=EE(i),s=ko(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Is(i);return}}})}function Is(r){r&&(r.ignore=!0)}function VE(r,e,t,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]=t,e&&(st(o,o,e),st(s,s,e));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});tl(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var v=EE(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function y$(r,e,t,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=VE(u,t.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}function m$(r,e,t,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"])})),v=0;v<s.length;v++)for(var c=VE(s[v],t.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)e.add(c[h])}}function aT(r,e,t){if(zE(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),O0(r,null,null,null))}return!0}function _$(r,e,t,n,a,i){var o=a.axis,s=tr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new oe;t.add(l);var u=Rh(n);if(!s||o.scale.isBlank()){O0(e,[],l,u);return}var f=a.getModel("axisLabel"),v=o.getViewLabels(u),c=(tr(r.raw.labelRotate,f.get("rotate"))||0)*Ha/180,h=ar.innerTextLayout(r.rotation,c,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;M(v,function(S,x){var w,b=S.tick,T=S.formattedLabel,C=S.rawLabel,A=f,D=Ll(o.scale,b);if(d&&d[D]){var L=d[D];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),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,k=Q(A.getShallow("verticalAlignMinLabel",!0),O),V=Q(A.getShallow("verticalAlignMaxLabel",!0),O),z=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);y=Math.min(y,z),m=Math.max(m,z);var G=new Re({x:0,y:0,rotation:0,silent:ar.isLabelSilent(a),z2:z,style:Ze(A,{text:T,align:x===0?R:x===v.length-1?E:P,verticalAlign:x===0?k:x===v.length-1?V:O,fill:ie(I)?I(o.type==="category"?C:o.type==="value"?D+"":D,x):I})});G.anid="label_"+D;var W=ko(G);if(W.labelInfo=S,W.layoutRotation=h.rotation,xa({el:G,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return G.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=D),ve(G).eventData=X,Y&&w$(a,i,G,Y)}p.push(G),l.add(G)});var _=U(p,function(S){return{label:S,priority:ko(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});O0(e,_,l,u)}function zE(r){return!!r.labelLayoutList}function O0(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function S$(r,e,t,n){var a=e.get(["axisLabel","margin"]);M(t,function(i,o){var s=Fn(i);if(s){var l=s.label,u=ko(l);s.suggestIgnore=l.ignore,l.ignore=!1,On(Zn,x$);var f=e.axis;Zn.x=f.dataToCoord(Ll(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(),On(l,Zn),l.markRedraw(),Bh(s,!0),Fn(s)}})}var Zn=new be,x$=new be;function s1(r){return!!r}function w$(r,e,t,n){t.on("click",function(a){var i={type:ep,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function b$(r,e,t){var n=vt();if(n){var a=n.retrieveAxisBreakPairs(t,function(o){return o&&ko(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&M(a,function(o){jf().adjustBreakLabelPair(r.axis.inverse,e,[Fn(t[o[0]]),Fn(t[o[1]])])})}}function zh(r,e,t){t=t||{};var n=e.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},v=e.get("offset")||0,c=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));c[f.onZero]=Math.max(Math.min(h,c[1]),c[0])}a.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[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?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function C$(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function T$(r){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,at).models[0];e[n]=i}),e}function A$(r,e,t,n,a,i){for(var o=zh(r,t),s=!1,l=!1,u=0;u<e.length;u++)SR(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ar(t,n,o,a)}function M$(r,e,t){var n=zh(e,t);r.updateCfg(n)}function D$(r){return r.dim+"_"+r.index}function I$(){J4("liPosMinGap",L$)}function L$(r,e,t){var n=K(),a=t.serUids,i=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=_P(f);function c(_){jd(r,e.sers,function(S){var x=S.getRawData(),w=x.getDimensionIndex(x.mapDimension(s.dim));w>=0&&_(w,S,x.getStore())})}var h=0;if(c(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){e.liPosMinGap=i;return}a1(Hi,h);var d=0;c(function(_,S,x){for(var w=0,b=x.count();w<b;++w){var T=x.get(_,w);isFinite(T)&&(!f||SP(v,T))&&(u&&(T=l.transformIn(T,null)),Hi.arr[d++]=T)}});var p=Hi.typed?Hi.arr.subarray(0,d):(Hi.arr.length=d,Hi.arr);Hi.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)}t.liPosMinGap=e.liPosMinGap=Hr(g)?g:d>0?LR:$4,t.serUids=n}var Hi=a1({ctor:GW},50);function tp(r){return function(e,t){var n=Vt(e,{fromStat:{key:r}});if(Hr(n.w2))return[-n.w2/2,n.w2/2]}}function yo(r){return r+Ph}function Qo(r,e){return r+Ph+e}function l1(r){return I$(),{liPosMinGap:!qt(r.scale)}}var In="bar",pf="pictorialBar";function FE(r,e,t,n){ZS(r,{key:e,seriesType:t,coordSysType:n,getMetrics:l1})}function GE(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var HE={left:0,right:0,top:0,bottom:0},Fh=["25%","25%"],en="cartesian2d",P$=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=qo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&zn(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&zn(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:HE,outerBoundsContain:"all",outerBoundsClampWidth:Fh[0],outerBoundsClampHeight:Fh[1],backgroundColor:N.color.transparent,borderWidth:1,borderColor:N.color.neutral30},e})(Me),R$=Sl(),N0="__ec_stack_";function UE(r){return r.get("stack")||N0+r.seriesIndex}function E$(r){if(qt(r.axis.scale)){for(var e=Vt(r.axis),t=[],n=0;n<r.count;n++)t.push(le({stackId:N0+n},r));for(var a=WE({bandWidthResult:e,seriesInfo:t}),i=[],n=0;n<r.count;n++){var o=a[N0+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function k$(r,e){var t=O$(r,e);return t.columnMap=WE(t),t}function O$(r,e){var t=Qo(e,en),n=[],a=Vt(r,{fromStat:{key:t},min:1});return Io(r,t,function(i){n.push({barWidth:q(i.get("barWidth"),a.w),barMaxWidth:q(i.get("barMaxWidth"),a.w),barMinWidth:q(i.get("barMinWidth")||(XE(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:UE(i)})}),{bandWidthResult:a,seriesInfo:n}}function WE(r){var e=r.bandWidthResult.w,t=e,n=0,a,i,o=[],s={};M(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(t,_),t-=_);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=q(a,e),u=q(i,1),f=(t-l)/(n+(n-1)*u);f=we(f,0),M(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=_,t-=_+u*_,n--}else{var _=f;y&&y<_&&(_=He(y,t)),m&&m>_&&(_=m),_!==f&&(g.width=_,t-=_+u*_,n--)}}),f=(t-l)/(n+(n-1)*u),f=we(f,0);var v=0,c;M(o,function(p){var g=s[p];g.width||(g.width=f),c=g,v+=g.width*(1+u)}),c&&(v-=c.width*u);var h={},d=-v/2;return M(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function $E(r){return{seriesType:r,overallReset:function(e){var t=Qo(r,en);XS(e,t,function(n){var a=k$(n,r);Io(n,t,function(i){var o=a.columnMap[UE(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function YE(r){return{seriesType:r,plan:jo(),reset:function(e){if(C$(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=ii(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(GE(i))),d=XE(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var x=_.count,w=d&&bn(x*3),b=d&&l&&bn(x*3),T=d&&bn(x),C=n.master.getRect(),A=c?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(v?g:o,D),R=L.get(s,D),E=h,O=void 0;v&&(O=+P-L.get(o,D));var k=void 0,V=void 0,z=void 0,G=void 0;if(c){var W=n.dataToPoint([P,R]);v&&(E=n.dataToPoint([O,R])[0]),k=E,V=W[1]+m,z=W[0]-E,G=y,it(z)<p&&(z=(z<0?-1:1)*p)}else{var W=n.dataToPoint([R,P]);v&&(E=n.dataToPoint([R,O])[1]),k=W[0]+m,V=E,z=y,G=W[1]-E,it(G)<p&&(G=(G<=0?-1:1)*p)}d?(w[I]=k,w[I+1]=V,w[I+2]=c?z:G,b&&(b[I]=c?C.x:k,b[I+1]=c?V:C.y,b[I+2]=A),T[D]=D):S.setItemLayout(D,{x:k,y:V,width:z,height:G}),I+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function XE(r){return r.pipelineContext&&r.pipelineContext.large}function N$(r){return tp(Qo(r,en))}function ZE(r){R$(r,function(){function e(t){var n=Qo(t,en);FE(r,n,t,en),Kd(n,N$(t))}e("bar"),e("pictorialBar")})}var gf=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),p=c.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]=c.toGlobalCoord(c.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]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(qe);qe.registerClass(gf);var B$=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return wa(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,n){var a=PL(this,t,n);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series."+In,e.dependencies=["grid","polar"],e.defaultOption=pi(gf.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:N.color.primary,borderWidth:2}},realtimeSort:!1}),e})(gf),V$=(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})(),Gh=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new V$},e.prototype.buildPath=function(t,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,v=n.endAngle,c=n.clockwise,h=Math.PI*2,d=c?v-f<h:f-v<h;d||(f=v-(c?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);d?(t.moveTo(p*o+a,g*o+i),t.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!c)):t.moveTo(p*s+a,g*s+i),t.arc(a,i,s,f,v,!c),t.arc(y*u+a,m*u+i,l,v-Math.PI*2,v-Math.PI,!c),o!==0&&t.arc(a,i,o,v,f,c)},e})(Ae);function z$(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return oh(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,d=(c+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(p),w=v+c*S(p),b="left",T="top";switch(s){case"startArc":x=f+(h-l)*_(y),w=v+(h-l)*S(y),b="center",T="top";break;case"insideStartArc":x=f+(h+l)*_(y),w=v+(h+l)*S(y),b="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Gv(p,l+m,!1),w=v+d*S(p)+Hv(p,l+m,!1),b="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Gv(p,-l+m,!1),w=v+d*S(p)+Hv(p,-l+m,!1),b="left",T="middle";break;case"middle":x=f+d*_(y),w=v+d*S(y),b="center",T="middle";break;case"endArc":x=f+(c+l)*_(y),w=v+(c+l)*S(y),b="center",T="bottom";break;case"insideEndArc":x=f+(c-l)*_(y),w=v+(c-l)*S(y),b="center",T="top";break;case"endAngle":x=f+d*_(g)+Gv(g,l+m,!0),w=v+d*S(g)+Hv(g,l+m,!0),b="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Gv(g,-l+m,!0),w=v+d*S(g)+Hv(g,-l+m,!0),b="right",T="middle";break;default:return oh(n,a,i)}return n=n||{},n.x=x,n.y=w,n.align=b,n.verticalAlign=T,n}}function F$(r,e,t,n){if(Ee(n)){r.setTextConfig({rotation:n});return}else if(H(e)){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=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var 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 Gv(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Hv(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Cn(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;H(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(n,function(i){return Nn(i,a)})}}var Fg=Math.max,Gg=Math.min,G$=(function(r){B(e,r);function e(){var t=r.call(this)||this;return t.type=In,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,h=H$(t,u);h&&this._enableRealtimeSort(h,s,a);var d=t.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,w=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(D){var L=Uv[u.type](s,D);if(!L)return null;var I=q$(u,v,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=Uv[u.type](s,D,L);if(I&&(y&&T(D),!(!s.hasValue(D)||!uT[u.type](I)))){var P=!1;d&&(P=iT[u.type](p,I));var R=oT[u.type](t,s,D,I,v,c,f.model,!1,g);h&&(R.forceLabelAnimation=!0),fT(R,s,D,L,I,t,v,u.type==="polar"),w?R.attr({shape:I}):h?sT(h,c,R,I,D,v,!1,!1):Ke(R,{shape:I},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=Uv[u.type](s,D,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[D]=R);var E=Uv[u.type](s,D),O=jE(v,E,u);Oe(R,{shape:O},c,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!uT[u.type](P)){o.remove(k);return}var V=!1;d&&(V=iT[u.type](p,P),V&&o.remove(k));var z=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(z&&(k&&na(k,t,L),k=null),k?Wr(k):k=oT[u.type](t,s,D,P,v,c,f.model,!0,g),h&&(k.forceLabelAnimation=!0),b){var G=k.getTextContent();if(G){var W=Al(G);W.prevValue!=null&&(W.prevValue=W.value)}}else fT(k,s,D,I,P,t,v,u.type==="polar");w?k.attr({shape:P}):h?sT(h,c,k,P,D,v,!0,b):Oe(k,{shape:P},t,D,null),s.setItemGraphicEl(D,k),k.ignore=V,o.add(k)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&na(L,t,D)}).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},e.prototype._renderLarge=function(t,n,a){this._clear(),cT(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),cT(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&Ro(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,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)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.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})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){na(i,t,ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=In,e})(Ue),iT={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Fg(e.x,r.x),s=Gg(e.x+e.width,a),l=Fg(e.y,r.y),u=Gg(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>a?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||v},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Gg(e.r,r.r),i=Fg(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},oT={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new be({shape:F({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,v=a?"height":"width";f[v]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Gh:Xt,f=new u({shape:n,z2:1});f.name="item";var v=qE(a);if(f.calculateTextPosition=z$(v,{isRoundCap:u===Gh}),i){var c=f.shape,h=a?"r":"endAngle",d={};c[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?Oe:Ke)(f,{shape:d},i)}return f}};function H$(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function sT(r,e,t,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)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Oe:Ke)(t,{shape:u},f,a)}function lT(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var U$=["x","y","width","height"],W$=["cx","cy","r","startAngle","endAngle"],uT={cartesian2d:function(r){return!lT(r,U$)},polar:function(r){return!lT(r,W$)}},Uv={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?Y$(t,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,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function $$(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function qE(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function fT(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Cn(n.getModel("itemStyle"),f,!0);F(f,v),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?j$(a,i.coordinateSystem):K$(a,i.coordinateSystem),d=St(n);Mt(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:ll(i.getData(),t),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,F$(r,g==="outside"?h:g,qE(o),n.get(["label","rotate"]))}T2(p,d,i.getRawValue(t),function(m){return mE(e,m)});var y=n.getModel(["emphasis"]);et(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),_t(r,n),$$(a)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Y$(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var X$=(function(){function r(){}return r})(),vT=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new X$},e.prototype.buildPath=function(t,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],t.rect(s[0],s[1],l[0],l[1])},e})(Ae);function cT(r,e,t,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?Dn(r):0;if(u){var v=new vT({shape:{points:u},incremental:f,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),e.add(v),t&&t.push(v)}var c=new vT({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,ve(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",hT),c.on("mousemove",hT)),t&&t.push(c)}var hT=PS(function(r){var e=this,t=Z$(e,r.offsetX,r.offsetY);ve(e).dataIndex=t>=0?t:null},30,!1);function Z$(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var c=f*3;if(l[n]=u,l[a]=i[c+2],s[n]=i[c+n],s[a]=i[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function jE(r,e,t){if(Eo(t,"cartesian2d")){var n=e,a=t.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=t.getArea(),i=e;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 q$(r,e,t){var n=r.type==="polar"?Xt:be;return new n({shape:jE(e,t,r),silent:!0,z2:0})}function j$(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function K$(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function J$(r){r.registerChartView(G$),r.registerSeriesModel(B$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,$E(In)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YE(In)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,IE(In)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),ZE(r)}function Kf(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.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 Rl(r,e,t){e=H(e)&&{coordDimensions:e}||F({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Gf(n,e).dimensions,i=new nr(a,r);return i.initData(n,t),i}var El=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),ei="pie",Q$=me(),KE=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new El(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(bS,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Q$(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=pz(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){So(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series."+ei,e.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"},e})(qe);uG({fullType:KE.type,getCoord2:function(r){return r.getShallow("center")}});var eY=Math.PI/180;function dT(r,e,t,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-t),x=n+_.len,w=x*x,b=Math.sqrt(Math.abs((1-S*S/y)*w)),T=e+(b+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;JE(_,A,!0),_.label.x=T}}function v(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>t?y:g,x=Math.abs(_.label.y-t);if(x>=S.maxY){var w=_.label.x-e-_.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 c=r.length,h=0;h<c;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}D0(r,1,l,l+o)&&v(r)}function tY(r,e,t,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;Hg(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Hg(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+a-v-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,JE(d,g,!1)}}dT(u,e,t,n,1,a,i,o,s,v),dT(l,e,t,n,-1,a,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Hg(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<e?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(h.x<e?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 JE(r,e,t){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(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,h=e<f?c:t?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",h)}QE(i,n)}}}function QE(r,e){pT.rect=r,JR(pT,e,rY)}var rY={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},pT={};function Hg(r){return r.position==="center"}function nY(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*eY,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,c=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}e.each(function(w){var b=e.getItemGraphicEl(w),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),D=e.getItemModel(w),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=q(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,c)>200?10:2);var k=D.getModel("labelLine"),V=k.get("length");V=q(V,u);var z=k.get("length2");if(z=q(z,u),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,h),C.ignore=!0,A&&(M(A.states,h),A.ignore=!0);return}if(d(C)){var G=(T.startAngle+T.endAngle)/2,W=Math.cos(G),X=Math.sin(G),Y,ee,ye,Ne;n=T.cx,a=T.cy;var ce=I==="inside"||I==="inner";if(I==="center")Y=T.cx,ee=T.cy,Ne="center";else{var te=(ce?(T.r+T.r0)/2*W:T.r*W)+n,ge=(ce?(T.r+T.r0)/2*X:T.r*X)+a;if(Y=te+W*3,ee=ge+X*3,!ce){var re=te+W*(V+l-T.r),he=ge+X*(V+l-T.r),We=re+(W<0?-1:1)*z,Pe=he;R==="edge"?Y=W<0?f+E:f+u-E:Y=We+(W<0?-P:P),ee=Pe,ye=[[te,ge],[re,he],[We,Pe]]}Ne=ce?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var Fe=Math.PI,$e=0,ct=L.get("rotate");if(Ee(ct))$e=ct*(Fe/180);else if(I==="center")$e=0;else if(ct==="radial"||ct===!0){var pr=W<0?-G+Fe:-G;$e=pr}else if(ct==="tangential"||ct==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var sr=Math.atan2(W,X);sr<0&&(sr=Fe*2+sr);var gi=X>0;gi&&ct!=="tangential-noflip"&&(sr=Fe+sr),$e=sr-Fe}if(i=!!$e,C.x=Y,C.y=ee,C.rotation=$e,C.setStyle({verticalAlign:"middle"}),ce){C.setStyle({align:Ne});var dp=C.states.select;dp&&(dp.x+=C.x,dp.y+=C.y)}else{var rs=new se(0,0,0,0);QE(rs,C),t.push({label:C,labelLine:A,position:I,len:V,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new ue(W,X),linePoints:ye,textAlign:Ne,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:O,rect:rs,unconstrainedWidth:rs.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:ce})}}),!i&&r.get("avoidLabelOverlap")&&tY(t,n,a,l,u,c,f,v);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(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?(M(m.states,h),m.ignore=!0):(qR(x,g.minTurnAngle),zU(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,Wv=Math.PI/180,aY=wt(ei,iY);function iY(r,e){r.eachSeriesByType(ei,function(t){var n=t.getData(),a=n.mapDimension("value"),i=K2(t,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,v=-t.get("startAngle")*Wv,c=t.get("endAngle"),h=t.get("padAngle")*Wv;c=c==="auto"?v-gT:-c*Wv;var d=t.get("minAngle")*Wv,p=d+h,g=0;n.each(a,function(E){!isNaN(E)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=t.get("clockwise"),S=t.get("roseType"),x=t.get("stillShowZeroSum"),w=n.getDataExtent(a);w[0]=0;var b=_?1:-1,T=[v,c],C=b*h/2;Ld(T,!_),v=T[0],c=T[1];var A=ek(t);A.startAngle=v,A.endAngle=c,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var D=Math.abs(c-v),L=D,I=0,P=v;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(E,O){var k;if(isNaN(E)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?k=y===0&&x?m:E*m:k=D/g,k<p?(k=p,L-=p):I+=E;var V=P+b*k,z=0,G=0;h>k?(z=P+b*k/2,G=z):(z=P+C,G=V-C),n.setItemLayout(O,{angle:k,startAngle:z,endAngle:G,clockwise:_,cx:o,cy:s,r0:u,r:S?Be(E,w,[u,l]):l}),P=V}),L<gT&&g)if(L<=.001){var R=D/g;n.each(a,function(E,O){if(!isNaN(E)){var k=n.getItemLayout(O);k.angle=R;var V=0,z=0;R<h?(V=v+b*(O+1/2)*R,z=V):(V=v+b*O*R+C,z=v+b*(O+1)*R-C),k.startAngle=V,k.endAngle=z}})}else m=L/I,P=v,n.each(a,function(E,O){if(!isNaN(E)){var k=n.getItemLayout(O),V=k.angle===p?p:E*m,z=0,G=0;V<h?(z=P+b*V/2,G=z):(z=P+C,G=P+b*V-C),k.startAngle=z,k.endAngle=G,P+=b*V}})})}var ek=me(),oY=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),v=F(Cn(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(Ke(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):c==="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:v},s,n);o.useStyle(t.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,t,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Cn(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y:g,shape:Cn(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:Cn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,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:t.getFormattedLabel(a,"normal")||n.getName(a)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Bt,this.setTextGuideLine(h)),jS(this,KS(o),{stroke:u,opacity:xr(s.get(["lineStyle","opacity"]),f,1)})}},e})(Xt),sY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ei,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=ek(t),h=new Xt({shape:ae(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new oY(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);na(p,t,d)}).execute(),nY(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=ei,e})(Ue);function lY(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Ee(o)&&!isNaN(o)&&o<0)})}}}function uY(r){r.registerChartView(sY),r.registerSeriesModel(KE),HP(ei,r.registerAction),r.registerLayout(aY),r.registerProcessor(Kf(ei)),r.registerProcessor(lY(ei))}var fY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:N.color.primary}},universalTransition:{divideShape:"clone"}},e})(qe),tk=4,vY=(function(){function r(){}return r})(),cY=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new vY},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<tk,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<a.length;){var c=a[v++],h=a[v++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.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)}},e.prototype.findDataIndex=function(t,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,v=i[f]-s/2,c=i[f+1]-l/2;if(t>=v&&n>=c&&t<=v+s&&n<=c+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){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,v=-1/0,c=0;c<a.length;){var h=a[c++],d=a[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),v=Math.max(d,v)}t=this._rect=new se(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e})(Ae),hY=(function(){function r(){this.group=new oe}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.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(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n,a){var i=this._newAdded[0],o=t.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=e.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new cY({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=gt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<tk;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ve(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),dY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,Ug(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),Dn(n),Ug(n)),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),this._finished){var o=qf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(Ug(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new hY:new Zf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Ue);function Ug(r){return{clipShape:TE(r)}}var B0=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",at).models[0]},e.type="cartesian2dAxis",e})(Me);xt(B0,Yf);var rk={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:N.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:N.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:N.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[N.color.backgroundTint,N.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:N.color.neutral00,borderColor:N.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},pY=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},rk),u1=_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:N.color.axisMinorSplitLine,width:1}}},rk),gY=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},u1),yY=le({logBase:10},u1);const nk={category:pY,value:u1,time:gY,log:yY};function ul(r,e,t,n){M(AR,function(a,i){var o=_e(_e({},nk[i],!0),n,!0),s=(function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=ef(this),h=c?qo(f):{},d=v.getTheme();_e(f,d.get(i+"Axis")),_e(f,this.getDefaultOption()),f.type=yT(f),c&&zn(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=af.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=jf();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",yT)}function yT(r){return r.type||(r.data?"category":"value")}var mY=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ze(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Hc=["x","y"];function mT(r){return(r.type==="interval"||r.type==="time")&&!mh(r)}var _Y=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=en,t.dimensions=Hc,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!mT(t)||!mT(n))){var a=Dh(t,null),i=Dh(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,v=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=Gr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),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)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return st(a,t,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},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[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},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return st(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new se(i,o,s,l)},e})(mY);function ak(r,e){var t=r.scale,n=r.model,a=VR(t,n,n.ecModel,r),i=al(t),o=al(e)?e.intervalStub:e,s=i?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1,c,h,d;if(v===1)c=h=0,d=1;else if(v===2){var p=it(u[0].value-u[1].value),g=it(u[1].value-u[2].value);c=h=0,p===g?d=2:(d=1,p<g?c=p/g:h=g/p)}else{var y=o.getConfig().interval;c=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[v].value-u[v].value)/y)%1,d=v-(c?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],x=t.getExtent(),w=s.getExtent(),b=xR(w,S),T,C,A,D,L,I;function P(W){for(var X=50,Y=0;Y<X&&!W();Y++)A=i?A*we(l,2):C4(A),D=Do(A)}function R(){T=ke(I-A*c,D)}function E(){C=ke(L+A*h,D)}function O(){I=c?ke(T+A*c,D):T}function k(){L=h?ke(C-A*h,D):C}if(S[0]&&S[1]){T=b[0],C=b[1],A=(C-T)/(d+c+h);var V=r.getExtent(),z=it(V[1]-V[0]);D=W_([C,T],z,.5/d),O(),k(),Hr(D)&&(A=ke(A,D))}else{var G=b[1]-b[0];A=i?we(mL(G),1):Y_(G/d,_L),D=Do(A),S[0]?(T=b[0],P(function(){if(O(),L=ke(I+A*d,D),E(),C>=b[1])return!0})):S[1]?(C=b[1],P(function(){if(k(),I=ke(L-A*d,D),R(),T<=b[0])return!0})):P(function(){I=ke(Uo(b[0]/A)*A,D),L=ke(rn(b[1]/A)*A,D);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=rn(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],D),L=ke(L+A*Y[1],D),R(),E(),T<=b[0]&&C>=b[1])return!0}})}IR(t,S,w,[T,C],x,{interval:A,intervalCount:d,intervalPrecision:D,niceExtent:[I,L]})}var _T=[[3,1],[0,2]],SY=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Hc,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;M(this._axesList,function(o){Po(o,ol);var s=o.scale;qt(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):sl(f)}M(l,function(v){wY(v,v.__alignTo)?sl(v):ak(v,v.__alignTo.scale)})}a(n.x),a(n.y);var i={};M(n.x,function(o){ST(n,"y",o,i)}),M(n.y,function(o){ST(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=bt(e,t),i=this._rect=tt(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(V0(o,i),!n){var u=TY(i,s,o,l,t),f=void 0;if(l)z0?(z0(this._axesList,i),V0(o,i)):f=CT(i.clone(),"axisLabel",null,i,o,u,a);else{var v=AY(e,i,a),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=CT(c,h,d,i,o,u,a))}ik(i,o,nn.determine,null,f,a),M(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}fe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",at).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",at).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.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(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,v){M(s.y,function(c,h){var d="x"+v+"y"+h,p=new _Y(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(c)})}),wT(s.x),wT(s.y);function u(f){return function(v,c){if(xY(v,e)){var h=v.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=qd(v),p=new LE(f,Uf(v,d,!0),[0,0],d,h);p.onBand=$f(p.scale,v),p.inverse=v.get("inverse"),v.axis=p,p.model=v,p.grid=i,p.index=c,i._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return M(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);pe(t,i)<0&&t.push(i),pe(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o),M(o._axesList,function(s){nU(s,r.dimIdxMap)})}),e.eachSeries(function(a){var i,o;zf({targetModel:a,coordSysType:en,coordSysProvider:s});function s(){var l=T$(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var v=u.getCoordSysModel(),c=v.coordinateSystem;return c.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Lo(i,a,en),Lo(o,a,en))},this),n},r.dimensions=Hc,r.dimIdxMap=FS(Hc),r})();function xY(r,e){return r.getCoordSysModel()===e}function ST(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)xT(s,a[l])&&(i=a[l]);else for(var u in a)if(J(a,u)&&xT(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function xT(r,e){if(!e)return!1;var t=e.scale,n=N4(t,0),a=e&&e.type!=="category"&&e.type!=="time"&&n!==w0;return a&&r==="auto"&&F4(e)&&(a=!1),a}function wT(r){for(var e=De(r),t,n=[],a=e.length-1;a>=0;a--){var i=r[+e[a]];SR(i.scale)&&DR(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):t=i)}t||(t=n.pop()),t&&M(n,function(o){o.__alignTo=t})}function wY(r,e){return mh(r.scale)||mh(e.scale)||e.scale.getTicks().length<2}function bY(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function V0(r,e){M(r.x,function(t){return bT(t,e.x,e.width)}),M(r.y,function(t){return bT(t,e.y,e.height)})}function bT(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),bY(r,e)}var z0;function CY(r){z0=r}function CT(r,e,t,n,a,i,o){ik(n,a,nn.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=ci(s,function(c){return c>0})==null;return To(n,s,!0,!0,t),V0(a,n),l;function u(c){M(a[de[c]],function(h){if(uf(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(Ll(h.scale,ko(y.label).labelInfo.tick));m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=il(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,h,d){var p=r[de[h]]-c[de[h]],g=c[lt[h]]+c[de[h]]-(r[lt[h]]+r[de[h]]);p=v(p,1-d),g=v(g,d);var y=_T[h][0],m=_T[h][1];s[y]=we(s[y],p),s[m]=we(s[m],g)}function v(c,h){return c>0&&!Wt(h)&&h>1e-4&&(c/=h),c}}function TY(r,e,t,n,a){var i=new kE(MY);return M(t,function(o){return M(o,function(s){if(uf(s.model)){var l=!n;s.axisBuilder=A$(r,e,s.model,a,i,l)}})}),i}function ik(r,e,t,n,a,i){var o=t===nn.determine;M(e,function(u){return M(u,function(f){uf(f.model)&&(M$(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}M(e,function(u,f){return M(u,function(v){uf(v.model)&&((n==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function AY(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=tt(r.get("outerBounds",!0)||HE,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||pe(["all","axisLabel"],i)<0?o="all":o=i;var s=[lh(Q(r.get("outerBoundsClampWidth",!0),Fh[0]),e.width),lh(Q(r.get("outerBoundsClampHeight",!0),Fh[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var MY=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";OE(r,e,t,n,a,i),il(r.nameLocation)||M(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&BE(s.labelInfoList,s.dirVec,n,a)})};function DY(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return IY(t,r,e),t.seriesInvolved&&PY(t,r),t}function IY(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=yf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",n);if(M(s.getAxes(),xe(p,!1,null)),s.getTooltipAxes&&n&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&M(d.baseAxes,xe(p,h?"cross":!0,c)),h&&M(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&&!F0(_))){y==null&&(y=_.get("triggerTooltip")),_=g?LY(m,v,a,e,g,y):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),b=yf(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:F0(_),seriesModels:[],linkGroup:null};u[b]=C,r.seriesInvolved=r.seriesInvolved||T;var A=RY(i,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[b]=C,D.mapper=i[A].mapper,C.linkGroup=D}}}})}function LY(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(c){l[c]=ae(o.get(c))}),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 v=l.lineStyle=o.get("crossStyle");v&&le(u,v.textStyle)}}return r.model.getModel("axisPointer",new Ie(l,t,n))}function PY(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[yf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function RY(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Wg(i[n+"AxisId"],t.id)||Wg(i[n+"AxisIndex"],t.componentIndex)||Wg(i[n+"AxisName"],t.name))return a}}function Wg(r,e){return r==="all"||H(r)&&pe(r,e)>=0||r===e}function EY(r){var e=f1(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=F0(t);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=e.axis.scale.isBlank()?"hide":"show")}}function f1(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[yf(r)]}function kY(r){var e=f1(r);return e&&e.axisPointerModel}function F0(r){return!!r.get(["handle","show"])}function yf(r){return r.type+"||"+r.id}var TT={},es=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&EY(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=kY(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){TT[t]=n},e.getAxisPointerClass=function(t){return t&&TT[t]},e.type="axis",e})(Qe),G0=me();function ok(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.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,v=G0(r).splitAreaColors,c=K(),h=0;if(v)for(var d=0;d<u.length;d++){var p=v.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=H(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&&c.set(b,h),e.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}G0(r).splitAreaColors=c}}}function sk(r){G0(r).splitAreaColors=null}var OY=["splitArea","splitLine","minorSplitLine","breakArea"],lk=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!uf(t)){this._axisGroup.add(t.axis.axisBuilder.group),M(OY,function(l){t.get([l,"show"])&&NY[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Of(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){sk(this)},e.type="cartesianAxis",e})(es),NY={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=H(l)?l:[l];for(var v=n.coordinateSystem.getRect(),c=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;c?(p[0]=_,p[1]=v.y,g[0]=_,g[1]=v.y+v.height):(p[0]=v.x,p[1]=_,g[0]=v.x+v.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});tl(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],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?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new dt({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});tl(y.shape,h.lineWidth),e.add(y)}},splitArea:function(r,e,t,n,a){ok(r,e,t,n)},breakArea:function(r,e,t,n,a){var i=jf(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),a)}},uk=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(lk),BY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=uk.type,t}return e.type="yAxis",e})(lk),VY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new be({shape:t.coordinateSystem.getRect(),style:le({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Qe),AT={offset:0};function fk(r){r.registerComponentView(VY),r.registerComponentModel(P$),r.registerCoordinateSystem("cartesian2d",SY),ul(r,"x",B0,AT),ul(r,"y",B0,AT),r.registerComponentView(uk),r.registerComponentView(BY),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var rp="single",zY="singleAxis",H0="singleAxis",Uc=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type=H0,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(Me);xt(Uc,Yf.prototype);function FY(r,e){var t=r.coordinateSystem,n=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===en&&i==="ordinal"||n===rp,s=e.model.get("jitter")>0;return o&&s}var GY=me();function MT(r,e,t,n){if(r instanceof LE){var a=r.scale.type;if(a!=="ordinal")return t}var i=r.model,o=i.get("jitter");if(!(o>0))return t;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=qt(r.scale)?Vt(r).w:null;return s?vk(t,o,u,n):HY(r,e,t,n,o,l)}function vk(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function HY(r,e,t,n,a,i){var o=GY(r);o.items||(o.items=[]);var s=o.items,l=DT(s,e,t,n,a,i,1),u=DT(s,e,t,n,a,i,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,v=qt(r.scale)?Vt(r).w:null,c=Math.abs(f-t);return c>a/2||v&&c>v/2-n?vk(t,a,v,n):(s.push({fixedCoord:e,floatCoord:f,r:n}),f)}function DT(r,e,t,n,a,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,v=s-u.floatCoord,c=f*f+v*v,h=n+u.r+i;if(c<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-t)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function UY(){return{seriesType:"scatter",plan:jo(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==en&&e.type!==rp)){var t=e.getBaseAxis&&e.getBaseAxis(),n=t&&FY(r,t);if(n){var a=t.dim,i=t.orient,o=i==="horizontal"&&t.type!=="category"||i==="vertical"&&t.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var v=f.getLayout("points"),c=!!v,h=u.start;h<u.end;h++){var d=c?(h-u.start)*2:-1,p=c?[v[d],v[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=MT(t,p[0],p[1],y/2);c?v[d+1]=m:p[1]=m}else if(l){var m=MT(t,p[1],p[0],y/2);c?v[d]=m:p[0]=m}}}}}}}}}}function WY(r){Se(fk),r.registerSeriesModel(fY),r.registerChartView(dY),r.registerLayout(qf("scatter"))}function $Y(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,UY())}function YY(r){var e=r.polar;if(e){H(e)||(e=[e]);var t=[];M(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],H(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var mf="radar",XY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new El(j(this.getData,this),j(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Rl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=LP(this,t);return pt("section",{header:u,sortBlocks:!0,blocks:U(s,function(v){var c=i.get(i.mapDimension(v.dim),t);return pt("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(U(a.dimensions,function(u){return n.mapDimension(u)}),t),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)}}},e.type="series."+mf,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(qe),ZY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=mf,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var d=c.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Il(c.getItemVisual(h,"symbolSize")),g=gt(d,-1,-1,2,2),y=c.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(c,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Xo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},t,g)):_.setPosition(h[m]),d.add(_))}}function v(c){return U(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var d=new Zt,p=new Bt,g={shape:{points:h}};d.shape.points=v(h),p.shape.points=v(h),Ke(d,g,t,c),Ke(p,g,t,c);var y=new oe,m=new oe;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),Wr(g),Wr(p),Oe(p,m,t),Oe(g,m,t),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var d=s.getItemModel(h),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),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,M(["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 D=T.getAreaStyle();g.ensureState(b).style=D;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(F({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(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=mf,e})(Ue),Jl=nk.value,Gu="radar",ck=Gu,qY=Gu,hk=5;function $v(r,e){return le({show:e},r)}var jY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),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"]),v=this.get(["axisName","formatter"]),c=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:t,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:h},!1);if(Z(v)){var m=y.name;y.name=v.replace("{value}",m??"")}else ie(v)&&(y.name=v(y.name,y));var _=new Ie(y,null,this.ecModel);return xt(_,Yf.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Zo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=ck,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:N.color.axisLabel},boundaryGap:[0,0],splitNumber:hk,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:N.color.neutral20}},Jl.axisLine),axisLabel:$v(Jl.axisLabel,!1),axisTick:$v(Jl.axisTick,!1),splitLine:$v(Jl.splitLine,!0),splitArea:$v(Jl.splitArea,!0),indicator:[]},e})(Me),KY=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.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});M(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),d=H(c)?c:[c],p=H(h)?h:[h],g=[],y=[];function m(R,E,O){var k=O%E.length;return R[k]=R[k]||[],k}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 Sa({shape:{cx:S,cy:x,r:_[w].coord}}))}if(v&&w<_.length-1){var b=m(y,p,w);y[b].push(new Ef({shape:{cx:S,cy:x,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var T,C=U(a,function(R,E){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),U(O,function(k){return n.coordToPoint(k.coord,E)})}),A=[],w=0;w<=T;w++){for(var D=[],L=0;L<a.length;L++)D.push(C[L][w]);if(D[0]&&D.push(D[0].slice()),f){var b=m(g,d,w);g[b].push(new Bt({shape:{points:D}}))}if(v&&A){var b=m(y,p,w-1);y[b].push(new Zt({shape:{points:D.concat(A)}}))}A=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();M(y,function(R,E){this.group.add(Or(R,{style:le({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),M(g,function(R,E){this.group.add(Or(R,{style:le({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},e.type="radar",e})(Qe),JY=(function(r){B(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e})(ln),QY=(function(){function r(e,t,n){this.type=Gu,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new JY(o,new Qa);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer,a=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=q(a[0],n.width)+n.x,this.cy=q(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Z(s)||Ee(s))&&(s=[0,s]),this.r0=q(s[0],o),this.r=q(s[1],o);var l=i?-1:1;M(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var v=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),u.angle=v},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model,i=Zd(a.get("splitNumber"),hk),o=new Qa;o.setExtent(0,i),o.setConfig({interval:1}),M(n,function(s){Po(s,ol),ak(s,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent(ck,function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType(qY,function(a){if(a.get("coordinateSystem")===Gu){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&M(i.getIndicatorAxes(),function(o){Lo(o,a,Gu)})}}),n},r.dimensions=[],r})();function e6(r){r.registerCoordinateSystem("radar",QY),r.registerComponentModel(jY),r.registerComponentView(KY),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var t6=wt(mf,r6);function r6(r){r.eachSeriesByType(mf,function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();M(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=IT(f)?f:LT(a)})}),t.each(function(o){var s=ci(n[o],function(l){return IT(l)})||LT(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function IT(r){return!isNaN(r[0])&&!isNaN(r[1])}function LT(r){return[r.cx,r.cy]}function n6(r){Se(e6),r.registerChartView(ZY),r.registerSeriesModel(XY),r.registerLayout(t6),r.registerProcessor(Kf("radar")),r.registerPreprocessor(YY)}var v1=me();function a6(r,e,t){v1(r)[e]=t}function i6(r,e,t){var n=v1(r),a=n[e];a===t&&(n[e]=null)}function PT(r,e){return!!v1(r)[e]}Wn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var o6={axisPointer:1,tooltip:1,brush:1};function dk(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||o6.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=Ao(n),o=Ao(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var ts=(function(r){B(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=j(n._mousedownHandler,n),i=j(n._mousemoveHandler,n),o=j(n._mouseupHandler,n),s=j(n._mousewheelHandler,n),l=j(n._pinchHandler,n);return n.enable=function(u,f){var v=f.zInfo,c=Ao(v.component),h=c.z,d=c.zlevel,p={component:v.component,z:h,zlevel:d,z2:Q(v.z2,-1/0)},g=F({},f.triggerInfo);this._opt=le(F({},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")&&(eu(t,"mousedown",a,p),eu(t,"mousemove",i,p),eu(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(eu(t,"mousewheel",s,p),eu(t,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,tu(t,"mousedown",a),tu(t,"mousemove",i),tu(t,"mouseup",o),tu(t,"mousewheel",s),tu(t,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(dk(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,a)),u&&s.isInClip&&!s.isInClip(t,n,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(kx(t)||Ql(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||PT(n,"globalPan")||Ql(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!Wc("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,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&&ua(t.event),t.__ecRoamConsumed=!0,RT(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Ql(t)){var n=this._zr;if(!kx(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Ql(t)){var n=Wc("zoomOnMouseWheel",t,this._opt),a=Wc("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.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",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(PT(this._zr,"globalPan")||Ql(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(ua(i.event),i.__ecRoamConsumed=!0,RT(t,n,a,i,o))},e})($r);function Ql(r){return r.__ecRoamConsumed}var s6=me();function np(r){var e=s6(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function eu(r,e,t,n){for(var a=np(r),i=a.roam,o=i[e]=i[e]||[],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:t,zInfoParsed:n}),l6(r,e)}function tu(r,e,t){for(var n=np(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||u6(r,e);return}}function l6(r,e){var t=np(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function u6(r,e){var t=np(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function RT(r,e,t,n,a){a.isAvailableBehavior=j(Wc,null,t,n),r.trigger(e,a)}function Wc(r,e,t){var n=t[r];return!r||n&&(!Z(n)||e.event[n+"Key"])}function pk(r){if(Z(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var $g,Hh={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"},ET=De(Hh),Uh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kT=De(Uh),f6=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=pk(e);this._defsUsePending=[];var a=new oe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.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;h6(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var c=ap(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(v=yk(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new oe,a.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!t.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:v,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=$g[s];if(f&&J($g,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};n.push(c),s==="g"&&(u=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=OT[s];if(h&&J(OT,s)){var d=h.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new el({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),v6(n,t);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,t.add(n),n},r.internalField=(function(){$g={g:function(e,t){var n=new oe;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new be;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Sa;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new dt;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new kd;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=VT(n));var i=new Zt({shape:{points:a||[]},silent:!0});return Ar(t,i),gr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=VT(n));var i=new Bt({shape:{points:a||[]},silent:!0});return Ar(t,i),gr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Rt;return Ar(t,n),gr(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new oe;return Ar(t,s),gr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new oe;return Ar(t,s),gr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=s2(n);return Ar(t,a),gr(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),OT={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new bl(e,t,n,a);return NT(r,i),BT(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new v2(e,t,n);return NT(r,a),BT(r,a),a}};function NT(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function BT(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};gk(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=hr(o),u=l&&l[3];u&&(l[3]*=Za(s),o=Tn(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ar(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),le(e.__inheritedStyle,r.__inheritedStyle))}function VT(r){for(var e=ap(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function gr(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(g6(r,e),gk(r,o,s),n||y6(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=zT(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=zT(i,"stroke",o.stroke,t)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=U(ap(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function v6(r,e){var t=e.__selfStyle;if(t){var n=t.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=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var c6=/^url\(\s*#(.*?)\)/;function zT(r,e,t,n){var a=t&&t.match(c6);if(a){var i=Br(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function h6(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var d6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ap(r){return r.match(d6)||[]}var p6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Yg=Math.PI/180;function g6(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(p6,function(v,c,h){return n.push(c,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=ap(o);switch(a=a||nt(),s){case"translate":kn(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":F_(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":hi(a,a,-parseFloat(l[0])*Yg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Yg);Vr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Yg);Vr(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}}e.setLocalTransform(a)}}var FT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function gk(r,e,t){var n=r.getAttribute("style");if(n){FT.lastIndex=0;for(var a;(a=FT.exec(n))!=null;){var i=a[1],o=J(Hh,i)?Hh[i]:null;o&&(e[o]=a[2]);var s=J(Uh,i)?Uh[i]:null;s&&(t[s]=a[2])}}}function y6(r,e,t){for(var n=0;n<ET.length;n++){var a=ET[n],i=r.getAttribute(a);i!=null&&(e[Hh[a]]=i)}for(var n=0;n<kT.length;n++){var a=kT[n],i=r.getAttribute(a);i!=null&&(t[Uh[a]]=i)}}function yk(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function m6(r,e){var t=new f6;return t.parse(r,e)}var _6=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),S6=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=pk(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=w6(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&m6(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.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=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,v=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new se(u,f,v,c)}if(s){var d=yk(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 M(t.named,function(g){_6.get(g.svgNodeTagLower)!=null&&(p.push(g),x6(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r})();function x6(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function w6(r){var e=[],t=K();return M(r,function(n){if(n.namedFrom==null){var a=new pU(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var U0=[126,25],GT="南海诸岛",Zi=[[[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 Ui=0;Ui<Zi.length;Ui++)for(var ys=0;ys<Zi[Ui].length;ys++)Zi[Ui][ys][0]/=10.5,Zi[Ui][ys][1]/=-10.5/.75,Zi[Ui][ys][0]+=U0[0],Zi[Ui][ys][1]+=U0[1];function b6(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===GT)return;e.push(new GR(GT,U(Zi,function(n){return{type:"polygon",exterior:n}}),U0))}}var C6={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function T6(r,e){if(r==="china"){var t=C6[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var A6=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function M6(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:A6[0]})}var D6="name",I6=(function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=n,this._geoJSON=P6(t)}return r.prototype.load=function(e,t){t=t||D6;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:L6(a)})}var i=K(),o=[];return M(n.regions,function(s){var l=s.name;e&&J(e,l)&&(s=s.cloneShallow(l=e[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(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?yU(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
53
- `+i.message)}return b6(t,a),M(a,function(i){var o=i.name;T6(t,i),M6(t,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 L6(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function P6(r){return Z(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ru=K();const ya={registerMap:function(r,e,t){if(e.svg){var n=new S6(r,e.svg);ru.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new I6(r,a,t);ru.set(r,n)}},getGeoResource:function(r){return ru.get(r)},getMapForUser:function(r){var e=ru.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=ru.get(r);if(n)return n.load(e,t)}};var Oo=0,No=1,Gn=2;var R6="view",ip=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.type=R6,i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[Oo]=zs(),s[No]=zs(),s[Gn]=zs(),o.mtRaw=nt(),o.mtRawInv=nt(),o.mtOverall=nt(),o.mtOverallInv=nt(),o.zoom=1,i}return e.prototype.getBoundingRect=function(){return mk(null,this)},e.prototype.getViewRect=function(){return c1(null,this)},e.prototype.getRoamTransform=function(){return ni(this.trans[No])},e.prototype.dataToPoint=function(t,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?st(a,t,i):Ht(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.mtOverallInv;return i?st(a,t,i):Ht(a,t)},e.prototype.convertToPixel=function(t,n,a){var i=YT(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=YT(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){var n=this;return js(Yv,n.dataRect),UI(Yv,Yv,n.mtOverall),lV(Yv,t[0],t[1])},e.dimensions=["x","y"],e})(Un),Yv=Sd();function Wh(r,e){return _o([],e.mtOverall)}function E6(r){return r.zoom}function mk(r,e){return js(Sd(),e.dataRect)}function c1(r,e){return js(Sd(),e.viewRect)}function _f(r,e,t){return On(r||zs(),e.trans[t])}function h1(r){return!!(r.dataRect&&r.viewRect)}function k6(r,e,t,n){n===No?_k(r,e.trans[Oo],t):On(r,t)}function HT(r,e,t){ni(t,Xv),Vr(Xv,Xv,e.mtRawInv),zd(r,Xv)}var Xv=nt();function d1(r,e){var t=r;t.centerOption=e.getShallow("center");var n=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=g1(a||1,n)||1,h1(t)&&p1(t)}function op(r,e,t,n,a){var i=r;i.dataRect=new se(e,t,n,a),h1(i)&&p1(i)}function $h(r,e,t,n,a){var i=r;i.viewRect=new se(e,t,n,a),h1(i)&&p1(i)}function p1(r){O6(r),B6(r),V6(r)}function O6(r){var e=r.dataRect,t=r.viewRect,n=r.trans[Oo],a=r.invertY;a&&(e=js(N6,e),e.y=-e.y-e.height),HI(UT,e,t),zd(n,UT),a&&(n.scaleY=-n.scaleY);var i=ni(n,r.mtRaw);Gr(r.mtRawInv,i)}var UT=nt(),N6=Sd();function B6(r){var e=Sk(r),t=G6(Xg,r,r.centerOption)?st(Xg,Xg,r.mtRaw):e,n=r.zoom,a=r.trans[No];a.x=e[0]-n*t[0],a.y=e[1]-n*t[1],a.scaleX=a.scaleY=n}var Xg=[];function V6(r){var e=r.trans,t=e[No],n=e[Oo],a=e[Gn];_k(a,n,t);var i=ni(a,r.mtOverall),o=Gr(r.mtOverallInv,i);WT(r,a,i,o),WT(r.lgGeo,a,i,o)}function WT(r,e,t,n){r&&(On(r,e),_o(r.transform||(r.transform=[]),t),_o(r.invTransform||(r.invTransform=[]),n))}function _k(r,e,t){ni(e,$T),ni(t,Zv),Vr(Zv,Zv,$T),zd(r,Zv)}var $T=nt(),Zv=nt();function YT(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function Sk(r){var e=r.viewRect;return Zg[0]=e.x+e.width/2,Zg[1]=e.y+e.height/2,Zg}var Zg=[];function xk(r){return r&&r.type==="view"}function oi(r,e,t,n){var a=t;a.syncBackEl=r,a.syncBackType=e,n?Oe(r,_f(null,t,e),n):(_f(r,t,e),r.dirty())}function z6(r,e,t,n){var a=r,i=a.syncBackEl;i?(i.stopAnimation(),k6(Pa,a,i,a.syncBackType)):On(Pa,a.trans[Gn]),HT(qg,a,Pa),n?F6(Pa,qg,a,n):On(Pa,qg),HT(Pa,a,Pa),U6(a,e,t,Pa)}var Pa=zs(),qg=zs();function wk(r,e,t){var n=Yh(e);n&&(z6(n,e,t,r),d1(n,e))}function Yh(r){return r.__ownRoamView?r.__ownRoamView():null}function bk(r,e,t,n){t.setUpdatePayload(fS(r));var a=XL(n,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,n)}function F6(r,e,t,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var a=n.zoom;if(a!=null){var i=Ck(e),o=g1(i*a,t.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 Ck(r){return r.scaleX}function G6(r,e,t){var n=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?Ya(r,q(t[0],a.w),q(t[1],a.h)):n&&Ya(r,q(t[0],n.width,n.x),q(t[1],n.height,n.y)),!0}function H6(r,e){var t=r.centerOption,n=r.dataRect;return!t||r.lgCt?e.slice():[XT(0,e,t,n),XT(1,e,t,n)]}function XT(r,e,t,n){return t&&n&&n[lt[r]]&&hz(t[r])?(e[r]-n[de[r]])/n[lt[r]]*100+"%":e[r]}function Tk(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function U6(r,e,t,n){var a=Sk(r),i=Ck(n),o=it(i)>1e-6;nu[0]=o?(a[0]-n.x)/i:a[0],nu[1]=o?(a[1]-n.y)/i:a[1],st(nu,nu,r.mtRawInv);var s=H6(r,nu);ZT(e,s,i),M(t,function(l){l!==e&&ZT(l,s.slice(),i)})}var nu=[];function ZT(r,e,t){var n=r.option;n.center=e,n.zoom=t}function g1(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function Ak(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,n=r;return((n.zoom-1)*t+1)/(n.trans[Gn].scaleX||1)}function sp(r,e,t,n,a,i,o,s){var l=Yh(r);if(!l){t.disable();return}t.enable(Q(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,v,c){return!a||a.contain(v,c)}}});function u(f){var v=r.mainType,c=fS(le({type:Dk(v,r.subType,$L)},f));s&&(c.componentType=v),c[v+"Id"]=r.id,e.dispatchAction(c)}t.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 Mk(r){return function(e,t,n){return jg.copy(r.getBoundingRect()),jg.applyTransform(r.getComputedTransform()),jg.contain(t,n)}}var jg=new se(0,0,0,0);function y1(r,e,t){var n=Dk(e,t,$L);r.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(j_(a,e,t),function(s){wk(a,s),bk(a,s,i,o)})})}function Dk(r,e,t){return(r!==Vn?r:e==="map"?"geo":e)+t}function Ik(r){return r.zoom!=null}function m1(r,e,t,n,a,i,o){var s=new ip(null,Tk(r.ecModel,e));return op(s,t,n,a,i),o?$h(s,o.x,o.y,o.width,o.height):$h(s,t,n,a,i),d1(s,r),s}var _1=["rect","circle","line","ellipse","polygon","polyline","path"],W6=K(_1),$6=K(_1.concat(["g"])),Y6=K(_1.concat(["g"])),Lk=me();function qv(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function qT(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Pk=(function(){function r(e){var t=this.group=new oe,n=this._transformGroup=new oe;t.add(n),this.uid=Zo("ec_map_draw"),this._controller=new ts(e.getZr()),n.add(this._regionsGroup=new oe),n.add(this._svgGroup=new oe)}return r.prototype.draw=function(e,t,n,a,i){var o=this,s=e.getData&&e.getData();Xs(e)&&t.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===e&&(s=p.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,v=this._transformGroup,c=!f.childAt(0)||i,h;l.shouldClip()?(h=c1(null,u),this.group.setClipPath(new be({shape:h.clone()}))):this.group.removeClipPath(),oi(v,No,u,c?null:e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,e,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,e,s,d),sp(e,n,this._controller,function(p,g,y){return e.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,n,a)},r.prototype.__updateOnOwnRoam=function(e){oi(this._transformGroup,No,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,n,a,i,o){var s=this._regionsGroupByName=K(),l=K(),u=this._regionsGroup,f=n.projection,v=f&&f.stream,c=ni(_f(null,e,Oo));function h(g,y){return y&&(g=y(g)),g&&st([],g,c)}function d(g){for(var y=[],m=!v&&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(),M(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=Xs(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=[];M(g.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);v&&(L=tA(L,v)),M(L,function(P){b.push(new Zt(p(P)))})}else{var I=D.points;v&&(I=tA(I,v,!0)),M(I,function(P){T.push(new Bt(p(P)))})}});var C=h(g.getCenter(),f&&f.project);function A(D,L){if(D.length){var I=new Nd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});m.add(I),jT(t,i,o,I,S,x),KT(a,i,I,y,x,S,C),L&&(qT(I),M(I.states,qT))}}A(b),A(T,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;JT(a,i,g,y,S,_),QT(a,i,g,y,S),eA(a,g,y,S)},this)},r.prototype._buildSVG=function(e,t,n,a,i,o){var s=n.map;_f(this._svgGroup,e,Oo),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=K(),u=!1;M(this._svgGraphicRecord.named,function(f){var v=f.name,c=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(v):null,p=a.getRegionModel(v);W6.get(c)!=null&&h instanceof Ur&&jT(t,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&&(Y6.get(c)!=null&&KT(a,i,h,v,p,d,null),JT(a,i,h,v,p,d),QT(a,i,h,v,p),$6.get(c)!=null)){var y=eA(a,h,v,p);y==="self"&&(u=!0);var m=l.get(v)||l.set(v,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Xs(t)){var n=t.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Co(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(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=ya.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ya.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Lk(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function jT(r,e,t,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=qv(o),v=qv(s),c=qv(u),h=qv(l);if(e){var d=e.getItemVisual(a,"style"),p=e.getItemVisual(a,"decal");t&&d.fill&&(f.fill=d.fill),p&&(f.decal=nl(p,r))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=v,n.ensureState("select").style=c,n.ensureState("blur").style=h,Co(n)}function KT(r,e,t,n,a,i,o){var s=e&&isNaN(e.get(e.mapDimension("value"),i)),l=e&&e.getItemLayout(i);if(Xs(r)||s||l&&l.showLabel){var u=Xs(r)?n:i,f=void 0;(!e||i>=0)&&(f=r);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Mt(t,St(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},v);var c=t.getTextContent();if(c&&(Lk(c).ignore=c.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function JT(r,e,t,n,a,i){e?e.setItemGraphicEl(i,t):ve(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:a&&a.option||{}}}function QT(r,e,t,n,a){e||xa({el:t,componentModel:r,itemName:n,itemTooltipOption:a.get("tooltip")})}function eA(r,e,t,n){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return et(e,i,a.get("blurScope"),a.get("disabled")),Xs(r)&&jF(e,r,t),i}function tA(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}function Xs(r){return r.mainType==="geo"}var Bo="map",X6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.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())}},t}return e.prototype.getInitialData=function(t){for(var n=Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(bS,this)}),a=K(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=ya.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(f){var v=f.name,c=a.get(v),h=f.properties&&f.properties.echartsStyle,d;c==null?(d={name:v},i.push(d)):d=n.getRawDataItem(c),h&&_e(d,h)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){if(X2(this).kind!==Y2)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=[];return M(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),v=i.mapDimension("value");isNaN(u.originalData.get(v,f))||l.push(u.name)}),pt("section",{header:l.join(", "),noHeader:!l.length,blocks:[pt("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=gt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=N.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return Xh(this)?this.coordinateSystem.view:null},e.type="series."+Bo,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border,areaColor:N.color.background},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{areaColor:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},nameProperty:"name"},e})(qe);function Rk(r){return r.indexOf("i")===0}function Xh(r){return Sf(r.seriesGroup)===r&&!r.getHostGeoModel()}function Sf(r){return r.f[0]}function S1(r,e){var t={};return r.eachRawSeriesByType(Bo,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=t[i]=t[i]||{f:[],r:[]};!r.isSeriesFiltered(n)&&!e&&o.f.push(n),o.r.push(n)}),t}var Z6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Bo,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id?s&&o.add(s.group):Xh(t)?(s=s||(this._mapDraw=new Pk(a)),o.add(s.group),s.draw(t,n,a,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;Xh(n)&&i&&i.__updateOnOwnRoam(n)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var n=t.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 Sa({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:wl+1)});if(!u){var v=Sf(t.seriesGroup).getData(),c=n.getName(o),h=v.indexOfName(c),d=n.getItemModel(o),p=d.getModel("label"),g=v.getItemGraphicEl(h);Mt(f,St(d),{labelFetcher:{getFormattedLabel:function(y,m){return t.getFormattedLabel(h,m)}},defaultText:c}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){hh(f,y)}}a.add(f)}}})},e.type=Bo,e})(Ue),q6={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ek=["lng","lat"],rA=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;i.dimensions=Ek,i.type="geo",i._nameCoordMap=K(),i.name=t;var o=a.projection,s=ya.load(n,a.nameMap,a.nameProperty),l=ya.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=q6[l.type];i._clip=a.clip;var v=o?!1:f.invertLongitute;i.view=new ip(v,Tk(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);c=c||d.clone(),c.union(d)}else c=s.boundingRect;return op(i.view,c.x,c.y,c.width,c.height),i.aspectScale=o?1:Q(a.aspectScale,f.aspectScale),i}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(Z(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,n,a)}},e.prototype.pointToData=function(t,n,a){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,n,a){var i=nA(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=nA(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var n=c1(null,this.view);return n.x-=t,n.y-=t,n.width+=2*t,n.height+=2*t,n},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(Un);function nA(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",at).models[0]||{}).coordinateSystem:null}function aA(r,e){var t=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 v=function(w,b,T,C){for(var A=T-w,D=C-b,L=0;L<=100;L++){var I=L/100,P=o.project([w+A*I,b+D*I]);Ba(a,a,P),Va(i,i,P)}};v(s,l,u,l),v(u,l,u,f),v(u,f,s,f),v(s,f,u,l)}op(t,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var c=t.getBoundingRect(),h=r.get("layoutCenter"),d=r.get("layoutSize"),p=bt(r,e).refContainer,g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[q(h[0],p.width)+p.x,q(h[1],p.height)+p.y],_=q(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=J2(r,S,g)}$h(t,S.x,S.y,S.width,S.height),d1(t,r)}function j6(r,e){M(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var K6=(function(){function r(){this.dimensions=Ek}return r.prototype.create=function(e,t){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return e.eachComponent("geo",function(i,o){var s=i.get("map"),l=new rA(s+o,s,F({nameMap:i.get("nameMap"),api:t,ecModel:e},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=aA,l.resize(i,t)}),e.eachSeries(function(i){zf({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===Bo?i.getHostGeoModel():i.getReferringComponents("geo",at).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),M(S1(e,!0),function(i,o){if(Rk(o)){var s=i.r[0],l=[];M(i.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var u=o.slice(1),f=new rA(u,u,F({nameMap:B_(l),api:t,ecModel:e},a(s))),v;M(i.r,function(c){v=Q(v,c.get("scaleLimit"))}),n.push(f),f.resize=aA,f.resize(s,t),M(i.r,function(c){c.coordinateSystem=f,j6(f,c)})}}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ya.load(t,n,a);return M(l.regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),c&&_e(v,c)}),i},r})(),kk=new K6,J6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a);var i=ya.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||N.color.backgroundTint)}So(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=kk.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=En(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ie(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},K()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ie(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(ie(i))return o.status=n,i(o);if(Z(i))return i.replace("{a}",t??"")},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},regions:[]},e})(Me),Q6=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Pk(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},e.prototype._handleRegionClick=function(t){var n;so(t.target,function(a){return(n=ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ve(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Qe);function e8(r,e,t){ya.registerMap(r,e,t)}function Ok(r){r.registerCoordinateSystem("geo",kk),r.registerComponentModel(J6),r.registerComponentView(Q6),r.registerImpl("registerMap",e8),r.registerImpl("getMap",function(t){return ya.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;M(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];M(o,function(v,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":Vn),o=i===Vn;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(j_(t,i,s),function(l){o&&!Xh(l)||(wk(t,l,o?l.seriesGroup.r:null),bk(t,l,n,a))})}})}var t8=wt(Bo,r8);function r8(r){M(S1(r),function(e,t){if(!(!Sf(e)||!Rk(t))){var n={};M(e.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),v=o.getRegion(f);if(!(!v||isNaN(l))){var c=n[f]||0,h=o.dataToPoint(v.getCenter());n[f]=c+1,s.setItemLayout(u,{point:h,offset:c})}})});var a=Sf(e).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function n8(r,e){var t={};return M(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[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=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var v;return e==="min"?v=s:e==="max"?v=l:e==="average"?v=o/u:v=o,u===0?NaN:v})}var a8=wt(Bo,i8);function i8(r){M(S1(r),function(e){var t=Sf(e);if(t){var n=n8(U(e.f,function(a){return a.getData()}),t.get("mapValueCalculation"));M(e.f,function(a){a.seriesGroup=e,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function o8(r){Se(Ok),r.registerChartView(Z6),r.registerSeriesModel(X6),r.registerLayout(t8),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a8),HP("map",r.registerAction)}function s8(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.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},t.push(s)}}function l8(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){f8(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=v8(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function u8(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function iA(r){return arguments.length?r:d8}function Cu(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function f8(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function v8(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=Kg(s),i=Jg(i),s&&i;){a=Kg(a),o=Jg(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+n(s,i);c>0&&(h8(c8(s,r,t),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!Kg(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=v-l),i&&!Jg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function Kg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Jg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function c8(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function h8(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function d8(r,e){return r.parentNode===e.parentNode?1:2}var Fr=me();function Nk(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Bk(e,t,r),M(t,function(n){M(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,xe(p8,r))})}),e.wrapMethod("cloneShallow",xe(y8,r)),M(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,xe(g8,r))}),Yt(t[e.dataType]===e)}function p8(r,e){if(S8(this)){var t=F({},Fr(this).datas);t[this.dataType]=e,Bk(e,t,r)}else x1(e,this.dataType,Fr(this).mainData,r);return e}function g8(r,e){return r.struct&&r.struct.update(),e}function y8(r,e){return M(Fr(e).datas,function(t,n){t!==e&&x1(t.cloneShallow(),n,e,r)}),e}function m8(r){var e=Fr(this).mainData;return r==null||e==null?e:Fr(e).datas[r]}function _8(){var r=Fr(this).mainData;return r==null?[{data:r}]:U(De(Fr(r).datas),function(e){return{type:e,data:Fr(r).datas[e]}})}function S8(r){return Fr(r).mainData===r}function Bk(r,e,t){Fr(r).datas={},M(e,function(n,a){x1(n,a,r,t)})}function x1(r,e,t,n){Fr(t).datas[e]=r,Fr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=m8,r.getLinkedDataAll=_8}var x8=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){ie(e)&&(n=t,t=e,e=null),e=e||{},Z(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),w1=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,v){var c=f.value;o=Math.max(o,H(c)?c.length:1),i.push(f);var h=new x8(mt(f.name,""),a);v?w8(h,v):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=Gf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new nr(l,t);return u.initData(i),n&&n(u),Nk({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function w8(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function xf(r,e,t){if(r&&pe(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(Z(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 Vk(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function b1(r,e){var t=Vk(r);return pe(t,e)>=0}function lp(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Vo="tree",b8=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new Ie(a,this,this.ecModel),o=w1.createTree(n,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return pt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lp(a,this),n.collapsed=!a.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Vo,e.layoutMode="box",e.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:N.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(qe),C8=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),T8=(function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new C8},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=q(n.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];t.moveTo(p[0],p[1]),h[f]=p[f],t.lineTo(h[0],h[1])}},e})(Ae),A8=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Vo,t._mainGroup=new oe,t}return e.prototype.init=function(t,n){this._controller=new ts(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),sp(t,a,this._controller,Mk(this.group),null);var u=this._data;i.diff(u).add(function(f){oA(i,f)&&sA(i,f,null,s,t)}).update(function(f,v){var c=u.getItemGraphicEl(v);if(!oA(i,f)){c&&uA(u,v,c,s,t);return}sA(i,f,c,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&uA(u,f,v,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){oi(this.group,Gn,n.coordinateSystem,null),Ik(t)&&this._updateNodeAndLinkScale(n)},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(v){var c=a.getItemLayout(v);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var o=[],s=[];Id(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=t.coordinateSystem=m1(t,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);oi(this.group,Gn,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=Ak(t.coordinateSystem,t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Vo,e})(Ue);function oA(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function sA(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:N.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=o.getLayout();i?(t=new Xf(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Oe(t,{x:p.x,y:p.y},a);var g=t.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),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||b,rotation:C==null?-S:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Wu(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ve(t).focus=I),M8(a,o,f,t,d,h,p,n),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Rf||hh(t.__edge,P)}})}function M8(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=n.__edge=new kf({shape:W0(f,v,c,a,a)})),Oe(p,{shape:W0(f,v,c,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new T8({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),Oe(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(le({strokeNoScale:!0,fill:null},d)),_t(p,l,"lineStyle"),Co(p),s.add(p))}function lA(r,e,t,n,a){var i=e.tree.root,o=zk(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);c&&(h==="curve"?ai(c,{shape:W0(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&ai(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}))}}function zk(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function uA(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=zk(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ai(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),M(i.children,function(u){lA(u,r,n,a,l)}),lA(i,r,n,a,l)}function W0(r,e,t,n,a){var i,o,s,l,u,f,v,c;if(r==="radial"){u=n.rawX,v=n.rawY,f=a.rawX,c=a.rawY;var h=Cu(u,v),d=Cu(u,v+(c-v)*t),p=Cu(f,c+(v-c)*t),g=Cu(f,c);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,v=n.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(i=u,o=v+(c-v)*t,s=f,l=c+(v-c)*t);return{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function D8(r,e,t){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();)e(i,t)}function au(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function I8(r,e){r.eachSeriesByType("tree",function(t){L8(t,e)})}function L8(r,e){var t=bt(r,e).refContainer,n=tt(r.getBoxLayoutParams(),t);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=iA(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=iA());var l=r.getData().tree.root,u=l.children[0];if(u){s8(l),D8(u,l8,s),l.hierNode.modifier=-u.hierNode.prelim,au(u,u8);var f=u,v=u,c=u;au(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),au(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=Cu(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+h+d),p=i/(c.depth-1||1),au(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/(v.getLayout().x+h+d),g=o/(c.depth-1||1),au(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 P8(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:Vn,subType:Vo,query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),y1(r,Vn,Vo)}var R8=wt(Vo,E8);function E8(r){r.eachSeriesByType(Vo,function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");F(s,o)})})}function k8(r){r.registerChartView(A8),r.registerSeriesModel(b8),r.registerLayout(I8),r.registerVisual(R8),P8(r)}var fA=["treemapZoomToNode","treemapRender","treemapMove"];function O8(r){for(var e=0;e<fA.length;e++)r.registerAction({type:fA[e],update:"updateView"},ot);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=xf(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=b1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Fk(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=s0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var N8=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};Gk(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ie({itemStyle:o},this,n);i=t.levels=B8(i,n);var l=U(i||[],function(v){return new Ie(v,s,n)},this),u=w1.createTree(a,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return pt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lp(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=K(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){Fk(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:N.size.l,top:N.size.xxxl,right:N.size.l,bottom:N.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:N.size.m,emptyItemWidth:25,itemStyle:{color:N.color.backgroundShade,textStyle:{color:N.color.secondary}},emphasis:{itemStyle:{color:N.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:N.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:N.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:[]},e})(qe);function Gk(r){var e=0;M(r.children,function(n){Gk(n);var a=n.value;H(a)&&(a=a[0]),e+=a});var t=r.value;H(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}function B8(r,e){var t=Ye(e.get("color")),n=Ye(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;M(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=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var V8=8,vA=8,Qg=5,z8=(function(){function r(e){this.group=new oe,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.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"]),v=bt(e,t).refContainer,c={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(c,v);this._prepare(n,h,u),this._renderContent(e,h,d,s,l,u,f,a),Hd(o,c,v)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=mt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+V8*2,t.emptyItemWidth);t.totalWidth+=s+vA,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,l){for(var u=0,f=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=t.totalWidth,h=t.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;c>n.width&&(c-=m-f,m=f,_=null);var S=new Zt({shape:{points:F8(u,0,m,v,p===h.length-1,p===0)},style:le(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Re({style:Ze(o,{text:_})}),textConfig:{position:"inside"},z2:wl*1e4,onclick:xe(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ze(s,{text:_}),S.ensureState("emphasis").style=d,et(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),G8(S,e,y),u+=m+vA}},r.prototype.remove=function(){this.group.removeAll()},r})();function F8(r,e,t,n,a,i){var o=[[a?r:r-Qg,e],[r+t,e],[r+t,e+n],[a?r:r-Qg,e+n]];return!i&&o.splice(2,0,[r+t+Qg,e+n/2]),!a&&o.push([r,e+n/2]),o}function G8(r,e,t){ve(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&lp(t,e)}}var H8=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._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 U8(){return new H8}var wf=Math.max,Zh=Math.min,C1=M,Hk=["itemStyle","borderWidth"],W8=["itemStyle","gapWidth"],$8=["upperLabel","show"],Y8=["upperLabel","height"];const X8={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=bt(r,t).refContainer,o=tt(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=xf(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),c=Vk(v);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,Q8(r,u,v,o)):f?(h=!0,F({},f)):F({},o);if(h){var p=Yk(o,d);p=Xk(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};v.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};v.setLayout(m),Uk(v,y,!1,0),m=v.getLayout(),C1(c,function(S,x){var w=(c[x+1]||v).getValue();S.setLayout(F({dataExtent:[w,w],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(e7(o,f,u),!0),r.setLayoutInfo(o),Wk(_,new se(-o.x,-o.y,t.getWidth(),t.getHeight()),c,v,0)}};function Uk(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(Hk),u=s.get(W8)/2,f=$k(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),a=wf(a-2*c,0),i=wf(i-c-h,0);var d=a*i,p=Z8(r,s,d,e,t,n);if(p.length){var g={x:c,y:h,width:a,height:i},y=Zh(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=J8(_,y,e.squareRatio);b<=m?(S++,m=b):(_.area-=_.pop().getLayout().area,cA(_,y,g,u,!1),y=Zh(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&cA(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var S=0,x=p.length;S<x;S++)Uk(p[S],e,t,n+1)}}}function Z8(r,e,t,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=ze(o,function(h){return!h.isRemoved()}),j8(o,s);var u=K8(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=q8(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function q8(r,e,t,n,a){if(!n)return t;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/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function j8(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function K8(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=Ot(),C1(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function J8(r,e,t){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=e*e*t;return l?wf(u*n/l,l/(u*a)):1/0}function cA(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=wf(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=v===c-1||y<p?y:p,_=d[l[i]]=wf(m-2*n,0);d[s[o]]=t[s[o]]+Zh(n,g/2),d[s[i]]=u+Zh(n,_/2),u+=m,h.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function Q8(r,e,t,n){var a=(e||{}).node,i=n.width,o=n.height,s=F({},n);if(!a||a===t)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var v=0,c=l.children,h=0,d=c.length;h<d;h++)v+=c[h].getValue();var p=a.getValue();if(p===0)return s;f*=v/p;var g=l.getModel(),y=g.get(Hk),m=Math.max(y,$k(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>uh&&(f=uh),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function e7(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.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 Wk(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new se(e.x-i.x,e.y-i.y,e.width,e.height);C1(r.viewChildren||[],function(u){Wk(u,l,t,n,a+1)})}}function $k(r){return r.get($8)?r.get(Y8):0}function Yk(r,e){return e.width/r.width||e.height/r.height||1}function Xk(r,e){return g1(r,e.get("scaleLimit",!0))}var $0=oe,hA=be,dA=3,pA="label",gA="upperLabel",t7=wl*10,r7=wl*2,n7=wl*3,qi=bo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),yA=function(r){var e=qi(r);return e.stroke=e.fill=e.lineWidth=null,e},qh=me(),a7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=iu(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(pe(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=xf(i,s,t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,h);p&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new $0,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=iu(),l=iu(),u=this._storage,f=[];function v(g,y,m,_){return i7(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var c=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:p};function h(g,y,m,_,S){_?(y=g,M(g,function(b,T){!b.isRemoved()&&w(T,T)})):new ga(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,D=v(C,A,m,S);D&&h(C&&C.viewChildren||[],A&&A.viewChildren||[],D,_,S+1)}}function d(g){var y=iu();return g&&M(g,function(m,_){var S=y[_];M(m,function(x){x&&(S.push(x),qh(x).willDelete=!0)})}),y}function p(){M(c,function(g){M(g,function(y){y.parent&&y.parent.remove(y)})}),M(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,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=U8();M(n.willDeleteEls,function(v,c){M(v,function(h,d){if(!h.invisible){var p=h.parent,g,y=qh(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=c==="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)}})}),M(this._storage,function(v,c){M(v,function(h,d){var p=n.lastsForAnimation[c][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=F({},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(j(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new ts(t.getZr()),i.on("pan",j(this._onPan,this)),i.on("zoom",j(this._onZoom,this))),i.enable(a.get("roam"),{api:t,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}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>dA||Math.abs(t.dy)>dA)){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+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.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,v=Yk(f,l),c=v*i;c=Xk(c,o);var h=c/v;n-=f.x,a-=f.y;var d=nt();kn(d,d,[-n,-a]),F_(d,d,[h,h]),kn(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}})}},e.prototype._initEvents=function(t){var n=this;t.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&&_h(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new z8(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(b1(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=iu(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,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(t,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},e.type="treemap",e})(Ue);function iu(){return{nodeGroup:[],background:[],content:[]}}function i7(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.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=c.getModel("itemStyle"),b=c.getModel(["emphasis","itemStyle"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),A=w.get("borderRadius")||0,D=ee("nodeGroup",$0);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),qh(D).nodeWidth=h,qh(D).nodeHeight=d,f.isAboveViewRoot)return D;var L=ee("background",hA,u,r7);L&&z(D,L,x&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Ku(D)&&io(D,!1),L&&(io(L,!E),v.setItemGraphicEl(o.dataIndex,L),qm(L,O,R));else{var k=ee("content",hA,u,n7);k&&G(D,k),L.disableMorphing=!0,L&&Ku(L)&&io(L,!1),io(D,!E),v.setItemGraphicEl(o.dataIndex,D);var V=c.getShallow("cursor");V&&k.attr("cursor",V),qm(D,O,R)}return D;function z(ce,te,ge){var re=ve(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"),We=he.stroke,Pe=yA(w);Pe.fill=We;var Fe=qi(b);Fe.fill=b.get("borderColor");var $e=qi(T);$e.fill=T.get("borderColor");var ct=qi(C);if(ct.fill=C.get("borderColor"),ge){var pr=h-2*p;X(te,We,he.opacity,{x:p,y:0,width:pr,height:S})}else te.removeTextContent();te.setStyle(Pe),te.ensureState("emphasis").style=Fe,te.ensureState("blur").style=$e,te.ensureState("select").style=ct,Co(te)}ce.add(te)}function G(ce,te){var ge=ve(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 We=o.getVisual("style"),Pe=We.fill,Fe=yA(w);Fe.fill=Pe,Fe.decal=We.decal;var $e=qi(b),ct=qi(T),pr=qi(C);X(te,Pe,We.opacity,null),te.setStyle(Fe),te.ensureState("emphasis").style=$e,te.ensureState("blur").style=ct,te.ensureState("select").style=pr,Co(te)}ce.add(te)}function W(ce){!ce.invisible&&i.push(ce)}function X(ce,te,ge,re){var he=c.getModel(re?gA:pA),We=mt(c.get("name"),null),Pe=he.getShallow("show");Mt(ce,St(c,re?gA:pA),{defaultText:Pe?We:null,inheritColor:te,defaultOpacity:ge,labelFetcher:r,labelDataIndex:o.dataIndex});var Fe=ce.getTextContent();if(Fe){var $e=Fe.style,ct=md($e.padding||0);re&&(ce.setTextConfig({layoutRect:re}),Fe.disableLabelLayout=!0),Fe.beforeUpdate=function(){var sr=Math.max((re?re.width:ce.shape.width)-ct[1]-ct[3],0),gi=Math.max((re?re.height:ce.shape.height)-ct[0]-ct[2],0);($e.width!==sr||$e.height!==gi)&&Fe.setStyle({width:sr,height:gi})},$e.truncateMinChar=2,$e.lineOverflow="truncate",Y($e,re,f);var pr=Fe.getState("emphasis");Y(pr?pr.style:null,re,f)}}function Y(ce,te,ge){var re=ce?ce.text:null;if(!te&&ge.isLeafRoot&&re!=null){var he=r.get("drillDownIcon",!0);ce.text=he?he+" "+re:re}}function ee(ce,te,ge,re){var he=m!=null&&t[ce][m],We=a[ce];return he?(t[ce][m]=null,ye(We,he)):g||(he=new te,he instanceof Ur&&(he.z2=o7(ge,re)),Ne(We,he)),e[ce][y]=he}function ye(ce,te){var ge=ce[y]={};te instanceof $0?(ge.oldX=te.x,ge.oldY=te.y):ge.oldShape=F({},te.shape)}function Ne(ce,te){var ge=ce[y]={},re=o.parentNode,he=te instanceof oe;if(re&&(!n||n.direction==="drillDown")){var We=0,Pe=0,Fe=a.background[re.getRawIndex()];!n&&Fe&&Fe.oldShape&&(We=Fe.oldShape.width,Pe=Fe.oldShape.height),he?(ge.oldX=0,ge.oldY=Pe):ge.oldShape={x:We,y:Pe,width:0,height:0}}ge.fadein=!he}}function o7(r,e){return r*t7+e}var bf=M,s7=fe,jh=-1,At=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=ae(e);this.type=n,this.mappingMethod=t,this._normalizeData=f7[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(ey(a),l7(a)):t==="category"?a.categories?u7(a):ey(a,!0):(Yt(t!=="linear"||a.dataExtent),ey(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return j(this._normalizeData,this)},r.listVisualTypes=function(){return De(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){fe(e)?M(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=H(e)?[]:fe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&bf(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(H(e))e=e.slice();else if(s7(e)){var t=[];bf(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Z(l)&&l===e+"")return o;n&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Kv(v[1],e,f[1]))return o}else if(f[1]===1/0){if(Kv(v[0],f[0],e))return o}else if(Kv(v[0],f[0],e)&&Kv(v[1],e,f[1]))return o;n&&c(f[0],o),n&&c(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function c(h,d){var p=Math.abs(h-e);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:ou("color"),getColorMapper:function(){var e=this.option;return j(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Tu.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Dp(t,e.parsedVisual,a),i?a:Tn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Tn(Dp(e,this.option.parsedVisual),"rgba")},category:Tu,piecewise:function(e,t){var n=X0.call(this,t);return n==null&&(n=Tn(Dp(e,this.option.parsedVisual),"rgba")),n},fixed:ji}},colorHue:jv(function(e,t){return qa(e,t)}),colorSaturation:jv(function(e,t){return qa(e,null,t)}),colorLightness:jv(function(e,t){return qa(e,null,null,t)}),colorAlpha:jv(function(e,t){return rh(e,t)}),decal:{applyVisual:ou("decal"),_normalizedToVisual:{linear:null,category:Tu,piecewise:null,fixed:null}},opacity:{applyVisual:ou("opacity"),_normalizedToVisual:Y0([0,1])},liftZ:{applyVisual:ou("liftZ"),_normalizedToVisual:{linear:ji,category:ji,piecewise:ji,fixed:ji}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:mA,category:Tu,piecewise:function(e,t){var n=X0.call(this,t);return n==null&&(n=mA.call(this,e)),n},fixed:ji}},symbolSize:{applyVisual:ou("symbolSize"),_normalizedToVisual:Y0([0,1])}},r})();function l7(r){var e=r.pieceList;r.hasSpecialVisual=!1,M(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function u7(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(bf(e,function(o,s){t[o]=s}),!H(n)){var a=[];fe(n)?bf(n,function(o,s){var l=t[s];a[l??jh]=o}):a[jh]=n,n=Zk(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function ey(r,e){var t=r.visual,n=[];fe(t)?bf(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),Zk(r,n)}function jv(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Y0([0,1])}}function mA(r){var e=this.option.visual;return e[Math.round(Be(r,[0,1],[0,e.length-1],!0))]||{}}function ou(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Tu(r){var e=this.option.visual;return e[this.option.loop&&r!==jh?r%e.length:r]}function ji(){return this.option.visual[0]}function Y0(r){return{linear:function(e){return Be(e,r,this.option.visual,!0)},category:Tu,piecewise:function(e,t){var n=X0.call(this,t);return n==null&&(n=Be(e,r,this.option.visual,!0)),n},fixed:ji}}function X0(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=At.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function Zk(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var n=hr(t);return n||[0,0,0,1]})),e}var f7={linear:function(r){return Be(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=At.findPieceIndex(r,e,!0);if(t!=null)return Be(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??jh},fixed:ot};function Kv(r,e,t){return r?e<=t:e<t}var v7="itemStyle",qk=me();const c7={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||jk(t,{},r.getViewRoot().getAncestors(),r)}};function jk(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(v7),l=h7(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),c;v!=null&&(c=_A(l),f=d7(v,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=_A(l),u.fill=c;else{var d=p7(r,a,i,s,l,h);M(h,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=g7(a,l,p,g,d,n);jk(p,y,t,n)}})}}}function h7(r,e,t){var n=F({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function _A(r){var e=ty(r,"color");if(e){var t=ty(r,"colorAlpha"),n=ty(r,"colorSaturation");return n&&(e=qa(e,null,null,n)),t&&(e=rh(e,t)),e}}function d7(r,e){return e!=null?qa(e,null,null,r):null}function ty(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function p7(r,e,t,n,a,i){if(!(!i||!i.length)){var o=ry(e,"color")||a.color!=null&&a.color!=="none"&&(ry(e,"colorAlpha")||ry(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new At(v);return qk(c).drColorMappingBy=f,c}}}function ry(r,e){var t=r.get(e);return H(t)&&t.length?{name:e,range:t}:null}function g7(r,e,t,n,a,i){var o=F({},e);if(a){var s=a.type,l=s==="color"&&qk(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function y7(r){r.registerSeriesModel(N8),r.registerChartView(a7),r.registerVisual(c7),r.registerLayout(X8),O8(r)}function ms(r){return"_EC_"+r}var m7=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(!n[ms(e)]){var a=new Ki(e,t);return a.hostGraph=this,this.nodes.push(a),n[ms(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[ms(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(Ee(e)&&(e=this.nodes[e]),Ee(t)&&(t=this.nodes[t]),e instanceof Ki||(e=a[ms(e)]),t instanceof Ki||(t=a[ms(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Kk(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Ki&&(e=e.id),t instanceof Ki&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){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&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof Ki||(t=this._nodesMap[ms(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(a,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=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=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.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=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),Ki=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,d=void 0;v<c;v++)h=f[v],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),Kk=(function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),n.push(f.node1))}for(i=0;i<a.length;){var c=a[i];i++,t.set(c.dataIndex,!0);for(var h=c.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=c.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function Jk(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}xt(Ki,Jk("hostGraph","data"));xt(Kk,Jk("hostGraph","edgeData"));function T1(r,e,t,n,a){for(var i=new m7(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<e.length;o++){var f=e[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(tr(mt(f.id,null),v+" > "+c)),u++)}var h=t.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=wa(r,t);else{var p=Vf.get(h),g=p?p.dimensions||[]:[];pe(g,"value")<0&&g.concat(["value"]);var y=Gf(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new nr(y,t),d.initData(r)}var m=new nr(["value"],t);return m.initData(l,s),a&&a(d,m),Nk({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Z0="-->",up=function(r){return r.get("autoCurveness")||null},Qk=function(r,e){var t=up(r),n=20,a=[];if(Ee(t))n=t;else if(H(t)){r.__curvenessList=t;return}e>n&&(n=e);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},Cf=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(Z0)},eO=function(r){var e=r.split(Z0);return[e[0],e[2],e[1]].join(Z0)},_7=function(r,e){var t=Cf(r.node1,r.node2,e);return e.__edgeMap[t]},S7=function(r,e){var t=q0(Cf(r.node1,r.node2,e),e),n=q0(Cf(r.node2,r.node1,e),e);return t+n},q0=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function x7(r){up(r)&&(r.__curvenessList=[],r.__edgeMap={},Qk(r))}function w7(r,e,t,n){if(up(t)){var a=Cf(r,e,t),i=t.__edgeMap,o=i[eO(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 A1(r,e,t,n){var a=up(e),i=H(a);if(!a)return null;var o=_7(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=S7(r,e);Qk(e,u),r.lineStyle=r.lineStyle||{};var f=Cf(r.node1,r.node2,e),v=e.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=eO(f),d=q0(h,e),p=v[s+d+c];return n?i?a&&a[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:v[s+d+c]}var or="graph",b7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new El(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),So(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){x7(this);var s=T1(i,a,this,!0,l);return M(s.edges,function(u){w7(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 v=Ie.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,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}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),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 v=RP({series:this,dataIndex:t,multipleSeries:n});return v},e.prototype._updateCategoriesData=function(){var t=U(this.option.categories||[],function(a){return a.value!=null?a:F({value:0},a)}),n=new nr(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return xk(t)&&t},e.type="series."+or,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:N.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(qe);function Jv(r){return r instanceof Array||(r=[r,r]),r}var C7=wt(or,T7);function T7(r){r.eachSeriesByType(or,function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Jv(e.get("edgeSymbol")),i=Jv(e.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",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Jv(s.getShallow("symbol",!0)),f=Jv(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(o,"style");switch(F(c,v),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.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 tO(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),M1(t,r)}}function M1(r,e){r.eachEdge(function(t,n){var a=xr(t.getModel().get(["lineStyle","curveness"]),-A1(t,e,n,!0),0),i=ra(t.node1.getLayout()),o=ra(t.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]),t.setLayout(s)})}var A7=wt(or,M7);function M7(r,e){r.eachSeriesByType(or,function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];M(a.dimensions,function(c){o=o.concat(i.mapDimensionsAll(c))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}M1(i.graph,t)}else(!n||n==="none")&&tO(t)})}function Au(r){var e=r.coordinateSystem;return xk(e)?Ak(e,r):1}function Mu(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var SA=Math.PI,ny=[];function D1(r,e,t,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,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(t){var c=a.pointToData(n),h=c[0],d=c[1],p=[h-l,d-u];gl(p,p),bc(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);rO(t,g,l,u)}D7[e](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=xr(y.getModel().get(["lineStyle","curveness"]),A1(y,r,m),0),S=ra(y.node1.getLayout()),x=ra(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 D7={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var v=f.getValue("value"),c=u*(l?v:1)/2;s+=c,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=c})},symbolSize:function(r,e,t,n,a,i,o){var s=0;ny.length=o;var l=Au(r);e.eachNode(function(v){var c=Mu(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/n);isNaN(h)&&(h=SA/2),ny[v.dataIndex]=h,s+=h*2});var u=(2*SA-s)/o/2,f=0;e.eachNode(function(v){var c=u+ny[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=c})}};function rO(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");F(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var I7=wt(or,L7);function L7(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&D1(e,"symbolSize")})}var _s=dm;function P7(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<n.length;f++){var v=n[f];v.p||(v.p=Ho(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=ra(v.p),v.edges=null}var c=t.friction==null?.6:t.friction,h=c,d,p;return{warmUp:function(){h=c*.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;no(y,w.p,x.p);var b=pm(y)-S.d,T=w.w/(x.w+w.w);isNaN(T)&&(T=0),gl(y,y),!x.fixed&&_s(x.p,x.p,y,T*b*h),!w.fixed&&_s(w.p,w.p,y,-(1-T)*b*h)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(no(y,l,C.p),_s(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var x=n[_],A=_+1;A<m;A++){var w=n[A];no(y,w.p,x.p);var b=pm(y);b===0&&(Ya(y,Math.random()-.5,Math.random()-.5),b=1);var D=(x.rep+w.rep)/b/b;!x.fixed&&_s(x.pp,x.pp,y,D),!w.fixed&&_s(w.pp,w.pp,y,-D)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(no(L,C.p,C.pp),_s(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 R7=wt(or,E7);function E7(r){r.eachSeriesByType(or,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?tO(e):l==="circular"&&D1(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=H(v)?v:[v,v],d=H(c)?c:[c,c];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),w=Be(_,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=Be(_,f,d);isNaN(w)&&(w=(d[0]+d[1])/2);var b=x.getModel(),T=xr(x.getModel().get(["lineStyle","curveness"]),-A1(x,e,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:w,curveness:T,ignoreForceLayout:b.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=P7(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,D=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],D),+T.curveness&&(L[2]=[(A[0]+D[0])/2-(A[1]-D[1])*T.curveness,(A[1]+D[1])/2-(D[0]-A[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function k7(r,e,t){var n=bt(r,e),a=F(r.getBoxLayoutParams(),{aspect:t}),i=tt(a,n.refContainer);return J2(r,i,t)}function O7(r,e){var t=[];return r.eachSeriesByType("graph",function(n){zf({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=[];Id(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=k7(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],c=l[1]-s[1],h=m1(n,e,s[0],s[1],v,c,f);return t.push(h),h}}),t}var xA=dt.prototype,ay=kf.prototype,nO=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(nO);function iy(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var aO=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new nO},e.prototype.buildPath=function(t,n){iy(n)?xA.buildPath.call(this,t,n):ay.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return iy(this.shape)?xA.pointAt.call(this,t):ay.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=iy(n)?[n.x2-n.x1,n.y2-n.y1]:ay.tangentAt.call(this,t);return gl(a,a)},e})(Ae),oy=["fromSymbol","toSymbol"];function wA(r){return"_"+r+"Type"}function bA(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Il(a),u=Ko(o||0,l);return n+l+u+(i||"")+(s||"")}function CA(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Il(a),u=Ko(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 N7(r){var e=new aO({name:"line",subPixelOptimize:!0});return j0(e.shape,r),e}function j0(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var I1=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),l=N7(o);l.shape.percent=0,Ke(l,{z2:Q(s,0),shape:{percent:1}},i,n),this.add(l),M(oy,function(u){var f=CA(u,t,n);this.add(f),this[wA(u)]=bA(u,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};j0(l.shape,s),Oe(o,l,i,n),M(oy,function(u){var f=bA(u,t,n),v=wA(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=CA(u,t,n);this.add(c)}this[v]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,v=a&&a.emphasisDisabled,c=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var d=t.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),v=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),f=St(d)}var g=t.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,M(oy,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 D=A.style||{},L=b.ensureState(C),I=L.style||(L.style={});D.stroke!=null&&(I[b.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}b.markRedraw()}},this);var m=i.getRawValue(n);Mt(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,b){return i.getFormattedLabel(w,b,t.dataType)}},inheritColor:y||N.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?t.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");H(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),et(this,c,h,v)},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e.prototype.updateLayout=function(t,n){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");j0(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.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=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),c=no([],v,f);gl(c,c);function h(A,D){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(D);A.attr("rotation",(D===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(v),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]);v[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=c[0]*y+v[0],i.y=c[1]*m+v[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[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+v[0],i.y=v[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})}},e})(oe),L1=(function(){function r(e){this.group=new oe,this._LineCtor=e||I1}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=TA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=TA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function a(l){!l.isGroup&&!B7(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Tl)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(sy(o)){var s=new this._LineCtor(t,i,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){di(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(sy(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!sy(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function B7(r){return r.animators&&r.animators.length>0}function TA(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:St(e)}}function AA(r){return isNaN(r[0])||isNaN(r[1])}function sy(r){return r&&!AA(r[0])&&!AA(r[1])}var ly=[],uy=[],fy=[],Ss=Lt,vy=fo,MA=Math.abs;function DA(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){ly[0]=Ss(n[0],a[0],i[0],f),ly[1]=Ss(n[1],a[1],i[1],f);var v=MA(vy(ly,e)-l);v<o&&(o=v,s=f)}for(var c=0;c<32;c++){var h=s+u;uy[0]=Ss(n[0],a[0],i[0],s),uy[1]=Ss(n[1],a[1],i[1],s),fy[0]=Ss(n[0],a[0],i[0],h),fy[1]=Ss(n[1],a[1],i[1],h);var v=vy(uy,e)-l;if(MA(v)<.01)break;var d=vy(fy,e)-l;u/=2,v<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function cy(r,e){var t=[],n=$u,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[ra(u[0]),ra(u[1])],u[2]&&u.__original.push(ra(u[2])));var c=u.__original;if(u[2]!=null){if(Ht(a[0],c[0]),Ht(a[1],c[2]),Ht(a[2],c[1]),f&&f!=="none"){var h=Mu(s.node1),d=DA(a,c[0],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],d,t),a[0][1]=t[3],a[1][1]=t[4]}if(v&&v!=="none"){var h=Mu(s.node2),d=DA(a,c[1],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],d,t),a[1][1]=t[1],a[2][1]=t[2]}Ht(u[0],a[0]),Ht(u[1],a[2]),Ht(u[2],a[1])}else{if(Ht(i[0],c[0]),Ht(i[1],c[1]),no(o,i[1],i[0]),gl(o,o),f&&f!=="none"){var h=Mu(s.node1);dm(i[0],i[0],o,h*e)}if(v&&v!=="none"){var h=Mu(s.node2);dm(i[1],i[1],o,-h*e)}Ht(u[0],i[0]),Ht(u[1],i[1])}})}var iO=me();function V7(r){if(r)return iO(r).bridge}function IA(r,e){r&&(iO(r).bridge=e)}var z7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=or,t}return e.prototype.init=function(t,n){var a=new Zf,i=new L1,o=this.group,s=new oe;this._controller=new ts(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},e.prototype.render=function(t,n,a){var i=this,o=Yh(t),s=!1;this._model=t,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,v=this._lineDraw;o&&oi(l,Gn,o,this._firstRender?null:t),cy(t.getGraph(),Au(t));var c=t.getData();f.updateData(c);var h=t.getEdgeData();v.updateData(h),this._updateNodeAndLinkScale(),o&&sp(t,a,this._controller,function(S,x,w){return t.coordinateSystem.containPoint([x,w])},null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=t.get("layout");c.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),c.setItemLayout(x,[w.x,w.y]);break;case"circular":c.setItemLayout(x,[w.x,w.y]),S.setLayout({fixed:!0},!0),D1(t,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(x,[w.x,w.y]),M1(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),w.setDraggable(T,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ve(w).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),w=S.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(ve(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){rO(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,n,a){var i=this,o=!1;(function s(){t.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())})})()},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=Yh(n);!this._active||!i||(oi(this._mainGroup,Gn,i,null),Ik(t)&&(this._updateNodeAndLinkScale(),cy(n.getGraph(),Au(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=Au(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(cy(t.getGraph(),Au(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.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()},e.prototype._getThumbnailInfo=function(){var t=this._model,n=t.coordinateSystem;if(n.type==="view"){var a=V7(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(Wh(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new oe,l=a.group.children(),u=i.group.children(),f=new oe,v=new oe;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var h=l[c],d=h.children()[0],p=h.x,g=h.y,y=ae(d.shape),m=F(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});v.add(S)}for(var c=0;c<u.length;c++){var h=u[c],x=h.children()[0],_=ae(x.style),m=ae(x.shape),w=new aO({style:_,shape:m,z2:151});f.add(w)}o.bridge.renderContent({api:n,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Wh(null,o.coordSys)})}},e.type=or,e})(Ue),F7=wt(or,G7);function G7(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(or,function(t){var n=t.getCategoriesData(),a=t.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<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}var H7=wt(or,U7);function U7(r){var e={};r.eachSeriesByType(or,function(t){var n=t.getCategoriesData(),a=t.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=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);c!=null&&n.setItemVisual(o,f[v],c)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Z(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");F(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)a.setItemVisual(o,v[c],n.getItemVisual(l,v[c]))}})})}function W7(r){r.registerChartView(z7),r.registerSeriesModel(b7),r.registerProcessor(F7),r.registerVisual(H7),r.registerVisual(C7),r.registerLayout(A7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,I7),r.registerLayout(R7),r.registerCoordinateSystem("graphView",{dimensions:ip.dimensions,create:O7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ot),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ot),y1(r,Vn,or)}var Tf="chord",$7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new El(j(this.getData,this),j(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=T1(i,a,this,!0,s);return o.data}function s(l,u){var f=Ie.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(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}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),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})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series."+Tf,e.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}}},e})(qe),LA=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;ve(i).dataType="node",i.z2=2;var o=new Re;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=t.getItemLayout(n),c=F(Cn(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):Oe(h,{shape:c},l,n);var d=F(Cn(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(t.getItemVisual(n,"style")),_t(o,u),this._updateLabel(l,u,s),t.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"))},e.prototype._updateLabel=function(t,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 v=St(n),c=a.getVisual("style");Mt(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,w,b){return t.getFormattedLabel(m,_,"node",x,xr(w,v.normal&&v.normal.get("formatter"),n.get("name")),b)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.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}})},e})(Xt),Y7=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;return ve(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.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]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.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]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),v=n.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),d=h.get("focus"),p=F(Cn(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),PA(g,l,t,c)):(Wr(g),PA(g,l,t,c),Oe(g,{shape:p},s,a)),et(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),_t(g,v,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},e})(Ae);function PA(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(Z(l)&&Z(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(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 bl(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var X7=Math.PI/180,Z7=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Tf,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*X7;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new LA(i,f,l);ve(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&na(c,t,v);return}c?c.updateData(i,f,l):c=new LA(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&na(v,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=q(u[0],a.getWidth()),this.group.originY=q(u[1],a.getHeight()),Ke(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new Y7(a,i,l,n);ve(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&&na(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=Tf,e})(Ue),hy=Math.PI/180,q7=wt(Tf,j7);function j7(r,e){r.eachSeriesByType(Tf,function(t){K7(t,e)})}function K7(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=K2(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*hy,0),c=Math.max((r.get("minAngle")||0)*hy,0),h=-r.get("startAngle")*hy,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Ld(y,!p);var m=y[0],_=y[1],S=_-m,x=t.getSum("value")===0&&a.getSum("value")===0,w=[],b=0;n.eachEdge(function(k){var V=x?1:k.getValue("value");x&&(V>0||c)&&(b+=2);var z=k.node1.dataIndex,G=k.node2.dataIndex;w[z]=(w[z]||0)+V,w[G]=(w[G]||0)+V});var T=0;if(n.eachNode(function(k){var V=k.getValue("value");isNaN(V)||(w[k.dataIndex]=Math.max(V,w[k.dataIndex]||0)),!x&&(w[k.dataIndex]>0||c)&&b++,T+=w[k.dataIndex]||0}),!(b===0||T===0)){v*b>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*b)/b)),(v+c)*b>=Math.abs(S)&&(c=(Math.abs(S)-v*b)/b);var C=(S-v*b*g)/T,A=0,D=0,L=0;n.eachNode(function(k){var V=w[k.dataIndex]||0,z=C*(T?V:1)*g;Math.abs(z)<c?A+=c-Math.abs(z):(D+=Math.abs(z)-c,L+=Math.abs(z)),k.setLayout({angle:z,value:V})});var I=!1;if(A>D){var P=A/D;n.eachNode(function(k){var V=k.getLayout().angle;Math.abs(V)>=c?k.setLayout({angle:V*P,ratio:P},!0):k.setLayout({angle:c,ratio:c===0?1:V/c},!0)})}else n.eachNode(function(k){if(!I){var V=k.getLayout().angle,z=Math.min(V/L,1),G=z*A;V-G<c&&(I=!0)}});var R=A;n.eachNode(function(k){if(!(R<=0)){var V=k.getLayout().angle;if(V>c&&c>0){var z=I?1:Math.min(V/L,1),G=V-c,W=Math.min(G,Math.min(R,A*z));R-=W,k.setLayout({angle:V-W,ratio:(V-W)/V},!0)}else c>0&&k.setLayout({angle:c,ratio:V===0?1:c/V},!0)}});var E=m,O=[];n.eachNode(function(k){var V=Math.max(k.getLayout().angle,c);k.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:E,endAngle:E+V*g,clockwise:p},!0),O[k.dataIndex]=E,E+=(V+v)*g}),n.eachEdge(function(k){var V=x?1:k.getValue("value"),z=C*(T?V:1)*g,G=k.node1.dataIndex,W=O[G]||0,X=Math.abs((k.node1.getLayout().ratio||1)*z),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=k.node2.dataIndex,ce=O[Ne]||0,te=Math.abs((k.node2.getLayout().ratio||1)*z),ge=ce+te*g,re=[s+f*Math.cos(ce),l+f*Math.sin(ce)],he=[s+f*Math.cos(ge),l+f*Math.sin(ge)];k.setLayout({s1:ee,s2:ye,sStartAngle:W,sEndAngle:Y,t1:re,t2:he,tStartAngle:ce,tEndAngle:ge,cx:s,cy:l,r:f,value:V,clockwise:p}),O[G]=Y,O[Ne]=ge})}}}function J7(r){r.registerChartView(Z7),r.registerSeriesModel($7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,q7),r.registerProcessor(Kf("chord"))}var Q7=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),e9=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Q7},e.prototype.buildPath=function(t,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,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e})(Ae);function t9(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=q(t[0],e.getWidth()),s=q(t[1],e.getHeight()),l=q(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Qv(r,e){var t=r==null?"":r+"";return e&&(Z(e)?t=e.replace("{value}",t):ie(e)&&(t=e(r))),t}var r9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=t9(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),h=c?Gh:Xt,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];Ld(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(),M(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(t,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,T,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var v=this.group,c=o.cx,h=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),w=q(y.get("length"),d),b=q(m.get("length"),d),T=s,C=(l-s)/S,A=C/x,D=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 O=I?I+f:f,k=new dt({shape:{x1:P*(d-O)+c,y1:R*(d-O)+h,x2:P*(d-w-O)+c,y2:R*(d-w-O)+h},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(E/S)}),v.add(k)}if(_.get("show")){var O=_.get("distance")+I,V=Qv(ke(E*(g-p)/S+p,uz),_.get("formatter")),z=i(E/S),G=P*(d-w-O)+c,W=R*(d-w-O)+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?v.add(new Re({style:Ze(_,{text:V,x:G,y:W,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0})):v.add(new Re({style:Ze(_,{text:V,x:G,y:W,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:G,originY:W,rotation:Y}))}if(m.get("show")&&E!==S){var O=m.get("distance");O=O?O+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-O)+c,y1:R*(d-O)+h,x2:P*(d-b-O)+c,y2:R*(d-b-O)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((E+ee/x)/S)}),v.add(ye),T+=A}T-=A}else T+=C}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),w=[S,x],b=[s,l];function T(A,D){var L=m.getItemModel(A),I=L.getModel("pointer"),P=q(I.get("width"),o.r),R=q(I.get("length"),o.r),E=t.get(["pointer","icon"]),O=I.get("offsetCenter"),k=q(O[0],o.r),V=q(O[1],o.r),z=I.get("keepAspect"),G;return E?G=gt(E,k-P/2,V-R,P,R,null,z):G=new e9({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:V}}),G.rotation=-(D+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function C(A,D){var L=g.get("roundCap"),I=L?Gh:Xt,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(A+1)*R,O=P?o.r:o.r-A*R,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return P&&(k.z2=Be(m.get(_,A),[S,x],[100,0],!0)),k}(y||p)&&(m.diff(c).add(function(A){var D=m.get(_,A);if(p){var L=T(A,s);Ke(L,{rotation:-((isNaN(+D)?b[0]:Be(D,w,b,!0))+Math.PI/2)},t),v.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),P=g.get("clip");Ke(I,{shape:{endAngle:Be(D,w,b,P)}},t),v.add(I),$m(t.seriesIndex,m.dataType,A,I),d[A]=I}}).update(function(A,D){var L=m.get(_,A);if(p){var I=c.getItemGraphicEl(D),P=I?I.rotation:s,R=T(A,P);R.rotation=P,Oe(R,{rotation:-((isNaN(+L)?b[0]:Be(L,w,b,!0))+Math.PI/2)},t),v.add(R),m.setItemGraphicEl(A,R)}if(y){var E=h[D],O=E?E.shape.endAngle:s,k=C(A,O),V=g.get("clip");Oe(k,{shape:{endAngle:Be(L,w,b,V)}},t),v.add(k),$m(t.seriesIndex,m.dataType,A,k),d[A]=k}}).execute(),m.each(function(A){var D=m.getItemModel(A),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled"),E=i(Be(m.get(_,A),w,[0,1],!0));if(p){var O=m.getItemGraphicEl(A),k=m.getItemVisual(A,"style"),V=k.fill;if(O instanceof Rt){var z=O.style;O.useStyle(F({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},k))}else O.useStyle(k),O.type!=="pointer"&&O.setColor(V);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,_t(O,D),et(O,I,P,R)}if(y){var G=d[A];G.useStyle(m.getItemVisual(A,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.style.fill==="auto"&&G.setStyle("fill",E),G.z2EmphasisLift=0,_t(G,D),et(G,I,P,R)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var a=t.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+q(l[0],n.r),n.cy-o/2+q(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)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),c=new oe,h=[],d=[],p=t.isAnimationEnabled(),g=t.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(Be(_,[f,v],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var b=w.get("offsetCenter"),T=o.cx+q(b[0],o.r),C=o.cy+q(b[1],o.r),A=h[y];A.attr({z2:g?0:2,style:Ze(w,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(A)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+q(L[0],o.r),P=o.cy+q(L[1],o.r),R=q(D.get("width"),o.r),E=q(D.get("height"),o.r),O=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,A=d[y],k=D.get("formatter");A.attr({z2:g?0:2,style:Ze(D,{x:I,y:P,text:Qv(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),T2(A,{normal:D},_,function(z){return Qv(z,k)}),p&&A2(A,y,l,t,{getFormattedLabel:function(z,G,W,X,Y,ee){return Qv(ee?ee.interpolatedValue:_,k)}}),S.add(A)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(Ue),n9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Rl(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,N.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:N.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:N.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:N.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:N.color.neutral00,borderWidth:0,borderColor:N.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:N.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:N.color.transparent,borderWidth:0,borderColor:N.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:N.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(qe);function a9(r){r.registerChartView(r9),r.registerSeriesModel(n9)}var fl="funnel",i9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new El(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Rl(this,{coordDimensions:["value"],encodeDefaulter:xe(bS,this)})},e.prototype._defaultLabelLine=function(t){So(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series."+fl,e.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:N.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(qe),o9=["itemStyle","opacity"],s9=(function(r){B(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Bt,s=new Re;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(o9);f=f??1,a||Wr(i),i.useStyle(t.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(t,n),et(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,v=t.getItemVisual(n,"style"),c=v.fill;Mt(o,St(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:v.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c: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}),jS(a,KS(l),{stroke:c})},e})(Zt),l9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=fl,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new s9(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);na(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=fl,e})(Ue);function u9(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return ie(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function f9(r){var e=r.hostModel,t=oO(e);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",v,c,h,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(c=(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,v="center"),d=[[c,h],[c,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");Z(o)&&(!t&&pe(["top","bottom"],o)>-1&&(o="left"),t&&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-_,c=y-5,v="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,v="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,v="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,v="center"):o==="rightTop"?(p=t?u[3][0]:u[1][0],g=t?u[3][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p+_,c=y+5,v="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="bottom")):o==="leftTop"?(p=u[0][0],g=t?u[0][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p-_,c=y-5,v="right")):o==="leftBottom"?(p=t?u[1][0]:u[3][0],g=t?u[1][1]:u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p-_,c=y-5,v="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="left")),t?(y=p,c=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}var v9=wt(fl,c9);function c9(r,e){r.eachSeriesByType(fl,function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=bt(t,e),s=tt(t.getBoxLayoutParams(),o.refContainer),l=oO(t),u=s.width,f=s.height,v=u9(n,i),c=s.x,h=s.y,d=l?[q(t.get("minSize"),f),q(t.get("maxSize"),f)]:[q(t.get("minSize"),u),q(t.get("maxSize"),u)],p=n.getDataExtent(a),g=t.get("min"),y=t.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=t.get("funnelAlign"),_=t.get("gap"),S=l?u:f,x=(S-_*(n.count()-1))/n.count(),w=function(R,E){if(l){var O=n.get(a,R)||0,k=Be(O,[g,y],d,!0),V=void 0;switch(m){case"top":V=h;break;case"center":V=h+(f-k)/2;break;case"bottom":V=h+(f-k);break}return[[E,V],[E,V+k]]}var z=n.get(a,R)||0,G=Be(z,[g,y],d,!0),W;switch(m){case"left":W=c;break;case"center":W=c+(u-G)/2;break;case"right":W=c+u-G;break}return[[W,E],[W+G,E]]};i==="ascending"&&(x=-x,_=-_,l?c+=u:h+=f,v=v.reverse());for(var b=0;b<v.length;b++){var T=v[b],C=v[b+1],A=n.getItemModel(T);if(l){var D=A.get(["itemStyle","width"]);D==null?D=x:(D=q(D,u),i==="ascending"&&(D=-D));var L=w(T,c),I=w(C,c+D);c+=D+_,n.setItemLayout(T,{points:L.concat(I.slice().reverse())})}else{var P=A.get(["itemStyle","height"]);P==null?P=x:(P=q(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())})}}f9(n)})}function oO(r){return r.get("orient")==="horizontal"}function h9(r){r.registerChartView(l9),r.registerSeriesModel(i9),r.registerLayout(v9),r.registerProcessor(Kf(fl))}var d9=.3,p9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new oe,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=EA(t);s.diff(l).add(c).update(h).remove(d).execute();function c(g){var y=RA(s,o,g,f,u);dy(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=sO(s,g,f,u);s.setItemGraphicEl(g,m),Oe(m,{shape:{points:_}},t,g),Wr(m),dy(m,s,g,v)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=g9(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=RA(i,this._dataGroup,l,o.dimensions,o);u.incremental=Dn(n),dy(u,i,l,EA(n)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Ue);function g9(r,e,t){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}},e,t),i}function sO(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);y9(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function RA(r,e,t,n,a){var i=sO(r,t,n,a),o=new Bt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function EA(r){var e=r.get("smooth",!0);return e===!0&&(e=d9),e=ca(e),Wt(e)&&(e=0),{smooth:e}}function dy(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");_t(r,a,"lineStyle"),et(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function y9(r,e){return e==="category"?r==null:r==null||isNaN(r)}var m9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return wa(null,this,{useEncodeDefaulter:j(_9,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e})(qe);function _9(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return M(e.dimensions,function(n){var a=S9(n);t[n]=a}),t}}function S9(r){return+r.replace("dim","")}var x9=["lineStyle","opacity"],w9={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(x9,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function b9(r){C9(r),T9(r)}function C9(r){if(!r.parallel){var e=!1;M(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function T9(r){var e=Ye(r.parallelAxis);M(e,function(t){if(fe(t)){var n=t.parallelIndex||0,a=Ye(r.parallel)[n];a&&a.parallelAxisDefault&&_e(t,a.parallelAxisDefault,!1)}})}var A9=5,M9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},M(D9,function(i,o){a.getZr().on(o,this._handlers[o]=j(i,this))},this)),Ml(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){rf(this,"_throttledDispatchExpand"),M(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Qe),D9={mousedown:function(r){py(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(py(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>A9)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||!py(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function py(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Kh="parallel",K0=Kh,I9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&_e(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=ze(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type=K0,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Me),L9=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ln);function si(r,e,t,n,a,i){r=r||0;var o=Yi(t[1],-t[0]);if(a!=null&&(a=xs(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(Yi(e[1],-e[0]));s=xs(s,[0,o]),a=i=xs(s,[a,i]),n=0}e[0]=xs(e[0],t),e[1]=xs(e[1],t);var l=gy(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=Yi(f[0],u):f[1]=Yi(f[1],-u),e[n]=xs(e[n],f);var v;return v=gy(e,n),a!=null&&(v.sign!==l.sign||v.span<a)&&(e[1-n]=Yi(e[n],l.sign*a)),v=gy(e,n),i!=null&&v.span>i&&(e[1-n]=Yi(e[n],v.sign*i)),e}function gy(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function xs(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var P9=(function(){function r(e,t,n){this.type=Kh,this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;M(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=qd(u),v=this._axesMap.set(o,new L9(o,Uf(u,f,!1),[0,0],f,l));v.onBand=$f(v.scale,u),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){M(this.dimensions,function(n){var a=this._axesMap.get(n);Po(a,ol),sl(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=tt(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=ec(e.get("axisExpandWidth"),l),v=ec(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=e.get("axisExpandWindow"),d;if(h)d=ec(h[1]-h[0],l),h[1]=h[0]+d;else{d=ec(f*(v-1),l);var p=e.get("axisExpandCenter")||rn(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[rn(ke(h[0]/f,1))+1,Uo(ke(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),M(n,function(o,s){var l=(a.axisExpandable?E9:R9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:sh/2,vertical:0},v=[u[i].x+e.x,u[i].y+e.y],c=f[i],h=nt();hi(h,h,c),kn(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var c=e.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(c[h]);if(p==="inactive"){v="inactive";break}}}t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Qr([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return ae(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=v[0]!=null;if(f)c&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):c&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?si(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 ec(r,e){return He(we(r,e[0]),e[1])}function R9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function E9(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function k9(r,e){var t=[];return r.eachComponent(K0,function(n,a){var i=new P9(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Kh){var a=n.getReferringComponents(K0,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&M(i.dimensions,function(o){Lo(i.getAxis(o),n,Kh)})}}),t}var O9={create:k9},J0=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return bo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=ae(t);if(n)for(var a=n.length-1;a>=0;a--)Nt(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e})(Me);xt(J0,Yf);var zo=!0,Af=Math.min,vl=Math.max,N9=Math.pow,B9=1e4,V9=6,z9=6,kA="globalPan",F9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},G9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},OA={brushStyle:{lineWidth:2,stroke:N.color.backgroundTint,fill:N.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},H9=0,P1=(function(r){B(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new oe,n._uid="brushController_"+H9++,M(q9,function(a,i){this._handlers[i]=j(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||a6(n,kA,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=_e(ae(OA),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;i6(t,kA,this._uid),M(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};M(t,function(a){n[a.panelId]=ae(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(c){return _e(ae(OA),c,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ga(a,t,u,l).add(f).update(f).remove(v).execute(),this;function l(c,h){return(c.id!=null?c.id:n+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var d=t[c];if(h!=null&&a[h]===s)i[c]=a[h];else{var p=i[c]=h!=null?(a[h].__brushOption=d,a[h]):uO(o,lO(o,d));R1(o,p)}}function v(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),Q0(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})($r);function lO(r,e){var t=fp[e.brushType].createCover(r,e);return t.__brushOption=e,vO(t,e),r.group.add(t),t}function uO(r,e){var t=E1(e);return t.endCreating&&(t.endCreating(r,e),vO(e,e.__brushOption)),e}function fO(r,e){var t=e.__brushOption;E1(e).updateCoverShape(r,e,t.range,t)}function vO(r,e){var t=e.z;t==null&&(t=B9),r.traverse(function(n){n.z=t,n.z2=t})}function R1(r,e){E1(e).updateCommon(r,e),fO(r,e)}function E1(r){return fp[r.__brushOption.brushType]}function k1(r,e,t){var n=r._panels;if(!n)return zo;var a,i=r._transform;return M(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function cO(r,e){var t=r._panels;if(!t)return zo;var n=e.__brushOption.panelId;return n!=null?t[n]:zo}function Q0(r){var e=r._covers,t=e.length;return M(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Fo(r,e){var t=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:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function U9(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=N9(a*a+i*i,.5);return o>V9}function hO(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function dO(r,e,t,n){var a=new oe;return a.add(new be({name:"main",style:O1(t),silent:!0,draggable:!0,cursor:"move",drift:xe(NA,r,e,a,["n","s","w","e"]),ondragend:xe(Fo,e,{isEnd:!0})})),M(n,function(i){a.add(new be({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(NA,r,e,a,i),ondragend:xe(Fo,e,{isEnd:!0})}))}),a}function pO(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=vl(a,z9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],v=t[1][1],c=f-i+a/2,h=v-i+a/2,d=f-o,p=v-s,g=d+a,y=p+a;qn(r,e,"main",o,s,d,p),n.transformable&&(qn(r,e,"w",l,u,i,y),qn(r,e,"e",c,u,i,y),qn(r,e,"n",l,u,g,i),qn(r,e,"s",l,h,g,i),qn(r,e,"nw",l,u,i,i),qn(r,e,"ne",c,u,i,i),qn(r,e,"sw",l,h,i,i),qn(r,e,"se",c,h,i,i))}function e_(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(O1(t)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?t_(r,i[0]):$9(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?G9[s]+"-resize":null})})}function qn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(X9(N1(r,e,[[n,a],[n+i,a+o]])))}function O1(r){return le({strokeNoScale:!0},r.brushStyle)}function gO(r,e,t,n){var a=[Af(r,t),Af(e,n)],i=[vl(r,t),vl(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function W9(r){return Hs(r.group)}function t_(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bd(t[e],W9(r));return n[a]}function $9(r,e){var t=[t_(r,e[0]),t_(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function NA(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=yO(e,a,i);M(n,function(u){var f=F9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(gO(s[0][0],s[1][0],s[0][1],s[1][1])),R1(e,t),Fo(e,{isEnd:!1})}function Y9(r,e,t,n){var a=e.__brushOption.range,i=yO(r,t,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),R1(r,e),Fo(r,{isEnd:!1})}function yO(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function N1(r,e,t){var n=cO(r,e);return n&&n!==zo?n.clipPath(t,r._transform):ae(t)}function X9(r){var e=Af(r[0][0],r[1][0]),t=Af(r[0][1],r[1][1]),n=vl(r[0][0],r[1][0]),a=vl(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function Z9(r,e,t){if(!(!r._brushType||j9(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=k1(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===zo||s.panelId===i.panelId)&&fp[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function r_(r){var e=r.event;e.preventDefault&&e.preventDefault()}function n_(r,e,t){return r.childOfName("main").contain(e,t)}function mO(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),U9(r)||a){if(i&&!a){o.brushMode==="single"&&Q0(r);var l=ae(o);l.brushType=BA(l.brushType,i),l.panelId=i===zo?null:i.panelId,a=r._creatingCover=lO(r,l),r._covers.push(a)}if(a){var u=fp[BA(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(N1(r,a,r._track)),n&&(uO(r,a),u.updateCommon(r,a)),fO(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&k1(r,e,t)&&Q0(r)&&(s={isEnd:n,removeOnClick:!0});return s}function BA(r,e){return r==="auto"?e.defaultBrushType:r}var q9={mousedown:function(r){if(this._dragging)VA(this,r);else if(!r.target||!r.target.draggable){r_(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=k1(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(Z9(this,r,n),this._dragging){r_(r);var a=mO(this,r,n,!1);a&&Fo(this,a)}},mouseup:function(r){VA(this,r)}};function VA(r,e){if(r._dragging){r_(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=mO(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Fo(r,i)}}function j9(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var fp={lineX:zA(0),lineY:zA(1),rect:{createCover:function(r,e){function t(n){return n}return dO({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=hO(r);return gO(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){pO(r,e,t,n)},updateCommon:e_,contain:n_},polygon:{createCover:function(r,e){var t=new oe;return t.add(new Bt({name:"main",style:O1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Zt({name:"main",draggable:!0,drift:xe(Y9,r,e),ondragend:xe(Fo,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:N1(r,e,t)})},updateCommon:e_,contain:n_}};function zA(r){return{createCover:function(e,t){return dO({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=hO(e),n=Af(t[0][r],t[1][r]),a=vl(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=cO(e,t);if(o!==zo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),pO(e,t,l,a)},updateCommon:e_,contain:n_}}function _O(r){return r=B1(r),function(e){return S2(e,r)}}function SO(r,e){return r=B1(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function xO(r,e,t){var n=B1(r);return function(a,i){return n.contain(i[0],i[1])&&!dk(a,e,t)}}function B1(r){return se.create(r)}var K9=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new P1(n.getZr())).on("brush",j(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!J9(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!t.get("show")){var s=eX(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,v=t.axis.dim,c=l.getAxisLayout(v),h=F({strokeContainThreshold:f},c),d=new ar(t,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,t,s,f,a),Of(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=se.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:_O(v),isTargetByCursor:xO(v,s,i),getLinearBrushOtherExtent:SO(v,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Q9(a))},e.prototype._onBrush=function(t){var n=t.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===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Qe);function J9(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Q9(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function eX(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var tX={type:"axisAreaSelect",event:"axisAreaSelected"};function rX(r){r.registerAction(tX,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var nX={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function wO(r){r.registerComponentView(M9),r.registerComponentModel(I9),r.registerCoordinateSystem("parallel",O9),r.registerPreprocessor(b9),r.registerComponentModel(J0),r.registerComponentView(K9),ul(r,"parallel",J0,nX),rX(r)}function aX(r){Se(wO),r.registerChartView(p9),r.registerSeriesModel(m9),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,w9)}var ma="sankey",iX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ie(o[l],this,n));var u=T1(i,a,this,!0,f);return u.data;function f(v,c){v.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}),c.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})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,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(t),v=f.getLayout().value,c=this.getDataParams(t,a).data.name;return pt("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+ma,e.layoutMode="box",e.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:N.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:N.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(qe),oX=(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})(),sX=(function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new oX},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e})(Ae),lX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ma,t._mainGroup=new oe,t}return e.prototype.init=function(t,n){this._controller=new ts(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){var i=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,a),sp(t,a,this._controller,Mk(o),null),i.eachEdge(function(h){var d=new sX,p=ve(d);p.dataIndex=h.dataIndex,p.seriesIndex=t.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"),D=h.getLayout(),L,I,P,R,E,O,k,V;d.shape.extent=Math.max(1,D.dy),d.shape.orient=c,c==="vertical"?(L=(x!=null?x*l:_.x)+D.sy,I=(w!=null?w*u:_.y)+_.dy,P=(C!=null?C*l:b.x)+D.ty,R=A!=null?A*u:b.y,E=L,O=I*(1-m)+R*m,k=P,V=I*m+R*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(w!=null?w*u:_.y)+D.sy,P=C!=null?C*l:b.x,R=(A!=null?A*u:b.y)+D.ty,E=L*(1-m)+P*m,O=I,k=L*m+P*(1-m),V=R),d.setShape({x1:L,y1:I,x2:P,y2:R,cpx1:E,cpy1:O,cpx2:k,cpy2:V}),d.useStyle(y.getItemStyle()),FA(d.style,c,h);var z=""+g.get("value"),G=St(g,"edgeLabel");Mt(d,G,{labelFetcher:{getFormattedLabel:function(Y,ee,ye,Ne,ce,te){return t.getFormattedLabel(Y,ee,"edge",Ne,xr(ce,G.normal&&G.normal.get("formatter"),z),te)}},labelDataIndex:h.dataIndex,defaultText:z}),d.setTextConfig({position:"inside"});var W=g.getModel("emphasis");_t(d,g,"lineStyle",function(Y){var ee=Y.getItemStyle();return FA(ee,c,h),ee}),o.add(d),v.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 t.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),ve(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:t.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(uX(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){oi(this.group,Gn,n.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=t.coordinateSystem=m1(t,n,a.x,a.y,a.width,a.height);oi(this.group,Gn,i,this._firstRender?null:t)},e.type=ma,e})(Ue);function FA(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");Z(n)&&Z(a)&&(r.fill=new bl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function uX(r,e,t){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}},e,t),n}var fX=wt(ma,vX);function vX(r,e){r.eachSeriesByType(ma,function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=bt(t,e).refContainer,o=tt(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,v=u.edges;hX(f);var c=ze(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");cX(f,v,n,a,s,l,h,d,p)})}function cX(r,e,t,n,a,i,o,s,l){dX(r,e,t,a,i,s,l),mX(r,e,i,a,n,o,s),MX(r,s)}function hX(r){M(r,function(e){var t=ti(e.outEdges,Jh),n=ti(e.inEdges,Jh),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function dX(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);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:v},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=pe(e,_);s[S]=0;var x=_.node2,w=pe(r,x);--l[w]===0&&pe(f,x)<0&&f.push(x)}}++v,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var b=h>v-1?h:v-1;o&&o!=="left"&&pX(r,o,i,b);var T=i==="vertical"?(a-t)/b:(n-t)/b;yX(r,T,i)}function bO(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function pX(r,e,t,n){if(e==="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}M(r,function(v){bO(v)||v.setLayout({depth:Math.max(0,n-v.getLayout().skNodeHeight)},!0)})}else e==="justify"&&gX(r,n)}function gX(r,e){M(r,function(t){!bO(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function yX(r,e,t){M(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function mX(r,e,t,n,a,i,o){var s=_X(r,o);SX(s,e,t,n,a,o),yy(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,xX(s,l,o),yy(s,a,t,n,o),AX(s,l,o),yy(s,a,t,n,o)}function _X(r,e){var t=[],n=e==="vertical"?"y":"x",a=zm(r,function(i){return i.getLayout()[n]});return Nt(a.keys),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function SX(r,e,t,n,a,i){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),M(r,function(s){M(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))})}),M(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function yy(r,e,t,n,a){var i=a==="vertical"?"x":"y";M(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c=a==="vertical"?"dx":"dy",h=0;h<v;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()[c]+e;var d=a==="vertical"?n:t;if(u=f-e-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=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+e-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 xX(r,e,t){M(r.slice().reverse(),function(n){M(n,function(a){if(a.outEdges.length){var i=ti(a.outEdges,wX,t)/ti(a.outEdges,Jh);if(isNaN(i)){var o=a.outEdges.length;i=o?ti(a.outEdges,bX,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-li(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,t))*e;a.setLayout({y:l},!0)}}})})}function wX(r,e){return li(r.node2,e)*r.getValue()}function bX(r,e){return li(r.node2,e)}function CX(r,e){return li(r.node1,e)*r.getValue()}function TX(r,e){return li(r.node1,e)}function li(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Jh(r){return r.getValue()}function ti(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function AX(r,e,t){M(r,function(n){M(n,function(a){if(a.inEdges.length){var i=ti(a.inEdges,CX,t)/ti(a.inEdges,Jh);if(isNaN(i)){var o=a.inEdges.length;i=o?ti(a.inEdges,TX,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-li(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-li(a,t))*e;a.setLayout({y:l},!0)}}})})}function MX(r,e){var t=e==="vertical"?"x":"y";M(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),M(r,function(n){var a=0,i=0;M(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var DX=wt(ma,IX);function IX(r){r.eachSeriesByType(ma,function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(n,function(s){var l=new At({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.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&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function LX(r){r.registerChartView(lX),r.registerSeriesModel(iX),r.registerLayout(fX),r.registerVisual(DX),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:Vn,subType:ma,query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),y1(r,Vn,ma)}var CO=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=e.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"],v=u==="horizontal"?0:1,c=this._baseAxisDim=f[v],h=f[1-v],d=[a,i],p=d[v].get("type"),g=d[1-v].get("type"),y=e.data;if(y&&l){var m=[];M(y,function(x,w){var b;H(x)?(b=x.slice(),x.unshift(w)):H(x.value)?(b=F({},x),b.value=b.value.slice(),x.value.unshift(w)):b=x,m.push(b)}),e.data=m}var _=this.defaultValueDimensions,S=[{name:c,type:Mh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Mh(g),dimsDef:_.slice()}];return Rl(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:xe(aP,S,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function Qh(r,e){for(var t=e.ends.length,n=0,a=0;a<t;a++)r.contain(e.ends[a][0],e.ends[a][1])&&n++;return n?n<t?hf:cf:df}var Ln="boxplot",TO=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series."+Ln,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:N.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}},animationDuration:800},e})(qe);xt(TO,CO,!0);var PX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ln,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),f=t.coordinateSystem,v=f.getArea&&f.getArea(),c=u&&Ro(f,!1,t);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?Qh(v,d):cf;if(p===df)return;var g=GA(d,i,h,l,!0);Ns(p===hf,g,c),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?Qh(v,g):cf;if(y===df){o.remove(p);return}p?(Wr(p),AO(g,p,i,h)):p=GA(g,i,h,l),Ns(y===hf,p,c),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type=Ln,e})(Ue),RX=(function(){function r(){}return r})(),EX=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new RX},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e})(Ae);function GA(r,e,t,n,a){var i=r.ends,o=new EX({shape:{points:a?kX(i,n,r):i}});return AO(r,o,e,t,a),o}function AO(r,e,t,n,a){var i=t.hostModel,o=Xo[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");_t(e,s),et(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function kX(r,e,t){return U(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var OX=Sl(),NX=wt(Ln,BX);function BX(r){var e=yo(Ln);XS(r,e,function(t){var n=j4(t,e);if(n){var a=VX(t,n);Io(t,e,function(i){var o=i.seriesIndex;zX(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function VX(r,e){var t=[],n=[],a=[],i=Vt(r,{fromStat:{key:yo(Ln)},min:1}).w;Io(r,yo(Ln),function(f){var v=f.get("boxWidth");H(v)||(v=[v,v]),a[f.seriesIndex]=[q(v[0],i)||0,q(v[1],i)||0]});var o=i*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Io(r,yo(Ln),function(f){var v=f.seriesIndex;n[v]=u,u+=s+l,t[v]=He(we(l,a[v][0]),a[v][1])}),{boxOffsetList:n,boxWidthList:t}}function zX(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/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 v=0;v<a.count();v++){var c=a.get(u,v),h=_(c,f[2],v),d=_(c,f[0],v),p=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),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(v,{initBaseline:h[s],ends:m})}function _(w,b,T){var C=a.get(b,T),A=[];A[o]=w,A[s]=C;var D;return isNaN(w)||isNaN(C)?D=[NaN,NaN]:(D=n.dataToPoint(A),D[o]+=e),D}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 FX(r){OX(r,function(){var e=yo(Ln);ZS(r,{key:e,seriesType:Ln,getMetrics:l1}),Kd(e,tp(e))})}function GX(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Nt(r[o].slice()),l=Gp(s,.25),u=Gp(s,.5),f=Gp(s,.75),v=s[0],c=s[s.length-1],h=(a??1.5)*(f-l),d=i?v:Math.max(v,l-h),p=i?c:Math.min(c,f+h),g=e.itemNameFormatter,y=ie(g)?g({value:o}):Z(g)?g.replace("{value}",o+""):o+"";t.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:t,outliers:n}}var HX={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Pt){var n="";Ve(n)}var a=GX(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function UX(r){r.registerSeriesModel(TO),r.registerChartView(PX),r.registerLayout(NX),r.registerTransform(HX),FX(r)}var ui="candlestick",MO=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series."+ui,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(qe);xt(MO,CO,!0);var WX=["itemStyle","borderColor"],$X=["itemStyle","borderColor0"],YX=["itemStyle","borderColorDoji"],XX=["itemStyle","color"],ZX=["itemStyle","color0"];function V1(r,e){return e.get(r>0?XX:ZX)}function z1(r,e){return e.get(r===0?YX:r>0?WX:$X)}var qX={seriesType:ui,plan:jo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{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=V1(s,o),l.stroke=z1(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");F(u,l)}}}}}},jX=["color","borderColor"],KX=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Ro(l,!1,t);this._data||i.removeAll();var v=HA(t);n.diff(a).add(function(c){if(n.hasValue(c)){var h=n.getItemLayout(c),d=s?Qh(u,h):cf;if(d===df)return;var p=my(h,c,v,!0);Ke(p,{shape:{points:h.ends}},t,c),Ns(d===hf,p,f),_y(p,n,c,o),i.add(p),n.setItemGraphicEl(c,p)}}).update(function(c,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(c)){i.remove(d);return}var p=n.getItemLayout(c),g=s?Qh(u,p):cf;if(g===df){i.remove(d);return}d?(Oe(d,{shape:{points:p.ends}},t,c),Wr(d)):d=my(p,c,v),_y(d,n,c,o),Ns(g===hf,d,f),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),UA(t,this.group);var n=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;Ns(!!n,this.group,n)},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=HA(n),s;(s=t.next())!=null;){var l=a.getItemLayout(s),u=my(l,s,o);_y(u,a,s,i),u.incremental=Dn(n),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,n){UA(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),Ns(!1,this.group,null),this._data=null},e.type=ui,e})(Ue),JX=(function(){function r(){}return r})(),QX=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new JX},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(Ae);function my(r,e,t,n){var a=r.ends;return new QX({shape:{points:n?eZ(a,t,r):a},z2:100})}function _y(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=n,_t(r,a);var o=e.getItemLayout(t).sign;M(r.states,function(l,u){var f=a.getModel(u),v=V1(o,f),c=z1(o,f)||v,h=l.style||(l.style={});v&&(h.fill=v),c&&(h.stroke=c)});var s=a.getModel("emphasis");et(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function eZ(r,e,t){return U(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}function HA(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var tZ=(function(){function r(){}return r})(),Sy=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new tZ},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e})(Ae);function UA(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Sy({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Sy({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Sy({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),xy(1,o,r),xy(-1,s,r),xy(0,l,r),n&&(o.incremental=Dn(r),s.incremental=Dn(r),l.incremental=Dn(r)),t&&t.push(o,s,l)}function xy(r,e,t,n){var a=z1(r,t)||V1(r,t),i=t.getModel("itemStyle").getItemStyle(jX);e.useStyle(i),e.style.fill=null,e.style.stroke=a;var o=t.get("cursor");o&&e.attr("cursor",o)}function rZ(r){!r||!H(r.series)||M(r.series,function(e){fe(e)&&e.type==="k"&&(e.type=ui)})}var nZ=Sl(),aZ={seriesType:ui,plan:jo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=iZ(r),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=U(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],c=l[3];if(t.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(v,y),b=m.get(c,y),T=He(S,x),C=we(S,x),A=O(T,_),D=O(C,_),L=O(w,_),I=O(b,_),P=[];k(P,D,0),k(P,A,1),P.push(z(I),z(D),z(L),z(A));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:WA(m,y,S,x,f,E),initBaseline:S>x?D[i]:A[i],ends:P,brushRect:V(w,b,_)})}function O(G,W){var X=[];return X[a]=W,X[i]=G,isNaN(W)||isNaN(G)?[NaN,NaN]:e.dataToPoint(X)}function k(G,W,X){var Y=W.slice(),ee=W.slice();Y[a]=kc(Y[a]+n/2,1,!1),ee[a]=kc(ee[a]-n/2,1,!0),X?G.push(Y,ee):G.push(ee,Y)}function V(G,W,X){var Y=O(G,X),ee=O(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 z(G){return G[a]=kc(G[a],1),G}}function d(p,g){for(var y=bn(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),D=b.get(f,w),L=b.get(v,w),I=b.get(c,w);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=WA(b,w,A,D,f,T),S[a]=C,S[i]=L,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function WA(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function iZ(r,e){var t=r.getBaseAxis(),n=Vt(t,{fromStat:{key:yo(ui)},min:1}).w,a=q(Q(r.get("barMaxWidth"),n),n),i=q(Q(r.get("barMinWidth"),1),n),o=r.get("barWidth");return o!=null?q(o,n):we(He(n/2,a),i)}function oZ(r){nZ(r,function(){var e=yo(ui);ZS(r,{key:e,seriesType:ui,getMetrics:l1}),Kd(e,tp(e))})}function sZ(r){r.registerChartView(KX),r.registerSeriesModel(MO),r.registerPreprocessor(rZ),r.registerVisual(qX),r.registerLayout(aZ),oZ(r)}function $A(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var lZ=(function(r){B(e,r);function e(t,n){var a=r.call(this)||this,i=new Xf(t,n),o=new oe;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.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*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}$A(o,t)},e.prototype.updateEffectAnimation=function(t){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]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}$A(a,t)},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Il(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),v=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=Ko(t.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=t.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/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=v,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,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(oe),uZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Zf(lZ)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,YA(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=qf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(YA(t))},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=oV(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Ue);function YA(r){return{clipShape:TE(r)}}var fZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return wa(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(qe);function vZ(r){r.registerChartView(uZ),r.registerSeriesModel(fZ),r.registerLayout(qf("effectScatter"))}var DO=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new I1(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");H(o)||(o=[o,o]);var l=t.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(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),v=tr(n.get("delay"),function(h){return h/t.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 c=void 0;ie(v)?c=v(a):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Na(t.__p1,t.__cp1)+Na(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Lt,f=bm;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var v=t.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),c=t.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Na(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Na(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e})(oe),IO=(function(r){B(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Bt({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Oe(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,et(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",t.getItemLayout(n))},e})(oe),cZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new IO(t,n,a)},e.prototype._updateAnimationPoints=function(t,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+=Na(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},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<=1?t.__t:2-t.__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]),v=a[l],c=a[l+1];t.x=v[0]*(1-f)+f*c[0],t.y=v[1]*(1-f)+f*c[1];var h=t.__t<=1?c[0]-v[0]:v[0]-c[0],d=t.__t<=1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e})(DO),hZ=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),dZ=(function(r){B(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new hZ},e.prototype.buildPath=function(t,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){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],v=a[o++],c=a[o++];if(t.moveTo(u,f),i>0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;t.quadraticCurveTo(h,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,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 v=i[u++],c=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(ka(v,c,d,p,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],c=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(VL(v,c,g,y,d,p,s,t,n))return l}else if(ka(v,c,d,p,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){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++],v=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new se(i,o,s,l)}return t},e})(Ae),pZ=(function(){function r(){this.group=new oe}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.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,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new dZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ve(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),LO={seriesType:"lines",plan:jo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=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(t){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 v=0,c=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);t&&(s[v++]=h);for(var d=0;d<h;d++)c=e.dataToPoint(o[d],!1,c),s[v++]=c[0],s[v++]=c[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(t)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.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)}}}}}},gZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=!!e0(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var v=t.get("clip",!0)&&Ro(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData(),Dn(n)),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=LO.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,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 pZ:new L1(o?i?cZ:IO:i?DO:I1),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=e0(t);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e})(Ue),yZ=typeof Uint32Array>"u"?Array:Uint32Array,mZ=typeof Float64Array>"u"?Array:Float64Array;function XA(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=U(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),B_([a,t[0],t[1]])}))}var _Z=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],XA(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(XA(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Wu(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Wu(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*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(t),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}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Ee(t[0])){for(var a=t.length,i=new yZ(a),o=new mZ(a),s=0,l=0,u=0,f=0;f<a;){u++;var v=t[f++];i[l++]=s+n,i[l++]=v;for(var c=0;c<v;c++){var h=t[f++],d=t[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:t.length}},e.prototype.getInitialData=function(t,n){var a=new nr(["value"],this);return a.hasItemOption=!1,a.initData(t.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},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),v=[];u!=null&&v.push(u),f!=null&&v.push(f),l=v.join(" > ")}return pt("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(qe);function tc(r){return r instanceof Array||(r=[r,r]),r}var SZ={seriesType:"lines",reset:function(r){var e=tc(r.get("symbol")),t=tc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=tc(s.getShallow("symbol",!0)),u=tc(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 xZ(r){r.registerChartView(gZ),r.registerSeriesModel(_Z),r.registerLayout(LO),r.registerVisual(SZ)}var wZ=256,bZ=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=rr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=e.length;v.width=t,v.height=n;for(var d=0;d<h;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=a(m);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=c.getImageData(0,0,v.width,v.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,D=Math.floor(_*(wZ-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),x[w++]=L[D],x[w++]=L[D+1],x[w++]=L[D+2],x[w++]=L[D+3]*_*256}else w+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=rr.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=N.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function CZ(r,e,t){var n=r[1]-r[0];e=U(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function TZ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}var AZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):ZC(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(ZC(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,l=Eo(s,"cartesian2d"),u=Eo(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=Vt(d).w+.5,v=Vt(p).w+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),w=St(t),b=t.getModel("emphasis"),T=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),D=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(D[0],L),E=y.get(D[1],L);if(isNaN(y.get(D[2],L))||isNaN(R)||isNaN(E)||R<c[0]||R>c[1]||E<h[0]||E>h[1])continue;var O=s.dataToPoint([R,E]);I=new be({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var k=s.dataToLayout([y.get(D[0],L),y.get(D[1],L)]).rect;if(Wt(k.x))continue;I=new be({z2:1,shape:k,style:P})}else{if(isNaN(y.get(D[1],L)))continue;var V=s.dataToLayout([y.get(D[0],L)]),k=V.contentRect||V.rect;if(Wt(k.x)||Wt(k.y))continue;I=new be({z2:1,shape:k,style:P})}if(y.hasItemOption){var z=y.getItemModel(L),G=z.getModel("emphasis");m=G.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),T=G.get("focus"),C=G.get("blurScope"),A=G.get("disabled"),w=St(z)}I.shape.r=x;var W=t.getRawValue(L),X="-";W&&W[2]!=null&&(X=W[2]+""),Mt(I,w,{labelFetcher:t,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=Dn(t,o),o&&(I.states.emphasis.hoverLayer=Tl),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new bZ;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var c=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-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,C){var A=t.dataToPoint([b,T]);return A[0]-=c,A[1]-=h,A.push(C),A}),S=a.getExtent(),x=a.type==="visualMap.continuous"?TZ(S,a.option.range):CZ(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:c,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e})(Ue),MZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return wa(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Vf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:N.color.primary}}},e})(qe);function DZ(r){r.registerChartView(AZ),r.registerSeriesModel(MZ)}var IZ=["itemStyle","borderWidth"],ZA=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wy=new Sa,LZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=pf,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:ZA[+f],categoryDim:ZA[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=jA(o,d),g=qA(o,d,p,c),y=KA(o,c,g);o.setItemGraphicEl(d,y),i.add(y),QA(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=jA(o,d),m=qA(o,d,y,c),_=NO(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?BZ(g,c,m):g=KA(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),QA(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&JA(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){JA(i,ve(o).dataIndex,t,o)}):a.removeAll()},e.type=pf,e})(Ue);function qA(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};PZ(t,i,a,n,c),RZ(r,e,a,i,o,c.boundingLength,c.pxSign,f,n,c),EZ(t,c.symbolScale,u,n,c);var h=c.symbolSize,d=Ko(t.get("symbolOffset"),h);return kZ(t,h,a,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function PZ(r,e,t,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-+(t[i.wh]<=0),f;if(H(o)){var v=[by(s,o[0])-l,by(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=by(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]);var c=i.xy==="x",h=s.inverse;a.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1}function by(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function RZ(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),h=r.getItemVisual(e,"symbolSize"),d;H(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=q(d[v.index],c),d[f.index]=q(d[f.index],n?c: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 EZ(r,e,t,n,a){var i=r.get(IZ)||0;i&&(wy.attr({scaleX:e[0],scaleY:e[1],rotation:t}),wy.updateTransform(),i/=wy.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function kZ(r,e,t,n,a,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(e[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=q(m,e[h.index]),x=Math.max(p+S*2,0),w=_?0:S*2,b=SL(n),T=b?n:eM((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?eM((Math.abs(u)+w)/x):0),g=T*x-w,v.repeatTimes=T,v.symbolMargin=S}var A=d*(g/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=v.bundlePosition=[];L[c.index]=t[c.xy],L[h.index]=t[h.xy];var I=v.barRectShape=F({},t);I[h.wh]=d*Math.max(Math.abs(t[h.wh]),Math.abs(D[h.index]+A)),I[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function PO(r){var e=r.symbolPatternSize,t=gt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function RO(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=i[e.valueDim.index]+o+t.symbolMargin*2;for(F1(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Zs(p,null,d(f),t,n):Zs(p,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(p)}),f++});f<u;f++){var c=PO(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var h=d(f);Zs(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,n)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function EO(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Zs(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=PO(t),a.add(i),Zs(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function kO(r,e,t){var n=F({},e.barRectShape),a=r.__pictorialBarRect;a?Zs(a,null,{shape:n},e,t):(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 OO(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=F({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.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]=t.clipShape[o.wh],Xo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function jA(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=OZ,t.isAnimationEnabled=NZ,t}function OZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function NZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function KA(r,e,t,n){var a=new oe,i=new oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?RO(a,e,t):EO(a,e,t),kO(a,t,n),OO(a,e,t,n),a.__pictorialShapeStr=NO(r,t),a.__pictorialSymbolMeta=t,a}function BZ(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Oe(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?RO(r,e,t,!0):EO(r,e,t,!0),kO(r,t,!0),OO(r,e,t,!0)}function JA(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];F1(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),M(i,function(o){ai(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function NO(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function F1(r,e,t){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Zs(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&Xo[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function QA(r,e,t){var n=t.dataIndex,a=t.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"),v=i.get("blurScope"),c=i.get("scale");F1(r,function(p){if(p instanceof Rt){var g=p.style;p.useStyle(F({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,c&&(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=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Mt(d,St(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:ll(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),et(r,f,v,i.get("disabled"))}function eM(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var VZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+pf,e.dependencies=["grid"],e.defaultOption=pi(gf.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:N.color.primary}}}),e})(gf);function zZ(r){r.registerChartView(LZ),r.registerSeriesModel(VZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,$E(pf)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YE(pf)),ZE(r)}var Cy=2,cl="themeRiver",FZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new El(j(this.getData,this),j(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=zm(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];i.buckets.each(function(c,h){o.push({name:h,dataList:c})});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 v=o[l].dataList[f][0]+"";a[v]=l}for(var v in a)a.hasOwnProperty(v)&&a[v]!==l&&(a[v]=l,t[n]=[v,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",at).models[0],i=a.get("type"),o=ze(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,v=0;v<s.length;++v)l.push(s[v][Cy]),u.get(s[v][Cy])||(u.set(s[v][Cy],f),f++);var c=Gf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Mh(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new nr(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=zm(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return t.get(o,v)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){H(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[f].indices[d]),g=Math.abs(p-n);g<=v&&(u=p,v=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return pt("nameValue",{name:o,value:s})},e.type="series."+cl,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(qe),GZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=cl,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new ga(this._layersSeries||[],l,c,c),d=[];h.add(j(p,this,"add")).update(j(p,this,"update")).remove(j(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,D=C.y0,L=C.y;S.push(A,D),x.push(A,D+L),w=i.getItemVisual(b[T],"style")}var I,P=i.getItemLayout(b[0]),R=t.getModel("label"),E=R.get("margin"),O=t.getModel("emphasis");if(g==="add"){var k=d[y]=new oe;I=new wE({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(I),s.add(k),t.isAnimationEnabled()&&I.setClipPath(HZ(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var k=_[m];I=k.childAt(0),s.add(k),d[y]=k,Oe(I,{shape:{points:S,stackedOnPoints:x}},t),Wr(I)}Mt(I,St(t),{labelDataIndex:b[T-1],defaultText:i.getName(b[T-1]),inheritColor:w.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=P.x-E,V.y=P.y0+P.y/2),I.useStyle(w),i.setItemGraphicEl(y,I),_t(I,t),et(I,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=d},e.type=cl,e})(Ue);function HZ(r,e,t){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}},e,t),n}var UZ=wt(cl,WZ);function WZ(r,e){r.eachSeriesByType(cl,function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=q(s[0],o.height),s[1]=q(s[1],o.height);var u=o.height-s[0]-s[1];tM(n,t,u)}else{s[0]=q(s[0],o.width),s[1]=q(s[1],o.width);var f=o.width-s[0]-s[1];tM(n,t,f)}n.setLayout("layoutInfo",i)})}function tM(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.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=$Z(s),u=l.y0,f=t/l.max,v=a.length,c=a[0].indices.length,h,d=0;d<c;++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<v;++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 $Z(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var v=n[f]+a[f];v>i&&(i=v)}return{y0:a,max:i}}function YZ(r){r.registerChartView(GZ),r.registerSeriesModel(FZ),r.registerLayout(UZ),r.registerProcessor(Kf(cl))}var XZ=2,ZZ=4,rM=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=XZ,o.textConfig={inside:!0},ve(o).seriesIndex=n.seriesIndex;var s=new Re({z2:ZZ,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ve(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),v=F({},f);v.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=nl(h,o));var d=Cn(l.getModel("itemStyle"),v,!0);F(v,d),M(ir,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Cn(S,v);x&&(_.shape=x)}),t?(s.setShape(v),s.shape.r=f.r0,Ke(s,{shape:{r:f.r}},a,n.dataIndex)):(Oe(s,{shape:v},a),Wr(s)),s.useStyle(c),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"?Wu(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;et(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){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),v=this,c=v.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,M(ju,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),x=t.getFormattedLabel(h,y);_&&(x=x||n.node.name),S.style=Ze(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=_?v:v.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:b!=="outside"};var A,D=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),O=E>P&&!Qs(E-P)&&E<R;b==="outside"?(A=o.r+D,L=O?"right":"left"):!L||L==="center"?(o.r0===0&&Qs(s-2*Math.PI)?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+D,L=O?"right":"left"):L==="right"&&(A=o.r-D,L=O?"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 k=0;I==="radial"?k=_r(-l)+(O?Math.PI:0):I==="tangential"?k=_r(Math.PI/2-l)+(O?Math.PI:0):Ee(I)&&(k=I*Math.PI/180),S.rotation=_r(k)});function g(y,m){var _=y.get(m);return _??i.get(m)}c.dirtyStyle()},e})(Xt),Go="sunburst",qZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};BO(a);var i=this._levelModels=U(t.levels||[],function(l){return new Ie(l,this,n)},this),o=w1.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lp(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){Fk(this)},e.type="series."+Go,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(qe);function BO(r){var e=0;M(r.children,function(n){BO(n);var a=n.value;H(a)&&(a=a[0]),e+=a});var t=r.value;H(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}var a_="sunburstRootToNode",nM="sunburstHighlight",jZ="sunburstUnhighlight";function KZ(r){r.registerAction({type:a_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=xf(e,[a_],a);if(o){var s=a.getViewRoot();s&&(e.direction=b1(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:nM,update:"none"},function(e,t,n){e=F({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=xf(e,[nM],i);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(F(e,{type:"highlight"}))}),r.registerAction({type:jZ,update:"updateView"},function(e,t,n){e=F({},e),n.dispatchAction(F(e,{type:"downplay"}))})}var JZ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Go,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var h=this._oldChildren||[];d(c,h),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new ga(_,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(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new rM(m,t,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,t,n,a):(o.virtualPiece=new rM(m,t,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)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";_h(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:a_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=Go,e})(Ue),QZ=wt(Go,eq);function eq(r){var e={};function t(n,a,i){if(n.depth===0)return N.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Z(s)&&(s=Am(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(Go,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=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}var aM=Math.PI/180,tq=wt(Go,rq);function rq(r,e){r.eachSeriesByType(Go,function(t){var n=t.get("center"),a=t.get("radius");H(a)||(a=[0,a]),H(n)||(n=[n,n]);var i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),l=q(n[0],i),u=q(n[1],o),f=q(a[0],s/2),v=q(a[1],s/2),c=-t.get("startAngle")*aM,h=t.get("minAngle")*aM,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");y!=null&&VO(p,y);var m=0;M(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=(v-f)/(w||1),T=t.get("clockwise"),C=t.get("stillShowZeroSum"),A=T?1:-1,D=function(R,E){if(R){var O=E;if(R!==d){var k=R.getValue(),V=_===0&&C?S:k*S;V<h&&(V=h),O=E+A*V;var z=R.depth-g-(x?-1:1),G=f+b*z,W=f+b*(z+1),X=t.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&&(G=q(Y,s/2)),ee!=null&&(W=q(ee,s/2))}R.setLayout({angle:V,startAngle:E,endAngle:O,clockwise:T,cx:l,cy:u,r0:G,r:W})}if(R.children&&R.children.length){var Ne=0;M(R.children,function(ce){Ne+=D(ce,E+Ne)})}return O-E}};if(x){var L=f,I=f+b,P=Math.PI*2;d.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:T,cx:l,cy:u,r0:L,r:I})}D(p,c)})}function VO(r,e){var t=r.children||[];r.children=nq(t,e),t.length&&M(r.children,function(n){VO(n,e)})}function nq(r,e){if(ie(e)){var t=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 t.sort(function(a,i){return e(a.params,i.params)}),U(t,function(a){return r[a.index]})}else{var n=e==="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 aq(r){r.registerChartView(JZ),r.registerSeriesModel(qZ),r.registerLayout(tq),r.registerVisual(QZ),KZ(r)}var iM={color:"fill",borderColor:"stroke"},iq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=me(),oq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return wa(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=ia(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(qe);function sq(r,e){return e=e||[0,0],U(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?Vt(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function lq(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:j(sq,r)}}}function uq(r,e){return e=e||[0,0],U([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function fq(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:E6(e)},api:{coord:function(n){return r.dataToPoint(n)},size:j(uq,r)}}}function vq(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?Vt(t).w:Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function cq(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:j(vq,r)}}}function hq(r,e){return e=e||[0,0],U(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?Vt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function dq(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.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=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:j(hq,r)}}}function pq(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function gq(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}var zO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},oM=De(zO);En(fa,function(r,e){return r[e]=1,r},{});fa.join(", ");var ed=["","style","shape","extra"],hl=me();function G1(r,e,t,n,a){var i=r+"Animation",o=Cl(r,n,a)||{},s=hl(e).userDuring;return o.duration>0&&(o.during=s?j(xq,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function $c(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=hl(r),u=e.style;l.userDuring=e.during;var f={},v={};if(bq(r,e,v),r.type==="compound")for(var c=r.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var p=h[d];Ty("shape",p,c[d])}else Ty("shape",e,v),Ty("extra",e,v);if(!i&&s&&(wq(r,e,f),sM("shape",r,e,f),sM("extra",r,e,f),Cq(r,e,u,f)),v.style=u,yq(r,v,o),_q(r,e),s)if(i){var g={};M(ed,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),F(m?g[m]:g,_.enterFrom))});var y=G1("enter",r,e,t,a);y.duration>0&&r.animateFrom(g,y)}else mq(r,e,a||0,t,f);FO(r,e),u?r.dirty():r.markRedraw()}function FO(r,e){for(var t=hl(r).leaveToProps,n=0;n<ed.length;n++){var a=ed[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=hl(r).leaveToProps={}),a&&(t[a]=t[a]||{}),F(a?t[a]:t,i.leaveTo))}}function vp(r,e,t,n){if(r){var a=r.parent,i=hl(r).leaveToProps;if(i){var o=G1("update",r,e,t,0);o.done=function(){a&&a.remove(r)},r.animateTo(i,o)}else a&&a.remove(r)}}function mo(r){return r==="all"}function yq(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){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)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function mq(r,e,t,n,a){if(a){var i=G1("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function _q(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"ignore")&&(r.ignore=e.ignore),r instanceof Ur&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ae&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var gn={},Sq={setTransform:function(r,e){return gn.el[r]=e,this},getTransform:function(r){return gn.el[r]},setShape:function(r,e){var t=gn.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=gn.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=gn.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=gn.el.style;if(e)return e[r]},setExtra:function(r,e){var t=gn.el.extra||(gn.el.extra={});return t[r]=e,this},getExtra:function(r){var e=gn.el.extra;if(e)return e[r]}};function xq(){var r=this,e=r.el;if(e){var t=hl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}gn.el=e,n(Sq)}}function sM(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),mo(l))F(o,i);else for(var u=Ye(l),f=0;f<u.length;f++){var v=u[f],c=i[v];o[v]=c}else if(mo(s)||pe(s,r)>=0){!o&&(o=n[r]={});for(var h=De(i),f=0;f<h.length;f++){var v=h[f],c=i[v];Tq(a[v],c)&&(o[v]=c)}}}}}function Ty(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=De(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ru(n[s])}}function wq(r,e,t){for(var n=e.transition,a=mo(n)?fa:Ye(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function bq(r,e,t){for(var n=0;n<oM.length;n++){var a=oM[n],i=zO[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<fa.length;n++){var s=fa[n];e[s]!=null&&(t[s]=e[s])}}function Cq(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!mo(o)){var l=Ye(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],v=a[f];i[f]=v}}else if(r.getAnimationStyleProps&&(mo(s)||mo(o)||pe(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var d=De(t),u=0;u<d.length;u++){var f=d[u];if(h[f]){var v=a[f];i[f]=v}}}}}}}function Tq(r,e){return $t(r)?r!==e:r!=null&&isFinite(r)}var GO=me(),Aq=["percent","easing","shape","style","extra"];function HO(r){r.stopAnimation("keyframe"),r.attr(GO(r))}function td(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(H(e)){M(e,function(s){td(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Cl("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=GO(r);M(ed,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=r.animators,v=s?u[s]:u;if(v){var c=De(v);if(s||(c=ze(c,function(p){return pe(Aq,p)<0})),!!c.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,v,c,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var oa="emphasis",Ua="normal",H1="blur",U1="select",fi=[Ua,oa,H1,U1],Ay={normal:["itemStyle"],emphasis:[oa,"itemStyle"],blur:[H1,"itemStyle"],select:[U1,"itemStyle"]},My={normal:["label"],emphasis:[oa,"label"],blur:[H1,"label"],select:[U1,"label"]},Mq=["x","y"],Dq="e\0\0",Mr={normal:{},emphasis:{},blur:{},select:{}},Iq={cartesian2d:lq,geo:fq,single:cq,polar:dq,calendar:pq,matrix:gq};function i_(r){return r instanceof Ae}function o_(r){return r instanceof Ur}function Lq(r,e){e.copyTransform(r),o_(e)&&o_(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,i_(e)&&i_(r)&&e.setShape(r.shape))}var Pq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=lM(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(v){Dy(a,null,v,u(v,i),t,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&vp(c,ia(c).option,t)}).update(function(v,c){var h=o.getItemGraphicEl(c);Dy(a,h,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Ro(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=lM(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=Dn(n),h.ensureState("emphasis").hoverLayer=Tl)}for(var v=t.start;v<t.end;v++){var c=Dy(null,null,v,l(v,o),n,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){di(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,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},e.type="custom",e})(Ue);function W1(r){var e=r.type,t;if(e==="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=$O(n);t=Ju(i,null,a,n.layout||"center"),ia(t).customPathData=i}else if(e==="image")t=new Rt({}),ia(t).customImagePath=r.style.image;else if(e==="text")t=new Re({});else if(e==="group")t=new oe;else if(e==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";Ve(o)}var s=U(n.paths,function(f){if(f.type==="path")return Ju(f.shape.pathData,f,null);var v=dh(f.type);if(!v){var c="";Ve(c)}return new v});t=new Nd({shape:{paths:s}})}else{var l=dh(e);if(!l){var o="";Ve(o)}t=new l}return ia(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function $1(r,e,t,n,a,i,o){HO(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=Mq);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=i_(e)?l.decal:null;r&&v&&(v.dirty=!0,f=nl(v,r)),l.__decalPattern=f}if(o_(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}$c(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),td(e,n.keyframeAnimation,i)}function UO(r,e,t,n,a){var i=e.isGroup?null:e,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),Co(i)}}function Rq(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<fi.length;s++)Eq(n,e,fi[s])}}function Eq(r,e,t){var n=t===Ua,a=n?e:rd(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function lM(r,e,t,n){var a=r.get("renderItem");if(typeof a=="string"){var i=K3(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Iq[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:D,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:kq(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,c={},h={},d={},p={},g=0;g<fi.length;g++){var y=fi[g];d[y]=r.getModel(Ay[y]),p[y]=r.getModel(My[y])}function m(R){return R===f?v||(v=e.getItemModel(R)):e.getItemModel(R)}function _(R,E){return e.hasItemOption?R===f?c[E]||(c[E]=m(R).getModel(Ay[E])):m(R).getModel(Ay[E]):d[E]}function S(R,E){return e.hasItemOption?R===f?h[E]||(h[E]=m(R).getModel(My[E])):m(R).getModel(My[E]):p[E]}return function(R,E){return f=R,v=null,c={},h={},a&&a(le({dataIndexInside:R,dataIndex:e.getRawIndex(R),actionType:E?E.type:null},u),l)};function x(R,E){return E==null&&(E=f),e.getStore().get(e.getDimensionIndex(R||0),E)}function w(R,E){E==null&&(E=f),R=R||0;var O=e.getDimensionInfo(R);if(!O){var k=e.getDimensionIndex(R);return k>=0?e.getStore().get(k,E):void 0}var V=e.get(O.name,E),z=O&&O.ordinalMeta;return z?z.categories[V]:V}function b(R,E){E==null&&(E=f);var O=e.getItemVisual(E,"style"),k=O&&O.fill,V=O&&O.opacity,z=_(E,Ua).getItemStyle();k!=null&&(z.fill=k),V!=null&&(z.opacity=V);var G={inheritColor:Z(k)?k:N.color.neutral99},W=S(E,Ua),X=Ze(W,null,G,!1,!0);X.text=W.getShallow("show")?Q(r.getFormattedLabel(E,Ua),ll(e,E)):null;var Y=ph(W,G,!1);return A(R,z),z=jC(z,X,Y),R&&C(z,R),z.legacy=!0,z}function T(R,E){E==null&&(E=f);var O=_(E,oa).getItemStyle(),k=S(E,oa),V=Ze(k,null,null,!0,!0);V.text=k.getShallow("show")?xr(r.getFormattedLabel(E,oa),r.getFormattedLabel(E,Ua),ll(e,E)):null;var z=ph(k,null,!0);return A(R,O),O=jC(O,V,z),R&&C(O,R),O.legacy=!0,O}function C(R,E){for(var O in E)J(E,O)&&(R[O]=E[O])}function A(R,E){R&&(R.textFill&&(E.textFill=R.textFill),R.textPosition&&(E.textPosition=R.textPosition))}function D(R,E){if(E==null&&(E=f),J(iM,R)){var O=e.getItemVisual(E,"style");return O?O[iM[R]]:null}if(J(iq,R))return e.getItemVisual(E,R)}function L(R){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return E$(le({axis:E},R))}}function I(){return t.getCurrentSeriesIndices()}function P(R){return vS(R,t)}}function kq(r){var e={};return M(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Dy(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=Y1(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&et(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Y1(r,e,t,n,a,i){var o=-1,s=e;e&&WO(e,n,a)&&(o=pe(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=W1(n),s&&Lq(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,Nq(u,t,n,a,l,Mr),Oq(u,t,n,a,l),$1(r,u,t,n,Mr,a,l),J(n,"info")&&(ia(u).info=n.info);for(var f=0;f<fi.length;f++){var v=fi[f];if(v!==Ua){var c=rd(n,v),h=X1(n,c,v);UO(v,u,c,h,Mr)}}return Rq(u,n,a),n.type==="group"&&Bq(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function WO(r,e,t){var n=ia(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Gq(i)&&$O(i)!==n.customPathData||a==="image"&&J(o,"image")&&o.image!==n.customImagePath}function Oq(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&WO(o,i,n)&&(o=null),o||(o=W1(i),r.setClipPath(o)),$1(null,o,e,i,null,n,a)}}function Nq(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){uM(t,null,i),uM(t,oa,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=W1(o),r.setTextContent(f)),$1(null,f,e,o,null,n,a);for(var v=o&&o.style,c=0;c<fi.length;c++){var h=fi[c];if(h!==Ua){var d=i[h].conOpt;UO(h,f,d,X1(o,d,h),null)}}v?f.dirty():f.markRedraw()}}}}function uM(r,e,t){var n=e?rd(r,e):r,a=e?X1(r,n,oa):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?rd(s,e):s:null;if(a&&(t.isLegacy||AE(a,i,!!o,!!l))){t.isLegacy=!0;var u=ME(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function rd(r,e){return e?r?r[e]:null:r}function X1(r,e,t){var n=e&&e.style;return n==null&&t===oa&&r&&(n=r.styleEmphasis),n}function Bq(r,e,t,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){zq({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],c=e.childAt(f);v?(v.ignore==null&&(v.ignore=!1),Y1(r,c,t,v,a,e)):c.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var d=e.childAt(h);Vq(e,d,a)}}}function Vq(r,e,t){e&&vp(e,ia(r).option,t)}function zq(r){new ga(r.oldChildren,r.newChildren,fM,fM,r).add(vM).update(vM).remove(Fq).execute()}function fM(r,e){var t=r&&r.name;return t??Dq+e}function vM(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;Y1(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function Fq(r){var e=this.context,t=e.oldChildren[r];t&&vp(t,ia(t).option,e.seriesModel)}function $O(r){return r&&(r.pathData||r.d)}function Gq(r){return r&&(J(r,"pathData")||J(r,"d"))}function Hq(r){r.registerChartView(Pq),r.registerSeriesModel(oq)}var to=me(),cM=ae,Iy=j,Z1=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var c=xe(hM,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}pM(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.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=f1(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=to(e).pointerEl=new Xo[i.type](cM(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=to(e).labelEl=new Re(cM(t.label));e.add(i),dM(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=to(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=to(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),dM(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.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=Nf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ua(u.event)},onmousedown:Iy(this._onHandleDragMove,this,0,0),drift:Iy(this._onHandleDragMove,this),ondragend:Iy(this._onHandleDragEnd,this)}),n.add(a)),pM(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");H(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ml(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){hM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ly(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Ly(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ly(a)),to(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),rf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function hM(r,e,t,n){YO(to(t).lastProp,n)||(to(t).lastProp=n,e?Oe(t,n,r):(t.stopAnimation(),t.attr(n)))}function YO(r,e){if(fe(r)&&fe(e)){var t=!0;return M(e,function(n,a){t=t&&YO(r[a],n)}),!!t}else return r===e}function dM(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ly(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function pM(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function q1(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function XO(r,e,t,n,a){var i=t.get("value"),o=ZO(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Bf(s.get("padding")||0),u=s.getFont(),f=wd(o,u),v=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=a.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),Uq(v,c,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Ze(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Uq(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function ZO(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Lh(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),Z(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function j1(r,e,t){var n=nt();return hi(n,n,t.rotation),kn(n,n,t.position),Qr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function qO(r,e,t,n,a,i){var o=ar.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),XO(e,n,a,i,{position:j1(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function K1(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function jO(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function gM(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}function J1(r,e,t){return Vt(r,{fromStat:{sers:U(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function Q1(r,e,t){return[we(He(e[0],e[1]),r-t/2),He(r+t/2,we(e[0],e[1]))]}var Wq=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),v=yM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=q1(i),d=$q[u](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=zh(l.getRect(),a);qO(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=zh(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=j1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yM(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=n[f],v[f]=He(l[1],v[f]),v[f]=we(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(Z1);function yM(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var $q={line:function(r,e,t,n){var a=K1([e,n[0]],[e,n[1]],mM(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=J1(r,a,i),s=n[1]-n[0],l=Q1(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:jO([u,n[0]],[f-u,s],mM(r))}}};function mM(r){return r.dim==="x"?0:1}var Yq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:N.color.border,width:1,type:"dashed"},shadowStyle:{color:N.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:N.color.neutral00,padding:[5,7,5,7],backgroundColor:N.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:N.color.accent40,throttle:40}},e})(Me),ta=me(),Xq=M;function KO(r,e,t){if(!Le.node){var n=e.getZr();ta(n).records||(ta(n).records={}),Zq(n,e);var a=ta(n).records[r]||(ta(n).records[r]={});a.handler=t}}function Zq(r,e){if(ta(r).initialized)return;ta(r).initialized=!0,t("click",xe(Py,"click")),t("mousemove",xe(Py,"mousemove")),t("mousewheel",xe(Py,"mousewheel")),t("globalout",jq);function t(n,a){r.on(n,function(i){var o=Kq(e);Xq(ta(r).records,function(s){s&&a(s,i,o.dispatchAction)}),qq(o.pendings,e)})}}function qq(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function jq(r,e,t){r.handler("leave",null,t)}function Py(r,e,t,n){e.handler(r,t,n)}function Kq(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function s_(r,e){if(!Le.node){var t=e.getZr(),n=(ta(t).records||{})[r];n&&(ta(t).records[r]=null)}}var Jq=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";KO("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})})},e.prototype.remove=function(t,n){s_("axisPointer",n)},e.prototype.dispose=function(t,n){s_("axisPointer",n)},e.type="axisPointer",e})(Qe);function JO(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xo(i,r);if(o==null||o<0||H(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=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),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var _M=me();function Qq(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||j(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Yc(a)&&(a=JO({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Yc(a),u=i.axesInfo,f=s.axesInfo,v=n==="leave"||Yc(a),c={},h={},d={list:[],map:{}},p={showPointer:xe(tj,h),showTooltip:xe(rj,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[m],function(S,x){var w=S.axis,b=oj(u,S);if(!v&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=w.pointToData(a)),T!=null&&SM(S,T,p,!1,c)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&M(_.axesInfo,function(S,x){var w=h[x];if(S!==y&&w){var b=w.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,xM(S),xM(y)))),g[y.key]=b}})}),M(g,function(y,m){SM(f[m],y,p,!0,c)}),nj(h,f,c),aj(d,a,r,o),ij(f,o,t),c}}function SM(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=ej(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&F(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function ej(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(Hr(v)){var d=r-v,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=v,i.length=0),M(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function tj(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function rj(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=yf(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 nj(r,e,t){var n=t.axesInfo=[];M(e,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 aj(r,e,t,n){if(Yc(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function ij(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=_M(n)[a]||{},o=_M(n)[a]={};M(r,function(f,v){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&M(c.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}M(i,function(f,v){!o[v]&&l.push(u(f))}),M(o,function(f,v){!i[v]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oj(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function xM(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Yc(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Jf(r){es.registerAxisPointerClass("CartesianAxisPointer",Wq),r.registerComponentModel(Yq),r.registerComponentView(Jq),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=DY(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Qq)}function sj(r){Se(fk),Se(Jf)}var lj=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,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(),v=s.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=q1(i),d=fj[c](s,l,v,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=uj(n,a,i,l,p);XO(t,a,i,o,g)},e})(Z1);function uj(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=nt();hi(c,c,s),kn(c,c,[n.cx,n.cy]),u=Qr([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,d=ar.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=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",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var fj={line:function(r,e,t,n,a){return r.dim==="angle"?{type:"Line",shape:K1(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n,a,i,o){var s=Math.PI/180,l=J1(r,i,o),u;if(r.dim==="angle")u=gM(e.cx,e.cy,a[0],a[1],(-t-l/2)*s,(-t+l/2)*s);else{var f=Q1(t,n,l),v=f[0],c=f[1];u=gM(e.cx,e.cy,v,c,0,Math.PI*2)}return{type:"Sector",shape:u}}},Pn="polar",wM=Pn,vj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type=Pn,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Me),ex=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",at).models[0]},e.type="polarAxis",e})(Me);xt(ex,Yf);var cj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(ex),hj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(ex),tx=(function(r){B(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e})(ln);tx.prototype.dataToRadius=ln.prototype.dataToCoord;tx.prototype.radiusToData=ln.prototype.coordToData;var dj=me(),rx=(function(r){B(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=wd(s==null?"":s+"",n.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=dj(t.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},e})(ln);rx.prototype.dataToAngle=ln.prototype.dataToCoord;rx.prototype.angleToData=ln.prototype.coordToData;var QO=["radius","angle"],pj=(function(){function r(e){this.dimensions=QO,this.type=Pn,this.cx=0,this.cy=0,this._radiusAxis=new tx,this._angleAxis=new rx,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[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(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.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:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+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(e,t,n){var a=bM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=bM(t);return a===this?this.pointToData(n):null},r})();function bM(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function gj(r,e,t){var n=e.get("center"),a=bt(e,t).refContainer;r.cx=q(n[0],a.width)+a.x,r.cy=q(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:H(s)||(s=[0,s]);var l=[q(s[0],o),q(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function yj(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(Po(n,ol),Po(a,ol),sl(n),sl(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 mj(r){return r.mainType==="angleAxis"}function CM(r,e){var t;if(r.type=qd(e),r.scale=Uf(e,r.type,!1),r.onBand=$f(r.scale,e),r.inverse=e.get("inverse"),mj(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var _j={dimensions:QO,create:function(r,e){var t=[];return r.eachComponent(wM,function(n,a){var i=new pj(a+"");i.update=yj;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");CM(o,l),CM(s,u),gj(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Pn){var a=n.getReferringComponents(wM,at).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(Lo(i.getRadiusAxis(),n,Pn),Lo(i.getAngleAxis(),n,Pn))}}),t}},Sj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rc(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function nc(r){var e=r.getRadiusAxis();return e.inverse?0:1}function TM(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var xj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];M(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ae(f);var v=a.scale;f.coord=a.dataToCoord(Ll(v,f.tick)),u.push(f)}}),TM(u),TM(s),M(Sj,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&wj[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(es),wj={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=nc(t),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new Xo[h]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new Ef({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[nc(t)],u=U(n,function(f){return new dt({shape:rc(t,[l,l+s],f.coord)})});r.add(Or(u,{style:le(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[nc(t)],f=[],v=0;v<a.length;v++)for(var c=0;c<a[v].length;c++)f.push(new dt({shape:rc(t,[u,u+l],a[v][c].coord)}));r.add(Or(f,{style:le(s.getModel("lineStyle").getLineStyle(),le(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");M(o,function(v,c){var h=l,d=v.tick.value,p=i[nc(t)],g=t.coordToPoint([p+u,v.coord]),y=t.cx,m=t.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(e),style:Ze(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(w),xa({el:w,componentModel:e,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return w.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var b=ar.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=v.rawLabel,ve(w).eventData=b}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<n.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new dt({shape:rc(t,i,n[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Or(f[v],{style:le({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.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:rc(t,i,a[u][f].coord)}));r.add(Or(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,c=-n[0].coord*v,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.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:t.cx,cy:t.cy,r0:h,r:d,startAngle:c,endAngle:-m*v,clockwise:p},silent:!0})),c=-m*v}for(var g=0;g<f.length;g++)r.add(Or(f[g],{style:le({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},bj=["splitLine","splitArea","minorSplitLine"],Cj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new oe;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),d=Aj(l,t,c),p=new ar(t,a,d);p.build(),o.add(p.group),Of(i,o,t),M(bj,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&Tj[g](this.group,t,l,c,h,f,v)},this)}},e.type="radiusAxis",e})(es),Tj={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[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 Xo[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,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,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new Sa({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(Or(u,{style:le({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=i[0].coord,c=1;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Xt({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[c].coord}for(var c=0;c<f.length;c++)r.add(Or(f[c],{style:le({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function Aj(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var Mj=Sl();function eN(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var Dj=wt(In,Ij);function Ij(r){var e=Qo(In,Pn);XS(r,e,function(t){var n=Pj(t,In),a={};Io(t,e,function(i){Lj(t,i,n,a)})})}function Lj(r,e,t,n){var a=e.getData(),i=eN(e),o=t[i],s=o.offset,l=o.width,u=e.coordinateSystem,f=u.getOtherAxis(r),v=u.cx,c=u.cy,h=e.get("barMinHeight")||0,d=e.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(r.dim),y=ii(a,p),m=r.dim!=="radius"||!e.get("roundCap",!0),_=f.dataToCoord(GE(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,D=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,D=C+P,L=R-s,I=L-l,y&&(n[i][b][T]=D)}else{var E=f.dataToCoord(w,m)-_,O=r.dataToCoord(b);it(E)<d&&(E=(E<0?-1:1)*d),A=O+s,D=A+l,L=C,I=C+E,y&&(n[i][b][T]=I)}a.setItemLayout(S,{cx:v,cy:c,r0:A,r:D,startAngle:-L*sh/180,endAngle:-I*sh/180,clockwise:L>=I})}}function Pj(r,e){var t=Qo(e,Pn),n=Vt(r,{fromStat:{key:t},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Io(r,t,function(g){var y=eN(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=q(g.get("barWidth"),n),_=q(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=q(o,n),v=q(s,1),c=(a-f)/(i+(i-1)*v);c=we(c,0),M(l,function(g,y){var m=g.maxWidth;m&&m<c&&(m=He(m,a),g.width&&(m=He(m,g.width)),a-=m,g.width=m,i--)}),c=(a-f)/(i+(i-1)*v),c=we(c,0);var h=0,d;M(l,function(g,y){g.width||(g.width=c),d=g,h+=g.width*(1+v)}),d&&(h-=d.width*v);var p=-h/2;return M(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+v)}),u}function Rj(r,e){Mj(r,function(){var t=Qo(e,Pn);FE(r,t,e,Pn),Kd(t,tp(t))})}var Ej={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},kj={splitNumber:5},Oj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Qe);function Nj(r){Se(Jf),es.registerAxisPointerClass("PolarAxisPointer",lj),r.registerCoordinateSystem("polar",_j),r.registerComponentModel(vj),r.registerComponentView(Oj),ul(r,"angle",cj,Ej),ul(r,"radius",hj,kj),r.registerComponentView(xj),r.registerComponentView(Cj),r.registerLayout(Dj),Rj(r,In)}function l_(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};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 v={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=v[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-c:c,a.z2=1,a}var Bj=["splitArea","splitLine","breakArea"],Vj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new oe;var l=l_(t),u=new ar(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),M(Bj,function(f){t.get([f,"show"])&&zj[f](this,this.group,this._axisGroup,t,a)},this),Of(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){sk(this)},e.type="singleAxis",e})(es),zj={splitLine:function(r,e,t,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(),v=i.isHorizontal(),c=[],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);v?(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});tl(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<c.length;++y)e.add(Or(c[y],{style:le({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,e,t,n,a){ok(r,t,n,n)},breakArea:function(r,e,t,n,a){var i=jf(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,n,n.coordinateSystem.getRect(),a)}},Fj=(function(r){B(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e})(ln),tN=["single"],Gj=(function(){function r(e,t,n){this.type=rp,this.dimension="single",this.dimensions=tN,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=qd(e),o=new Fj(a,Uf(e,i,!0),[0,0],i,e.get("position"));o.onBand=$f(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var n=this._axis;Po(n,ol),sl(n)},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=tt(e.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=AM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=AM(t);return a===this?this.pointToData(n):null},r})();function AM(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Hj(r,e){var t=[];return r.eachComponent(H0,function(n,a){var i=new Gj(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===zY){var a=n.getReferringComponents(H0,at).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Lo(i.getAxis(),n,rp)}}),t}var Uj={create:Hj,dimensions:tN},MM=["x","y"],Wj=["width","height"],$j=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=nd(s),f=ac(l,u),v=ac(l,1-u),c=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=q1(i),p=Yj[h](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var g=l_(a);qO(n,t,g,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=l_(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=j1(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=nd(o),u=ac(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=ac(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e})(Z1),Yj={line:function(r,e,t,n){var a=K1([e,n[0]],[e,n[1]],nd(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=J1(r,a,i),s=n[1]-n[0],l=Q1(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:jO([u,n[0]],[f-u,s],nd(r))}}};function nd(r){return r.isHorizontal()?0:1}function ac(r,e){var t=r.getRect();return[t[MM[e]],t[MM[e]]+t[Wj[e]]]}var Xj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Qe);function Zj(r){Se(Jf),es.registerAxisPointerClass("SingleAxisPointer",$j),r.registerComponentView(Xj),r.registerComponentView(Vj),r.registerComponentModel(Uc),ul(r,"single",Uc,Uc.defaultOption),r.registerCoordinateSystem("single",Uj)}var qj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=qo(t);r.prototype.init.apply(this,arguments),DM(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),DM(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:N.color.axisLine,width:1,type:"solid"}},itemStyle:{color:N.color.neutral00,borderWidth:1,borderColor:N.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:N.size.s,color:N.color.secondary},monthLabel:{show:!0,position:"start",margin:N.size.s,align:"center",formatter:null,color:N.color.secondary},yearLabel:{show:!0,position:null,margin:N.size.xl,formatter:null,color:N.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Me);function DM(r,e){var t=r.cellSize,n;H(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=U([0,1],function(i){return vG(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});zn(r,e,{type:"box",ignoreSize:a})}var jj=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.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,v=new be({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(v)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=n.start,c=0;v.time<=n.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(n.start.y+"-"+n.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=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(t,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)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.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},e.prototype._drawSplitline=function(t,n,a){var i=new Bt({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.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},e.prototype._formatterLabel=function(t,n){return Z(t)&&t?H2(t,n):ie(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,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]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.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,v=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},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:Ze(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[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}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(n=r0(s)||n),s=n.get(["time","monthAbbr"])||[]);var c=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<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+v[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:F(Ze(o,{text:b}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(T)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],v=a==="start";return n==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||Z(f)){f&&(n=r0(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()];v=q(v,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,v=-v);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+c)%7);var x=new Re({z2:30,style:F(Ze(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,p)),silent:g});o.add(x)}}},e.type="calendar",e})(Qe),Ry=864e5,Kj=(function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,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(e){e=$o(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var 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];M([0,1],function(v){f(i,v)&&(o[a[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=tt(o,l);M([0,1],function(v){f(i,v)||(i[v]=u[a[v]]/s[v])});function f(v,c){return v[c]!=null&&v[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,n){n=n||[],H(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+Ry))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(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(e,t);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),To(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);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(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=Ey(t);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(e,t,n){var a=Ey(t);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=Ey(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(H(e)&&e.length===1&&(e=e[0]),H(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[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);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/Ry)-Math.floor(t[0].time/Ry)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),v=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){zf({targetModel:i,coordSysType:"calendar",coordSysProvider:Z2})}),n},r.dimensions=["time","value"],r})();function Ey(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function Jj(r){r.registerComponentModel(qj),r.registerComponentView(jj),r.registerCoordinateSystem("calendar",Kj)}var Qn={level:1,leaf:2,nonLeaf:3},sa={none:0,all:1,body:2,corner:3};function u_(r,e,t){var n=e[de[t]].getCell(r);return!n&&Ee(r)&&r<0&&(n=e[de[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function rN(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function nN(r,e,t,n,a){IM(r[0],e,a,t,n,0),IM(r[1],e,a,t,n,1)}function IM(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=H(o)?o:[o],l=s.length,u=!!t;if(l>=1?(LM(r,e,s,u,a,i,0),l>1&&LM(r,e,s,u,a,i,l-1)):r[0]=r[1]=NaN,u){var f=-a[de[1-i]].getLocatorCount(i),v=a[de[i]].getLocatorCount(i)-1;t===sa.body?f=we(0,f):t===sa.corner&&(v=He(-1,v)),v<f&&(f=v=NaN),Wt(r[0])&&(r[0]=f),Wt(r[1])&&(r[1]=v),r[0]=we(He(r[0],v),f),r[1]=we(He(r[1],v),f)}}function LM(r,e,t,n,a,i,o){var s=u_(t[o],a,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[de[i]],u=l,f=rK(s);f&&(u+=f.span[de[i]]-1),r[0]=He(r[0],l,u),r[1]=we(r[1],l,u)}function ic(r,e){return Wt(r[e][0])||Wt(r[e][1])}function PM(r,e,t,n){e=e||Qj;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&eK(r,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var Qj=[];function eK(r,e){return!RM(r[0],e[0])||!RM(r[1],e[1])?!1:(r[0][0]=He(r[0][0],e[0][0]),r[0][1]=we(r[0][1],e[0][1]),r[1][0]=He(r[1][0],e[1][0]),r[1][1]=we(r[1][1],e[1][1]),!0)}function RM(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function EM(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function tK(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function kM(r,e,t,n){var a=u_(e[n][0],t,n),i=u_(e[n][1],t,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 su(r,e,t,n){return r[de[e]]=t,r[de[1-e]]=n,r}function rK(r){return r&&(r.type===Qn.leaf||r.type===Qn.nonLeaf)?r:null}function ad(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var OM=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=nK(e);var n=t.get("data",!0),a=t.get("length",!0);if(n!=null&&!H(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(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,v){var c=0;return u&&M(u,function(h,d){var p;Z(h)?p={value:h}:fe(h)?(p=h,h.value!=null&&!Z(h.value)&&(p={value:null})):p={value:null};var g={type:Qn.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new ue,span:su(new ue,t.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:t,rect:ad()};o++,(i[f]||(i[f]=[])).push(g),a[v]||(a[v]={type:Qn.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:t});var y=s(p.children,f,v+1),m=Math.max(1,y);g.span[de[t.dimIdx]]=m,c+=m,f+=m}),c}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var c=v.option.value;u.push(c),n.push(v),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,n);var h=t._ordinalMeta=new af({categories:u,needCollect:!1,deduplication:!1});t._scale=new lf({ordinalMeta:h});for(var d=0;d<t._leavesCount;d++){var p=t._cells[d];p.type=Qn.leaf,p.span[de[1-t.dimIdx]]=t._levels.length-p.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Qn.level,xy:NaN,wh:NaN,option:null,id:new ue,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new af({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:Qn.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new ue,span:su(new ue,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:ad()};e._leavesCount++,e._setCellId(i)}});e._scale=new lf({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;su(e.id,n,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;M(this._cells,function(n){su(n.id,t,n.firstLeafLocator,n.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get("levels",!0);n=H(n)?n:[],M(this._levels,function(a,i){su(a.id,t,0,i-e),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,n,a){if(e=e||new ja,t===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.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,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new ja).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new ja).reset(this._levels,0)},r.prototype.getLayout=function(e,t,n){var a=this.getUnitLayoutInfo(t,n);e[de[t]]=a?a.xy:NaN,e[lt[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Wt(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function nK(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(t))&&(n=we(n,+l[1]+1))}function i(){return""+e+n++}function o(s,l){for(var u=K(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=le({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var NM=(function(){function r(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=K(),n()),t;function n(){var i=[],o=e._model.getShallow("data");o&&!H(o)&&(o=null),M(o,function(d,p){if(!(!fe(d)||!H(d.coord))){var g=rN([]),y=null;if(nN(g,y,d.coord,e._dims,d.coordClamp?sa[e._kind]:sa.none),!(ic(g,0)||ic(g,1))){var m=d&&d.mergeCells,_={id:new ue,span:new ue,locatorRange:g,option:d,cellMergeOwner:m};EM(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;PM(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=F({},u.option);c.coord=null;var h={id:new ue,span:new ue,locatorRange:f,option:c,cellMergeOwner:!0};EM(h,f),i.push(h)}}}M(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=ad(),e._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=BM(i,o),l=t.get(s);return l||(l=t.set(s,{id:new ue(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(BM(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!ic(e,0)&&!ic(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){ky[0]=e[0][0],ky[1]=e[1][0];var t=this.getCell(ky),n=t&&t.inSpanOf;if(n){tK(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;PM(e,null,a,a.length)},r})(),ky=[];function BM(r,e){return r+"|"+e}var nx={show:!0,color:N.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function ax(r){return{color:"none",borderWidth:1,borderColor:r?"none":N.color.borderTint}}var VM={show:!0,label:nx,itemStyle:ax(!1),silent:void 0,dividerLineStyle:{width:1,color:N.color.border}},aK={label:nx,itemStyle:ax(!1),silent:void 0},iK={label:nx,itemStyle:ax(!0),silent:void 0},oK={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:VM,y:VM,body:aK,corner:iK,backgroundStyle:{color:"none",borderColor:N.color.axisLine,borderWidth:1},triggerEvent:!1},sK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new zM(this.get("x",!0)||{}),y:new zM(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var n=t.x.dim=new OM("x",t.x),a=t.y.dim=new OM("y",t.y),i={x:n,y:a};this._body=new NM("body",new Ie(this.getShallow("body")),i),this._corner=new NM("corner",new Ie(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=oK,e})(Me),zM=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Ie),oc=Math.round,lK=0,uK=99,fK={normal:25,special:100},vK={normal:50,special:125},cK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n){this.group.removeAll();var a=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;hK(a,t,n),dK(a,t,u,f,n);var v=t.getShallow("borderZ2",!0),c=Q(v,uK),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=f_(o.clone(),d,lK),y=f_(o.clone(),p,c);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(FM({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(FM({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e})(Qe);function hK(r,e,t){n(0),n(1);function n(a){var i=e.getDimensionModel(de[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};se.copy(h,c.rect),Ya(f,c.id.x,c.id.y),aN(f,e,r,t,c.option,s,l,i,h,c.option.value,vK,u,a===0?"x":"y")}}}function dK(r,e,t,n,a){i("body",e.getBody(),t,n),t.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,t);function i(o,s,l,u){var f=new Ie(e.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new ja,d=new ja,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;Ya(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;aN(p,e,r,a,x,v,c,f,S,x?x.value:null,fK,g,o)}}}}function aN(r,e,t,n,a,i,o,s,l,u,f,v,c){var h;sc.option=a?a.itemStyle:null,sc.parentModel=i,ws.option=a,ws.parentModel=s;var d=Q(ws.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=v&&v.show,g=f_(l,sc.getItemStyle(),d);t.add(g);var y=ws.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";Wi.option=a?a.label:null,Wi.parentModel=o,Wi.ecModel=n;var S=Wi.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:e.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(Z(S))_=H2(S,x);else if(ie(S)){var w=S(x);w!=null&&(_=w+"")}}if(Mt(g,{normal:Wi},{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),To(T,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(lc),Gr(lc,lc),se.applyTransform(T,T,lc),m.setClipPath(new be({shape:T}))}}xa({el:g,componentModel:e,itemName:_,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}var C=e.get("triggerEvent",!0);if(m){var A=Wi.get("silent");A==null&&(A=!(C||p)),m.silent=A,m.ignoreHostSilent=!0}var D=ws.get("silent");if(D==null&&(D=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=D,C&&g){var L={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ve(g).eventData=L}Hp(ws),Hp(sc),Hp(Wi)}var ws=new Ie,sc=new Ie,Wi=new Ie,lc=[];function f_(r,e,t){var n=e.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:e,z2:t})}function FM(r,e,t){var n=e.lineWidth;return n&&(oc(r.x1*2)===oc(r.x2*2)&&(r.x1=r.x2=Sr(r.x1,n,!0)),oc(r.y1*2)===oc(r.y2*2)&&(r.y1=r.y2=Sr(r.y1,n,!0))),new dt({shape:r,style:e,silent:!0,z2:t})}var pK=(function(){function r(e,t,n){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var n=[];return e.eachComponent("matrix",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){zf({targetModel:i,coordSysType:"matrix",coordSysProvider:Z2})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var n=this._dims,a=this._dimModels,i=this._rect=tt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});GM(a,n,i,0),GM(a,n,i,1),HM(0,n),HM(1,n),UM(this._model.getBody(),n),UM(this._model.getCorner(),n)},r.prototype.dataToPoint=function(e,t,n){return n=n||[],this.dataToLayout(e,t,lu),n[0]=lu.rect.x+lu.rect.width/2,n[1]=lu.rect.y+lu.rect.height/2,n},r.prototype.dataToLayout=function(e,t,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=rN(n.matrixXYLocatorRange);return H(e)&&(nN(o,null,e,a,Q(t&&t.clamp,sa.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==sa.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==sa.body)&&this._model.getCorner().expandRangeByCellMerge(o)),kM(i,o,a,0),kM(i,o,a,1)),n},r.prototype.pointToData=function(e,t,n){var a=this._dims;return WM(dn,0,a,e,t&&t.clamp),WM(dn,1,a,e,t&&t.clamp),n=n||[],n[0]=n[1]=NaN,dn.y===kt.inCorner&&dn.x===kt.inBody?$M(dn,n,0,a):dn.x===kt.inCorner&&dn.y===kt.inBody?$M(dn,n,1,a):(YM(dn,n,0,a),YM(dn,n,1,a)),n},r.prototype.convertToPixel=function(e,t,n,a){var i=Ny(t);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(e,t,n,a){var i=Ny(t);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(e,t,n,a){var i=Ny(t);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),lu={rect:ad()},uc=new ja,Oy=new ja;function GM(r,e,t,n){for(var a=1-n,i=e[de[n]],o=e[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=t[lt[n]],v=i.getLocatorCount(n)+o.getLocatorCount(n),c=new Ie,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[de[a]],g(h.item,s?c.get("levelSize"):0);for(var d=new Ie,p=i.resetCellIterator();p.next();)p.item.type===Qn.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(b,T){var C=gK(T,n,t);Wt(C)||(b.wh=v_(C,f),f=v_(f-b.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=t[de[n]],S=i.getLocatorCount(n)-1,x=new ja;for(o.resetLayoutIterator(x,n);x.next();)w(x.item);for(i.resetLayoutIterator(x,n);x.next();)w(x.item);function w(b){Wt(b.wh)&&(b.wh=y),b.xy=_,b.id[de[n]]===S&&!m&&(b.wh=t[de[n]]+t[lt[n]]-b.xy),_+=b.wh}}function HM(r,e){for(var t=e[de[r]].resetCellIterator();t.next();){var n=t.item;id(n.rect,r,n.id,n.span,e),id(n.rect,1-r,n.id,n.span,e),n.type===Qn.nonLeaf&&(n.xy=n.rect[de[r]],n.wh=n.rect[lt[r]])}}function UM(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;id(a,0,i,n,e),id(a,1,i,n,e)}})}function id(r,e,t,n,a){r[lt[e]]=0;var i=t[de[e]],o=i<0?a[de[1-e]]:a[de[e]],s=o.getUnitLayoutInfo(e,t[de[e]]);if(r[de[e]]=s.xy,r[lt[e]]=s.wh,n[de[e]]>1){var l=o.getUnitLayoutInfo(e,t[de[e]]+n[de[e]]-1);r[lt[e]]=l.xy+l.wh-s.xy}}function gK(r,e,t){var n=lh(r,t[lt[e]]);return v_(n,t[lt[e]])}function v_(r,e){return Math.max(Math.min(r,Q(e,1/0)),0)}function Ny(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var kt={inBody:1,inCorner:2,outside:3},dn={x:null,y:null,point:[]};function WM(r,e,t,n,a){var i=t[de[e]],o=t[de[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,v=r.point[e]=n[e];if(!l&&!f){r[de[e]]=kt.outside;return}if(a===sa.body){l?(r[de[e]]=kt.inBody,v=He(s.xy+s.wh,we(l.xy,v)),r.point[e]=v):r[de[e]]=kt.outside;return}else if(a===sa.corner){f?(r[de[e]]=kt.inCorner,v=He(f.xy+f.wh,we(u.xy,v)),r.point[e]=v):r[de[e]]=kt.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(v<h){if(!a){r[de[e]]=kt.outside;return}v=h}else if(v>d){if(!a){r[de[e]]=kt.outside;return}v=d}r.point[e]=v,r[de[e]]=c<=v&&v<=d?kt.inBody:h<=v&&v<=c?kt.inCorner:kt.outside}function $M(r,e,t,n){var a=1-t;if(r[de[t]]!==kt.outside)for(n[de[t]].resetCellIterator(Oy);Oy.next();){var i=Oy.item;if(XM(r.point[t],i.rect,t)&&XM(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[de[a]];return}}}function YM(r,e,t,n){if(r[de[t]]!==kt.outside){var a=r[de[t]]===kt.inCorner?n[de[1-t]]:n[de[t]];for(a.resetLayoutIterator(uc,t);uc.next();)if(yK(r.point[t],uc.item)){e[t]=uc.item.id[de[t]];return}}}function yK(r,e){return e.xy<=r&&r<=e.xy+e.wh}function XM(r,e,t){return e[de[t]]<=r&&r<=e[de[t]]+e[lt[t]]}function mK(r){r.registerComponentModel(sK),r.registerComponentView(cK),r.registerCoordinateSystem("matrix",pK)}function _K(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function ZM(r,e){var t;return M(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function SK(r,e,t){var n=F({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(_e(a,n,!0),zn(a,n,{ignoreSize:!0}),Q2(t,a),fc(t,a),fc(t,a,"shape"),fc(t,a,"style"),fc(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var iN=["transition","enterFrom","leaveTo"],xK=iN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fc(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?iN:xK,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function wK(r,e){if(r&&(r.hv=e.hv=[ZM(e,["left","right"]),ZM(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var bK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=TL(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,v){var c=f.newOption;c&&(u.push(c),_K(f,c),SK(o,v,c),wK(o[v],c))},this),a.elements=ze(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){M(t,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)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Me),qM={path:null,compoundPath:null,group:oe,image:Rt,text:Re},Er=me(),CK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=K()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");M(n,function(l){var u=mt(l.id,null),f=u!=null?a.get(u):null,v=mt(l.parentId,null),c=v!=null?a.get(v):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&&AE(d,h,!!g,!!p)){var y=ME(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=TK(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var w=!f,b=f;w?b=jM(u,c,l.type,a):(b&&(Er(b).isNew=!1),HO(b)),b&&($c(b,m,t,{isInit:w}),KM(b,l,o,s))}else if(x){Xc(f,l,a,t);var T=jM(u,c,l.type,a);T&&($c(T,m,t,{isInit:!0}),KM(T,l,o,s))}else _==="remove"&&(FO(f,l),Xc(f,l,a,t));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 D=l.clipPath;if(D){var L=D.type,I=void 0,w=!1;if(S){var P=C.getClipPath();w=!P||Er(P).type!==L,I=w?c_(L):P}else x&&(w=!0,I=c_(L));C.setClipPath(I),$c(I,D,t,{isInit:w}),td(I,D.keyframeAnimation,t)}var R=Er(C);C.setTextConfig(g),R.option=l,AK(C,t,l),xa({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),td(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Er(h),y=Er(d);g.width=q(g.option.width,p?s:y.width)||0,g.height=q(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Er(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Hd(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Er(h).isNew&&S){for(var x=v.transition,w={},b=0;b<u.length;b++){var T=u[b],C=_[T];x&&(mo(x)||pe(x,T)>=0)?w[T]=C:h[T]=C}Oe(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){Xc(a,Er(a).option,n,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Qe);function c_(r){var e=J(qM,r)?qM[r]:dh(r),t=new e({});return Er(t).type=r,t}function jM(r,e,t,n){var a=c_(t);return e.add(a),n.set(r,a),Er(a).id=r,Er(a).isNew=!0,a}function Xc(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){Xc(i,e,t,n)}),vp(r,e,n),t.removeKey(Er(r).id))}function KM(r,e,t,n){r.isGroup||M([["cursor",Ur.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];J(e,i)?r[i]=Q(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),M(De(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=ie(i)?i:null}}),J(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function TK(r){return r=F({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(q2),function(e){delete r[e]}),r}function AK(r,e,t){var n=ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function MK(r){r.registerComponentModel(bK),r.registerComponentView(CK),r.registerPreprocessor(function(e){var t=e.graphic;H(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var JM=["x","y","radius","angle","single"],DK=me(),IK=["cartesian2d","polar","singleAxis"];function LK(r){var e=r.get("coordinateSystem");return pe(IK,e)>=0}function Wa(r){return r+"Axis"}function PK(r,e){var t=K(),n=[],a=K();r.eachComponent({mainType:"dataZoom",query:e},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 v=!1;return f.eachTargetAxis(function(c,h){var d=t.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}return n}function oN(r){var e=r.ecModel,t={infoList:[],infoMap:K()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Wa(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}function sN(r){var e=DK($P(r));return e.axisProxyMap||(e.axisProxyMap=K())}function od(r){if(r)return sN(r.ecModel).get(r.uid)}function RK(r,e){sN(r.ecModel).set(r.uid,e)}function lN(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?od(t.model):null}var By=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),Mf=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=QM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=QM(t);_e(this.option,t,!0),_e(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=K(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return M(JM,function(a){var i=this.getReferringComponents(Wa(a),Rz);if(i.specified){n=!0;var o=new By;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,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 v=u[0];if(v){var c=new By;if(c.add(v.componentIndex),t.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",at).models[0];h&&M(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",at).models[0]&&c.add(d.componentIndex)})}}}i&&M(JM,function(u){if(i){var f=a.findComponents({mainType:Wa(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new By;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Wa(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){return od(this.getAxisModel(t,n))},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Wa(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(t,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return od(t);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},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Me);function QM(r){var e={};return M(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var EK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Mf),ix=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e})(Qe),kK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(ix),OK=(function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return ae(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(LK(t)){var n=Wa(this._dimName),a=t.getReferringComponents(n,at).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},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(e){var t=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,v=[!1,!1];M(["start","end"],function(_,S){var x=e[_],w=e[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),w=Be(x,s,t),v[S]=!0):(f=!0,w==null?w=t[S]:(w=a.parse(w),a.sanitize&&(w=a.sanitize(w,t))),x=Be(w,t,s)),u[S]=w==null||isNaN(w)?t[S]:w,l[S]=x==null||isNaN(x)?s[S]:x}),Nt(u),Nt(l);var c=this._minMaxSpan;f?h(u,l,t,s,!1):h(l,u,s,t,!0);function h(_,S,x,w,b){var T=b?"Span":"ValueSpan";si(0,_,x,"all",c["min"+T],c["max"+T]);for(var C=0;C<2;C++)S[C]=Be(_[C],x,w,!0),b&&(S[C]=S[C],v[C]=!0);Pc(S)}var d=qt(a)||Hf(a),p=n.getExtent(),g=it(p[1]-p[0]),y=d?0:W_(u,g,.5);M([[0,Uo],[1,rn]],function(_){var S=_[0],x=_[1];!v[S]||!isFinite(y)||(u[S]=ke(u[S],y),u[S]=He(t[1],we(t[0],u[S])),l[S]===s[S]&&(u[S]=t[S],d&&(u[S]=x(u[S]))))}),Pc(u);var m=[Be(u[0],t,s,!0),Be(u[1],t,s,!0)];return Pc(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Po(n,eU);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=le({start:t[0],end:t[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(e,t){if(!this.hostedBy(e))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._window.value;if(i==="none")return;M(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var v=u.getStore(),c=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=v.get(c[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 M(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)}});M(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;M(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Be(n[0]+o,n,[0,100],!0):i!=null&&(o=Be(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r})(),NK={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Wa(o),s);a(o,s,l,i)})})}var t=[];e(function(a,i,o,s){if(!od(o)){var l=new OK(a,i,s,r);t.push(l),RK(o,l)}});var n=K();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(a,i){var o=t.getAxisProxy(a,i),s=lN(t,o);s?n.push([o,s]):o.reset(t,null)}),M(n,function(a){a[0].reset(t,a[1].getWindow().percentInverted)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function BK(r){r.registerAction("dataZoom",function(e,t){var n=PK(t,e);M(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var VK=Sl();function ox(r){VK(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,NK),BK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function zK(r){r.registerComponentModel(EK),r.registerComponentView(kK),ox(r)}var Rn=(function(){function r(){}return r})(),uN={};function Ls(r,e){uN[r]=e}function fN(r){return uN[r]}var FK=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=F({},o),i.feature={}),r.prototype.init.call(this,t,n,a),o&&(i.feature=o)},e.prototype.optionUpdated=function(){M(this.option.feature,function(t,n){var a=this._themeFeatureOption,i=fN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(_e(t,a[n]),a[n]=null),_e(t,i.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:N.size.m,itemSize:15,itemGap:N.size.s,showTitle:!0,iconStyle:{borderColor:N.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:N.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(Me);function vN(r,e){var t=Bf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new be({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var GK=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features=K()),v=[];M(u,function(m,_){v.push(_)}),new ga(this._featureNames||[],v).add(c).update(c).remove(xe(c,null)).execute(),this._featureNames=ze(v,function(m){return f.hasKey(m)});function c(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,w=m==null,b=S||x?v[m]:v[_],T=u[b],C=S||x?new Ie(T,t,n):null,A=C&&C.get("show"),D;if(S){if(!A)return;if(HK(b))D={onclick:C.option.onclick,featureName:b};else{var L=fN(b);if(!L)return;D=new L}f.set(b,D)}else D=f.get(b);if(w||!A){eD(D)&&D.dispose&&D.dispose(n,a),f.removeKey(b);return}i&&i.newTitle!=null&&i.featureName===b&&(T.title=i.newTitle),S&&(D.uid=Zo("toolbox-feature")),D.model=C,D.ecModel=n,D.api=a,h(C,D,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"?da:pa)(E[I])},eD(D)&&D.render&&D.render(C,n,a,i)}function h(m,_,S){var x=m.getModel("iconStyle"),w=m.getModel(["emphasis","iconStyle"]),b=_ instanceof Rn&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,A;Z(b)?(C={},C[S]=b):C=b,Z(T)?(A={},A[S]=T):A=T;var D=m.iconPaths={};M(C,function(L,I){var P=Nf(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:vS({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),xa({el:P,componentModel:t,itemName:I,formatterParamsExtra:{title:A[I]}}),P.__title=A[I],P.on("mouseover",function(){var O=w.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:w.get("textFill")||O.fill||O.stroke||N.color.neutral99,backgroundColor:w.get("textBackgroundColor")}),P.setTextConfig({position:w.get("textPosition")||k}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(m.get(["iconStatus",I])==="emphasis"?da:pa)(P),o.add(P),P.on("click",j(_.onclick,_,n,a,I)),D[I]=P})}var d=bt(t,a).refContainer,p=t.getBoxLayoutParams(),g=t.get("padding"),y=tt(p,d,g);go(t.get("orient"),o,t.get("itemGap"),y.width,y.height),Hd(o,p,d,g),o.add(vN(o.getBoundingRect(),t)),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=wd(_,Re.makeFont(T)),A=m.x+o.x,D=m.y+o.y+s,L=!1;D+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")}})},e.prototype.updateView=function(t,n,a,i){M(this._features,function(o){o&&o instanceof Rn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.dispose=function(t,n){M(this._features,function(a){a&&a instanceof Rn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e})(Qe);function HK(r){return r.indexOf("my")===0}function eD(r){return r instanceof Rn}var UK=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.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)||t.get("backgroundColor")||N.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 v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[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}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:N.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(Rn),tD="__ec_magicType_stack__",WK=[["line","bar"],["stack"]],$K=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return M(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(rD[a]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=rD[a](c,h,v,i);d&&(le(d,v.option),s.series.push(d));var p=v.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",_=v.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"}}};M(WK,function(v){pe(v,a)>=0&&M(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),t.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"})}},e})(Rn),rD={line:function(r,e,t,n){if(r==="bar")return _e({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return _e({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===tD;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),_e({id:e,stack:a?"":tD},n.get(["option","stack"])||{},!0)}};Wn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var cp=new Array(60).join("-"),dl=" ";function YK(r){var e={},t=[],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=D$(o);e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function XK(r){var e=[];return M(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(U(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(dl)],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;c++)v.push(l[c][f]);u.push(v.join(dl))}e.push(u.join(`
54
- `))}),e.join(`
55
-
56
- `+cp+`
57
-
58
- `)}function ZK(r){return U(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+dl:"")+a.join(dl))}),n.join(`
59
- `)}).join(`
60
-
61
- `+cp+`
62
-
63
- `)}function qK(r){var e=YK(r);return{value:ze([XK(e.seriesGroupByCategoryAxis),ZK(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
64
-
65
- `+cp+`
66
-
67
- `),meta:e.meta}}function sd(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jK(r){var e=r.slice(0,r.indexOf(`
68
- `));if(e.indexOf(dl)>=0)return!0}var h_=new RegExp("["+dl+"]+","g");function KK(r){for(var e=r.split(/\n+/g),t=sd(e.shift()).split(h_),n=[],a=U(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=sd(e[i]).split(h_);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 JK(r){for(var e=r.split(/\n+/g),t=sd(e.shift()),n=[],a=0;a<e.length;a++){var i=sd(e[a]);if(i){var o=i.split(h_),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:t,data:n}}function QK(r,e){var t=r.split(new RegExp(`
69
- *`+cp+`
70
- *`,"g")),n={series:[]};return M(t,function(a,i){if(jK(a)){var o=KK(a),s=e[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=JK(a);n.series.push(o)}}),n}var eJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,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")||N.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 v=i.get("optionToContent"),c=i.get("contentToOption"),h=qK(t);if(ie(v)){var d=v(n.getOption());Z(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}Sm(_,"click",w),Sm(S,"click",function(){if(c==null&&v!=null||c!=null&&v==null){w();return}var b;try{ie(c)?b=c(u,n.getOption()):b=QK(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},e.prototype.dispose=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:N.color.background,textColor:N.color.primary,textareaColor:N.color.background,textareaBorderColor:N.color.border,buttonColor:N.color.accent50,buttonTextColor:N.color.neutral00};return n},e})(Rn);function tJ(r,e){return U(r,function(t,n){var a=e&&e[n];if(fe(a)&&!H(a)){var i=fe(t)&&!H(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=le(t,a),o&&delete t.name,t}else return t})}Wn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];M(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(F({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:tJ(n.data,i)})}}),e.mergeOption(le({series:t},r.newOption))});var cN=M,hN=me();function rJ(r,e){var t=sx(r);cN(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[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();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function nJ(r){var e=sx(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return cN(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function aJ(r){hN(r).snapshots=null}function iJ(r){return sx(r).length}function sx(r){var e=hN(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var oJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){aJ(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e})(Rn);Wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var sJ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],lx=(function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=nD(t,e);M(lJ,function(o,s){(!n||!n.include||pe(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Vy[n.brushType](0,i,a);n.__rangeOffset={offset:sD[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=Vy[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){M(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Vy[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?sD[n.brushType](i.values,o.offset,uJ(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_O(a),isTargetByCursor:xO(a,e,n.coordSysModel),getLinearBrushOtherExtent:SO(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&pe(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=nD(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<aD.length;l++)if(aD[l](a,o))return o}return!0},r})();function d_(r){return r[0]>r[1]&&r.reverse(),r}function nD(r,e){return Fs(r,e,{includeMainTypes:sJ})}var lJ={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=K(),o={},s={};!t&&!n&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(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=[];M(u.getCartesians(),function(v,c){(pe(t,v.getAxis("x").model)>=0||pe(n,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:iD.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){M(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:iD.geo})})}},aD=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],iD={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=mk(null,r);return UI(e,e,Wh(null,r)),e}},Vy={lineX:xe(oD,0),lineY:xe(oD,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[d_([a[0],i[0]]),d_([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[Ot(),Ot()],i=U(t,function(o){var s=r?e.pointToData(o,n):e.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 oD(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=d_(U([0,1],function(s){return e?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 sD={lineX:xe(lD,0),lineY:xe(lD,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return U(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function lD(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function uJ(r,e){var t=uD(r),n=uD(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function uD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var p_=M,fJ=Mz("toolbox-dataZoom_"),vJ={x:"width",y:"height"},cJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new P1(a.getZr()),this._brushController.on("brush",j(this._onBrush,this)).mount()),pJ(t,n,this,i,a),dJ(t,n)},e.prototype.onclick=function(t,n,a){hJ[a].call(this)},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new lx(ux(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,v){if(v.type==="cartesian2d"){var c=v.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",v,c,f[0]),s("y",v,c,f[1])):s({lineX:"x",lineY:"y"}[h],v,c,f)}}),rJ(i,a),this._dispatchZoomAction(a);function s(u,f,v,c){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)&&(c=si(0,c.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=W_(y,v[vJ[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?ke(c[0],m):c[0],endValue:isFinite(m)?ke(c[1],m):c[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var n=[];p_(t,function(a,i){n.push(ae(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:N.color.backgroundTint}};return n},e})(Rn),hJ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(nJ(this.ecModel))}};function ux(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function dJ(r,e){r.setIconStatus("back",iJ(e)>1?"emphasis":"normal")}function pJ(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new lx(ux(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yG("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=ux(n),o=Fs(r,i);p_(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),p_(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:fJ+u+v};c[f]=v,a.push(c)}return a});function gJ(r){r.registerComponentModel(FK),r.registerComponentView(GK),Ls("saveAsImage",UK),Ls("magicType",$K),Ls("dataView",eJ),Ls("dataZoom",cJ),Ls("restore",oJ),Se(zK)}var yJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:N.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:N.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:N.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:N.color.tertiary,fontSize:14}},e})(Me);function dN(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function pN(r){if(Le.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var gN=pN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),mJ=pN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function yN(r,e){if(!r)return e;e=F2(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function _J(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var SJ=yN(mJ,"transition"),fx=yN(gN,"transform"),xJ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Le.transform3dSupported?"will-change:transform;":"");function wJ(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function bJ(r,e,t){if(!Z(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=Mo(e);var i=wJ(t),o=Math.max(Math.round(a)*1.5,6),s="",l=fx+":",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,v=o+a,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" 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 CJ(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(Le.transformSupported?""+fx+a:",left"+a+",top"+a)),SJ+":"+i}function fD(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Le.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Le.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+fx+":"+o+";":[["top",0],["left",0],[gN,o]]}function TJ(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Q(r.get("lineHeight"),Math.round(t*3/2));t&&e.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&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),M(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function AJ(r,e,t,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"),v=r.getModel("textStyle"),c=PP(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),e&&i>0&&a.push(CJ(i,t,n)),o&&a.push("background-color:"+o),M(["width","color","radius"],function(d){var p="border-"+d,g=F2(p),y=r.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(TJ(v)),c!=null&&a.push("padding:"+Bf(c).join("px ")+"px"),a.join(";")+";"}function vD(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&ZB(r,o,t,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]/e.getWidth(),r[3]=r[1]/e.getHeight()}var MJ=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Le.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(Z(i)?document.querySelector(i):qs(i)?i:ie(i)&&i(e.getDom()));vD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,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(e){if(!this._container){var t=this._api.getDom(),n=_J(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=xJ+AJ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+fD(i[0],i[1],!0)+("border-color:"+Mo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(i)&&n.get("trigger")==="item"&&!dN(n)&&(s=bJ(n,a,i)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",H(e)||(e=[e]);for(var l=0;l<e.length;l++)qs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(vD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=fD(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",Le.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;qB(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),DJ=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),hD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;fe(e)&&Ve(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Re({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:PP(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=cD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;hD(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Ea(i.borderWidth||0),s=cD(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ea(r){return Math.max(0,r)}function cD(r){var e=Ea(r.shadowBlur||0),t=Ea(r.shadowOffsetX||0),n=Ea(r.shadowOffsetY||0);return{left:Ea(e-t),right:Ea(e+t),top:Ea(e-n),bottom:Ea(e+n)}}function hD(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var IJ=new be({shape:{x:-1,y:-1,width:2,height:2}}),LJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(Le.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=kz(a.get("renderMode"));this._tooltipContent=i==="richText"?new DJ(n):new MJ(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(Le.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Ml(this,"_updatePosition",50,"fixRate"):rf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");KO("itemTooltip",this._api,j(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(t.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(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||Le.node||!a.getDom())){var o=dD(i,a);this._ticket="";var s=i.dataByCoordSys,l=kJ(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=IJ;f.x=i.x,f.y=i.y,f.update(),ve(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(t,n,a,i))return;var v=JO(i,n),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.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))}},e.prototype.manuallyHideTip=function(t,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(dD(i,a))},e.prototype._manuallyAxisShowTip=function(t,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(),v=uu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;so(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ve(f).dataIndex!=null?l=f:ve(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=j(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=uu([n.tooltipOption],i),l=this._renderMode,u=[],f=pt("section",{blocks:[],noHeader:!0}),v=[],c=new dg;M(t,function(m){M(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=ZO(x,w,a,_.seriesDataIndices,_.valueLabelOpt),C=pt("section",{header:T,noHeader:!Br(T),sortBlocks:!0,blocks:[]});f.blocks.push(C),M(_.seriesDataIndices,function(A){var D=a.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,I=D.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Lh(S.axis,{value:b}),I.axisValueLabel=T,I.marker=c.makeTooltipMarker("item",Mo(I.color),l);var P=Sb(D.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=uu([D],i).get("valueFormatter");C.blocks.push(E?F({valueFormatter:E},R):R)}P.text&&v.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),v.reverse();var h=n.position,d=s.get("order"),p=Ab(f,c,l,d,a.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?`
71
-
72
- `:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,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,c)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ve(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=t.positionDefault,p=uu([c.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,v),m=new dg;y.marker=m.makeTooltipMarker("item",Mo(y.color),h);var _=Sb(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),w=_.frag,b=w?Ab(x?F({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,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ae(l),l.content=Qt(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,d=uu(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new dg;this._showOrMove(d,function(){var m=ae(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(Z(c)){var g=t.ecModel.get("useUTC"),y=H(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=Gd(y.axisValue,h,g)),h=G2(h,a,!0)}else if(ie(c)){var _=j(function(S,x){S===this._ticket&&(v.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,v,a,u))},this);this._ticket=i,h=c(a,i,_)}else h=c;v.setContent(h,f,t,p,l),v.show(t,p),this._updatePosition(t,l,o,s,v,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||H(n))return{color:i||o};if(!H(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.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:v.slice()})),H(n))a=q(n[0],u),i=q(n[1],f);else if(fe(n)){var p=n;p.width=v[0],p.height=v[1];var g=tt(p,{width:u,height:f});a=g.x,i=g.y,c=null,h=null}else if(Z(n)&&l){var y=EJ(n,d,v,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=PJ(a,i,o,u,f,c?null:20,h?null:20);a=y[0],i=y[1]}if(c&&(a-=pD(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=pD(h)?v[1]/2:h==="bottom"?v[1]:0),dN(t)){var y=RJ(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&M(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Le.node||!n.getDom()||(rf(this,"_updatePosition"),this._tooltipContent.dispose(),s_("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Qe);function uu(r,e,t){var n=e.ecModel,a;t?(a=new Ie(t,n,n),a=new Ie(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ie&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(a=new Ie(o,a,n)))}return a}function dD(r,e){return r.dispatchAction||j(e.dispatchAction,e)}function PJ(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function RJ(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function EJ(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function pD(r){return r==="center"||r==="middle"}function kJ(r,e,t){var n=q_(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=_l(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ve(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function OJ(r){Se(Jf),r.registerComponentModel(yJ),r.registerComponentView(LJ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var NJ=["rect","polygon","keep","clear"];function BJ(r,e){var t=Ye(r?r.brush:[]);if(t.length){var n=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;H(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),Td(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,NJ)}}var gD=M;function yD(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function g_(r,e,t){var n={};return gD(e,function(i){var o=n[i]=a();gD(r[i],function(s,l){if(At.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new At(u),l==="opacity"&&(u=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 mN(r,e,t){var n;M(t,function(a){e.hasOwnProperty(a)&&yD(e[a])&&(n=!0)}),n&&M(t,function(a){e.hasOwnProperty(a)&&yD(e[a])?r[a]=ae(e[a]):delete r[a]})}function VJ(r,e,t,n,a,i){var o={};M(r,function(v){var c=At.prepareVisualTypes(e[v]);o[v]=c});var s;function l(v){return RS(t,s,v)}function u(v,c){GP(t,s,v,c)}t.each(f);function f(v,c){s=v;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,v),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function zJ(r,e,t,n){var a={};return M(r,function(i){var o=At.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return RS(s,v,x)}function f(x,w){GP(s,v,x,w)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=n!=null?c.get(l,v):v,p=t(d),g=e[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function FJ(r){var e=r.brushType,t={point:function(n){return mD[e].point(n,t,r)},rect:function(n){return mD[e].rect(n,t,r)}};return t}var mD={lineX:_D(0),lineY:_D(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Qi(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.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(Qi(n,a,i)||Qi(n,a+o,i)||Qi(n,a,i+s)||Qi(n,a+o,i+s)||se.create(r).contain(l[0],l[1])||_u(a,i,a+o,i,n)||_u(a,i,a,i+s,n)||_u(a+o,i,a+o,i+s,n)||_u(a,i+s,a+o,i+s,n))return!0}}};function _D(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return fu(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),fu(s[0],o)||fu(s[1],o)||fu(o[0],s)||fu(o[1],s)}}}}function fu(r,e){return e[0]<=r&&r<=e[1]}var SD=["inBrush","outOfBrush"],zy="__ecBrushSelect",y_="__ecInBrushSelectEvent";function _N(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new lx(e.option,r);t.setInputRanges(e.areas,r)})}var GJ=Pf(HJ);function HJ(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),_N(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,v=[],c=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=U(o.areas,function(x){var w=YJ[x.brushType],b=le({boundingRect:w?w(x):void 0},x);return b.selectors=FJ(b),b}),g=g_(o.option,SD,function(x){x.mappingMethod="fixed"});H(f)&&M(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[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"&&(c[C]=1)})}function S(x,w,b){if(!(!x.brushSelector||$J(o,w))&&(M(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){xD(x,b,T,C)&&(c[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(D){return c[D]?(b.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return xD(x,T,C,D)?(b.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(w)?d:m(T))&&VJ(SD,g,C,A)})}),UJ(e,a,i,n,t)}function UJ(r,e,t,n,a){if(a){var i=r.getZr();if(!i[y_]){i[zy]||(i[zy]=WJ);var o=Ml(i,zy,t,e);o(r,n)}}}function WJ(r,e){if(!r.isDisposed()){var t=r.getZr();t[y_]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[y_]=!1}}function xD(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function $J(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(H(t)?pe(t,e)<0:e!==t)}var YJ={rect:function(r){return wD(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[Ot(),Ot()];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&wD(e)}};function wD(r){return new se(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var XJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new P1(n.getZr())).on("brush",j(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){_N(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ae(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ae(a),$from:n})},e.type="brush",e})(Qe),ZJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&mN(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=U(t,function(n){return bD(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=bD(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:N.color.backgroundTint,borderColor:N.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:N.color.disabled},e})(Me);function bD(r,e){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ie(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var qJ=["rect","polygon","lineX","lineY","keep","clear"],jJ=(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,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,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,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}})},e.getDefaultOption=function(t){var n={show:!0,type:qJ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e})(Rn);function KJ(r){r.registerComponentView(XJ),r.registerComponentModel(ZJ),r.registerPreprocessor(BJ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,GJ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ot),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ot),Ls("brush",jJ)}var JJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:N.size.m,backgroundColor:N.color.transparent,borderColor:N.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:N.color.primary},subtextStyle:{fontSize:12,color:N.color.quaternary}},e})(Me),QJ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Re({style:Ze(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Re({style:Ze(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){_h(d,"_"+t.get("target"))}),p&&h.on("click",function(){_h(p,"_"+t.get("subtarget"))}),ve(f).eventData=ve(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=bt(t,a),S=tt(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.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=t.getItemStyle(["color","opacity"]);b.fill=t.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:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e})(Qe);function eQ(r){r.registerComponentModel(JJ),r.registerComponentView(QJ)}var CD=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(n,function(u,f){var v=mt(ml(u),""),c;fe(u)?(c=ae(u),c.value=f):c=f,o.push(c),i.push(v)})):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)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:N.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:N.color.secondary},data:[]},e})(Me),SN=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=pi(CD.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:N.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:N.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:N.color.tertiary},itemStyle:{color:N.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:N.color.accent50,borderColor:N.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:N.color.accent50,borderColor:N.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:N.color.accent60},itemStyle:{color:N.color.accent60,borderColor:N.color.accent60},controlStyle:{color:N.color.accent70,borderColor:N.color.accent70}},progress:{lineStyle:{color:N.color.accent30},itemStyle:{color:N.color.accent40}},data:[]}),e})(CD);xt(SN,Wd.prototype);var tQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Qe),rQ=(function(r){B(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(ln),Fy=Math.PI,TD=me(),nQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return pt("nameValue",{noName:!0,value:f})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=aQ(t,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?"+":"-":Z(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:Fy/2},v=i==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*Fy/180;var m,_,S,x=c.get("position",!0),w=h&&c.get("showPlayBtn",!0),b=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),C=0,A=v;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 D=[C,A];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=nt(),l=o.x,u=o.y+o.height;kn(s,s,[-l,-u]),hi(s,s,-Fy/2),kn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(a.getBoundingRect()),c=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=t.labelPosOpt;if(p==null||Z(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=t.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]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=Uf(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]),zR(o,{fixMinMax:[!0,!0]});var l=new rQ("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new oe;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,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:F({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)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=a.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:j(o._changeTimeline,o,u.value)},g=AD(v,c,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),po(g);var y=ve(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(f){if(!f.tick.offInterval){var v=f.tick.value,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=a.dataToCoord(v),y=new Re({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:j(o._changeTimeline,o,v),silent:!1,style:Ze(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ze(d),y.ensureState("progress").style=Ze(p),n.add(y),po(y),TD(y).dataIndex=v,o._tickLabels.push(y)}})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(t.nextBtnPosition,"next",j(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",j(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",j(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=Nn(Q(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=iQ(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(_),po(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=j(u._handlePointerDrag,u),v.ondragend=j(u._handlePointerDragend,u),MD(v,u._progressLine,s,a,i,!0)},onUpdate:function(v){MD(v,u._progressLine,s,a,i)}};this._currentPointer=AD(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[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)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Qr(t,n,!0)},e.prototype._findNearestTick=function(t){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-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=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<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",TD(a[i]).dataIndex<=t)},e.type="timeline.slider",e})(tQ);function aQ(r,e){return tt(r.getBoxLayoutParams(),bt(r,e).refContainer,r.get("padding"))}function iQ(r,e,t,n){var a=n.style,i=Nf(r.get(["controlStyle",e]),n||{},new se(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function AD(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=gt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=_e({rectHover:!0,z2:100},n,!0);var u=Il(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Ko(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var v=r.get("symbolRotate");return n.rotation=(v||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function MD(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function oQ(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),le({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function sQ(r){var e=r&&r.timeline;H(e)||(e=e?[e]:[]),M(e,function(t){t&&lQ(t)})}function lQ(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),DD(r),ro(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ro(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ro(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}M(r.data||[],function(a){fe(a)&&!H(a)&&(!ro(a,"value")&&ro(a,"name")&&(a.value=a.name),DD(a))})}function DD(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};M(n,function(o,s){!i[s]&&!ro(a,s)&&(a[s]=o)}),t.label&&!ro(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function ro(r,e){return r.hasOwnProperty(e)}function uQ(r){r.registerComponentModel(SN),r.registerComponentView(nQ),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),oQ(r),r.registerPreprocessor(sQ)}function vx(r,e){if(!r)return!1;for(var t=H(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function vc(r){So(r,"label",["show"])}var cc=me(),Hn=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Le.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=cc(s)[o];if(!l||!l.data){cc(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&vc(l),M(l.data,function(f){f instanceof Array?(vc(f[0]),vc(f[1])):vc(f)}),u=this.createMarkerModelFromSeries(l,this,n),F(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),cc(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return pt("section",{header:this.name,blocks:[pt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=Wd.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return cc(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Me);xt(Hn,Wd.prototype);var fQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Hn);function m_(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function vQ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function hc(r,e,t,n,a,i,o){var s=[],l=ii(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,f=ld(e,u,r),v=e.hostModel,c=v.indicesOfNearest(t,u,f)[0];s[i]=e.get(n,c),s[o]=e.get(u,c);var h=e.get(a,c),d=ea(e.get(a,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var dc={min:xe(hc,"min"),max:xe(hc,"max"),average:xe(hc,"average"),median:xe(hc,"median")};function Df(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!vQ(e)&&!H(e.coord)&&H(a)){var i=xN(e,t,n,r);if(e=ae(e),e.type&&dc[e.type]&&i.baseAxis&&i.valueAxis){var o=pe(a,i.baseAxis.dim),s=pe(a,i.valueAxis.dim),l=dc[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!H(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&dc[e.type]){var f=n.getOtherAxis(u);f&&(e.value=ld(t,t.mapDimension(f.dim),e.type))}}else for(var v=e.coord,c=0;c<2;c++)dc[v[c]]&&(v[c]=ld(t,t.mapDimension(a[c]),v[c]));return e}}function xN(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(cQ(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function cQ(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function If(r,e){return r&&r.containData&&e.coord&&!m_(e)?r.containData(e.coord):!0}function hQ(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!m_(e)&&!m_(t)?r.containZone(e.coord,t.coord):!0}function wN(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ja(o,e[i])}:function(t,n,a,i){return Ja(t.value,e[i])}}function ld(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Gy=me(),cx=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=K()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Gy(s).keep=!1}),n.eachSeries(function(s){var l=Hn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Gy(s).keep&&i.group.remove(s.group)}),dQ(n,o,this.type)},e.prototype.markKeep=function(t){Gy(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;M(t,function(i){var o=Hn.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?JL(l):aS(l))})}})},e.type="marker",e})(Qe);function dQ(r,e,t){r.eachSeries(function(n){var a=Hn.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=Ao(a),s=o.z,l=o.zlevel;Vd(i.group,s,l)}})}function ID(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.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,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=q(l.get("x"),f)+c,g=q(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.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 pQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markPoint");o&&(ID(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Zf),v=gQ(o,t,n);n.setData(v),ID(n.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),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(c),S=n.getDataParams(c);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=Ff(l,"color");x.fill||(x.fill=b),v.setItemVisual(c,{z2:Q(w,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ve(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e})(cx);function gQ(r,e,t){var n;r?n=U(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return F(F({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,t),i=U(t.get("data"),xe(Df,e));r&&(i=ze(i,xe(If,r)));var o=wN(!!r,n);return a.initData(i,null,o),a}function yQ(r){r.registerComponentModel(fQ),r.registerComponentView(pQ),r.registerPreprocessor(function(e){vx(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var mQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Hn),pc=me(),_Q=function(r,e,t,n){var a=r.getData(),i;if(H(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=e.getAxis(n.yAxis!=null?"y":"x"),l=tr(n.yAxis,n.xAxis);else{var u=xN(n,a,e,r);s=u.valueAxis;var f=yR(a,u.valueDataDim);l=ld(a,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=ae(n),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Ee(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Df(r,i[0]),Df(r,i[1]),F({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function ud(r){return!isNaN(r)&&!isFinite(r)}function LD(r,e,t,n){var a=1-r,i=n.dimensions[r];return ud(e[a])&&ud(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function SQ(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(LD(1,t,n,r)||LD(0,t,n,r)))return!0}return If(r,e[0])&&If(r,e[1])}function Hy(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=q(o.get("x"),a.getWidth()),u=q(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(Eo(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;ud(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):ud(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var xQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=pc(o).from,u=pc(o).to;l.each(function(f){Hy(l,f,!0,i,a),Hy(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)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new L1);this.group.add(f.group);var v=wQ(o,t,n),c=v.from,h=v.to,d=v.line;pc(n).from=c,pc(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");H(p)||(p=[p,p]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),H(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),w=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var b=x.get("z2");w.stroke==null&&(w.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:Q(b,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.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),v.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,w){var b=S.getItemModel(x);Hy(S,x,w,t,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Ff(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")||t.get("silent")},e.type="markLine",e})(cx);function wQ(r,e,t){var n;r?n=U(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},v),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new nr(n,t),i=new nr(n,t),o=new nr([],t),s=U(t.get("data"),xe(_Q,e,r,t));r&&(s=ze(s,xe(SQ,r)));var l=wN(!!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 bQ(r){r.registerComponentModel(mQ),r.registerComponentView(xQ),r.registerPreprocessor(function(e){vx(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var CQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Hn),gc=me(),TQ=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Df(r,a),s=Df(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=B_([{},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 fd(r){return!isNaN(r)&&!isFinite(r)}function PD(r,e,t,n){var a=1-r;return fd(e[a])&&fd(t[a])}function AQ(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Eo(r,"cartesian2d")?t&&n&&(PD(1,t,n)||PD(0,t,n))?!0:hQ(r,a,i):If(r,a)||If(r,i)}function RD(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=q(o.get(t[0]),a.getWidth()),u=q(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),d=[];t[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],t[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=n.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Eo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);fd(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):fd(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var ED=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Hn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(ED,function(v){return RD(s,l,v,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new oe});this.group.add(f.group),this.markKeep(f);var v=DQ(o,t,n);n.setData(v),v.each(function(c){var h=U(ED,function(A){return RD(v,c,A,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Nt(m),Nt(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var w=v.getItemModel(c),b=w.getModel("itemStyle").getItemStyle(),T=w.get("z2"),C=Ff(l,"color");b.fill||(b.fill=C,Z(b.fill)&&(b.fill=rh(b.fill,.4))),b.stroke||(b.stroke=C),v.setItemVisual(c,"style",b),v.setItemVisual(c,"z2",Q(T,0))}),v.diff(gc(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new Zt({z2:Q(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=gc(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?Oe(d,{z2:Q(g,0),shape:{points:p.points}},n,c):d=new Zt({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=gc(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Mt(c,St(d),{labelFetcher:n,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:Z(p.fill)?rh(p.fill,1):N.color.neutral99}),_t(c,d),et(c,null,null,d.get(["emphasis","disabled"])),ve(c).dataModel=n}),gc(f).data=v,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e})(cx);function DQ(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},v),{name:u,ordinalMeta:null})});a=U(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new nr(a,t)}else a=[{name:"value",type:"float"}],n=new nr(a,t);var s=U(t.get("data"),xe(TQ,e,r,t));r&&(s=ze(s,xe(AQ,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return Ja(h,a[c])}:function(u,f,v,c){return Ja(u.value,a[c])};return n.initData(s,null,l),n.hasItemOption=!0,n}function IQ(r){r.registerComponentModel(CQ),r.registerComponentView(MQ),r.registerPreprocessor(function(e){vx(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var LQ=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},__=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),H(n)&&M(n,function(i,o){Z(i)&&(i={type:i}),n[o]=_e(i,LQ(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&Z_(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=K(),s=U(i,function(l){return(Z(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=ze(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;M(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;M(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&pe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:N.size.m,align:"auto",backgroundColor:N.color.transparent,borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:N.color.disabled,inactiveBorderColor:N.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:N.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:N.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:N.color.tertiary,borderWidth:1,borderColor:N.color.border},emphasis:{selectorLabel:{show:!0,color:N.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Me),bs=xe,S_=M,yc=oe,bN=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new yc),this.group.add(this._selectorGroup=new yc),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var f=bt(t,a).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=tt(v,f,c),d=this.layoutInner(t,o,h,i,l,u),p=tt(le({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vN(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=K(),v=n.get("selectedMode"),c=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),S_(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
73
- `)){var m=new yc;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,t,x,b,w,v,i);T.on("click",bs(kD,y,null,i,h)).on("mouseover",bs(x_,_.name,null,i,h)).on("mouseout",bs(w_,_.name,null,i,h)),a.ssr&&T.eachChild(function(C){var A=ve(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),c&&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 D=C.legendVisualProvider;if(!D.containName(y))return;var L=D.indexOfName(y),I=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),R=hr(I.fill);R&&R[3]===0&&(R[3]=.2,I=F(F({},I),{fill:Tn(R,"rgba")}));var E=this._createItem(C,y,p,d,n,t,{},I,P,v,i);E.on("click",bs(kD,null,y,i,h)).on("mouseover",bs(x_,null,y,i,h)).on("mouseout",bs(w_,null,y,i,h)),a.ssr&&E.eachChild(function(O){var k=ve(O);k.seriesIndex=C.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&E.eachChild(function(O){A.packEventData(O,n,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ve(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();S_(t,function(u){var f=u.type,v=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(v);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Mt(v,{normal:c,emphasis:h},{defaultText:u.title}),po(v)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,v,c){var h=t.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=PQ(f,i,l,u,h,g,c),x=new yc,w=i.getModel("textStyle");if(ie(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(RQ({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"),D=n;Z(A)&&A?D=A.replace("{name}",n??""):ie(A)&&(D=A(n));var L=g?w.getTextColor():i.get("inactiveColor");x.add(new Re({style:Ze(w,{text:D,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")&&xa({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!v,this.getContentGroup().add(x),po(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){go("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Qe);function PQ(r,e,t,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),S_(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?n.decal:nl(v,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function RQ(r){var e=r.icon||"roundRect",t=gt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=N.color.neutral00,t.style.lineWidth=2),t}function kD(r,e,t,n){w_(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),x_(r,e,t,n)}function x_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function w_(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function vu(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),OD(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),OD(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function OD(r,e){var t=e||{};return M(r.getData(),function(n){var a=n.get("name");if(!(a===`
74
- `||a==="")){var i=r.isSelected(a);J(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function EQ(r){r.registerAction("legendToggleSelect","legendselectchanged",xe(vu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xe(vu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xe(vu,"inverseSelect")),r.registerAction("legendSelect","legendselected",xe(vu,"select")),r.registerAction("legendUnSelect","legendunselected",xe(vu,"unSelect"))}var kQ=Pf(OQ);function OQ(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function CN(r){r.registerComponentModel(__),r.registerComponentView(bN),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,kQ),r.registerSubTypeDefaulter("legend",function(){return"plain"}),EQ(r)}var NQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=qo(t);r.prototype.init.call(this,t,n,a),ND(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),ND(this,this.option,t)},e.type="legend.scroll",e.defaultOption=pi(__.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:N.color.accent50,pageIconInactiveColor:N.color.accent10,pageIconSize:15,pageTextStyle:{color:N.color.tertiary},animationDurationUpdate:800}),e})(__);function ND(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,zn(e,t,{type:"box",ignoreSize:!!a})}var BD=oe,Uy=["width","height"],Wy=["x","y"],BQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new BD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BD)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,v=n.get("pageIconSize",!0),c=H(v)?v:[v,v];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=Nf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:j(u._pageGo,u,y,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Uy[u],v=Wy[u],c=Uy[1-u],h=Wy[1-u];o&&go("horizontal",l,t.get("selectorItemGap",!0));var d=t.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(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;go(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),go("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.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(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.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),v.setPosition(y),c.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]),v.__rectSize=a[o],p){var w={x:0,y:0};w[o]=Math.max(a[o]-d[o]-_,0),w[s]=x[s],v.setClipPath(new be({shape:w})),v.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&Oe(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),x},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=n[v]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Uy[o],l=Wy[o],u=this._findTargetItemIndex(n),f=a.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++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}},e.prototype._findTargetItemIndex=function(t){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===t&&(n=s)}),n??i},e.type="legend.scroll",e})(bN);function VQ(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function zQ(r){Se(CN),r.registerComponentModel(NQ),r.registerComponentView(BQ),VQ(r)}function FQ(r){Se(CN),Se(zQ)}var GQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=pi(Mf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Mf),hx=me();function HQ(r,e,t){hx(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function UQ(r,e){for(var t=hx(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||TN(t,o))}}}function TN(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function WQ(r,e){var t={model:e,containsPoint:xe(YQ,e),dispatchAction:xe($Q,r),dataZoomInfoMap:null,controller:null},n=t.controller=new ts(r.getZr());return M(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function $Q(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function YQ(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function XQ(r,e,t){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,v=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+v]>i[a+n]&&(n=v),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:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function ZQ(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var n=hx(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=K());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=oN(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,WQ(t,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){TN(a,i);return}var f=XQ(l,i,t);o.enable(f.controlType,f.opt),Ml(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var qQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),HQ(a,t,{pan:j($y.pan,this),zoom:j($y.zoom,this),scrollMove:j($y.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){UQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(ix),$y={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=Yy[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(si(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:VD(function(r,e,t,n,a,i){var o=Yy[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:VD(function(r,e,t,n,a,i){var o=Yy[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function VD(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(si(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Yy={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function AN(r){ox(r),r.registerComponentModel(GQ),r.registerComponentView(qQ),ZQ(r)}var jQ=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=pi(Mf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:N.color.accent10,borderRadius:0,backgroundColor:N.color.transparent,dataBackground:{lineStyle:{color:N.color.accent30,width:.5},areaStyle:{color:N.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:N.color.accent40,width:.5},areaStyle:{color:N.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:N.color.neutral00,borderColor:N.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:N.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:N.color.tertiary},brushSelect:!0,brushStyle:{color:N.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:N.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Mf),cu=be,KQ=1,Xy=30,JQ=7,hu="horizontal",zD="vertical",QQ=5,eee=["line","bar","candlestick","scatter"],tee={easing:"cubicOut",duration:100,delay:0},ree=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=j(this._onBrush,this),this._onBrushEnd=j(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),Ml(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rf(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?JQ:0,o=bt(t,n).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===hu?{right:o.width-s.x-s.width,top:o.height-Xy-l-i,width:s.width,height:Xy}:{right:l,top:s.y,width:Xy,height:s.height},f=qo(t.option);M(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=tt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===zD&&this._size.reverse()},e.prototype._positionGroup=function(){var t=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===hu&&!o?{scaleY:l?1:-1,scaleX:1}:a===hu&&o?{scaleY:l?1:-1,scaleX:-1}:a===zD&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,v=isNaN(u.y)?0:u.y;t.x=n.x-f,t.y=n.y-v,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new cu({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new cu({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:j(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)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[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]/(v[1]-v[0]),S=t.thisAxis.type==="time",x=-m,w=Math.round(o.count()/n[0]),b;o.each([t.thisDim,l],function(L,I,P){if(w>0&&P%w){S||(x+=m);return}x=S?(+L-v[0])*_:x+m;var R=I==null||isNaN(I)||I==="",E=R?0:Be(I,c,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 Zt({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 D=C(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(n!==!0&&pe(eee,u.get("type"))<0)){var f=i.getComponent(Wa(o),s).axis,v=nee(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=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,v=l.get("brushSelect"),c=n.filler=new cu({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new cu({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:KQ,fill:N.color.transparent}})),M([0,1],function(_){var S=l.get("handleIcon");!wh[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:aee(this._orient),draggable:!0,drift:j(this._onDragMove,this,_),ondragend:j(this._onDragEnd,this),onmouseover:j(this._onOverDataInfoTriggerArea,this,!0),onmouseout:j(this._onOverDataInfoTriggerArea,this,!1),z2:5});var w=x.getBoundingRect(),b=l.get("handleSize");this._handleHeight=q(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(),po(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")||{},D=A.show||!1;t.add(i[_]=new Re({silent:!0,invisible:!D,style:Ze(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=c;if(v){var d=q(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,N.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:j(this._onActualMoveZoneDrift,this),ondragstart:j(this._onActualMoveZoneDragStart,this),ondragend:j(this._onActualMoveZoneDragEnd,this),onmouseover:j(this._onOverDataInfoTriggerArea,this,!0),onmouseout:j(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Be(t[0],[0,100],n,!0),Be(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];si(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Be(s.minSpan,l,o,!0):null,s.maxSpan!=null?Be(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Nt([Be(i[0],o,l,!0),Be(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Nt(a.slice()),o=this._size;M([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 v=l[f],c=v.getClipPath();c||(c=new be,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){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,v;if(t){var c={start:f[0],end:f[1]},h=lN(n,l);if(h){var d=h.calculateDataWindow(c).percentInverted;c={start:d[0],end:d[1]}}v=l.calculateDataWindow(c)}else v=l.getWindow();s=[FD(n,0,v,u),FD(n,1,v,u)]}}var p=Nt(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=Hs(a.handles[y].parent,this.group),_=Bd(y===0?"right":"left",m),S=this._handleWidth/2+QQ,x=Qr([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===hu?"middle":_,align:o===hu?_:"center",text:s[y]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||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)},e.prototype._onActualMoveZoneDrift=function(t,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,n,a)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,ua(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qr([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.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)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ue(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){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();si(0,l,o,0,u.minSpan!=null?Be(u.minSpan,s,o,!0):null,u.maxSpan!=null?Be(u.maxSpan,s,o,!0):null),this._range=Nt([Be(l[0],o,s,!0),Be(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ua(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new cu({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(t,n),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?tee:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=oN(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(ix);function FD(r,e,t,n){var a=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":qt(n)||Hf(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?ke(o,i,!0):o+"";return ie(a)?a(o,s):Z(a)?a.replace("{value}",s):s}function nee(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function aee(r){return r==="vertical"?"ns-resize":"ew-resize"}function MN(r){r.registerComponentModel(jQ),r.registerComponentView(ree),ox(r)}function iee(r){Se(AN),Se(MN)}var DN={get:function(r,e,t){var n=ae((oee[r]||{})[e]);return t&&H(n)?n[n.length-1]:n}},oee={color:{active:["#006edd","#e0ffff"],inactive:[N.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]}},GD=At.mapVisual,see=At.eachVisual,lee=H,Zy=M,uee=Nt,fee=Be,vd=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&mN(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=j(t,this),this.controllerVisuals=g_(this.option.controller,n,t),this.targetVisuals=g_(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,n=this.option.seriesTargets;if(n){var a=[];return Zy(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.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=_l(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,n){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],H(t)&&(t=t.slice(),u=!0);var f=n?t:u?[v(t[0]),v(t[1])]:v(t);if(Z(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ie(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=uee([t.min,t.max]);this._dataExtent=n},e.prototype.getDimension=function(t){var n=this,a=this.option.seriesTargets;if(a){var i=ci(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=t.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=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(v){lee(n.color)&&!v.inRange&&(v.inRange={color:n.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},Zy(d,function(g,y){if(At.isValidType(y)){var m=DN.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";Zy(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ae(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ae(h)||(s?m[0]:[m[0],m[0]])),_.symbol=GD(_.symbol,function(w){return w==="none"?g:w});var S=_.symbolSize;if(S!=null){var x=-1/0;see(S,function(w){w>x&&(x=w)}),_.symbolSize=GD(S,function(w){return fee(w,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:N.color.transparent,borderColor:N.color.borderTint,contentColor:N.color.theme[0],inactiveColor:N.color.disabled,borderWidth:0,padding:N.size.m,textGap:10,precision:0,textStyle:{color:N.color.secondary}},e})(Me),HD=[20,140],vee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=HD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=HD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):H(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Nt((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=Q(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=UD(this,"outOfRange",this.getExtent()),a=UD(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(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 v=1;s<u;s++,v=0)v&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var v=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(n[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=pi(vd.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:N.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:N.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}}),e})(vd);function UD(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var IN=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Bf(n.get("padding")||0),i=t.getBoundingRect();t.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")}}))},e.prototype.getControllerVisual=function(t,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 v=o.controllerVisuals[i||o.getValueState(t)],c=At.prepareVisualTypes(v);return M(c,function(h){var d=v[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),At.dependsOn(h,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=bt(n,a).refContainer;Hd(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Qe),WD=[["left","right","width"],["top","bottom","height"]];function LN(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=WD[o],l=[0,null,10],u={},f=0;f<3;f++)u[WD[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var v=[["x","width",3],["y","height",0]][o],c=tt(u,i,n.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function Zc(r,e){return M(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var yn=Be,cee=M,$D=Math.min,qy=Math.max,hee=12,dee=6,pee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=j(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=j(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.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)},e.prototype._renderEndsText=function(t,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),v=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Re({style:Ze(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=LN(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new oe;u.add(f),f.add(a.outOfRange=YD()),f.add(a.inRange=YD(null,s?ZD(this._orient):null,j(this._dragHandle,this,"all",!1),j(this._dragHandle,this,"all",!0))),f.setClipPath(new be({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=n.textStyleModel.getTextRect("国"),c=qy(v.width,v.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,c,o),this._createHandle(n,u,1,i,c,o)),this._createIndicator(n,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=j(this._dragHandle,this,a,!1),u=j(this._dragHandle,this,a,!0),f=Nn(t.get("handleSize"),i[0]),v=gt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=ZD(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ua(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),io(v,!0),n.add(v);var h=this.visualMapModel.textStyleModel,d=new Re({cursor:c,draggable:!0,drift:l,onmousemove:function(y){ua(y.event)},ondragend:u,style:Ze(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]=v,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=Nn(t.get("indicatorSize"),a[0]),l=gt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Rt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var v=this.visualMapModel.textStyleModel,c=new Re({silent:!0,invisible:!0,style:Ze(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:dee)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,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():XD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[yn(n[0],a,i,!0),yn(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];si(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[yn(i[0],o,s,!0),yn(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?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)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new bl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new oe(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,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);cee([0,1],function(v){var c=o[v];c.setStyle("fill",n.handlesColor[v]),c.y=t[v];var h=yn(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=Qr(a.handleLabelPoints[v],Hs(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=yn(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=Qr(f.indicatorLabelPoint,Hs(v,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};v.x=y.x,v.y=y.y,v.animateTo(b,C),_.animateTo(T,C)}else v.attr(b),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;D<A.length;D++)this.api.enterBlur(A[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=$D(qy(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=$D(qy(o[0],t),o[1]);var l=gee(a,s,o),u=[t-l,t+l],f=yn(t,o,s,!0),v=[yn(u[0],o,s,!0),yn(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),n&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(n||XD(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(v));var d=Lz(c,h);this._dispatchHighDown("downplay",Zc(d[0],a)),this._dispatchHighDown("highlight",Zc(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(so(t.target,function(l){var u=ve(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)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Zc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Hs(n,i?null:this.group);return H(t)?Qr(t,o,a):Bd(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(IN);function YD(r,e,t,n){return new Zt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){ua(a.event)},ondragend:n})}function gee(r,e,t){var n=hee/2,a=r.get("hoverLinkDataSize");return a&&(n=yn(a,e,t,!0)/2),n}function XD(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function ZD(r){return r==="vertical"?"ns-resize":"ew-resize"}var yee={type:"selectDataRange",event:"dataRangeSelected",update:"update"},mee=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},_ee=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(zJ(n.stateList,n.targetVisuals,j(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(j(See,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function See(r,e,t,n){for(var a=e.targetVisuals[n],i=At.prepareVisualTypes(a),o={color:Ff(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var qD=M;function xee(r){var e=r&&r.visualMap;H(e)||(e=e?[e]:[]),qD(e,function(t){if(t){Cs(t,"splitList")&&!Cs(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&H(n)&&qD(n,function(a){fe(a)&&(Cs(a,"start")&&!Cs(a,"min")&&(a.min=a.start),Cs(a,"end")&&!Cs(a,"max")&&(a.max=a.end))})}})}function Cs(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var jD=!1;function PN(r){jD||(jD=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(yee,mee),M(_ee,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(xee))}function RN(r){r.registerComponentModel(vee),r.registerComponentView(pee),PN(r)}var wee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],bee[this._mode].call(this,this._pieceList),this._resetSelected(t,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}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=At.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&M(this.stateList,function(f){(t[f]||(t[f]={}))[l]=DN.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ae(t)},e.prototype.getValueState=function(t){var n=At.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){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===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);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 M(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=pi(vd.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(vd),bee={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.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]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),uw(r),M(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;M(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),KD(e,r)},pieces:function(r){var e=this.option;M(e.pieces,function(t,n){fe(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.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=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}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(t),r.push(a)},this),KD(e,r),uw(r),M(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function KD(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Cee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var 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),v=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),M(l.viewPieceList,function(c){var h=c.piece,d=new oe;d.onclick=j(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Re({style:Ze(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:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),go(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.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:Zc(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return LN(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new oe,l=this.visualMapModel.textStyleModel;s.add(new Re({style:Ze(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=U(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,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,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ae(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(IN);function EN(r){r.registerComponentModel(wee),r.registerComponentView(Cee),PN(r)}function Tee(r){Se(RN),Se(EN)}var Aee=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:w2(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),Mee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new Aee(this);if(this._target=null,this.ecModel.eachSeries(function(a){IA(a,null)}),this.shouldShow()){var n=this.getTarget();IA(n.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:N.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:N.color.neutral30,borderColor:N.color.neutral40,opacity:.3},z:10},e})(Me),Dee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new ip),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||N.color.neutral00);var l=bt(t,a).refContainer,u=tt(j2(t,!0),l),f=s.lineWidth||0,v=this._contentRect=To(u.clone(),f/2,!0,!0),c=new oe;i.add(c),c.setClipPath(new be({shape:v.plain()}));var h=this._targetGroup=new oe;c.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=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.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(),QD(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),QD(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,op(a,s.x,s.y,s.width,s.height);var l=tt({left:"center",top:"center",aspect:s.width/s.height},i);$h(a,l.x,l.y,l.width,l.height),_f(o,a,Oo),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=Gr([],t.targetTrans),a=Vr([],Wh(null,this._coordSys),n);this._transThisToTarget=Gr([],a);var i=t.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))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new ts(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{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",j(this._onPan,this)).on("zoom",j(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[t.oldX,t.oldY],n),i=st([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(JD(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=st([],[t.originX,t.originY],n);this._api.dispatchAction(JD(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var n=t.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(Qe);function JD(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,F(n,e),n}function QD(r,e){var t=Ao(r);Vd(e.group,t.z,t.zlevel)}function Iee(r){r.registerComponentModel(Mee),r.registerComponentView(Dee)}var Lee={label:{enabled:!0},decal:{show:!1}},eI=me(),tI=me(),Pee=Pf(Ree);function Ree(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=tI(r).scope||(tI(r).scope={}),a=ae(Lee);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),i(),o();function i(){var f=t.getModel("decal"),v=f.get("show");if(v){var c=K();r.eachSeries(function(h){h.isColorBySeries()||(eI(h).scope=c.get(h.type)||c.set(h.type,{}))}),r.eachSeries(function(h){if(ie(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=s0(h.ecModel,h.name,n,r.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",x(S,_))}else{var p=h.getRawData(),g={},y=eI(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=s0(h.ecModel,T,y,m),A=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",x(A,C))})}function x(w,b){var T=w?F(F({},b),w):b;return T.dirty=!0,T}})}}function o(){var f=e.getZr().dom;if(f){var v=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=le(c.option,v),!!c.get("enabled")){if(f.setAttribute("role","img"),c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),d=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=c.get(["general","withTitle"]);y=s(_,{title:m})}else y=c.get(["general","withoutTitle"]);var S=[],x=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=s(x,{seriesCount:h}),r.eachSeries(function(C,A){if(A<g){var D=void 0,L=C.get("name"),I=L?"withName":"withoutName";D=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>d){var R=c.get(["data","partialData"]);D+=s(R,{displayCnt:d})}else D+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),k=c.get(["data","excludeDimensionId"]),V=[],z=0;z<P.count();z++)if(z<d){var G=P.getName(z),W=k?ze(P.getValues(z),function(Y,ee){return pe(k,ee)===-1}):P.getValues(z),X=c.get(["data",G?"withName":"withoutName"]);V.push(s(X,{name:G,value:W.join(E)}))}D+=V.join(E)+O,S.push(D)}});var w=c.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,v){if(!Z(f))return f;var c=f;return M(v,function(h,d){c=c.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),c}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var v=r.getLocaleModel().get(["series","typeNames"]);return v[f]||v.chart}}function Eee(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},M(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function kee(r){r.registerPreprocessor(Eee),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Pee)}var rI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Oee=(function(){function r(e){var t=this._condVal=Z(e)?new RegExp(e):FB(e)?e:null;if(t==null){var n="";Ve(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return Z(t)?this._condVal.test(e):Ee(t)?this._condVal.test(e+""):!1},r})(),Nee=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Bee=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),Vee=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),zee=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Fee=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r})();function dx(r,e){if(r===!0||r===!1){var t=new Nee;return t.value=r,t}var n="";return kN(r)||Ve(n),r.and?nI("and",r,e):r.or?nI("or",r,e):r.not?Gee(r,e):Hee(r,e)}function nI(r,e,t){var n=e[r],a="";H(n)||Ve(a),n.length||Ve(a);var i=r==="and"?new Bee:new Vee;return i.children=U(n,function(o){return dx(o,t)}),i.children.length||Ve(a),i}function Gee(r,e){var t=r.not,n="";kN(t)||Ve(n);var a=new zee;return a.child=dx(t,e),a.child||Ve(n),a}function Hee(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=De(r),o=r.parser,s=o?gP(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(rI,u)?rI[u]:u,v=r[u],c=s?s(v):v,h=JG(f,c)||f==="reg"&&new Oee(c);h||Ve(t),a.push(h)}}a.length||Ve(t);var d=new Fee;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function kN(r){return fe(r)&&!$t(r)}var Uee=(function(){function r(e,t){this._cond=dx(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Wee(r,e){return new Uee(r,e)}var $ee={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=Wee(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Ve(l);var f=e.getDimensionInfo(u);return f||Ve(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},Yee={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Ye(t);a.length||Ve(n);var i=[];M(a,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Ve(n),c!=="asc"&&c!=="desc"&&Ve(n),d&&d!=="min"&&d!=="max"){var p="";Ve(p)}if(c!=="asc"&&c!=="desc"){var g="";Ve(g)}var y=e.getDimensionInfo(v);y||Ve(n);var m=h?gP(h):null;h&&!m&&Ve(n),i.push({dimIdx:y.index,parser:m,comparator:new mP(c,d)})});var o=e.sourceFormat;o!==Pt&&o!==Cr&&Ve(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,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 Xee(r){r.registerTransform($ee),r.registerTransform(Yee)}var Zee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new CP(this),Cb(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Cb(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Jr},e})(Me),qee=(function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Qe);function jee(r){r.registerComponentModel(Zee),r.registerComponentView(qee)}var pn=Bn.CMD;function Bs(r,e){return Math.abs(r-e)<1e-5}function b_(r){var e=r.data,t=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){Bs(I,R)&&Bs(P,E)||a.push(I,P,R,E,R,E)}function v(I,P,R,E,O,k){var V=Math.abs(P-I),z=Math.tan(V/4)*4/3,G=P<I?-1:1,W=Math.cos(I),X=Math.sin(I),Y=Math.cos(P),ee=Math.sin(P),ye=W*O+R,Ne=X*k+E,ce=Y*O+R,te=ee*k+E,ge=O*z*G,re=k*z*G;a.push(ye-ge*X,Ne+re*W,ce+ge*ee,te-re*Y,ce,te)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===pn.L||y===pn.C||y===pn.Q)&&(a=[s,l])),y){case pn.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case pn.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case pn.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case pn.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],a.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case pn.A:var _=e[g++],S=e[g++],x=e[g++],w=e[g++],b=e[g++],T=e[g++]+b;g+=1;var C=!e[g++];c=Math.cos(b)*x+_,h=Math.sin(b)*w+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*x+_,o=Math.sin(T)*w+S;for(var A=(C?-1:1)*Math.PI/2,D=b;C?D>T:D<T;D+=A){var L=C?Math.max(D+A,T):Math.min(D+A,T);v(D,L,_,S,x,w)}break;case pn.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case pn.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function C_(r,e,t,n,a,i,o,s,l,u){if(Bs(r,t)&&Bs(e,n)&&Bs(a,o)&&Bs(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=n-e,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,w=-c*y-h*m,b=_-x*x,T=S-w*w;if(b<v&&x>=0&&T<v&&w>=0){l.push(o,s);return}var C=[],A=[];ri(r,t,a,o,.5,C),ri(e,n,i,s,.5,A),C_(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),C_(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function Kee(r,e){var t=b_(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];C_(s,l,f,v,c,h,d,p,o,e),s=d,l=p}n.push(o)}return n}function ON(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function aI(r,e,t){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),v=ON([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(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+c*h,g.r=n+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function Jee(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=ON([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function iI(r,e,t,n){return r*n-t*e}function Qee(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=iI(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-a,d=e-i,p=iI(h,d,f,v)/c;return p<0||p>1?null:new ue(p*l+r,p*u+e)}function ete(r,e,t){var n=new ue;ue.sub(n,t,e),n.normalize();var a=new ue;ue.sub(a,r,e);var i=a.dot(n);return i}function Ts(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function tte(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=Qee(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:ete(l,e,t),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 v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)Ts(d,r[i].slice());Ts(d,h),Ts(d,c);for(var i=f.idx+1;i<=u.idx+n;i++)Ts(p,r[i%n].slice());return Ts(p,c),Ts(p,h),[{points:d},{points:p}]}function oI(r){var e=r.points,t=[],n=[];Id(e,t,n);var a=new se(t[0],t[1],n[0]-t[0],n[1]-t[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),tte(e,u,f)}function cd(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);cd(r,i[0],a,n),cd(r,i[1],t-a,n)}return n}function rte(r,e){for(var t=[],n=0;n<e;n++)t.push(oS(r));return t}function nte(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function ate(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function ite(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":Jee(n,e,t),a=be;break;case"sector":aI(n,e,t),a=Xt;break;case"circle":aI({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),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(Kee(r.getUpdatedPathProxy(),o),function(y){return ate(y)}),l=s.length;if(l===0)cd(oI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=U(s,function(y){var m=[],_=[];Id(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(cd(oI,{points:h.poly},d,t),c-=d)}}a=Zt;break}if(!a)return rte(r,e);for(var p=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),nte(r,g),p.push(g)}return p}function ote(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=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(c<=0){v.push(g,y,m,_,S,x);continue}for(var w=Math.min(c,f-1)+1,b=1;b<=w;b++){var T=b/w;ri(d,g,m,S,T,a),ri(p,y,_,x,T,i),d=a[3],p=i[3],v.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}c-=w-1}return o===r?[v,e]:[r,v]}function sI(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function ste(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=ote(l,u),f=t[0],v=t[1],n=f,a=v):(v=sI(a||l,l),f=l):(f=sI(n||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function lI(r){for(var e=0,t=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],v=s*f-u*l;e+=v,t+=(s+u)*v,n+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function lte(r,e,t,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,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-n[0],y=e[c+1]-n[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function ute(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function fte(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=lI(s),f=lI(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=ute(s));for(var y=lte(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}v[0]=s[y]-u[0],v[1]=s[y+1]-u[1];for(var x=n/t,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=v[_],D=v[_+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,O=R-D;C+=E*E+O*O}if(C<d){d=C,h=w;for(var k=0;k<p.length;k++)c[k]=p[k]}}a.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return a}function hd(r){return r.__isCombineMorphing}var NN="__mOriginal_";function dd(r,e,t){var n=NN+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Hu(r,e){var t=NN+e;r[t]&&(r[e]=r[t],r[t]=null)}function uI(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function BN(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=ste(b_(t),b_(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&uI(i,s),l&&uI(o,l),dd(e,"updateTransform",{replace:u}),e.transform=null;var f=fte(i,o,10,Math.PI),v=[];dd(e,"buildPath",{replace:function(c){for(var h=e.__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);Cc(p,x,w,h);for(var C=0;C<m.length;C+=2){var A=m[C],D=m[C+1],L=_[C],I=_[C+1],P=A*d+L*h,R=D*d+I*h;v[C]=P*T-R*b+p[0],v[C+1]=P*b+R*T+p[1]}var E=v[0],O=v[1];c.moveTo(E,O);for(var C=2;C<m.length;){var L=v[C++],I=v[C++],k=v[C++],V=v[C++],z=v[C++],G=v[C++];E===L&&O===I&&k===z&&V===G?c.lineTo(z,G):c.bezierCurveTo(L,I,k,V,z,G),E=z,O=G}}}})}function px(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;BN(r,e),e.__morphT=0;function i(){Hu(e,"buildPath"),Hu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},le({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function vte(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function pd(r){var e=1/0,t=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),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),n=Math.max(f,n),a=Math.max(v,a),[f,v]}),o=U(i,function(s,l){return{cp:s,z:vte(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function VN(r){return ite(r.path,r.count)}function T_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cte(r,e,t){var n=[];function a(x){for(var w=0;w<x.length;w++){var b=x[w];hd(b)?a(b.childrenRef()):b instanceof Ae&&n.push(b)}}a(r);var i=n.length;if(!i)return T_();var o=t.dividePath||VN,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),T_();n=pd(n),s=pd(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new Un,c=0;c<i;c++){var h=n[c],d=s[c];d.parent=e,d.copyTransform(v),f||BN(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var w=0;w<s.length;w++)s[w].addSelfToZr(x)}dd(e,"addSelfToZr",{after:function(x){p(x)}}),dd(e,"removeSelfFromZr",{after:function(x){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Hu(e,"addSelfToZr"),Hu(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?le({delay:(t.delay||0)+f(c,y,n[c],s[c]),done:_},t):t;px(n[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},le({during:function(x){for(var w=0;w<y;w++){var b=s[w];b.__morphT=e.__morphT,b.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Hu(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function hte(r,e,t){var n=e.length,a=[],i=t.dividePath||VN;function o(h){for(var d=0;d<h.length;d++){var p=h[d];hd(p)?o(p.childrenRef()):p instanceof Ae&&a.push(p)}}if(hd(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(oS(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"),T_()}a=pd(a),e=pd(e);for(var v=t.individualDelay,u=0;u<n;u++){var c=v?le({delay:(t.delay||0)+v(u,n,a[u],e[u])},t):t;px(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function fI(r){return H(r[0])}function vI(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var dte={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=oS(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function jy(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Cl("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=F({setToFinal:!0},o),u,f;fI(r)&&(u=r,f=e),fI(e)&&(u=e,f=r);function v(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(hd(T))v({many:[T],one:C},!0,_,S,!0);else{var A=s?le({delay:s(_,S)},l):l;px(T,C,A),i(T,C,T,C,A)}}else for(var D=le({dividePath:dte[t],individualDelay:s&&function(O,k,V,z){return s(O+_,S)}},l),L=m?cte(w,b,D):hte(b,w,D),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 c=u?u===r:r.length>e.length,h=u?vI(f,u):vI(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Ji(r){if(!r)return[];if(H(r)){for(var e=[],t=0;t<r.length;t++)e.push(Ji(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof Ae&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var zN=1e4,pte=0,cI=1,hI=2,gte=me();function yte(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function mte(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function dI(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=yte(r,a);if(i){var o=mte(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function pI(r){var e=[];return M(r,function(t){var n=t.data,a=t.dataGroupId;if(!(n.count()>zN))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:dI(n,o,a,!1),childGroupId:dI(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function Ky(r,e,t){r.traverse(function(n){n instanceof Ae&&Ke(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Jy(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function As(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function _te(r,e,t){var n=Cl("update",t,e);n&&r.traverse(function(a){if(a instanceof Ur){var i=M5(a);i&&a.animateFrom({style:i},n)}})}function Ste(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function FN(r,e,t){var n=pI(r),a=pI(e);function i(_,S,x,w,b){(x||_)&&S.animateFrom({style:x&&x!==_?F(F({},x.style),_.style):_.style},b)}var o=!1,s=pte,l=K(),u=K();M(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var v=a[f].groupId;if(u.get(v)){s=cI;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=hI;break}}function h(_,S){return function(x){var w=x.data,b=x.dataIndex;return S?w.getId(b):_?s===cI?x.childGroupId:x.groupId:s===hI?x.childGroupId:x.groupId}}var d=Ste(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&&_te(C,w.dataIndex,b);return}T&&p[T.id]||C&&(As(C),T?(As(T),Jy(T),o=!0,jy(Ji(T),Ji(C),w.divide,b,_,i)):Ky(C,b,_))}new ga(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=ze(U(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(As(T),C.length?(M(C,function(A){As(A),Jy(A)}),o=!0,jy(Ji(C),Ji(T),x.divide,b,_,i)):Ky(T,b,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],w=x.data.getItemGraphicEl(x.dataIndex);if(!(w&&p[w.id])){var b=ze(U(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==w}),T=a[_[0]].data.hostModel;b.length&&(M(b,function(C){return As(C)}),w?(As(w),Jy(w),o=!0,jy(Ji(w),Ji(b),x.divide,T,_[0],i)):M(b,function(C){return Ky(C,T,_[0])}))}}).updateManyToMany(function(_,S){new ga(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&&M(e,function(_){var S=_.data,x=S.hostModel,w=x&&t.getViewOfSeriesModel(x),b=Cl("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 e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function yI(r){return H(r)?r.sort().join(","):r}function Oa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function xte(r,e){var t=K(),n=K(),a=K();return M(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=gI(i),f=yI(u);n.set(f,{dataGroupId:s,data:l}),H(u)&&M(u,function(v){a.set(v,{key:f,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=gI(i),u=yI(l),f=n.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Oa(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Oa(s),data:s}]});else if(H(l)){var v=[];M(l,function(d){var p=n.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:Oa(p.data),data:p.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:Oa(s)}]})}else{var c=a.get(l);if(c){var h=t.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Oa(c.data)}],newSeries:[]},t.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Oa(s)})}}}}),t}function mI(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function wte(r,e,t,n){var a=[],i=[];M(Ye(r.from),function(o){var s=mI(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Oa(e.oldData[s]),groupIdDim:o.dimension})}),M(Ye(r.to),function(o){var s=mI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Oa(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&FN(a,i,n)}function bte(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){M(Ye(n.seriesTransition),function(a){M(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][Fc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=gte(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(Ye(i),function(h){wte(h,a,n,t)});else{var o=xte(a,n);M(o.keys(),function(h){var d=o.get(h);FN(d.oldSeries,d.newSeries,t)})}M(n.updatedSeries,function(h){h[Fc]&&(h[Fc]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<zN&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var Cte=(function(){function r(e,t){HS(this,r.decoratedMethods),this._outOfBrk=x0(null,t),this._linear=x0(null,t),US(this),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<e&&e<a.vmax){var i=t(e,a.vmax);return i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===aa?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(cr,e,t)},setExtent2:function(e,t,n){wo(t,n)&&(e===cr&&Ate(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===aa)return e;for(var n=_I,a=SI,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?n+=s.vmin-a+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=e-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=e-a),n},transformOut:function(e,t){if(t&&t.depth===aa)return e;for(var n=_I,a=SI,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(e<=f){e>u?o=l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):o=a+e-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+e-n),o}},r})();function Tte(r,e){return new Cte(r,e)}var _I=0,SI=0;function Ate(r,e){var t=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()}};M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=gx(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=c,n[l.type].val+=l.val}});var o=t*(0+(e[1]-e[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));M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?we(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function Mte(r,e,t,n,a,i){r!=="no"&&M(t,function(o){var s=gx(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=n(u),v=a*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function Dte(r,e,t,n){M(e,function(a){var i=gx(a,t);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}))}),e.length&&r.sort(function(a,i){return a.value-i.value})}function gx(r,e){var t=we(r.vmin,e[0]),n=He(r.vmax,e[1]);return t<n||t===n&&t>e[0]&&t<e[1]?{vmin:t,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function A_(r,e,t){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}M(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ae(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Z(o.gap)){var u=Br(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 v=e.parse(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&M(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return M(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:ze(n,function(o){return!!o})}}function yx(r,e){return M_(e)===M_(r)}function M_(r){return r.start+"_\0_"+r.end}function Ite(r,e,t){var n=[];M(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),M(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=ci(n,function(u){return yx(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return M(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function Lte(r,e,t,n){if(e.break){var a=e.break.parsedBreak,i=ci(t,function(f){return yx(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:n,depth:aa},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[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function Pte(r,e,t,n,a){a.original=A_(r,e,t);var i=a.transformed=A_(r,e,t),o=a.lookup;i.breaks=U(i.breaks,function(s,l){var u={depth:aa},f=e.transformIn(s.vmin,u),v=e.transformIn(s.vmax,u),c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.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]=v,o.to[n+l+1]=s.vmax,{vmin:f,vmax:v,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var Rte={vmin:"start",vmax:"end"};function Ete(r,e){return e&&(r=r||{},r.break={type:Rte[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function kte(){j5({createBreakScaleMapper:Tte,pruneTicksByBreak:Mte,addBreaksToTicks:Dte,parseAxisBreakOption:A_,identifyAxisBreak:yx,serializeAxisBreakIdentifier:M_,retrieveAxisBreakPairs:Ite,getTicksBreakOutwardTransform:Lte,parseAxisBreakOptionInwardTransform:Pte,makeAxisLabelFormatterParamBreak:Ete})}var xI=me();function Ote(r,e){var t=ci(r,function(n){return vt().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function Nte(r){M(r,function(e){return e.shouldRemove=!0})}function Bte(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function Vte(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!vt())return;var o=vt().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=t.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 v=s.get("expandOnClick"),c=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=xI(e).visualList||(xI(e).visualList=[]);Nte(x);for(var w=function(C){var A=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(A.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(A.vmax,!0)),D[1]<D[0]&&D.reverse();var L=Ote(x,A);L.shouldRemove=!1;var I=new oe;T(L.zigzagRandomList,I,D[0],D[1],S,A),v&&I.on("click",function(){var P={type:ep,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(P)}),I.silent=!v,_.add(I)},b=0;b<o.length;b++)w(b);r.add(_),Bte(x);function T(C,A,D,L,I,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=I?0:1,O=1-E,k=n[de[O]]+n[lt[O]];function V(We){var Pe=[],Fe=[];Pe[E]=Fe[E]=We,Pe[O]=n[de[O]],Fe[O]=k;var $e={x1:Pe[0],y1:Pe[1],x2:Fe[0],y2:Fe[1]};return Pd($e,$e,{lineWidth:1}),Pe[0]=$e.x1,Pe[1]=$e.y1,Pe[E]}D=V(D),L=V(L);for(var z=[],G=[],W=!0,X=n[de[O]],Y=0;;Y++){var ee=X===n[de[O]],ye=X>=k;ye&&(X=k);var Ne=[],ce=[];Ne[E]=D,ce[E]=L,!ee&&!ye&&(Ne[E]+=W?-l:l,ce[E]-=W?l:-l),Ne[O]=X,ce[O]=X,z.push(Ne),G.push(ce);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=vt().serializeAxisBreakIdentifier(P.breakOption);if(A.add(new Bt({anid:"break_a_"+ge,shape:{points:z},style:R,z:c})),P.gapReal!==0){A.add(new Bt({anid:"break_b_"+ge,shape:{points:G},style:R,z:c}));var re=G.slice();re.reverse();var he=z.concat(re);A.add(new Zt({anid:"break_c_"+ge,shape:{points:he},style:{fill:m,opacity:d.opacity},z:c}))}}}function zte(r,e,t,n){var a=r.axis,i=t.transform;Yt(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=vt().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:vt().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(D,L){i&&(st(D,D,i),st(L,L,i))}function x(D,L){var I={x1:D[0],y1:D[1],x2:L[0],y2:L[1]};Pd(I,I,n.style),D[0]=I.x1,D[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(F({shape:{x1:w[0],y1:w[1],x2:b[0],y2:b[1]}},n));e.add(A),A.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function Fte(r,e,t){if(ci(t,function(m){return!m}))return;var n=new ue;if(!Jd(t[0],t[1],n,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=nt();hi(a,a,-e);var i=U(t,function(m){return m.transform?Vr(nt(),a,m.transform):a});function o(m){var _=t[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(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new ue;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new ue,y=new ue;ue.scale(g,n,-s),ue.scale(y,n,1-s),A0(t[0],g),A0(t[1],y)}function Gte(r,e){var t={breaks:[]};return M(e.breaks,function(n){if(n){var a=ci(r.get("breaks",!0),function(s){return vt().identifyAxisBreak(s,n)});if(a){var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===ep?!0:i===PE?!1:i===RE?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function Hte(){a$({adjustBreakLabelPair:Fte,buildAxisBreakLine:zte,rectCoordBuildBreakAxis:Vte,updateModelAxisBreak:Gte})}function Ute(r){l$(r),kte(),Hte()}function Wte(){CY($te)}function $te(r,e){M(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=Yte(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function Yte(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof lf?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=Wf(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var v=n?n[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),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([NW]);Se([IW]);Se([n$,J$,uY,WY,n6,o8,k8,y7,W7,J7,a9,h9,aX,LX,UX,sZ,vZ,xZ,DZ,zZ,YZ,aq,Hq]);Se(sj);Se(Nj);Se(Ok);Se(Zj);Se(wO);Se(Jj);Se(mK);Se(MK);Se(gJ);Se(OJ);Se(Jf);Se(KJ);Se(eQ);Se(uQ);Se(yQ);Se(bQ);Se(IQ);Se(FQ);Se(iee);Se(AN);Se(MN);Se(Tee);Se(RN);Se(EN);Se(Iee);Se(kee);Se(Xee);Se(jee);Se(bte);Se(ZU);Se(Ute);Se(Wte);Se($Y);function mx(r={}){const{option:e,autoResize:t=!0,theme:n,onReady:a,onClick:i,onDataZoom:o}=r,s=Ge.useRef(null),l=Ge.useRef(null);Ge.useEffect(()=>{if(s.current)return l.current=WH(s.current,n),e&&l.current.setOption(e),a&&a(l.current),()=>{l.current&&(l.current.dispose(),l.current=null)}},[n]),Ge.useEffect(()=>{l.current&&e&&l.current.setOption(e,!0)},[e]),Ge.useEffect(()=>{if(!(!l.current||!i))return l.current.on("click",i),()=>{l.current?.off("click",i)}},[i]),Ge.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]),Ge.useEffect(()=>{if(!t||!s.current)return;const h=new ResizeObserver(()=>{l.current?.resize()});return h.observe(s.current),()=>{h.disconnect()}},[t]);const u=Ge.useCallback((h,d=!1)=>{l.current?.setOption(h,d)},[]),f=Ge.useCallback(()=>l.current,[]),v=Ge.useCallback(()=>{l.current?.resize()},[]),c=Ge.useCallback(()=>{l.current?.clear()},[]);return{chartRef:s,setOption:u,getInstance:f,resize:v,clear:c}}const Xte={left:60,right:30,top:40,bottom:60,containLabel:!0};function _x({data:r,height:e=300,xLabel:t="",yLabel:n="",series:a,tooltip:i,xAxisExtra:o}){const s=Ge.useMemo(()=>({tooltip:i??{trigger:"axis"},grid:Xte,xAxis:{type:"category",data:r.map(u=>u.label),name:t,nameLocation:"middle",nameGap:35,...o},yAxis:{type:"value",name:n,nameLocation:"middle",nameGap:45},series:a}),[r,t,n,a,i,o]),{chartRef:l}=mx({option:s});return $.jsx("div",{ref:l,style:{width:"100%",height:e}})}function Zte({data:r,...e}){const t=Ge.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=Ge.useMemo(()=>({trigger:"axis",axisPointer:{type:"cross"}}),[]);return $.jsx(_x,{data:r,series:t,tooltip:n,xAxisExtra:{boundaryGap:!1},...e})}function qte({data:r,...e}){const t=Ge.useMemo(()=>[{type:"bar",data:r.map(i=>i.value),itemStyle:{color:"#6366f1"},barMaxWidth:50}],[r]),n=Ge.useMemo(()=>({trigger:"axis",axisPointer:{type:"shadow"}}),[]),a=Ge.useMemo(()=>({axisLabel:{rotate:r.length>10?45:0,interval:0}}),[r.length]);return $.jsx(_x,{data:r,series:t,tooltip:n,xAxisExtra:a,...e})}function jte({data:r,...e}){const t=Ge.useMemo(()=>[{type:"line",data:r.map(n=>n.value),smooth:!0,lineStyle:{color:"#6366f1",width:2},itemStyle:{color:"#6366f1"}}],[r]);return $.jsx(_x,{data:r,series:t,xAxisExtra:{boundaryGap:!1},...e})}function Kte({data:r,height:e=400,showLabel:t=!0,showLegend:n=!0,radius:a=["50%","70%"],highlightName:i=null}){const o=Ge.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:t,formatter:"{b}: {d}%"}}]}),[r,t,n,a,i]),{chartRef:s}=mx({option:o});return $.jsx("div",{ref:s,style:{width:"100%",height:e}})}function Jte({data:r,height:e=40,width:t=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?t/(o.length-1):t,v=o.map((h,d)=>{const p=o.length>1?d*f:t/2,g=e-(h-s)/u*(e-4)-2;return`${p},${g}`}).join(" "),c=`${v} ${t},${e} 0,${e}`;return $.jsxs("svg",{width:t,height:e,viewBox:`0 0 ${t} ${e}`,role:"img","aria-hidden":"true",className:"overflow-visible",children:[$.jsx("polygon",{points:c,fill:i,fillOpacity:"0.12"}),$.jsx("polyline",{points:v,fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const wI=["#6366f1","#8b5cf6","#d946ef","#ec4899","#f43f5e","#f97316","#eab308","#84cc16","#22c55e","#14b8a6"];function bI(r){return wI[r%wI.length]}function Qte({data:r,series:e,height:t=180,xLabel:n="",yLabel:a="",onSeriesClick:i,onDateRangeSelect:o}){const s=Ge.useMemo(()=>{const v=e.map((c,h)=>({name:c.name,type:"line",stack:"total",areaStyle:{opacity:.6},emphasis:{focus:"series"},smooth:!0,data:r.map(d=>d[c.key]??0),itemStyle:{color:c.color||bI(h)},lineStyle:{width:1,color:c.color||bI(h)}}));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{type:"scroll",bottom:0,data:e.map(c=>c.name),selectedMode:"multiple"},grid:{left:50,right:20,top:20,bottom:60,containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:r.map(c=>c.date),name:n,nameLocation:"middle",nameGap:30,axisLabel:{formatter:c=>{const h=new Date(c);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:v}},[r,e,n,a]),l=Ge.useCallback(v=>{if(o&&r.length>0&&v.start!==void 0&&v.end!==void 0){const c=Math.floor(v.start/100*r.length),h=Math.ceil(v.end/100*r.length)-1;if(c>=0&&h<r.length){const d=r[c]?.date,p=r[h]?.date;d&&p&&o(d,p)}}},[r,o]),{chartRef:u,getInstance:f}=mx({option:s,onDataZoom:l});return Ge.useEffect(()=>{const v=f();if(!v||!i)return;const c=h=>{const d=Object.entries(h.selected).find(([,p])=>p===!1);if(d){const p=e.find(g=>g.name===d[0]);p&&i(p.key)}};return v.on("legendselectchanged",c),()=>{v.off("legendselectchanged",c)}},[f,e,i]),$.jsx("div",{ref:u,style:{width:"100%",height:t}})}/**
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 $a(r,e){return typeof r=="function"?r(e):r}function wr(r,e){return t=>{e.setState(n=>({...n,[r]:$a(t,n[r])}))}}function hp(r){return r instanceof Function}function ere(r){return Array.isArray(r)&&r.every(e=>typeof e=="number")}function tre(r,e){const t=[],n=a=>{a.forEach(i=>{t.push(i);const o=e(i);o!=null&&o.length&&n(o)})};return n(r),t}function Ce(r,e,t){let n=[],a;return i=>{let o;t.key&&t.debug&&(o=Date.now());const s=r(i);if(!(s.length!==n.length||s.some((f,v)=>n[v]!==f)))return a;n=s;let u;if(t.key&&t.debug&&(u=Date.now()),a=e(...s),t==null||t.onChange==null||t.onChange(a),t.key&&t.debug&&t!=null&&t.debug()){const f=Math.round((Date.now()-o)*100)/100,v=Math.round((Date.now()-u)*100)/100,c=v/16,h=(d,p)=>{for(d=String(d);d.length<p;)d=" "+d;return d};console.info(`%c⏱ ${h(v,5)} /${h(f,5)} ms`,`
84
- font-size: .6rem;
85
- font-weight: bold;
86
- color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,t?.key)}return a}}function Te(r,e,t,n){return{debug:()=>{var a;return(a=r?.debugAll)!=null?a:r[e]},key:!1,onChange:n}}function rre(r,e,t,n){const a=()=>{var o;return(o=i.getValue())!=null?o:r.options.renderFallbackValue},i={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(n),renderValue:a,getContext:Ce(()=>[r,t,e,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,t,e,r)},{}),i}function nre(r,e,t,n){var a,i;const s={...r._getDefaultColumnDef(),...e},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=c=>{let h=c;for(const p of l.split(".")){var d;h=(d=h)==null?void 0:d[p]}return h}:f=c=>c[s.accessorKey]),!u)throw new Error;let v={id:`${String(u)}`,accessorFn:f,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:Ce(()=>[!0],()=>{var c;return[v,...(c=v.columns)==null?void 0:c.flatMap(h=>h.getFlatColumns())]},Te(r.options,"debugColumns")),getLeafColumns:Ce(()=>[r._getOrderColumnsFn()],c=>{var h;if((h=v.columns)!=null&&h.length){let d=v.columns.flatMap(p=>p.getLeafColumns());return c(d)}return[v]},Te(r.options,"debugColumns"))};for(const c of r._features)c.createColumn==null||c.createColumn(v,r);return v}const Gt="debugHeaders";function CI(r,e,t){var n;let i={id:(n=t.id)!=null?n:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.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:e})};return r._features.forEach(o=>{o.createHeader==null||o.createHeader(i,r)}),i}const are={createTable:r=>{r.getHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n,a)=>{var i,o;const s=(i=n?.map(v=>t.find(c=>c.id===v)).filter(Boolean))!=null?i:[],l=(o=a?.map(v=>t.find(c=>c.id===v)).filter(Boolean))!=null?o:[],u=t.filter(v=>!(n!=null&&n.includes(v.id))&&!(a!=null&&a.includes(v.id)));return mc(e,[...s,...u,...l],r)},Te(r.options,Gt)),r.getCenterHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n,a)=>(t=t.filter(i=>!(n!=null&&n.includes(i.id))&&!(a!=null&&a.includes(i.id))),mc(e,t,r,"center")),Te(r.options,Gt)),r.getLeftHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.left],(e,t,n)=>{var a;const i=(a=n?.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return mc(e,i,r,"left")},Te(r.options,Gt)),r.getRightHeaderGroups=Ce(()=>[r.getAllColumns(),r.getVisibleLeafColumns(),r.getState().columnPinning.right],(e,t,n)=>{var a;const i=(a=n?.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?a:[];return mc(e,i,r,"right")},Te(r.options,Gt)),r.getFooterGroups=Ce(()=>[r.getHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getLeftFooterGroups=Ce(()=>[r.getLeftHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getCenterFooterGroups=Ce(()=>[r.getCenterHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getRightFooterGroups=Ce(()=>[r.getRightHeaderGroups()],e=>[...e].reverse(),Te(r.options,Gt)),r.getFlatHeaders=Ce(()=>[r.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getLeftFlatHeaders=Ce(()=>[r.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getCenterFlatHeaders=Ce(()=>[r.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getRightFlatHeaders=Ce(()=>[r.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),Te(r.options,Gt)),r.getCenterLeafHeaders=Ce(()=>[r.getCenterFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeftLeafHeaders=Ce(()=>[r.getLeftFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getRightLeafHeaders=Ce(()=>[r.getRightFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),Te(r.options,Gt)),r.getLeafHeaders=Ce(()=>[r.getLeftHeaderGroups(),r.getCenterHeaderGroups(),r.getRightHeaderGroups()],(e,t,n)=>{var a,i,o,s,l,u;return[...(a=(i=e[0])==null?void 0:i.headers)!=null?a:[],...(o=(s=t[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 mc(r,e,t,n){var a,i;let o=0;const s=function(c,h){h===void 0&&(h=1),o=Math.max(o,h),c.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=(c,h)=>{const d={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];c.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=CI(t,_,{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=e.map((c,h)=>CI(t,c,{depth:o,index:h}));u(f,o-1),l.reverse();const v=c=>c.filter(d=>d.column.getIsVisible()).map(d=>{let p=0,g=0,y=[0];d.subHeaders&&d.subHeaders.length?(y=[],v(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 v((a=(i=l[0])==null?void 0:i.headers)!=null?a:[]),l}const ire=(r,e,t,n,a,i,o)=>{let s={id:e,index:n,original:t,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:()=>tre(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=>rre(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},ore={createColumn:(r,e)=>{r._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,r.id),r.getFacetedRowModel=()=>r._getFacetedRowModel?r._getFacetedRowModel():e.getPreFilteredRowModel(),r._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,r.id),r.getFacetedUniqueValues=()=>r._getFacetedUniqueValues?r._getFacetedUniqueValues():new Map,r._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,r.id),r.getFacetedMinMaxValues=()=>{if(r._getFacetedMinMaxValues)return r._getFacetedMinMaxValues()}}},GN=(r,e,t)=>{var n,a;const i=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((a=r.getValue(e))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(i))};GN.autoRemove=r=>tn(r);const HN=(r,e,t)=>{var n;return!!(!((n=r.getValue(e))==null||(n=n.toString())==null)&&n.includes(t))};HN.autoRemove=r=>tn(r);const UN=(r,e,t)=>{var n;return((n=r.getValue(e))==null||(n=n.toString())==null?void 0:n.toLowerCase())===t?.toLowerCase()};UN.autoRemove=r=>tn(r);const WN=(r,e,t)=>{var n;return(n=r.getValue(e))==null?void 0:n.includes(t)};WN.autoRemove=r=>tn(r);const $N=(r,e,t)=>!t.some(n=>{var a;return!((a=r.getValue(e))!=null&&a.includes(n))});$N.autoRemove=r=>tn(r)||!(r!=null&&r.length);const YN=(r,e,t)=>t.some(n=>{var a;return(a=r.getValue(e))==null?void 0:a.includes(n)});YN.autoRemove=r=>tn(r)||!(r!=null&&r.length);const XN=(r,e,t)=>r.getValue(e)===t;XN.autoRemove=r=>tn(r);const ZN=(r,e,t)=>r.getValue(e)==t;ZN.autoRemove=r=>tn(r);const Sx=(r,e,t)=>{let[n,a]=t;const i=r.getValue(e);return i>=n&&i<=a};Sx.resolveFilterValue=r=>{let[e,t]=r,n=typeof e!="number"?parseFloat(e):e,a=typeof t!="number"?parseFloat(t):t,i=e===null||Number.isNaN(n)?-1/0:n,o=t===null||Number.isNaN(a)?1/0:a;if(i>o){const s=i;i=o,o=s}return[i,o]};Sx.autoRemove=r=>tn(r)||tn(r[0])&&tn(r[1]);const Jn={includesString:GN,includesStringSensitive:HN,equalsString:UN,arrIncludes:WN,arrIncludesAll:$N,arrIncludesSome:YN,equals:XN,weakEquals:ZN,inNumberRange:Sx};function tn(r){return r==null||r===""}const sre={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:r=>({columnFilters:[],...r}),getDefaultOptions:r=>({onColumnFiltersChange:wr("columnFilters",r),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(r,e)=>{r.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t?.getValue(r.id);return typeof n=="string"?Jn.includesString:typeof n=="number"?Jn.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Jn.equals:Array.isArray(n)?Jn.arrIncludes:Jn.weakEquals},r.getFilterFn=()=>{var t,n;return hp(r.columnDef.filterFn)?r.columnDef.filterFn:r.columnDef.filterFn==="auto"?r.getAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r.columnDef.filterFn])!=null?t:Jn[r.columnDef.filterFn]},r.getCanFilter=()=>{var t,n,a;return((t=r.columnDef.enableColumnFilter)!=null?t:!0)&&((n=e.options.enableColumnFilters)!=null?n:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&!!r.accessorFn},r.getIsFiltered=()=>r.getFilterIndex()>-1,r.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(n=>n.id===r.id))==null?void 0:t.value},r.getFilterIndex=()=>{var t,n;return(t=(n=e.getState().columnFilters)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?t:-1},r.setFilterValue=t=>{e.setColumnFilters(n=>{const a=r.getFilterFn(),i=n?.find(f=>f.id===r.id),o=$a(t,i?i.value:void 0);if(TI(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,e)=>{r.columnFilters={},r.columnFiltersMeta={}},createTable:r=>{r.setColumnFilters=e=>{const t=r.getAllLeafColumns(),n=a=>{var i;return(i=$a(e,a))==null?void 0:i.filter(o=>{const s=t.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(TI(l,o.value,s))return!1}return!0})};r.options.onColumnFiltersChange==null||r.options.onColumnFiltersChange(n)},r.resetColumnFilters=e=>{var t,n;r.setColumnFilters(e?[]:(t=(n=r.initialState)==null?void 0:n.columnFilters)!=null?t:[])},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 TI(r,e,t){return(r&&r.autoRemove?r.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const lre=(r,e,t)=>t.reduce((n,a)=>{const i=a.getValue(r);return n+(typeof i=="number"?i:0)},0),ure=(r,e,t)=>{let n;return t.forEach(a=>{const i=a.getValue(r);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},fre=(r,e,t)=>{let n;return t.forEach(a=>{const i=a.getValue(r);i!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}),n},vre=(r,e,t)=>{let n,a;return t.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]},cre=(r,e)=>{let t=0,n=0;if(e.forEach(a=>{let i=a.getValue(r);i!=null&&(i=+i)>=i&&(++t,n+=i)}),t)return n/t},hre=(r,e)=>{if(!e.length)return;const t=e.map(i=>i.getValue(r));if(!ere(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),a=t.sort((i,o)=>i-o);return t.length%2!==0?a[n]:(a[n-1]+a[n])/2},dre=(r,e)=>Array.from(new Set(e.map(t=>t.getValue(r))).values()),pre=(r,e)=>new Set(e.map(t=>t.getValue(r))).size,gre=(r,e)=>e.length,Qy={sum:lre,min:ure,max:fre,extent:vre,mean:cre,median:hre,unique:dre,uniqueCount:pre,count:gre},yre={getDefaultColumnDef:()=>({aggregatedCell:r=>{var e,t;return(e=(t=r.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:r=>({grouping:[],...r}),getDefaultOptions:r=>({onGroupingChange:wr("grouping",r),groupedColumnMode:"reorder"}),createColumn:(r,e)=>{r.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(r.id)?t.filter(n=>n!==r.id):[...t??[],r.id])},r.getCanGroup=()=>{var t,n;return((t=r.columnDef.enableGrouping)!=null?t:!0)&&((n=e.options.enableGrouping)!=null?n:!0)&&(!!r.accessorFn||!!r.columnDef.getGroupingValue)},r.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(r.id)},r.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(r.id)},r.getToggleGroupingHandler=()=>{const t=r.getCanGroup();return()=>{t&&r.toggleGrouping()}},r.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t?.getValue(r.id);if(typeof n=="number")return Qy.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Qy.extent},r.getAggregationFn=()=>{var t,n;if(!r)throw new Error;return hp(r.columnDef.aggregationFn)?r.columnDef.aggregationFn:r.columnDef.aggregationFn==="auto"?r.getAutoAggregationFn():(t=(n=e.options.aggregationFns)==null?void 0:n[r.columnDef.aggregationFn])!=null?t:Qy[r.columnDef.aggregationFn]}},createTable:r=>{r.setGrouping=e=>r.options.onGroupingChange==null?void 0:r.options.onGroupingChange(e),r.resetGrouping=e=>{var t,n;r.setGrouping(e?[]:(t=(n=r.initialState)==null?void 0:n.grouping)!=null?t:[])},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,e)=>{r.getIsGrouped=()=>!!r.groupingColumnId,r.getGroupingValue=t=>{if(r._groupingValuesCache.hasOwnProperty(t))return r._groupingValuesCache[t];const n=e.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(r._groupingValuesCache[t]=n.columnDef.getGroupingValue(r.original),r._groupingValuesCache[t]):r.getValue(t)},r._groupingValuesCache={}},createCell:(r,e,t,n)=>{r.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,r.getIsPlaceholder=()=>!r.getIsGrouped()&&e.getIsGrouped(),r.getIsAggregated=()=>{var a;return!r.getIsGrouped()&&!r.getIsPlaceholder()&&!!((a=t.subRows)!=null&&a.length)}}};function mre(r,e,t){if(!(e!=null&&e.length)||!t)return r;const n=r.filter(i=>!e.includes(i.id));return t==="remove"?n:[...e.map(i=>r.find(o=>o.id===i)).filter(Boolean),...n]}const _re={getInitialState:r=>({columnOrder:[],...r}),getDefaultOptions:r=>({onColumnOrderChange:wr("columnOrder",r)}),createColumn:(r,e)=>{r.getIndex=Ce(t=>[Uu(e,t)],t=>t.findIndex(n=>n.id===r.id),Te(e.options,"debugColumns")),r.getIsFirstColumn=t=>{var n;return((n=Uu(e,t)[0])==null?void 0:n.id)===r.id},r.getIsLastColumn=t=>{var n;const a=Uu(e,t);return((n=a[a.length-1])==null?void 0:n.id)===r.id}},createTable:r=>{r.setColumnOrder=e=>r.options.onColumnOrderChange==null?void 0:r.options.onColumnOrderChange(e),r.resetColumnOrder=e=>{var t;r.setColumnOrder(e?[]:(t=r.initialState.columnOrder)!=null?t:[])},r._getOrderColumnsFn=Ce(()=>[r.getState().columnOrder,r.getState().grouping,r.options.groupedColumnMode],(e,t,n)=>a=>{let i=[];if(!(e!=null&&e.length))i=a;else{const o=[...e],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 mre(i,t,n)},Te(r.options,"debugTable"))}},em=()=>({left:[],right:[]}),Sre={getInitialState:r=>({columnPinning:em(),...r}),getDefaultOptions:r=>({onColumnPinningChange:wr("columnPinning",r)}),createColumn:(r,e)=>{r.pin=t=>{const n=r.getLeafColumns().map(a=>a.id).filter(Boolean);e.setColumnPinning(a=>{var i,o;if(t==="right"){var s,l;return{left:((s=a?.left)!=null?s:[]).filter(v=>!(n!=null&&n.includes(v))),right:[...((l=a?.right)!=null?l:[]).filter(v=>!(n!=null&&n.includes(v))),...n]}}if(t==="left"){var u,f;return{left:[...((u=a?.left)!=null?u:[]).filter(v=>!(n!=null&&n.includes(v))),...n],right:((f=a?.right)!=null?f:[]).filter(v=>!(n!=null&&n.includes(v)))}}return{left:((i=a?.left)!=null?i:[]).filter(v=>!(n!=null&&n.includes(v))),right:((o=a?.right)!=null?o:[]).filter(v=>!(n!=null&&n.includes(v)))}})},r.getCanPin=()=>r.getLeafColumns().some(n=>{var a,i,o;return((a=n.columnDef.enablePinning)!=null?a:!0)&&((i=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?i:!0)}),r.getIsPinned=()=>{const t=r.getLeafColumns().map(s=>s.id),{left:n,right:a}=e.getState().columnPinning,i=t.some(s=>n?.includes(s)),o=t.some(s=>a?.includes(s));return i?"left":o?"right":!1},r.getPinnedIndex=()=>{var t,n;const a=r.getIsPinned();return a?(t=(n=e.getState().columnPinning)==null||(n=n[a])==null?void 0:n.indexOf(r.id))!=null?t:-1:0}},createRow:(r,e)=>{r.getCenterVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a)=>{const i=[...n??[],...a??[]];return t.filter(o=>!i.includes(o.column.id))},Te(e.options,"debugRows")),r.getLeftVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Te(e.options,"debugRows")),r.getRightVisibleCells=Ce(()=>[r._getAllVisibleCells(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Te(e.options,"debugRows"))},createTable:r=>{r.setColumnPinning=e=>r.options.onColumnPinningChange==null?void 0:r.options.onColumnPinningChange(e),r.resetColumnPinning=e=>{var t,n;return r.setColumnPinning(e?em():(t=(n=r.initialState)==null?void 0:n.columnPinning)!=null?t:em())},r.getIsSomeColumnsPinned=e=>{var t;const n=r.getState().columnPinning;if(!e){var a,i;return!!((a=n.left)!=null&&a.length||(i=n.right)!=null&&i.length)}return!!((t=n[e])!=null&&t.length)},r.getLeftLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left],(e,t)=>(t??[]).map(n=>e.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getRightLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.right],(e,t)=>(t??[]).map(n=>e.find(a=>a.id===n)).filter(Boolean),Te(r.options,"debugColumns")),r.getCenterLeafColumns=Ce(()=>[r.getAllLeafColumns(),r.getState().columnPinning.left,r.getState().columnPinning.right],(e,t,n)=>{const a=[...t??[],...n??[]];return e.filter(i=>!a.includes(i.id))},Te(r.options,"debugColumns"))}};function xre(r){return r||(typeof document<"u"?document:null)}const _c={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tm=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),wre={getDefaultColumnDef:()=>_c,getInitialState:r=>({columnSizing:{},columnSizingInfo:tm(),...r}),getDefaultOptions:r=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:wr("columnSizing",r),onColumnSizingInfoChange:wr("columnSizingInfo",r)}),createColumn:(r,e)=>{r.getSize=()=>{var t,n,a;const i=e.getState().columnSizing[r.id];return Math.min(Math.max((t=r.columnDef.minSize)!=null?t:_c.minSize,(n=i??r.columnDef.size)!=null?n:_c.size),(a=r.columnDef.maxSize)!=null?a:_c.maxSize)},r.getStart=Ce(t=>[t,Uu(e,t),e.getState().columnSizing],(t,n)=>n.slice(0,r.getIndex(t)).reduce((a,i)=>a+i.getSize(),0),Te(e.options,"debugColumns")),r.getAfter=Ce(t=>[t,Uu(e,t),e.getState().columnSizing],(t,n)=>n.slice(r.getIndex(t)+1).reduce((a,i)=>a+i.getSize(),0),Te(e.options,"debugColumns")),r.resetSize=()=>{e.setColumnSizing(t=>{let{[r.id]:n,...a}=t;return a})},r.getCanResize=()=>{var t,n;return((t=r.columnDef.enableResizing)!=null?t:!0)&&((n=e.options.enableColumnResizing)!=null?n:!0)},r.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===r.id},createHeader:(r,e)=>{r.getSize=()=>{let t=0;const n=a=>{if(a.subHeaders.length)a.subHeaders.forEach(n);else{var i;t+=(i=a.column.getSize())!=null?i:0}};return n(r),t},r.getStart=()=>{if(r.index>0){const t=r.headerGroup.headers[r.index-1];return t.getStart()+t.getSize()}return 0},r.getResizeHandler=t=>{const n=e.getColumn(r.column.id),a=n?.getCanResize();return i=>{if(!n||!a||(i.persist==null||i.persist(),rm(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=rm(i)?Math.round(i.touches[0].clientX):i.clientX,u={},f=(y,m)=>{typeof m=="number"&&(e.setColumnSizingInfo(_=>{var S,x;const w=e.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,D]=C;u[A]=Math.round(Math.max(D+D*T,0)*100)/100}),{..._,deltaOffset:b,deltaPercentage:T}}),(e.options.columnResizeMode==="onChange"||y==="end")&&e.setColumnSizing(_=>({..._,...u})))},v=y=>f("move",y),c=y=>{f("end",y),e.setColumnSizingInfo(m=>({...m,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=xre(t),d={moveHandler:y=>v(y.clientX),upHandler:y=>{h?.removeEventListener("mousemove",d.moveHandler),h?.removeEventListener("mouseup",d.upHandler),c(y.clientX)}},p={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),v(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()),c((m=y.touches[0])==null?void 0:m.clientX)}},g=bre()?{passive:!1}:!1;rm(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)),e.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:r=>{r.setColumnSizing=e=>r.options.onColumnSizingChange==null?void 0:r.options.onColumnSizingChange(e),r.setColumnSizingInfo=e=>r.options.onColumnSizingInfoChange==null?void 0:r.options.onColumnSizingInfoChange(e),r.resetColumnSizing=e=>{var t;r.setColumnSizing(e?{}:(t=r.initialState.columnSizing)!=null?t:{})},r.resetHeaderSizeInfo=e=>{var t;r.setColumnSizingInfo(e?tm():(t=r.initialState.columnSizingInfo)!=null?t:tm())},r.getTotalSize=()=>{var e,t;return(e=(t=r.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getLeftTotalSize=()=>{var e,t;return(e=(t=r.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getCenterTotalSize=()=>{var e,t;return(e=(t=r.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0},r.getRightTotalSize=()=>{var e,t;return(e=(t=r.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,a)=>n+a.getSize(),0))!=null?e:0}}};let Sc=null;function bre(){if(typeof Sc=="boolean")return Sc;let r=!1;try{const e={get passive(){return r=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{r=!1}return Sc=r,Sc}function rm(r){return r.type==="touchstart"}const Cre={getInitialState:r=>({columnVisibility:{},...r}),getDefaultOptions:r=>({onColumnVisibilityChange:wr("columnVisibility",r)}),createColumn:(r,e)=>{r.toggleVisibility=t=>{r.getCanHide()&&e.setColumnVisibility(n=>({...n,[r.id]:t??!r.getIsVisible()}))},r.getIsVisible=()=>{var t,n;const a=r.columns;return(t=a.length?a.some(i=>i.getIsVisible()):(n=e.getState().columnVisibility)==null?void 0:n[r.id])!=null?t:!0},r.getCanHide=()=>{var t,n;return((t=r.columnDef.enableHiding)!=null?t:!0)&&((n=e.options.enableHiding)!=null?n:!0)},r.getToggleVisibilityHandler=()=>t=>{r.toggleVisibility==null||r.toggleVisibility(t.target.checked)}},createRow:(r,e)=>{r._getAllVisibleCells=Ce(()=>[r.getAllCells(),e.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),Te(e.options,"debugRows")),r.getVisibleCells=Ce(()=>[r.getLeftVisibleCells(),r.getCenterVisibleCells(),r.getRightVisibleCells()],(t,n,a)=>[...t,...n,...a],Te(e.options,"debugRows"))},createTable:r=>{const e=(t,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=e("getVisibleFlatColumns",()=>r.getAllFlatColumns()),r.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>r.getAllLeafColumns()),r.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>r.getLeftLeafColumns()),r.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>r.getRightLeafColumns()),r.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>r.getCenterLeafColumns()),r.setColumnVisibility=t=>r.options.onColumnVisibilityChange==null?void 0:r.options.onColumnVisibilityChange(t),r.resetColumnVisibility=t=>{var n;r.setColumnVisibility(t?{}:(n=r.initialState.columnVisibility)!=null?n:{})},r.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!r.getIsAllColumnsVisible(),r.setColumnVisibility(r.getAllLeafColumns().reduce((a,i)=>({...a,[i.id]:t||!(i.getCanHide!=null&&i.getCanHide())}),{}))},r.getIsAllColumnsVisible=()=>!r.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),r.getIsSomeColumnsVisible=()=>r.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),r.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;r.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function Uu(r,e){return e?e==="center"?r.getCenterVisibleLeafColumns():e==="left"?r.getLeftVisibleLeafColumns():r.getRightVisibleLeafColumns():r.getVisibleLeafColumns()}const Tre={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()}}},Are={getInitialState:r=>({globalFilter:void 0,...r}),getDefaultOptions:r=>({onGlobalFilterChange:wr("globalFilter",r),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const n=(t=r.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(r,e)=>{r.getCanGlobalFilter=()=>{var t,n,a,i;return((t=r.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=e.options.enableGlobalFilter)!=null?n:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&((i=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(r))!=null?i:!0)&&!!r.accessorFn}},createTable:r=>{r.getGlobalAutoFilterFn=()=>Jn.includesString,r.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:n}=r.options;return hp(n)?n:n==="auto"?r.getGlobalAutoFilterFn():(e=(t=r.options.filterFns)==null?void 0:t[n])!=null?e:Jn[n]},r.setGlobalFilter=e=>{r.options.onGlobalFilterChange==null||r.options.onGlobalFilterChange(e)},r.resetGlobalFilter=e=>{r.setGlobalFilter(e?void 0:r.initialState.globalFilter)}}},Mre={getInitialState:r=>({expanded:{},...r}),getDefaultOptions:r=>({onExpandedChange:wr("expanded",r),paginateExpandedRows:!0}),createTable:r=>{let e=!1,t=!1;r._autoResetExpanded=()=>{var n,a;if(!e){r._queue(()=>{e=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetExpanded)!=null?n:!r.options.manualExpanding){if(t)return;t=!0,r._queue(()=>{r.resetExpanded(),t=!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,e)=>{r.toggleExpanded=t=>{e.setExpanded(n=>{var a;const i=n===!0?!0:!!(n!=null&&n[r.id]);let o={};if(n===!0?Object.keys(e.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,t=(a=t)!=null?a:!i,!i&&t)return{...o,[r.id]:!0};if(i&&!t){const{[r.id]:s,...l}=o;return l}return n})},r.getIsExpanded=()=>{var t;const n=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(r))!=null?t:n===!0||n?.[r.id])},r.getCanExpand=()=>{var t,n,a;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(r))!=null?t:((n=e.options.enableExpanding)!=null?n:!0)&&!!((a=r.subRows)!=null&&a.length)},r.getIsAllParentsExpanded=()=>{let t=!0,n=r;for(;t&&n.parentId;)n=e.getRow(n.parentId,!0),t=n.getIsExpanded();return t},r.getToggleExpandedHandler=()=>{const t=r.getCanExpand();return()=>{t&&r.toggleExpanded()}}}},D_=0,I_=10,nm=()=>({pageIndex:D_,pageSize:I_}),Dre={getInitialState:r=>({...r,pagination:{...nm(),...r?.pagination}}),getDefaultOptions:r=>({onPaginationChange:wr("pagination",r)}),createTable:r=>{let e=!1,t=!1;r._autoResetPageIndex=()=>{var n,a;if(!e){r._queue(()=>{e=!0});return}if((n=(a=r.options.autoResetAll)!=null?a:r.options.autoResetPageIndex)!=null?n:!r.options.manualPagination){if(t)return;t=!0,r._queue(()=>{r.resetPageIndex(),t=!1})}},r.setPagination=n=>{const a=i=>$a(n,i);return r.options.onPaginationChange==null?void 0:r.options.onPaginationChange(a)},r.resetPagination=n=>{var a;r.setPagination(n?nm():(a=r.initialState.pagination)!=null?a:nm())},r.setPageIndex=n=>{r.setPagination(a=>{let i=$a(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?D_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?a:D_)},r.resetPageSize=n=>{var a,i;r.setPageSize(n?I_:(a=(i=r.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?a:I_)},r.setPageSize=n=>{r.setPagination(a=>{const i=Math.max(1,$a(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=$a(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}}},am=()=>({top:[],bottom:[]}),Ire={getInitialState:r=>({rowPinning:am(),...r}),getDefaultOptions:r=>({onRowPinningChange:wr("rowPinning",r)}),createRow:(r,e)=>{r.pin=(t,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]);e.setRowPinning(l=>{var u,f;if(t==="bottom"){var v,c;return{top:((v=l?.top)!=null?v:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((c=l?.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(t==="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 t;const{enableRowPinning:n,enablePinning:a}=e.options;return typeof n=="function"?n(r):(t=n??a)!=null?t:!0},r.getIsPinned=()=>{const t=[r.id],{top:n,bottom:a}=e.getState().rowPinning,i=t.some(s=>n?.includes(s)),o=t.some(s=>a?.includes(s));return i?"top":o?"bottom":!1},r.getPinnedIndex=()=>{var t,n;const a=r.getIsPinned();if(!a)return-1;const i=(t=a==="top"?e.getTopRows():e.getBottomRows())==null?void 0:t.map(o=>{let{id:s}=o;return s});return(n=i?.indexOf(r.id))!=null?n:-1}},createTable:r=>{r.setRowPinning=e=>r.options.onRowPinningChange==null?void 0:r.options.onRowPinningChange(e),r.resetRowPinning=e=>{var t,n;return r.setRowPinning(e?am():(t=(n=r.initialState)==null?void 0:n.rowPinning)!=null?t:am())},r.getIsSomeRowsPinned=e=>{var t;const n=r.getState().rowPinning;if(!e){var a,i;return!!((a=n.top)!=null&&a.length||(i=n.bottom)!=null&&i.length)}return!!((t=n[e])!=null&&t.length)},r._getPinnedRows=(e,t,n)=>{var a;return((a=r.options.keepPinnedRows)==null||a?(t??[]).map(o=>{const s=r.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(o=>e.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},r.getTopRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top],(e,t)=>r._getPinnedRows(e,t,"top"),Te(r.options,"debugRows")),r.getBottomRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.bottom],(e,t)=>r._getPinnedRows(e,t,"bottom"),Te(r.options,"debugRows")),r.getCenterRows=Ce(()=>[r.getRowModel().rows,r.getState().rowPinning.top,r.getState().rowPinning.bottom],(e,t,n)=>{const a=new Set([...t??[],...n??[]]);return e.filter(i=>!a.has(i.id))},Te(r.options,"debugRows"))}},Lre={getInitialState:r=>({rowSelection:{},...r}),getDefaultOptions:r=>({onRowSelectionChange:wr("rowSelection",r),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:r=>{r.setRowSelection=e=>r.options.onRowSelectionChange==null?void 0:r.options.onRowSelectionChange(e),r.resetRowSelection=e=>{var t;return r.setRowSelection(e?{}:(t=r.initialState.rowSelection)!=null?t:{})},r.toggleAllRowsSelected=e=>{r.setRowSelection(t=>{e=typeof e<"u"?e:!r.getIsAllRowsSelected();const n={...t},a=r.getPreGroupedRowModel().flatRows;return e?a.forEach(i=>{i.getCanSelect()&&(n[i.id]=!0)}):a.forEach(i=>{delete n[i.id]}),n})},r.toggleAllPageRowsSelected=e=>r.setRowSelection(t=>{const n=typeof e<"u"?e:!r.getIsAllPageRowsSelected(),a={...t};return r.getRowModel().rows.forEach(i=>{L_(a,i.id,n,!0,r)}),a}),r.getPreSelectedRowModel=()=>r.getCoreRowModel(),r.getSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getCoreRowModel()],(e,t)=>Object.keys(e).length?im(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getFilteredSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getFilteredRowModel()],(e,t)=>Object.keys(e).length?im(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getGroupedSelectedRowModel=Ce(()=>[r.getState().rowSelection,r.getSortedRowModel()],(e,t)=>Object.keys(e).length?im(r,t):{rows:[],flatRows:[],rowsById:{}},Te(r.options,"debugTable")),r.getIsAllRowsSelected=()=>{const e=r.getFilteredRowModel().flatRows,{rowSelection:t}=r.getState();let n=!!(e.length&&Object.keys(t).length);return n&&e.some(a=>a.getCanSelect()&&!t[a.id])&&(n=!1),n},r.getIsAllPageRowsSelected=()=>{const e=r.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:t}=r.getState();let n=!!e.length;return n&&e.some(a=>!t[a.id])&&(n=!1),n},r.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=r.getState().rowSelection)!=null?e:{}).length;return t>0&&t<r.getFilteredRowModel().flatRows.length},r.getIsSomePageRowsSelected=()=>{const e=r.getPaginationRowModel().flatRows;return r.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},r.getToggleAllRowsSelectedHandler=()=>e=>{r.toggleAllRowsSelected(e.target.checked)},r.getToggleAllPageRowsSelectedHandler=()=>e=>{r.toggleAllPageRowsSelected(e.target.checked)}},createRow:(r,e)=>{r.toggleSelected=(t,n)=>{const a=r.getIsSelected();e.setRowSelection(i=>{var o;if(t=typeof t<"u"?t:!a,r.getCanSelect()&&a===t)return i;const s={...i};return L_(s,r.id,t,(o=n?.selectChildren)!=null?o:!0,e),s})},r.getIsSelected=()=>{const{rowSelection:t}=e.getState();return xx(r,t)},r.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return P_(r,t)==="some"},r.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return P_(r,t)==="all"},r.getCanSelect=()=>{var t;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(r):(t=e.options.enableRowSelection)!=null?t:!0},r.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(r):(t=e.options.enableSubRowSelection)!=null?t:!0},r.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(r):(t=e.options.enableMultiRowSelection)!=null?t:!0},r.getToggleSelectedHandler=()=>{const t=r.getCanSelect();return n=>{var a;t&&r.toggleSelected((a=n.target)==null?void 0:a.checked)}}}},L_=(r,e,t,n,a)=>{var i;const o=a.getRow(e,!0);t?(o.getCanMultiSelect()||Object.keys(r).forEach(s=>delete r[s]),o.getCanSelect()&&(r[e]=!0)):delete r[e],n&&(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>L_(r,s.id,t,n,a))};function im(r,e){const t=r.getState().rowSelection,n=[],a={},i=function(o,s){return o.map(l=>{var u;const f=xx(l,t);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(e.rows),flatRows:n,rowsById:a}}function xx(r,e){var t;return(t=e[r.id])!=null?t:!1}function P_(r,e,t){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()&&(xx(o,e)?i=!0:a=!1),o.subRows&&o.subRows.length)){const s=P_(o,e);s==="all"?i=!0:(s==="some"&&(i=!0),a=!1)}}),a?"all":i?"some":!1}const R_=/([0-9]+)/gm,Pre=(r,e,t)=>qN(vi(r.getValue(t)).toLowerCase(),vi(e.getValue(t)).toLowerCase()),Rre=(r,e,t)=>qN(vi(r.getValue(t)),vi(e.getValue(t))),Ere=(r,e,t)=>bx(vi(r.getValue(t)).toLowerCase(),vi(e.getValue(t)).toLowerCase()),kre=(r,e,t)=>bx(vi(r.getValue(t)),vi(e.getValue(t))),Ore=(r,e,t)=>{const n=r.getValue(t),a=e.getValue(t);return n>a?1:n<a?-1:0},Nre=(r,e,t)=>bx(r.getValue(t),e.getValue(t));function bx(r,e){return r===e?0:r>e?1:-1}function vi(r){return typeof r=="number"?isNaN(r)||r===1/0||r===-1/0?"":String(r):typeof r=="string"?r:""}function qN(r,e){const t=r.split(R_).filter(Boolean),n=e.split(R_).filter(Boolean);for(;t.length&&n.length;){const a=t.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 t.length-n.length}const du={alphanumeric:Pre,alphanumericCaseSensitive:Rre,text:Ere,textCaseSensitive:kre,datetime:Ore,basic:Nre},Bre={getInitialState:r=>({sorting:[],...r}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:r=>({onSortingChange:wr("sorting",r),isMultiSortEvent:e=>e.shiftKey}),createColumn:(r,e)=>{r.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const a of t){const i=a?.getValue(r.id);if(Object.prototype.toString.call(i)==="[object Date]")return du.datetime;if(typeof i=="string"&&(n=!0,i.split(R_).length>1))return du.alphanumeric}return n?du.text:du.basic},r.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof t?.getValue(r.id)=="string"?"asc":"desc"},r.getSortingFn=()=>{var t,n;if(!r)throw new Error;return hp(r.columnDef.sortingFn)?r.columnDef.sortingFn:r.columnDef.sortingFn==="auto"?r.getAutoSortingFn():(t=(n=e.options.sortingFns)==null?void 0:n[r.columnDef.sortingFn])!=null?t:du[r.columnDef.sortingFn]},r.toggleSorting=(t,n)=>{const a=r.getNextSortingOrder(),i=typeof t<"u"&&t!==null;e.setSorting(o=>{const s=o?.find(h=>h.id===r.id),l=o?.findIndex(h=>h.id===r.id);let u=[],f,v=i?t: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 c;u=[...o,{id:r.id,desc:v}],u.splice(0,u.length-((c=e.options.maxMultiSortColCount)!=null?c:Number.MAX_SAFE_INTEGER))}else f==="toggle"?u=o.map(h=>h.id===r.id?{...h,desc:v}:h):f==="remove"?u=o.filter(h=>h.id!==r.id):u=[{id:r.id,desc:v}];return u})},r.getFirstSortDir=()=>{var t,n;return((t=(n=r.columnDef.sortDescFirst)!=null?n:e.options.sortDescFirst)!=null?t:r.getAutoSortDir()==="desc")?"desc":"asc"},r.getNextSortingOrder=t=>{var n,a;const i=r.getFirstSortDir(),o=r.getIsSorted();return o?o!==i&&((n=e.options.enableSortingRemoval)==null||n)&&(!(t&&(a=e.options.enableMultiRemove)!=null)||a)?!1:o==="desc"?"asc":"desc":i},r.getCanSort=()=>{var t,n;return((t=r.columnDef.enableSorting)!=null?t:!0)&&((n=e.options.enableSorting)!=null?n:!0)&&!!r.accessorFn},r.getCanMultiSort=()=>{var t,n;return(t=(n=r.columnDef.enableMultiSort)!=null?n:e.options.enableMultiSort)!=null?t:!!r.accessorFn},r.getIsSorted=()=>{var t;const n=(t=e.getState().sorting)==null?void 0:t.find(a=>a.id===r.id);return n?n.desc?"desc":"asc":!1},r.getSortIndex=()=>{var t,n;return(t=(n=e.getState().sorting)==null?void 0:n.findIndex(a=>a.id===r.id))!=null?t:-1},r.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==r.id):[])},r.getToggleSortingHandler=()=>{const t=r.getCanSort();return n=>{t&&(n.persist==null||n.persist(),r.toggleSorting==null||r.toggleSorting(void 0,r.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(n):!1))}}},createTable:r=>{r.setSorting=e=>r.options.onSortingChange==null?void 0:r.options.onSortingChange(e),r.resetSorting=e=>{var t,n;r.setSorting(e?[]:(t=(n=r.initialState)==null?void 0:n.sorting)!=null?t:[])},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())}},Vre=[are,Cre,_re,Sre,ore,sre,Tre,Are,Bre,yre,Mre,Dre,Ire,Lre,wre];function zre(r){var e,t;const n=[...Vre,...(e=r._features)!=null?e:[]];let a={_features:n};const i=a._features.reduce((c,h)=>Object.assign(c,h.getDefaultOptions==null?void 0:h.getDefaultOptions(a)),{}),o=c=>a.options.mergeOptions?a.options.mergeOptions(i,c):{...i,...c};let l={...{},...(t=r.initialState)!=null?t:{}};a._features.forEach(c=>{var h;l=(h=c.getInitialState==null?void 0:c.getInitialState(l))!=null?h:l});const u=[];let f=!1;const v={_features:n,options:{...i,...r},initialState:l,_queue:c=>{u.push(c),f||(f=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();f=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{a.setState(a.initialState)},setOptions:c=>{const h=$a(c,a.options);a.options=o(h)},getState:()=>a.options.state,setState:c=>{a.options.onStateChange==null||a.options.onStateChange(c)},_getRowId:(c,h,d)=>{var p;return(p=a.options.getRowId==null?void 0:a.options.getRowId(c,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:(c,h)=>{let d=(h?a.getPrePaginationRowModel():a.getRowModel()).rowsById[c];if(!d&&(d=a.getCoreRowModel().rowsById[c],!d))throw new Error;return d},_getDefaultColumnDef:Ce(()=>[a.options.defaultColumn],c=>{var h;return c=(h=c)!=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()),{}),...c}},Te(r,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ce(()=>[a._getColumnDefs()],c=>{const h=function(d,p,g){return g===void 0&&(g=0),d.map(y=>{const m=nre(a,y,g,p),_=y;return m.columns=_.columns?h(_.columns,m,g+1):[],m})};return h(c)},Te(r,"debugColumns")),getAllFlatColumns:Ce(()=>[a.getAllColumns()],c=>c.flatMap(h=>h.getFlatColumns()),Te(r,"debugColumns")),_getAllFlatColumnsById:Ce(()=>[a.getAllFlatColumns()],c=>c.reduce((h,d)=>(h[d.id]=d,h),{}),Te(r,"debugColumns")),getAllLeafColumns:Ce(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(c,h)=>{let d=c.flatMap(p=>p.getLeafColumns());return h(d)},Te(r,"debugColumns")),getColumn:c=>a._getAllFlatColumnsById()[c]};Object.assign(a,v);for(let c=0;c<a._features.length;c++){const h=a._features[c];h==null||h.createTable==null||h.createTable(a)}return a}function Fre(){return r=>Ce(()=>[r.options.data],e=>{const t={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=ire(r,r._getRowId(a[u],u,o),a[u],u,i,void 0,o?.id);if(t.flatRows.push(f),t.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 t.rows=n(e),t},Te(r.options,"debugTable","getRowModel",()=>r._autoResetPageIndex()))}function Gre(r){const e=[],t=n=>{var a;e.push(n),(a=n.subRows)!=null&&a.length&&n.getIsExpanded()&&n.subRows.forEach(t)};return r.rows.forEach(t),{rows:e,flatRows:r.flatRows,rowsById:r.rowsById}}function Hre(r){return e=>Ce(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:a,pageIndex:i}=t;let{rows:o,flatRows:s,rowsById:l}=n;const u=a*i,f=u+a;o=o.slice(u,f);let v;e.options.paginateExpandedRows?v={rows:o,flatRows:s,rowsById:l}:v=Gre({rows:o,flatRows:s,rowsById:l}),v.flatRows=[];const c=h=>{v.flatRows.push(h),h.subRows.length&&h.subRows.forEach(c)};return v.rows.forEach(c),v},Te(e.options,"debugTable"))}function Ure(){return r=>Ce(()=>[r.getState().sorting,r.getPreSortedRowModel()],(e,t)=>{if(!t.rows.length||!(e!=null&&e.length))return t;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,v)=>{for(let h=0;h<i.length;h+=1){var c;const d=i[h],p=o[d.id],g=p.sortUndefined,y=(c=d?.desc)!=null?c:!1;let m=0;if(g){const _=f.getValue(d.id),S=v.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,v,d.id)),m!==0)return y&&(m*=-1),p.invertSorting&&(m*=-1),m}return f.index-v.index}),u.forEach(f=>{var v;a.push(f),(v=f.subRows)!=null&&v.length&&(f.subRows=s(f.subRows))}),u};return{rows:s(t.rows),flatRows:a,rowsById:t.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 om(r,e){return r?Wre(r)?Ge.createElement(r,e):r:null}function Wre(r){return $re(r)||typeof r=="function"||Yre(r)}function $re(r){return typeof r=="function"&&(()=>{const e=Object.getPrototypeOf(r);return e.prototype&&e.prototype.isReactComponent})()}function Yre(r){return typeof r=="object"&&typeof r.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(r.$$typeof.description)}function Xre(r){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...r},[t]=Ge.useState(()=>({current:zre(e)})),[n,a]=Ge.useState(()=>t.current.initialState);return t.current.setOptions(i=>({...i,...r,state:{...n,...r.state},onStateChange:o=>{a(o),r.onStateChange==null||r.onStateChange(o)}})),t.current}const AI=12;function sm(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function lm(r){return r.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function Zre(r){try{return JSON.stringify(r,null,2)}catch{return String(r)}}function $i(r){return r===null?"null":r===void 0?"—":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):Zre(r)}const MI=({value:r,openLink:e})=>{if(!jc(r))return $.jsx("span",{className:"break-words",children:r});let t=r;try{const n=new URL(r);t=`${n.host}${n.pathname==="/"?"":n.pathname}`}catch{}return $.jsxs(qc,{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:()=>e(r),children:[$.jsx(II,{className:"mr-1 h-3 w-3 shrink-0"}),$.jsx("span",{className:"truncate",children:t})]})};function qre({page:r,pageCount:e,onChange:t}){return $.jsxs("div",{className:"mt-2 flex items-center justify-end gap-1.5",children:[$.jsxs(qc,{type:"button",size:"sm",variant:"outline",disabled:r===0,onClick:()=>t(r-1),children:[$.jsx(iB,{className:"h-3.5 w-3.5"}),$.jsx("span",{className:"sr-only",children:"Previous page"})]}),$.jsxs("span",{className:"text-muted-foreground text-xs",children:[r+1," / ",e]}),$.jsxs(qc,{type:"button",size:"sm",variant:"outline",disabled:r+1>=e,onClick:()=>t(r+1),children:[$.jsx(oB,{className:"h-3.5 w-3.5"}),$.jsx("span",{className:"sr-only",children:"Next page"})]})]})}function jre({rows:r,columns:e,openLink:t,stateKey:n="table",viewState:a,onViewStateChange:i,renderCell:o,renderStructuredValue:s,pageSize:l}){const u=Ge.useMemo(()=>e?null:[...new Set(r.flatMap(L=>Object.keys(L)))],[e,r]),f=Ge.useMemo(()=>e?.map(L=>L.name)??(u??[]).slice(0,AI),[e,u]),v=u?u.slice(AI):[],c=a?.[`${n}.sort.column`],h=a?.[`${n}.sort.desc`],d=typeof c=="string"&&c?[{id:c,desc:h===!0}]:[],[p,g]=Ge.useState(d),[y,m]=Ge.useState(null);Ge.useEffect(()=>{g(d)},[c,h]);function _(L){const I=new Set(f);return Object.keys(L).filter(P=>!I.has(P))}const S=Ge.useMemo(()=>f.map(L=>({id:L,accessorFn:I=>I[L],header:lm(L),enableSorting:L!=="open",sortDescFirst:!1,sortingFn:(I,P,R)=>{const E=I.getValue(R),O=P.getValue(R);return typeof E=="number"&&typeof O=="number"?E-O:$i(E).localeCompare($i(O),void 0,{numeric:!0,sensitivity:"base"})},cell:({getValue:I,row:P})=>{const R=I(),E=P.index===y;if(sm(R)||Array.isArray(R))return E?$.jsx("div",{className:"max-w-md break-words",children:s?s(R,t):$i(R)}):$.jsx("span",{className:"text-muted-foreground",children:Array.isArray(R)?"[…]":"{…}"});const O=o?.(R,L);if(O!=null)return O;if(L==="open"&&typeof R=="string")return $.jsxs(qc,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2",onClick:V=>{V.stopPropagation(),t(R)},children:[$.jsx(II,{className:"mr-1 h-3.5 w-3.5"}),"Open"]});if(typeof R=="string"&&jc(R))return $.jsx(MI,{value:R,openLink:t});if(E)return $.jsx("span",{className:"break-words whitespace-pre-wrap",children:$i(R)});const k=$i(R);return $.jsx("span",{className:"block max-w-80 truncate",title:k,children:k})}})),[f,t,y,o,s]),x=a?.[`${n}.page`],[w,b]=Ge.useState(typeof x=="number"?Math.max(0,x):0);Ge.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),D=Xre({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:Fre(),getSortedRowModel:Ure(),...l?{getPaginationRowModel:Hre(),onPaginationChange:L=>{const I=typeof L=="function"?L({pageIndex:A,pageSize:l}):L;b(I.pageIndex),i?.(`${n}.page`,I.pageIndex)}}:{}});return $.jsxs("div",{children:[$.jsx("div",{className:"overflow-hidden rounded-md border border-border/70",children:$.jsxs(JN,{className:"text-xs",children:[$.jsx(QN,{className:"bg-muted/50",children:D.getHeaderGroups().map(L=>$.jsx(pp,{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 $.jsx(eB,{"aria-sort":E?P==="asc"?"ascending":P==="desc"?"descending":"none":void 0,className:"h-8 whitespace-nowrap px-2",children:E?$.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:[om(I.column.columnDef.header,I.getContext()),P==="asc"?$.jsx(tB,{className:"h-3 w-3"}):P==="desc"?$.jsx(rB,{className:"h-3 w-3"}):$.jsx(nB,{className:"h-3 w-3 opacity-45"})]}):om(I.column.columnDef.header,I.getContext())},I.id)})},L.id))}),$.jsx(aB,{children:D.getRowModel().rows.map(L=>{const I=L.index===y,P=_(L.original),R=P.length>0||f.some(E=>{const O=L.original[E];return sm(O)||Array.isArray(O)});return $.jsxs(Ge.Fragment,{children:[$.jsx(pp,{className:LI("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=>$.jsx(Cx,{className:"p-2 align-top",children:om(E.column.columnDef.cell,E.getContext())},E.id))}),I&&P.length>0?$.jsx(pp,{className:"border-b last:border-b-0 bg-muted/10",children:$.jsx(Cx,{colSpan:L.getVisibleCells().length,className:"p-2",children:$.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1",children:P.map(E=>{const O=L.original[E];return $.jsxs("div",{children:[$.jsxs("span",{className:"text-muted-foreground capitalize",children:[lm(E),":"]})," ",sm(O)||Array.isArray(O)?s?s(O,t):$.jsx("span",{className:"break-words whitespace-pre-wrap",children:$i(O)}):(()=>{const k=o?.(O,E);return k??(typeof O=="string"&&jc(O)?$.jsx(MI,{value:O,openLink:t}):$.jsx("span",{className:"break-words whitespace-pre-wrap",children:$i(O)}))})()]},E)})})})}):null]},L.id)})})]})}),v.length>0?$.jsxs("p",{className:"mt-2 text-muted-foreground text-xs",children:[v.length," additional"," ",v.length===1?"column":"columns"," available in expanded rows:"," ",v.slice(0,4).map(lm).join(", "),v.length>4?`, +${v.length-4} more`:""]}):null,l&&T>1?$.jsx(qre,{page:A,pageCount:T,onChange:L=>D.setPageIndex(L)}):null]})}function Kre(r,e,t){const n=e[0];let a=t;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!==""||t==null)&&(a=o.value)}else(typeof n=="string"||typeof n=="number"||typeof n=="boolean")&&(a=n);return EI(r,a)}function um(r,e,t){const n=r;return Array.isArray(n)?!e&&!t?n:n.map(a=>({label:String(a[e??"label"]??""),value:Number(a[t??"value"]??0)})):[]}function Jre(r,e,t){const n=r;return Array.isArray(n)?!e&&!t?n:n.map(a=>({name:String(a[e??"name"]??""),value:Number(a[t??"value"]??0)})):[]}const DI={div:({children:r,...e})=>$.jsx("div",{...e,children:r}),span:({children:r,...e})=>$.jsx("span",{...e,children:r}),p:({children:r,...e})=>$.jsx("p",{...e,children:r}),h1:({children:r,...e})=>$.jsx("h1",{...e,children:r}),h2:({children:r,...e})=>$.jsx("h2",{...e,children:r}),h3:({children:r,...e})=>$.jsx("h3",{...e,children:r}),h4:({children:r,...e})=>$.jsx("h4",{...e,children:r}),ul:({children:r,...e})=>$.jsx("ul",{...e,children:r}),ol:({children:r,...e})=>$.jsx("ol",{...e,children:r}),li:({children:r,...e})=>$.jsx("li",{...e,children:r}),table:({children:r,...e})=>$.jsx("table",{...e,children:r}),thead:({children:r,...e})=>$.jsx("thead",{...e,children:r}),tbody:({children:r,...e})=>$.jsx("tbody",{...e,children:r}),tr:({children:r,...e})=>$.jsx("tr",{...e,children:r}),th:({children:r,...e})=>$.jsx("th",{...e,children:r}),td:({children:r,...e})=>$.jsx("td",{...e,children:r}),card:({children:r,className:e,...t})=>$.jsx(dB,{className:e,...t,children:r}),"card-header":({children:r,className:e,...t})=>$.jsx(hB,{className:e,...t,children:r}),"card-title":({children:r,className:e,...t})=>$.jsx(cB,{asChild:!0,className:e,children:$.jsx("h3",{...t,children:r})}),"card-description":({children:r,className:e,...t})=>$.jsx(vB,{className:e,...t,children:r}),"card-content":({children:r,className:e,...t})=>$.jsx(fB,{className:e,...t,children:r}),badge:({children:r,className:e,variant:t="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||uB.isValidElement(s)?s:Array.isArray(s)?s.map(i):String(s),o=i(r);return $.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold ${a[t]||a.default} ${e||""}`,...n,children:o})},button:({children:r,className:e,variant:t="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 $.jsx("button",{type:n,className:`inline-flex items-center justify-center rounded-md text-sm font-medium h-10 px-4 py-2 ${o[t]||o.default} ${e||""}`,...i,children:r??String(a??"")})},select:({className:r,label:e,placeholder:t,options:n,onChange:a,onSelect:i,...o})=>$.jsxs("label",{className:`flex flex-col gap-1 text-sm ${r||""}`,children:[e?$.jsx("span",{className:"font-medium",children:String(e)}):null,$.jsxs("select",{className:"h-10 rounded-md border border-input bg-background px-3",onChange:a??i,defaultValue:"",...o,children:[t?$.jsx("option",{value:"",disabled:!0,children:String(t)}):null,Array.isArray(n)?n.map(s=>{const l=s,u=String(l.value??l.label??"");return $.jsx("option",{value:u,children:String(l.label??u)},JSON.stringify(l))}):null]})]}),alert:({children:r,className:e,variant:t="default",...n})=>{const a={default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive"};return $.jsx("div",{role:"alert",className:`relative w-full rounded-lg border p-4 ${a[t]||a.default} ${e||""}`,...n,children:r})},"alert-title":({children:r,className:e,...t})=>$.jsx("h5",{className:`mb-1 font-medium leading-none tracking-tight ${e||""}`,...t,children:r}),"alert-description":({children:r,className:e,...t})=>$.jsx("div",{className:`text-sm [&_p]:leading-relaxed ${e||""}`,...t,children:r}),progress:({className:r,value:e=0,label:t,...n})=>{const a=Math.round(e);return $.jsxs("div",{className:`flex items-center gap-2 ${r||""}`,...n,children:[$.jsx("div",{className:"relative h-4 flex-1 overflow-hidden rounded-full bg-secondary",children:$.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-a}%)`}})}),$.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground shrink-0",children:t?String(t):`${a}%`})]})},strong:({children:r,...e})=>$.jsx("strong",{...e,children:r}),b:({children:r,...e})=>$.jsx("strong",{...e,children:r}),em:({children:r,...e})=>$.jsx("em",{...e,children:r}),link:({children:r,className:e,href:t,...n})=>{const a=String(t??""),i=/^https?:\/\//i.test(a);return $.jsx("a",{href:a,className:`text-primary underline underline-offset-2 hover:no-underline ${e||""}`,...i?{target:"_blank",rel:"noreferrer"}:{},...n,children:r})},a:({children:r,className:e,href:t,...n})=>$.jsx("a",{href:String(t??""),className:`text-primary underline underline-offset-2 hover:no-underline ${e||""}`,...n,children:r}),context:({children:r,className:e,...t})=>$.jsx("div",{className:`flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs text-muted-foreground ${e||""}`,...t,children:r}),fields:({children:r,className:e,...t})=>$.jsx("div",{className:`grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-2 ${e||""}`,...t,children:r}),field:({children:r,className:e,label:t,value:n,...a})=>$.jsxs("div",{className:`flex flex-col gap-0.5 ${e||""}`,...a,children:[$.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:String(t??"")}),$.jsx("span",{className:"text-sm break-words",children:r??(n==null?"—":String(n))})]}),separator:({className:r,...e})=>$.jsx("div",{className:`shrink-0 bg-border h-[1px] w-full ${r||""}`,...e}),markdown:({content:r,className:e})=>$.jsx("div",{className:`max-w-none text-sm space-y-2 ${e||""}`,children:$.jsx(lB,{text:String(r??"")})}),layout:({children:r,className:e,direction:t="vertical"})=>$.jsx("div",{className:`flex ${t==="horizontal"?"flex-row":"flex-col"} gap-4 ${e||""}`,children:r}),columns:({children:r,className:e})=>{const t=Array.isArray(r)?r.filter(n=>n!=null).length:r?1:0;return $.jsx("div",{className:`grid gap-4 ${e||""}`,style:{gridTemplateColumns:`repeat(${t}, minmax(0, 1fr))`},children:r})},metric:({label:r,value:e,className:t})=>$.jsxs("div",{className:LI(sB,"p-4",t),children:[$.jsx("p",{className:"text-sm text-muted-foreground",children:String(r??"")}),$.jsx("p",{className:"mt-1 text-2xl font-bold",children:String(e??"")})]}),"bar-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>$.jsx(qte,{data:um(r,a,i),height:e,xLabel:t,yLabel:n}),"line-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>$.jsx(jte,{data:um(r,a,i),height:e,xLabel:t,yLabel:n}),"area-chart":({data:r,height:e,xLabel:t,yLabel:n,labelField:a,valueField:i})=>$.jsx(Zte,{data:um(r,a,i),height:e,xLabel:t,yLabel:n}),"pie-chart":({data:r,height:e,showLabel:t,showLegend:n,radius:a,highlightName:i,nameField:o,valueField:s})=>$.jsx(Kte,{data:Jre(r,o,s),height:e,showLabel:t,showLegend:n,radius:a,highlightName:i}),sparkline:({data:r,height:e,width:t,color:n,trend:a})=>$.jsx(Jte,{data:r,height:e,width:t,color:n,trend:a}),"stacked-area-chart":({data:r,series:e,height:t,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})=>$.jsx(Qte,{data:r,series:e,height:t,xLabel:n,yLabel:a,onSeriesClick:i,onDateRangeSelect:o})},Qre=new Set(["urgency","severity","sentiment","trend","status","priority"]),ene={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 tne(r,e){if(r==null)return $.jsx("span",{className:"text-muted-foreground",children:"–"});const t=String(r);if(t.startsWith("http://")||t.startsWith("https://"))return $.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e==="url"?"↗ Link":t});if(e==="subreddit"&&typeof r=="string")return $.jsxs("a",{href:`https://reddit.com/r/${r}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:["r/",r]});if(Qre.has(e)&&typeof r=="string"){const n=ene[r.toLowerCase()]??"bg-secondary text-secondary-foreground border-border",a=r.replace(/[_-]/g," ").replace(/\b\w/g,i=>i.toUpperCase());return $.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"?$.jsx("span",{className:"font-mono tabular-nums",children:r}):typeof r=="boolean"?$.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"}):$.jsx("span",{className:"whitespace-pre-wrap",children:t})}function rne({rows:r,columns:e,title:t}){return $.jsxs("div",{className:"space-y-2",children:[t&&$.jsx("h4",{className:"text-sm font-semibold",children:t}),$.jsx(jre,{rows:r,columns:e.map(n=>({name:n})),openLink:()=>{},renderCell:(n,a)=>tne(n,a)})]})}const xc=gB;function Du(r,e,t){if(r.type==="text")return r.content;if(r.type==="data"){const u=r,f=xc(e.data,u.path),v=f!==void 0?f:u.fallback,c=RI(v,u.format);if(c.length>100&&(c.includes(`
96
- `)||/[#*-]/.test(c))){const h=DI.markdown;return h?$.jsx(h,{content:c}):c}return c}if(r.type==="if"){const u=r;return xc(e.data,u.condition)?Du(u.then,e,t):u.else?Du(u.else,e,t):null}if(r.type==="each"){const u=r,f=xc(e.data,u.items);return Array.isArray(f)?f.map((v,c)=>{const h=u.as,d={...e,data:{...e.data,[h]:v,[`${h}Index`]:c}};if(typeof u.render=="string"){const p=`{{${h}}}`,g=typeof v=="string"?v:JSON.stringify(v);return u.render.split(p).join(g)}return Du(u.render,d,c)}):null}const n=r,a=e.components?.[n.type]??DI[n.type];if(!a)return console.warn(`Unknown component type: ${n.type}`),null;const i=u=>yB(u,e.actions,f=>xc(e.data,f)),o=_B(r,n.props),s={};for(const[u,f]of Object.entries(o)){if(/^on[A-Z]/.test(u))continue;const v=i(f);s[u]=v}for(const[u,f]of Object.entries(o)){if(!/^on[A-Z]/.test(u))continue;let v=i(f);if(typeof v!="function"&&e.onAction){const c=EI(f,s.value);c&&e.interactions?.[c.action]&&(v=(...h)=>e.onAction?.(Kre(f,h,s.value)??c))}if(typeof v!="function"){f!==void 0&&console.warn(`Ignoring non-function handler for "${u}" (got ${typeof v}). Bind actions as "@actionName".`);continue}s[u]=v}if(n.type==="table"&&Array.isArray(s.data)&&Array.isArray(s.columns)){const u=s.data,f=s.columns,v=s.title;return $.jsx(rne,{rows:u,columns:f,title:v},t)}const l=n.children?.map((u,f)=>Du(u,e,f));return $.jsx(a,{...s,children:l},t)}function nne(r,e,t,n,a,i){const o={data:e,actions:t,onAction:n,interactions:a,components:i};return Du(r.root,o)}function sne({template:r,data:e,actions:t,onAction:n,interactions:a,components:i}){return $.jsx($.Fragment,{children:nne(r,e,t,n,a,i)})}export{sne as J,bl as L,Jte as S,one as a,Xre as b,RI as c,jte as d,om as f,Fre as g,jc as i,mx as u};
97
- //# sourceMappingURL=renderer-BL6VcwQH.js.map