@jini-ai/provider-plugins 0.6.15-rc.2 → 0.6.19

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 (242) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/NOTICE +28 -0
  3. package/README.md +23 -8
  4. package/catalog.json +22 -12
  5. package/package.json +64 -15
  6. package/plugins/ai-trace-langfuse/0.6.19/CHANGELOG.md +7 -0
  7. package/plugins/ai-trace-langfuse/0.6.19/NOTICE +6 -0
  8. package/plugins/ai-trace-langfuse/0.6.19/README.md +13 -0
  9. package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +7 -2
  10. package/plugins/ai-trace-langfuse/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  11. package/plugins/{analytics-posthog/0.6.15-rc.2 → ai-trace-langfuse/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  12. package/plugins/analytics-posthog/0.6.19/CHANGELOG.md +6 -0
  13. package/plugins/analytics-posthog/0.6.19/NOTICE +11 -0
  14. package/plugins/analytics-posthog/0.6.19/README.md +25 -0
  15. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +14 -8
  16. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +1 -0
  17. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_cookie-consent/NOTICE +28 -0
  18. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_cookie-consent/package-license.json +1 -1
  19. package/plugins/{observability-opentelemetry/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  20. package/plugins/{observability-sentry/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  21. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  22. package/plugins/{fixture-provider/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  23. package/plugins/analytics-posthog/0.6.19/server/consent-adapter.mjs +1 -0
  24. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +11 -7
  25. package/plugins/charts-echarts/0.6.19/client/provider.js +41 -0
  26. package/plugins/charts-echarts/0.6.19/client/styles.css +1 -0
  27. package/plugins/charts-echarts/0.6.19/jini.plugin.json +55 -0
  28. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  29. package/plugins/{ai-trace-langfuse/0.6.15-rc.2 → charts-echarts/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  30. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/LICENSE-SOURCE +1 -0
  31. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/NOTICE +28 -0
  32. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/package-license.json +5 -0
  33. package/plugins/charts-echarts/0.6.19/licenses/echarts/LICENSE +222 -0
  34. package/plugins/charts-echarts/0.6.19/licenses/echarts/NOTICE +5 -0
  35. package/plugins/charts-echarts/0.6.19/licenses/echarts/package-license.json +5 -0
  36. package/plugins/charts-echarts/0.6.19/licenses/tslib/LICENSE.txt +12 -0
  37. package/plugins/charts-echarts/0.6.19/licenses/tslib/package-license.json +5 -0
  38. package/plugins/charts-echarts/0.6.19/licenses/zod/LICENSE +21 -0
  39. package/plugins/charts-echarts/0.6.19/licenses/zod/package-license.json +5 -0
  40. package/plugins/charts-echarts/0.6.19/licenses/zrender/LICENSE +29 -0
  41. package/plugins/charts-echarts/0.6.19/licenses/zrender/package-license.json +5 -0
  42. package/plugins/charts-echarts/0.6.19/server/index.mjs +8 -0
  43. package/plugins/charts-recharts/0.6.19/client/provider.js +134 -0
  44. package/plugins/charts-recharts/0.6.19/client/styles.css +1 -0
  45. package/plugins/charts-recharts/0.6.19/jini.plugin.json +100 -0
  46. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  47. package/plugins/{observability-opentelemetry/0.6.15-rc.2 → charts-recharts/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  48. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/LICENSE-SOURCE +1 -0
  49. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/NOTICE +28 -0
  50. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/package-license.json +5 -0
  51. package/plugins/charts-recharts/0.6.19/licenses/_reduxjs_toolkit/LICENSE +21 -0
  52. package/plugins/charts-recharts/0.6.19/licenses/_reduxjs_toolkit/package-license.json +5 -0
  53. package/plugins/charts-recharts/0.6.19/licenses/clsx/license +9 -0
  54. package/plugins/charts-recharts/0.6.19/licenses/clsx/package-license.json +5 -0
  55. package/plugins/charts-recharts/0.6.19/licenses/d3-array/LICENSE +13 -0
  56. package/plugins/charts-recharts/0.6.19/licenses/d3-array/package-license.json +5 -0
  57. package/plugins/charts-recharts/0.6.19/licenses/d3-color/LICENSE +13 -0
  58. package/plugins/charts-recharts/0.6.19/licenses/d3-color/package-license.json +5 -0
  59. package/plugins/charts-recharts/0.6.19/licenses/d3-format/LICENSE +13 -0
  60. package/plugins/charts-recharts/0.6.19/licenses/d3-format/package-license.json +5 -0
  61. package/plugins/charts-recharts/0.6.19/licenses/d3-interpolate/LICENSE +13 -0
  62. package/plugins/charts-recharts/0.6.19/licenses/d3-interpolate/package-license.json +5 -0
  63. package/plugins/charts-recharts/0.6.19/licenses/d3-path/LICENSE +13 -0
  64. package/plugins/charts-recharts/0.6.19/licenses/d3-path/package-license.json +5 -0
  65. package/plugins/charts-recharts/0.6.19/licenses/d3-scale/LICENSE +13 -0
  66. package/plugins/charts-recharts/0.6.19/licenses/d3-scale/package-license.json +5 -0
  67. package/plugins/charts-recharts/0.6.19/licenses/d3-shape/LICENSE +13 -0
  68. package/plugins/charts-recharts/0.6.19/licenses/d3-shape/package-license.json +5 -0
  69. package/plugins/charts-recharts/0.6.19/licenses/d3-time/LICENSE +13 -0
  70. package/plugins/charts-recharts/0.6.19/licenses/d3-time/package-license.json +5 -0
  71. package/plugins/charts-recharts/0.6.19/licenses/d3-time-format/LICENSE +13 -0
  72. package/plugins/charts-recharts/0.6.19/licenses/d3-time-format/package-license.json +5 -0
  73. package/plugins/charts-recharts/0.6.19/licenses/decimal.js-light/LICENCE.md +23 -0
  74. package/plugins/charts-recharts/0.6.19/licenses/decimal.js-light/package-license.json +5 -0
  75. package/plugins/charts-recharts/0.6.19/licenses/es-toolkit/LICENSE +21 -0
  76. package/plugins/charts-recharts/0.6.19/licenses/es-toolkit/package-license.json +5 -0
  77. package/plugins/charts-recharts/0.6.19/licenses/eventemitter3/LICENSE +21 -0
  78. package/plugins/charts-recharts/0.6.19/licenses/eventemitter3/package-license.json +5 -0
  79. package/plugins/charts-recharts/0.6.19/licenses/immer/LICENSE +21 -0
  80. package/plugins/charts-recharts/0.6.19/licenses/immer/package-license.json +5 -0
  81. package/plugins/charts-recharts/0.6.19/licenses/internmap/LICENSE +13 -0
  82. package/plugins/charts-recharts/0.6.19/licenses/internmap/package-license.json +5 -0
  83. package/plugins/charts-recharts/0.6.19/licenses/react/LICENSE +21 -0
  84. package/plugins/charts-recharts/0.6.19/licenses/react/package-license.json +5 -0
  85. package/plugins/charts-recharts/0.6.19/licenses/react-dom/LICENSE +21 -0
  86. package/plugins/charts-recharts/0.6.19/licenses/react-dom/package-license.json +5 -0
  87. package/plugins/charts-recharts/0.6.19/licenses/react-is/LICENSE +21 -0
  88. package/plugins/charts-recharts/0.6.19/licenses/react-is/package-license.json +5 -0
  89. package/plugins/charts-recharts/0.6.19/licenses/react-redux/LICENSE.md +21 -0
  90. package/plugins/charts-recharts/0.6.19/licenses/react-redux/package-license.json +5 -0
  91. package/plugins/charts-recharts/0.6.19/licenses/recharts/LICENSE +22 -0
  92. package/plugins/charts-recharts/0.6.19/licenses/recharts/package-license.json +5 -0
  93. package/plugins/charts-recharts/0.6.19/licenses/redux/LICENSE.md +21 -0
  94. package/plugins/charts-recharts/0.6.19/licenses/redux/package-license.json +5 -0
  95. package/plugins/charts-recharts/0.6.19/licenses/redux-thunk/LICENSE.md +21 -0
  96. package/plugins/charts-recharts/0.6.19/licenses/redux-thunk/package-license.json +5 -0
  97. package/plugins/charts-recharts/0.6.19/licenses/reselect/LICENSE +21 -0
  98. package/plugins/charts-recharts/0.6.19/licenses/reselect/package-license.json +5 -0
  99. package/plugins/charts-recharts/0.6.19/licenses/scheduler/LICENSE +21 -0
  100. package/plugins/charts-recharts/0.6.19/licenses/scheduler/package-license.json +5 -0
  101. package/plugins/charts-recharts/0.6.19/licenses/tiny-invariant/LICENSE +21 -0
  102. package/plugins/charts-recharts/0.6.19/licenses/tiny-invariant/package-license.json +5 -0
  103. package/plugins/charts-recharts/0.6.19/licenses/use-sync-external-store/LICENSE +21 -0
  104. package/plugins/charts-recharts/0.6.19/licenses/use-sync-external-store/package-license.json +5 -0
  105. package/plugins/charts-recharts/0.6.19/licenses/victory-vendor/LICENSE.txt +150 -0
  106. package/plugins/charts-recharts/0.6.19/licenses/victory-vendor/package-license.json +5 -0
  107. package/plugins/charts-recharts/0.6.19/licenses/zod/LICENSE +21 -0
  108. package/plugins/charts-recharts/0.6.19/licenses/zod/package-license.json +5 -0
  109. package/plugins/charts-recharts/0.6.19/server/index.mjs +8 -0
  110. package/plugins/fixture-provider/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +3 -2
  111. package/plugins/fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  112. package/plugins/fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  113. package/plugins/observability-opentelemetry/0.6.19/CHANGELOG.md +19 -0
  114. package/plugins/observability-opentelemetry/0.6.19/NOTICE +11 -0
  115. package/plugins/observability-opentelemetry/0.6.19/README.md +32 -0
  116. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +12 -9
  117. package/plugins/{analytics-posthog/0.6.15-rc.2 → observability-opentelemetry/0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  118. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  119. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_plugins/LICENSE +201 -0
  120. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_plugins/LICENSE-SOURCE +1 -0
  121. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_plugins/package-license.json +1 -1
  122. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  123. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  124. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  125. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +151 -46
  126. package/plugins/observability-sentry/0.6.19/CHANGELOG.md +19 -0
  127. package/plugins/observability-sentry/0.6.19/LICENSE +201 -0
  128. package/plugins/observability-sentry/0.6.19/NOTICE +11 -0
  129. package/plugins/observability-sentry/0.6.19/README.md +32 -0
  130. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +10 -5
  131. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_core/LICENSE +201 -0
  132. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  133. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_diagnostics/LICENSE +201 -0
  134. package/plugins/{analytics-posthog/0.6.15-rc.2 → observability-sentry/0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  135. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  136. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  137. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  138. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +111 -40
  139. package/plugins/payments-stripe/0.6.19/CHANGELOG.md +7 -0
  140. package/plugins/payments-stripe/0.6.19/LICENSE +201 -0
  141. package/plugins/payments-stripe/0.6.19/NOTICE +28 -0
  142. package/plugins/payments-stripe/0.6.19/README.md +36 -0
  143. package/plugins/payments-stripe/0.6.19/jini.plugin.json +72 -0
  144. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/LICENSE +201 -0
  145. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/NOTICE +28 -0
  146. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/package-license.json +5 -0
  147. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_core/LICENSE +201 -0
  148. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_core/package-license.json +5 -0
  149. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  150. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  151. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  152. package/plugins/payments-stripe/0.6.19/server/index.mjs +311 -0
  153. package/plugins/analytics-posthog/0.6.15-rc.2/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +0 -1
  154. package/plugins/analytics-posthog/0.6.15-rc.2/server/consent-adapter.mjs +0 -1
  155. package/plugins/observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_analytics/package-license.json +0 -5
  156. package/plugins/observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_plugins/LICENSE-SOURCE +0 -1
  157. package/plugins/observability-sentry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
  158. package/plugins/payments-stripe/0.6.15-rc.2/jini.plugin.json +0 -35
  159. package/plugins/payments-stripe/0.6.15-rc.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
  160. package/plugins/payments-stripe/0.6.15-rc.2/server/index.mjs +0 -153
  161. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2/licenses/_jini-ai_provider-plugins → 0.6.19}/LICENSE +0 -0
  162. /package/plugins/{analytics-posthog/0.6.15-rc.2/licenses/_jini-ai_cookie-consent → ai-trace-langfuse/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  163. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/LICENSE +0 -0
  164. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/LICENSE-SOURCE +0 -0
  165. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/SOURCE +0 -0
  166. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/package-license.json +0 -0
  167. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/LICENSE +0 -0
  168. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/LICENSE-SOURCE +0 -0
  169. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/SOURCE +0 -0
  170. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/package-license.json +0 -0
  171. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/mustache/LICENSE +0 -0
  172. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/mustache/package-license.json +0 -0
  173. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +0 -0
  174. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_core → 0.6.19}/LICENSE +0 -0
  175. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_diagnostics → 0.6.19/licenses/_jini-ai_cookie-consent}/LICENSE +0 -0
  176. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_provider-plugins → 0.6.19/licenses/_jini-ai_core}/LICENSE +0 -0
  177. /package/plugins/{fixture-provider/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → analytics-posthog/0.6.19/licenses/_jini-ai_diagnostics}/LICENSE +0 -0
  178. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_analytics → analytics-posthog/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  179. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_posthog_core/LICENSE +0 -0
  180. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_posthog_core/package-license.json +0 -0
  181. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  182. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
  183. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-js/LICENSE +0 -0
  184. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-js/package-license.json +0 -0
  185. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-node/LICENSE +0 -0
  186. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-node/package-license.json +0 -0
  187. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/server/posthog-browser.js +0 -0
  188. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_core → charts-echarts/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  189. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_diagnostics → charts-echarts/0.6.19/licenses/_jini-ai_ui}/LICENSE +0 -0
  190. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_plugins → charts-recharts/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  191. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → charts-recharts/0.6.19/licenses/_jini-ai_ui}/LICENSE +0 -0
  192. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_core → fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  193. /package/plugins/fixture-provider/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +0 -0
  194. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_diagnostics → observability-opentelemetry/0.6.19}/LICENSE +0 -0
  195. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → observability-opentelemetry/0.6.19/licenses/_jini-ai_core}/LICENSE +0 -0
  196. /package/plugins/{payments-stripe/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → observability-opentelemetry/0.6.19/licenses/_jini-ai_diagnostics}/LICENSE +0 -0
  197. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/LICENSE +0 -0
  198. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/package-license.json +0 -0
  199. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api-logs/LICENSE +0 -0
  200. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api-logs/package-license.json +0 -0
  201. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_context-async-hooks/LICENSE +0 -0
  202. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_context-async-hooks/package-license.json +0 -0
  203. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_core/LICENSE +0 -0
  204. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_core/package-license.json +0 -0
  205. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-exporter-base/LICENSE +0 -0
  206. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-exporter-base/package-license.json +0 -0
  207. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-transformer/LICENSE +0 -0
  208. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-transformer/package-license.json +0 -0
  209. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_resources/LICENSE +0 -0
  210. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_resources/package-license.json +0 -0
  211. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-metrics/LICENSE +0 -0
  212. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-metrics/package-license.json +0 -0
  213. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace/LICENSE +0 -0
  214. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace/package-license.json +0 -0
  215. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-base/LICENSE +0 -0
  216. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-base/package-license.json +0 -0
  217. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-node/LICENSE +0 -0
  218. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-node/package-license.json +0 -0
  219. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_semantic-conventions/LICENSE +0 -0
  220. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_semantic-conventions/package-license.json +0 -0
  221. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  222. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
  223. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/semver/LICENSE +0 -0
  224. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/semver/package-license.json +0 -0
  225. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/LICENSE +0 -0
  226. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/package-license.json +0 -0
  227. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_conventions/LICENSE +0 -0
  228. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_conventions/package-license.json +0 -0
  229. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_core/LICENSE +0 -0
  230. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_core/package-license.json +0 -0
  231. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_node/LICENSE +0 -0
  232. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_node/package-license.json +0 -0
  233. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_opentelemetry/LICENSE +0 -0
  234. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_opentelemetry/package-license.json +0 -0
  235. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/LICENSE +0 -0
  236. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/LICENSE-SOURCE +0 -0
  237. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/package-license.json +0 -0
  238. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/LICENSE +0 -0
  239. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/LICENSE-SOURCE +0 -0
  240. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/package-license.json +0 -0
  241. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  242. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
@@ -0,0 +1,41 @@
1
+ var YA=Object.defineProperty;var WA=(t,e)=>{for(var r in e)YA(t,r,{get:e[r],enumerable:!0})};/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var Ap=function(t,e){return Ap=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ap(t,e)};function L(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ap(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var XA=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),qA=(function(){function t(){this.browser=new XA,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 t})(),Ti=new qA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ti.wxa=!0,Ti.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ti.worker=!0:!Ti.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ti.node=!0,Ti.svgSupported=!0):KA(navigator.userAgent,Ti);function KA(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var se=Ti;var Vl=12,Ep="sans-serif",Rt=Vl+"px "+Ep,ZA=20,jA=100,QA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $A(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-ZA)/jA;e[i]=n}return e}var JA=$A(QA),mt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=mt.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Rt),t.measureText(r);r=r||"",i=i||Rt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Vl,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=JA[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var ry=Yt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),iy=Yt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Qo=Object.prototype.toString,Gl=Array.prototype,eE=Gl.forEach,tE=Gl.filter,Op=Gl.slice,rE=Gl.map,ey=function(){}.constructor,Hl=ey?ey.prototype:null,Ip="__proto__",Mp=2311,iE=Math.pow(2,53)-1;function Yl(){return Mp>=iE&&(Mp=0),Mp++}function Wl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function J(t){if(t==null||typeof t!="object")return t;var e=t,r=Qo.call(t);if(r==="[object Array]"){if(!jo(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=J(t[i])}}else if(iy[r]){if(!jo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!ry[r]&&!jo(t)&&!Pa(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Ip&&(e[o]=J(t[o]))}return e}function ge(t,e,r){if(!G(e)||!G(t))return r?J(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Ip){var n=t[i],a=e[i];G(a)&&G(n)&&!B(a)&&!B(n)&&!Pa(a)&&!Pa(n)&&!ty(a)&&!ty(n)&&!jo(a)&&!jo(n)?ge(n,a,r):(r||!(i in t))&&(t[i]=J(e[i]))}return t}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Ip&&(t[r]=e[r]);return t}function ny(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ie(t,e,r){for(var i=te(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var sz=mt.createCanvas;function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function ay(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Tt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ie(t,e,r)}function Ke(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===eE)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function z(t,e,r){if(!t)return[];if(!e)return Xl(t);if(t.map&&t.map===rE)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function Yt(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Me(t,e,r){if(!t)return[];if(!e)return Xl(t);if(t.filter&&t.filter===tE)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function oy(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function te(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function nE(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Op.call(arguments)))}}var he=Hl&&q(Hl.bind)?Hl.call.bind(Hl.bind):nE;function Te(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Op.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):Qo.call(t)==="[object Array]"}function q(t){return typeof t=="function"}function U(t){return typeof t=="string"}function $o(t){return Qo.call(t)==="[object String]"}function ae(t){return typeof t=="number"}function G(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function ty(t){return!!ry[Qo.call(t)]}function Ge(t){return!!iy[Qo.call(t)]}function Pa(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Na(t){return t.colorStops!=null}function Ci(t){return t!==t}function Ra(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Y(t,e){return t??e}function Wt(t,e,r){return t??e??r}function Xl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Op.apply(t,e)}function ka(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Be(t,e){if(!t)throw new Error(e)}function lt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var sy="__ec_primitive__";function Ba(t){t[sy]=!0}function jo(t){return t[sy]}var aE=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return te(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),ly=typeof Map=="function";function oE(){return ly?new Map:new aE}var sE=(function(){function t(e){var r=B(e);this.data=oE();var i=this;e instanceof t?e.each(n):e&&C(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return ly?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function X(t){return new sE(t)}function uy(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function wi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function Oe(t,e){return t.hasOwnProperty(e)}function Le(){}var za=180/Math.PI,lz=Number.EPSILON||Math.pow(2,-52);function Di(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function fy(t){return[t[0],t[1]]}function ql(t,e,r){return t[0]=e,t[1]=r,t}function Lp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function cy(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function lE(t){return Math.sqrt(uE(t))}function uE(t){return t[0]*t[0]+t[1]*t[1]}function Kl(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function py(t,e){var r=lE(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Zl(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Jo=Zl;function fE(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var gn=fE;function jl(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function ut(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function ti(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function ri(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ua=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),cE=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ua(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new Ua(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ua(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ua(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ua(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ua(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),hy=cE;var pE=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Ct=pE;var hE=Math.log(2);function Pp(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/hE);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*Pp(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Np(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Pp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pp(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Ql="___zrEVENTSAVED",Rp=[];function vy(t,e,r,i,n){return $l(Rp,e,i,n,!0)&&$l(t,r,Rp[0],Rp[1])}function dy(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Ql];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Ql])}}function $l(t,e,r,i,n){if(e.getBoundingClientRect&&se.domSupported&&!kp(e)){var a=e[Ql]||(e[Ql]={}),o=vE(e,a),s=dE(o,a,n);if(s)return s(t,r,i),!0}return!1}function vE(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){C(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function dE(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?Np(s,o):Np(o,s))}function kp(t){return t.nodeName.toUpperCase()==="CANVAS"}var mE=/([&<>"'])/g,gE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Je(t){return t==null?"":(t+"").replace(mE,function(e,r){return gE[r]})}var yE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Bp=[],_E=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function Jl(t,e,r,i){return r=r||{},i?my(t,e,r):_E&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):my(t,e,r),r}function my(t,e,r){if(se.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(kp(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if($l(Bp,t,i,n)){r.zrX=Bp[0],r.zrY=Bp[1];return}}r.zrX=r.zrY=0}function eu(t){return t||window.event}function kt(t,e,r){if(e=eu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Jl(t,o,e,r)}else{Jl(t,e,e,r);var a=xE(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&yE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function xE(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function gy(t,e,r,i){t.addEventListener(e,r,i)}function yy(t,e,r,i){t.removeEventListener(e,r,i)}var tu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var xy=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Jl(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Up)if(Up.hasOwnProperty(r)){var i=Up[r](this._track,e);if(i)return i}},t})();function _y(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function SE(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Up={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=_y(i)/_y(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=SE(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function wt(){return[1,0,0,1,0,0]}function ii(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function es(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ei(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function ts(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Fa(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function Sy(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Lr(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}var bE=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),le=bE;var bn=Math.min,Va=Math.max,Hp=Math.abs,by=["x","y"],TE=["width","height"],yn=new le,_n=new le,xn=new le,Sn=new le,Xt=Yp(),is=Xt.minTv,Gp=Xt.maxTv,ns=[0,0],ni=(function(){function t(e,r,i,n){Fp(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=bn(e.x,this.x),i=bn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Va(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Va(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return CE(wt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&le.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Fp(wE,e.x,e.y,e.width,e.height)),r instanceof t||(r=Fp(DE,r.x,r.y,r.width,r.height));var s=!!i;Xt.reset(n,s);var l=Xt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(ns[0]=1/0,ns[1]=0,Cy(u,f,h,v,0,s,a,o),Cy(c,p,d,m,1,s,a,o),s&&le.copy(i,g?Xt.useDir?Xt.dirMinTv:is:Gp)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Ty(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Ty(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}yn.x=xn.x=r.x,yn.y=Sn.y=r.y,_n.x=Sn.x=r.x+r.width,_n.y=xn.y=r.y+r.height,yn.transform(i),Sn.transform(i),_n.transform(i),xn.transform(i),e.x=bn(yn.x,_n.x,xn.x,Sn.x),e.y=bn(yn.y,_n.y,xn.y,Sn.y);var l=Va(yn.x,_n.x,xn.x,Sn.x),u=Va(yn.y,_n.y,xn.y,Sn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=ii(e||[]),ts(e,e,ql(Vp,-r.x,-r.y)),Sy(e,e,ql(Vp,n,a)),ts(e,e,ql(Vp,i.x,i.y)),e},t})(),Sz=ni.create,Fp=ni.set,Ty=ni.copy,CE=ni.calculateTransform,bz=ni.applyTransform,Tz=ni.contain,wE=new ni(0,0,0,0),DE=new ni(0,0,0,0),Vp=[];function Cy(t,e,r,i,n,a,o,s){var l=Hp(e-r),u=Hp(i-t),f=bn(l,u),c=by[n],p=by[1-n],h=TE[n];e<r||i<t?l<u?(a&&(Gp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Gp[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Va(t,r),o[h]=bn(e,i)-o[c]),a&&(f<ns[0]||Xt.useDir)&&(ns[0]=bn(f,ns[0]),(l<u||!Xt.bidirectional)&&(is[c]=l,is[p]=0,Xt.useDir&&Xt.calcDirMTV()),(l>=u||!Xt.bidirectional)&&(is[c]=-u,is[p]=0,Xt.useDir&&Xt.calcDirMTV())))}function Yp(){var t=0,e=new le,r=new le,i={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Va(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Hp(a)<1e-10}return i}var ne=ni;var Dy="silent";function AE(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:EE}}function EE(){tu(this.event)}var ME=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ct),as=(function(){function t(e,r){this.x=e,this.y=r}return t})(),OE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wp=new ne(0,0,0,0),Ay=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new as(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new ME,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new hy(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(OE,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ey(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new as(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new as(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=AE(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new as(r,i);if(wy(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Wp.copy(p.getBoundingRect()),p.transform&&Wp.applyTransform(p.transform),Wp.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=r+m*Math.cos(g),_=i+m*Math.sin(g);if(wy(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new xy);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new as;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Ct);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Ay.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=Ey(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Jo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function IE(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Dy:!0}return!1}function wy(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=IE(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==Dy)){e.target=o;break}}}function Ey(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var My=Ay;var Ly=32,os=7;function LE(t){for(var e=0;t>=Ly;)e|=t&1,t>>=1;return t+e}function Oy(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;PE(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function PE(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function Iy(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Xp(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function qp(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function NE(t,e){var r=os,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=qp(t[m],t,v,d,0,e);v+=y,d-=y,d!==0&&(g=Xp(t[v+d-1],t,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=t[h+g];var y=0,_=d,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<v;g++)t[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,T,D;;){b=0,T=0,D=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],T++,b=0,--m===0){D=!0;break}}else if(t[x++]=o[y++],b++,T=0,--v===1){D=!0;break}while((b|T)<S);if(D)break;do{if(b=qp(t[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){D=!0;break}}if(t[x++]=t[_++],--m===0){D=!0;break}if(T=Xp(o[y],t,_,m,0,e),T!==0){for(g=0;g<T;g++)t[x+g]=t[_+g];if(x+=T,_+=T,m-=T,m===0){D=!0;break}}if(t[x++]=o[y++],--v===1){D=!0;break}S--}while(b>=os||T>=os);if(D)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)t[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=t[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(t[x--]=t[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var T=r;;){var D=0,w=0,A=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],D++,w=0,--v===0){A=!0;break}}else if(t[x--]=o[_--],w++,D=0,--m===1){A=!0;break}while((D|w)<T);if(A)break;do{if(D=v-qp(o[_],t,h,v,v-1,e),D!==0){for(x-=D,y-=D,v-=D,b=x+1,S=y+1,g=D-1;g>=0;g--)t[b+g]=t[S+g];if(v===0){A=!0;break}}if(t[x--]=o[_--],--m===1){A=!0;break}if(w=m-Xp(t[y],o,0,m,m-1,e),w!==0){for(x-=w,_-=w,m-=w,b=x+1,S=_+1,g=0;g<w;g++)t[b+g]=o[S+g];if(m<=1){A=!0;break}}if(t[x--]=t[y--],--v===0){A=!0;break}T--}while(D>=os||w>=os);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Tn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<Ly){a=Oy(t,r,i,e),Iy(t,r,i,r+a,e);return}var o=NE(t,e),s=LE(n);do{if(a=Oy(t,r,i,e),a<s){var l=n;l>s&&(l=s),Iy(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var gt=1,Cn=2,Mi=4;var Py=!1;function Kp(){Py||(Py=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ny(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var RE=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ny}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,Tn(i,Ny)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,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 c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=gt),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(Kp(),v.z=0),isNaN(v.z2)&&(Kp(),v.z2=0),isNaN(v.zlevel)&&(Kp(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=fe(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Ry=RE;var ky;ky=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Zp=ky;var ru={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ru.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?ru.bounceIn(t*2)*.5:ru.bounceOut(t*2-1)*.5+.5}},iu=ru;var nu=Math.pow,Ii=Math.sqrt,ou=1e-8,zy=1e-4,By=Ii(3),au=1/3,Pr=Di(),rr=Di(),Ha=Di();function Oi(t){return t>-ou&&t<ou}function Uy(t){return t>ou||t<-ou}function Re(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function jp(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function wn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Oi(f)&&Oi(c))if(Oi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Oi(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=Ii(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-nu(-_,au):_=nu(_,au),x<0?x=-nu(-x,au):x=nu(x,au);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Ii(f*f*f)),b=Math.acos(S)/3,T=Ii(f),D=Math.cos(b),v=(-s-2*T*D)/(3*o),g=(-s+T*(D+By*Math.sin(b)))/(3*o),w=(-s+T*(D-By*Math.sin(b)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),w>=0&&w<=1&&(a[h++]=w)}}return h}function su(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Oi(o)){if(Uy(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Oi(f))n[0]=-a/(2*o);else if(f>0){var c=Ii(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ga(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function Fy(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;Pr[0]=l,Pr[1]=u;for(var y=0;y<1;y+=.05)rr[0]=Re(t,r,n,o,y),rr[1]=Re(e,i,a,s,y),m=gn(Pr,rr),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<zy);_++)v=c-p,d=c+p,rr[0]=Re(t,r,n,o,v),rr[1]=Re(e,i,a,s,v),m=gn(rr,Pr),v>=0&&m<h?(c=v,h=m):(Ha[0]=Re(t,r,n,o,d),Ha[1]=Re(e,i,a,s,d),g=gn(Ha,Pr),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Re(t,r,n,o,c),f[1]=Re(e,i,a,s,c)),Ii(h)}function Vy(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Re(t,r,n,o,v),m=Re(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function et(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Qp(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Hy(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Oi(a)){if(Uy(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Oi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ii(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function lu(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function Ya(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Gy(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Pr[0]=o,Pr[1]=s;for(var p=0;p<1;p+=.05){rr[0]=et(t,r,n,p),rr[1]=et(e,i,a,p);var h=gn(Pr,rr);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<zy);v++){var d=u-f,m=u+f;rr[0]=et(t,r,n,d),rr[1]=et(e,i,a,d);var h=gn(rr,Pr);if(d>=0&&h<c)u=d,c=h;else{Ha[0]=et(t,r,n,m),Ha[1]=et(e,i,a,m);var g=gn(Ha,Pr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=et(t,r,n,u),l[1]=et(e,i,a,u)),Ii(c)}function Yy(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=et(t,r,n,p),v=et(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var kE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Wa(t){var e=t&&kE.exec(t);if(e){var r=e[1].split(","),i=+lt(r[0]),n=+lt(r[1]),a=+lt(r[2]),o=+lt(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:wn(0,i,a,1,l,s)&&Re(0,n,o,1,s[0])}}}var BE=(function(){function t(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||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=q(e)?e:iu[e]||Wa(e)},t})(),Wy=BE;var Xy=(function(){function t(e){this.value=e}return t})();var zE=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Xy(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var UE=(function(){function t(e){this._list=new zE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Xy(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Nr=UE;var qy={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 Li(t){return t=Math.round(t),t<0?0:t>255?255:t}function FE(t){return t=Math.round(t),t<0?0:t>360?360:t}function th(t){return t<0?0:t>1?1:t}function Jp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Li(parseFloat(e)/100*255):Li(parseInt(e,10))}function Dn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?th(parseFloat(e)/100):th(parseFloat(e))}function eh(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function uu(t,e,r){return t+(e-t)*r}function ir(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function rh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var jy=new Nr(20),fu=null;function Xa(t,e){fu&&rh(fu,e),fu=jy.put(t,fu||e.slice())}function Dt(t,e){if(t){e=e||[];var r=jy.get(t);if(r)return rh(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in qy)return rh(e,qy[i]),Xa(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ir(e,0,0,0,1);return}return ir(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Xa(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ir(e,0,0,0,1);return}return ir(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Xa(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ir(e,+u[0],+u[1],+u[2],1):ir(e,0,0,0,1);f=Dn(u.pop());case"rgb":if(u.length>=3)return ir(e,Jp(u[0]),Jp(u[1]),Jp(u[2]),u.length===3?f:Dn(u[3])),Xa(t,e),e;ir(e,0,0,0,1);return;case"hsla":if(u.length!==4){ir(e,0,0,0,1);return}return u[3]=Dn(u[3]),ih(u,e),Xa(t,e),e;case"hsl":if(u.length!==3){ir(e,0,0,0,1);return}return ih(u,e),Xa(t,e),e;default:return}}ir(e,0,0,0,1)}}function ih(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Dn(t[1]),n=Dn(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],ir(e,Li(eh(o,a,r+1/3)*255),Li(eh(o,a,r)*255),Li(eh(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function VE(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Ky(t,e){var r=Dt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return An(r,r.length===4?"rgba":"rgb")}}function Qy(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Dt(e[n]),s=Dt(e[a]),l=i-n,u=An([Li(uu(o[0],s[0],l)),Li(uu(o[1],s[1],l)),Li(uu(o[2],s[2],l)),th(uu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function ss(t,e,r,i){var n=Dt(t);if(t)return n=VE(n),e!=null&&(n[0]=FE(q(e)?e(n[0]):e)),r!=null&&(n[1]=Dn(q(r)?r(n[1]):r)),i!=null&&(n[2]=Dn(q(i)?i(n[2]):i)),An(ih(n),"rgba")}function An(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function qa(t,e){var r=Dt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Zy=new Nr(100);function ls(t){if(U(t)){var e=Zy.get(t);return e||(e=Ky(t,-.1),Zy.put(t,e)),e}else if(Na(t)){var r=P({},t);return r.colorStops=z(t.colorStops,function(i){return{offset:i.offset,color:Ky(i.color,-.1)}}),r}return t}var pu=Math.round;function Pi(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Dt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var $y=1e-4;function Rr(t){return t<$y&&t>-$y}function cu(t){return pu(t*1e3)/1e3}function hu(t){return pu(t*1e4)/1e4}function Jy(t){return"matrix("+cu(t[0])+","+cu(t[1])+","+cu(t[2])+","+cu(t[3])+","+hu(t[4])+","+hu(t[5])+")"}var e_={left:"start",right:"end",center:"middle",middle:"middle"};function t_(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function r_(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function i_(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function nh(t){return t&&!!t.image}function GE(t){return t&&!!t.svgElement}function us(t){return nh(t)||GE(t)}function vu(t){return t.type==="linear"}function du(t){return t.type==="radial"}function mu(t){return t&&(t.type==="linear"||t.type==="radial")}function fs(t){return"url(#"+t+")"}function gu(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function yu(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*za,n=Y(t.scaleX,1),a=Y(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+pu(o*za)+"deg, "+pu(s*za)+"deg)"),l.join(" ")}var n_=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var oh=Array.prototype.slice;function ai(t,e,r){return(e-t)*r+t}function ah(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=ai(e[a],r[a],i);return t}function YE(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=ai(e[o][s],r[o][s],i)}return t}function _u(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function a_(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function WE(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function XE(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:oh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function hs(t){if(Ke(t)){var e=t.length;if(Ke(t[0])){for(var r=[],i=0;i<e;i++)r.push(oh.call(t[i]));return r}return oh.call(t)}return t}function bu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function qE(t){return Ke(t&&t[0])?2:1}var xu=0,Tu=1,l_=2,ps=3,sh=4,lh=5,o_=6;function s_(t){return t===sh||t===lh}function Su(t){return t===Tu||t===l_}var cs=[0,0,0,0],KE=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=o_,l=r;if(Ke(r)){var u=qE(r);s=u,(u===1&&!ae(r[0])||u===2&&!ae(r[0][0]))&&(o=!0)}else if(ae(r)&&!Ci(r))s=xu;else if(U(r))if(!isNaN(+r))s=xu;else{var f=Dt(r);f&&(l=f,s=ps)}else if(Na(r)){var c=P({},l);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:Dt(h.color)}}),vu(r)?s=sh:du(r)&&(s=lh),l=c}a===0?this.valType=s:(s!==this.valType||s===o_)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=q(i)?i:iu[i]||Wa(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Su(n),u=s_(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?XE(p,h,n):u&&WE(p.colorStops,h.colorStops))}if(!s&&n!==lh&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===xu?i[f].additiveValue=i[f].value-v:n===ps?i[f].additiveValue=_u([],i[f].value,v,-1):Su(n)&&(i[f].additiveValue=n===Tu?_u([],i[f].value,v,-1):a_([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ps,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?cs:e[l];if((Su(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Su(a))a===Tu?ah(y,h[n],v[n],g):YE(y,h[n],v[n],g);else if(s_(a)){var _=h[n],x=v[n],S=a===sh;e[l]={type:S?"linear":"radial",x:ai(_.x,x.x,g),y:ai(_.y,x.y,g),colorStops:z(_.colorStops,function(T,D){var w=x.colorStops[D];return{offset:ai(T.offset,w.offset,g),color:bu(ah([],T.color,w.color,g))}}),global:x.global},S?(e[l].x2=ai(_.x2,x.x2,g),e[l].y2=ai(_.y2,x.y2,g)):e[l].r=ai(_.r,x.r,g)}else if(u)ah(y,h[n],v[n],g),i||(e[l]=bu(y));else{var b=ai(h[n],v[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===xu?e[i]=e[i]+n:r===ps?(Dt(e[i],cs),_u(cs,cs,n,1),e[i]=bu(cs)):r===Tu?_u(e[i],e[i],n,1):r===l_&&a_(e[i],e[i],n,1)},t})(),ZE=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Wl("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,te(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new KE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===ps&&u&&(u=bu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,hs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,hs(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Wy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=hs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||te(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),vs=ZE;function En(){return new Date().getTime()}var jE=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=En()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Zp(i),!r._paused&&r.update())}Zp(i)},e.prototype.start=function(){this._running||(this._time=En(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=En(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=En()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new vs(r,i.loop);return this.addAnimator(n),n},e})(Ct),u_=jE;var QE=300,uh=se.domSupported,fh=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=z(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),f_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},c_=!1;function hh(t){var e=t.pointerType;return e==="pen"||e==="touch"}function $E(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ch(t){t&&(t.zrByTouch=!0)}function JE(t,e){return kt(t.dom,new eM(t,e),!0)}function h_(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var eM=(function(){function t(e,r){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),mr={mousedown:function(t){t=kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=kt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=kt(this.dom,t);var e=t.toElement||t.relatedTarget;h_(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){c_=!0,t=kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){c_||(t=kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=kt(this.dom,t),ch(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mr.mousemove.call(this,t),mr.mousedown.call(this,t)},touchmove:function(t){t=kt(this.dom,t),ch(t),this.handler.processGesture(t,"change"),mr.mousemove.call(this,t)},touchend:function(t){t=kt(this.dom,t),ch(t),this.handler.processGesture(t,"end"),mr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<QE&&mr.click.call(this,t)},pointerdown:function(t){mr.mousedown.call(this,t)},pointermove:function(t){hh(t)||mr.mousemove.call(this,t)},pointerup:function(t){mr.mouseup.call(this,t)},pointerout:function(t){hh(t)||mr.mouseout.call(this,t)}};C(["click","dblclick","contextmenu"],function(t){mr[t]=function(e){e=kt(this.dom,e),this.trigger(t,e)}});var vh={pointermove:function(t){hh(t)||vh.mousemove.call(this,t)},pointerup:function(t){vh.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function tM(t,e){var r=e.domHandlers;se.pointerEventsSupported?C(fh.pointer,function(i){Cu(e,i,function(n){r[i].call(t,n)})}):(se.touchEventsSupported&&C(fh.touch,function(i){Cu(e,i,function(n){r[i].call(t,n),$E(e)})}),C(fh.mouse,function(i){Cu(e,i,function(n){n=eu(n),e.touching||r[i].call(t,n)})}))}function rM(t,e){se.pointerEventsSupported?C(f_.pointer,r):se.touchEventsSupported||C(f_.mouse,r);function r(i){function n(a){a=eu(a),h_(t,a.target)||(a=JE(t,a),e.domHandlers[i].call(t,a))}Cu(e,i,n,{capture:!0})}}function Cu(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,gy(t.domTarget,e,r,i)}function ph(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&yy(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var p_=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),iM=(function(t){L(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new p_(r,mr),uh&&(n._globalHandlerScope=new p_(document,vh)),tM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){ph(this._localHandlerScope),uh&&ph(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,uh&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?rM(this,i):ph(i)}},e})(Ct),v_=iM;var d_=1;se.hasGlobalWindow&&(d_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var dh=d_,ds=.4,ms="#333",gs="#ccc",m_="#eee";var g_=ii,y_=5e-5;function Mn(t){return t>y_||t<-y_}var On=[],Ka=[],mh=wt(),gh=Math.abs,__=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return nM(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Mn(this.rotation)||Mn(this.x)||Mn(this.y)||Mn(this.scaleX-1)||Mn(this.scaleY-1)||Mn(this.skewX)||Mn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(g_(i),this.invTransform=null);return}i=i||wt(),r?this.getLocalTransform(i):g_(i),e&&(r?Ei(i,e,i):es(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||wt(),Lr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(On);var i=On[0]<0?-1:1,n=On[1]<0?-1:1,a=((On[0]-i)*r+i)/On[0]||0,o=((On[1]-n)*r+n)/On[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||wt(),Ei(Ka,e.invTransform,r),r=Ka);var i=this.originX,n=this.originY;(i||n)&&(mh[4]=i,mh[5]=n,Ei(Ka,r,mh),Ka[4]-=i,Ka[5]-=n,r=Ka),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&ut(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&ut(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&gh(e[0]-1)>1e-10&&gh(e[3]-1)>1e-10?Math.sqrt(gh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ni(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&Fa(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.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})(),t})(),nM=__.getLocalTransform;var Za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ni(t,e){return ny(t,e,Za)}var ja=__;function yr(t){wu||(wu=new Nr(100)),t=t||Rt;var e=wu.get(t);return e||(e={font:t,strWidthCache:new Nr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:mt.measureText("\u56FD",t).width,asciiCharWidth:mt.measureText("a",t).width},wu.put(t,e)),e}var wu;function aM(t){if(!(yh>=x_)){t=t||Rt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=mt.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?yh=x_:n>2&&yh++,e}}var yh=0,x_=5;function _h(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=aM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function _r(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=mt.measureText(e,t.font).width,r.put(e,i)),i}function S_(t,e,r,i){var n=_r(yr(e),t),a=In(e),o=Ri(0,n,r),s=oi(0,a,i),l=new ne(o,s,n,a);return l}function Du(t,e,r,i){var n=((t||"")+"").split(`
15
+ `),a=n.length;if(a===1)return S_(n[0],e,r,i);for(var o=new ne(0,0,0,0),s=0;s<n.length;s++){var l=S_(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Ri(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function oi(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function In(t){return yr(t).stWideCharWidth}function gr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ln(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=gr(i[0],r.width),u+=gr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var xh="__zr_normal__",Sh=Za.concat(["ignore"]),oM=Yt(Za,function(t,e){return t[e]=!0,t},{ignore:!1}),Qa={},sM=new ne(0,0,0,0),Au=[],Eu=0,$a=1,Ch=(function(){function t(e){this.id=Yl(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=sM,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Qa,i,p):Ln(Qa,i,p),a.x=Qa.x,a.y=Qa.y,o=Qa.align,s=Qa.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=gr(h[0],p.width),d=gr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ne(0,0,0,0);a.getLocalTransform(Au),Lr(Au,Au),ne.copy(y,p),y.applyTransform(Au)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=gt,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?gs:ms},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&Dt(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,An(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},P(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(G(e))for(var i=e,n=te(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==xh)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Sh)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(xh,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===xh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Wl("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=T_(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,w_(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Eu,this.__dirty&=~gt),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=T_(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,w_(this,r,d),d);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Eu,this.__dirty&=~gt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=fe(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=fe(n,e),o=fe(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];P(r,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==$a){var s=!(r&&n);r&&r.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Sh.length;f++){var c=Sh[f],p=a&&oM[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new ja,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=gt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new vs(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){bh(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){bh(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=bh(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Eu,e.__dirty=gt;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Tt(Ch,Ct);Tt(Ch,ja);function bh(t,e,r,i,n){r=r||{};var a=[];D_(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Th(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function lM(t){return Ke(t[0])}function uM(t,e,r){if(Ke(e[r]))if(Ke(t[r])||(t[r]=[]),Ge(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Th(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(lM(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Th(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Th(a,n,o);a.length=n.length}else t[r]=e[r]}function fM(t,e){return t===e||Ke(t)&&Ke(e)&&cM(t,e)}function cM(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function D_(t,e,r,i,n,a,o,s){for(var l=te(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!G(a),v=t.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(G(y)&&!Ke(y)&&!Na(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}D_(t,g,r[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var T=fe(v,S);v.splice(T,1)}}}if(n.force||(d=Me(d,function(E){return!fM(i[E],r[E])}),_=d.length),_>0||n.force&&!o.length){var D=void 0,w=void 0,A=void 0;if(s){w={},p&&(D={});for(var x=0;x<_;x++){var g=d[x];w[g]=r[g],p?D[g]=i[g]:r[g]=i[g]}}else if(p){A={};for(var x=0;x<_;x++){var g=d[x];A[g]=hs(r[g]),uM(r,i,g)}}var S=new vs(r,!1,!1,c?Me(v,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&D&&S.whenWithKeys(0,D,d),A&&S.whenWithKeys(0,A,d),S.whenWithKeys(u??500,s?w:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function T_(t,e,r,i){return!(r&&r.hoverLayer||i)||C_(t)||e&&C_(e)?Eu:$a}function C_(t){return t.type==="text"||t.type==="tspan"}function w_(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Mu=Ch;var A_=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=fe(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=fe(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new ne(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Mu);A_.prototype.type="group";var Se=A_;/*!
16
+ * ZRender, a high performance 2d drawing library.
17
+ *
18
+ * Copyright (c) 2013, Baidu Inc.
19
+ * All rights reserved.
20
+ *
21
+ * LICENSE
22
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
23
+ */var Ou={},E_={};function pM(t){delete E_[t]}function hM(t){if(!t)return!1;if(typeof t=="string")return qa(t,1)<ds;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=qa(e[n].color,1);return r/=i,r<ds}return!1}var vM=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new Ry,o=i.renderer||"canvas";Ou[o]||(o=te(Ou)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ou[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!se.node&&!se.worker&&!l?new v_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?se.touchEventsSupported:!!f,p=44,h;c&&(h=Y(i.pointerSize,p)),this.handler=new My(a,s,u,s.root,h),this.animation=new u_({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=hM(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.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},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=En(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=En();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Se&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,pM(this.id))},t})();function Dh(t,e){var r=new vM(Yl(),t,e);return E_[r.id]=r,r}function M_(t,e){Ou[t]=e}var wh;function O_(t){if(typeof wh=="function")return wh(t)}function I_(t){wh=t}var L_=1e-4,P_=20;function mM(t){return t.replace(/^\s+|\s+$/g,"")}var ze=Math.min,ve=Math.max,Pe=Math.abs,qt=Math.round,kr=Math.floor,ki=Math.ceil,Bi=Math.pow,Ja=Math.log,Ah=Math.LN10,gM=Math.PI,yM=Math.random;function ys(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var we=_M;function _M(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Iu(t,e,r)}function Iu(t,e,r){return U(t)?xM(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function xM(t){return!!mM(t).match(/%$/)}function ye(t,e,r){return isNaN(e)?r?""+t:+t:(e=ze(ve(0,e),P_),t=(+t).toFixed(e),r?t:+t)}function eo(t){return t.sort(function(e,r){return e-r}),t}function xr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(qt(t*e)/e===t)return r}return SM(t)}function SM(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ve(0,o-i)}function N_(t,e,r){var i=Pe(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=Ja(2*Pe(r||1)*Pe(i))/Ah,a=Ja(Pe(e))/Ah,o=ve(0,ki(-n+a));return isFinite(o)||(o=NaN),o}function R_(t,e){var r=Yt(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Bi(10,e),n=z(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=z(n,function(h){return kr(h)}),s=Yt(o,function(h,v){return h+v},0),l=z(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return z(o,function(h){return h/i})}function k_(t,e){var r=ve(xr(t),xr(e)),i=t+e;return r>P_?i:ye(i,r)}var Eh=Bi(2,53)-1;function Mh(t){var e=gM*2;return(t%e+e)%e}function _s(t){return t>-L_&&t<L_}var bM=/^(?:(\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 Br(t){if(t instanceof Date)return t;if(U(t)){var e=bM.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(qt(t))}function Lu(t){return Bi(10,Pu(t))}function Pu(t){if(t===0)return 0;var e=kr(Ja(t)/Ah);return t/Bi(10,e)>=10&&e++,e}var Oh=2;function Pn(t,e){var r=Pu(t),i=Bi(10,r),n=t/i,a;return e===Oh?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,ye(t,-r)}function zr(t){var e=parseFloat(t);return e==t&&(e!==0||!U(t)||t.indexOf("x")<=0)?e:NaN}function Ih(t){return!isNaN(zr(t))}function xs(){return qt(yM()*9)}function B_(t,e){return e===0?t:B_(e,t%e)}function Lh(t,e){return t==null?e:e==null?t:t*e/B_(t,e)}function Ze(t){return t!=null&&isFinite(t)}var TM="[ECharts] ",U_={},CM=typeof console<"u"&&console.warn&&console.log;function wM(t,e,r){if(CM){if(r){if(U_[e])return;U_[e]=!0}console[t](TM+e)}}function Ph(t,e){wM("error",t,e)}function it(t){throw new Error(t)}function F_(t,e,r){return(e-t)*r+t}var V_="series\0",DM="\0_ec_\0";function Ne(t){return t instanceof Array?t:t==null?[]:[t]}function bs(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Nh=["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 si(t){return G(t)&&!B(t)&&!(t instanceof Date)?t.value:t}function H_(t){return G(t)&&!(t instanceof Array)}function G_(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=X();C(e,function(l,u){if(!G(l)){e[u]=null;return}});var s=AM(t,o,r);return(i||n)&&EM(s,t,o,e),i&&MM(s,e),i||n?OM(s,e,n):a&&IM(s,e),LM(s),s}function AM(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||to(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function EM(t,e,r,i){C(i,function(n,a){if(!(!n||n.id==null)){var o=Ss(n.id),s=r.get(o);if(s!=null){var l=t[s];Be(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function MM(t,e){C(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!to(r)&&!to(a)&&Y_("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function OM(t,e,r){C(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||to(n.existing)||n.existing&&i.id!=null&&!Y_("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function IM(t,e){C(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function LM(t){var e=X();C(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),C(t,function(r){var i=r.newOption;Be(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),C(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(G(a)){if(o.name=a.name!=null?Ss(a.name):n?n.name:V_+i,n)o.id=Ss(n.id);else if(a.id!=null)o.id=Ss(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Y_(t,e,r){var i=Kt(e[t],null),n=Kt(r[t],null);return i!=null&&n!=null&&i===n}function Ss(t){return Kt(t,"")}function Kt(t,e){return t==null?e:U(t)?t:ae(t)||$o(t)?t+"":e}function ro(t){var e=t.name;return!!(e&&e.indexOf(V_))}function to(t){return t&&t.id!=null&&Ss(t.id).indexOf(DM)===0}function W_(t,e,r){C(t,function(i){var n=i.newOption;G(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=PM(e,n,i.existing,r))})}function PM(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function nr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return B(e.dataIndex)?z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return B(e.name)?z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ee(){var t="__ec_inner_"+NM++;return function(e){return e[t]||(e[t]={})}}var NM=xs();function Nu(t,e,r){var i=Ts(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=zi(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ts(t,e){var r;if(U(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=X(),a={},o=!1;return C(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ft={useDefault:!0,enableAll:!1,enableNone:!1};function zi(t,e,r,i){i=i||ft;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function X_(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function Rh(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function q_(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function K_(t){return t==="auto"?se.domSupported?"html":"richText":t||"html"}function kh(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(ae(i)){var o=F_(r||0,i,n);return ye(o,a?Math.max(xr(r||0),xr(i)):e)}else{if(U(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=F_(h,v,n);s[c]=ye(o,a?Math.max(xr(h),xr(v)):e)}}return s}}var jU=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.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},t})();function ct(){return[1/0,-1/0]}function Cs(t,e){Sr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Bh(t,e){Sr(e)&&e<t[0]&&(t[0]=e)}function zh(t,e){Sr(e)&&e>t[1]&&(t[1]=e)}function Z_(t,e){li(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Sr(t){return t!=null&&isFinite(t)}function li(t,e){return Sr(t)&&Sr(e)&&t<=e}function j_(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Q_(t){li(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Ru(){var t="__ec_once_"+RM++;return function(e,r){Oe(e,t)||(e[t]=1,r())}}var RM=xs();function io(t,e,r){var i=X(),n=0;C(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function $_(t){return t.value+""}function J_(t){return t+""}function ku(t,e){return Y(e,!0)?t.seriesIndex+2:0}function Bu(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function e0(t,e){return{seriesType:t,overallReset:e}}function Ui(t){return{overallReset:t}}var kM=".",Nn="___EC__COMPONENT__CONTAINER___",t0="___EC__EXTENDED_CLASS___";function Bt(t){var e={main:"",sub:""};if(t){var r=t.split(kM);e.main=r[0]||"",e.sub=r[1]||""}return e}function BM(t){Be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function r0(t){return!!(t&&t[t0])}function no(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return zM(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},ay(n,this)),P(n.prototype,r),n[t0]=!0,n.extend=this.extend,n.superCall=FM,n.superApply=VM,n.superClass=i,n}}function zM(t){return q(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function zu(t,e){t.extend=e.extend}var UM=Math.round(Math.random()*10);function i0(t){var e=["__\0is_clz",UM++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function FM(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function VM(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vi(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){BM(n),i.prototype.type=n;var a=Bt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Nn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[Nn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Bt(i),a=[],o=e[n.main];return o&&o[Nn]?C(o,function(s,l){l!==Nn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Bt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return C(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Bt(i),a=e[n.main];return a&&a[Nn]};function r(i){var n=e[i.main];return(!n||!n[Nn])&&(n=e[i.main]={},n[Nn]=!0),n}}function Ur(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&fe(n,l)>=0||a&&fe(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var HM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],GM=Ur(HM),n0=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return GM(this,e,r)},t})();var Fh=new Nr(50);function o0(t){if(typeof t=="string"){var e=Fh.get(t);return e&&e.image}else return t}function ws(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Fh.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!ao(e)&&a.pending.push(o)):(e=mt.loadImage(t,a0,a0),e.__zrImageSrc=t,Fh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function a0(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ao(t){return t&&t.width&&t.height}var Vh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WM(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
24
+ `);a=f0(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)c0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
25
+ `),t.isTruncated=s}function f0(t,e,r,i){i=i||{};var n=P({},i);r=Y(r,"..."),n.maxIterations=Y(i.maxIterations,2);var a=n.minChar=Y(i.minChar,0),o=n.fontMeasureInfo=yr(e),s=o.asciiCharWidth;n.placeholder=Y(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=_r(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function c0(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=_r(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?XM(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=_r(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function XM(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=_h(r,t.charCodeAt(n));return n}function p0(t,e,r,i){var n=Yh(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=In(u),p=Y(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?v0(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
26
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=f0(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)c0(S,g[b],x),g[b]=S.textLine,v=v||S.isTruncated;for(var T=m,D=0,w=yr(u),b=0;b<g.length;b++)D=Math.max(_r(w,g[b]),D);d==null&&(d=D);var A=d;return T+=l,A+=s,{lines:g,height:m,outerWidth:A,outerHeight:T,lineHeight:p,calculatedLineHeight:c,contentWidth:D,contentHeight:y,width:d,isTruncated:v}}var qM=(function(){function t(){}return t})(),s0=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),KM=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function h0(t,e,r,i,n){var a=new KM,o=Yh(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=Vh.lastIndex=0,d;(d=Vh.exec(o))!=null;){var m=d.index;m>v&&Hh(a,o.substring(v,m),e,h),Hh(a,d[2],e,h,d[1]),v=Vh.lastIndex}v<o.length&&Hh(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function T(de,Ve,ke){de.width=Ve,de.lineHeight=ke,y+=ke,_=Math.max(_,Ve)}e:for(var D=0;D<a.lines.length;D++){for(var w=a.lines[D],A=0,E=0,O=0;O<w.tokens.length;O++){var M=w.tokens[O],I=M.styleName&&e.rich[M.styleName]||{},R=M.textPadding=I.padding,N=R?R[1]+R[3]:0,F=M.font=I.font||e.font;M.contentHeight=In(F);var k=Y(I.height,M.contentHeight);if(M.innerHeight=k,R&&(k+=R[0]+R[2]),M.height=k,M.lineHeight=Wt(I.lineHeight,e.lineHeight,k),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var V=a.lines.length;O>0?(w.tokens=w.tokens.slice(0,O),T(w,E,A),a.lines=a.lines.slice(0,D+1)):a.lines=a.lines.slice(0,D),a.isTruncated=a.isTruncated||a.lines.length<V;break e}var H=I.width,W=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")M.percentWidth=H,g.push(M),M.contentWidth=_r(yr(F),M.text);else{if(W){var j=I.backgroundColor,$=j&&j.image;$&&($=o0($),ao($)&&(M.width=Math.max(M.width,$.width*k/$.height)))}var Z=x&&f!=null?f-E:null;Z!=null&&Z<M.width?!W||Z<N?(M.text="",M.width=M.contentWidth=0):(WM(b,M.text,Z-N,F,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=_r(yr(F),M.text)):M.contentWidth=_r(yr(F),M.text)}M.width+=N,E+=M.width,I&&(A=Math.max(A,M.lineHeight))}T(w,E,A)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var D=0;D<g.length;D++){var M=g[D],ue=M.percentWidth;M.width=parseInt(ue,10)/100*a.width}return a}function Hh(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=gr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
27
+ `),u=!0),i.accumWidth=v}else{var d=v0(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
28
+ `));for(var m=yr(l),g=0;g<f.length;g++){var y=f[g],_=new qM;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:_r(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new s0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new s0([_]))}}function ZM(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var jM=Yt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function QM(t){return ZM(t)?!!jM[t]:!0}function v0(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=yr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
29
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=_h(c,h.charCodeAt(0)),d=i?!1:!QM(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Gh(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(l0,Ri(r,o,n),oi(i,s,a),o,s),ne.intersect(e,l0,null,u0);var l=u0.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ri(l.x,l.width,n,!0),t.baseY=oi(l.y,l.height,a,!0)}}var l0=new ne(0,0,0,0),u0={outIntersectRect:{},clamp:!0};function Yh(t){return t!=null?t+="":t=""}function d0(t){var e=Yh(t.text),r=t.font,i=_r(yr(r),e),n=In(r);return Uu(t,i,n,null)}function Uu(t,e,r,i){var n=new ne(Ri(t.x||0,e,t.textAlign),oi(t.y||0,r,t.textBaseline),e,r),a=i??(Wh(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Wh(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Kh="__zr_style_"+Math.round(Math.random()*10),Fr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fr[Kh]=!0;var m0=["z","z2","invisible"],$M=["invisible"],JM=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=te(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&eO(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),i?ne.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:P(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Cn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Cn)},e.prototype.styleUpdated=function(){this.__dirty&=~Cn},e.prototype.createStyle=function(r){return wi(Fr,r)},e.prototype.useStyle=function(r){r[Kh]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Kh]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,m0)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===$a,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=te(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=te(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?$M:m0,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return P(r,i),r},e.prototype.getAnimationStyleProps=function(){return Rn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=gt|Cn})(),e})(Mu),Xh=new ne(0,0,0,0),qh=new ne(0,0,0,0);function eO(t,e,r){return Xh.copy(t.getBoundingRect()),t.transform&&Xh.applyTransform(t.transform),qh.width=e,qh.height=r,!Xh.intersect(qh)}var Vr=JM;var ar=Math.min,or=Math.max,Zh=Math.sin,jh=Math.cos,kn=Math.PI*2,Fu=Di(),Vu=Di(),Hu=Di();function Qh(t,e,r,i,n,a){n[0]=ar(t,r),n[1]=ar(e,i),a[0]=or(t,r),a[1]=or(e,i)}var g0=[],y0=[];function _0(t,e,r,i,n,a,o,s,l,u){var f=su,c=Re,p=f(t,r,n,o,g0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,g0[h]);l[0]=ar(v,l[0]),u[0]=or(v,u[0])}p=f(e,i,a,s,y0);for(var h=0;h<p;h++){var d=c(e,i,a,s,y0[h]);l[1]=ar(d,l[1]),u[1]=or(d,u[1])}l[0]=ar(t,l[0]),u[0]=or(t,u[0]),l[0]=ar(o,l[0]),u[0]=or(o,u[0]),l[1]=ar(e,l[1]),u[1]=or(e,u[1]),l[1]=ar(s,l[1]),u[1]=or(s,u[1])}function x0(t,e,r,i,n,a,o,s){var l=lu,u=et,f=or(ar(l(t,r,n),1),0),c=or(ar(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=ar(t,n,p),o[1]=ar(e,a,h),s[0]=or(t,n,p),s[1]=or(e,a,h)}function S0(t,e,r,i,n,a,o,s,l){var u=ti,f=ri,c=Math.abs(n-a);if(c%kn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Fu[0]=jh(n)*r+t,Fu[1]=Zh(n)*i+e,Vu[0]=jh(a)*r+t,Vu[1]=Zh(a)*i+e,u(s,Fu,Vu),f(l,Fu,Vu),n=n%kn,n<0&&(n=n+kn),a=a%kn,a<0&&(a=a+kn),n>a&&!o?a+=kn:n<a&&o&&(n+=kn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Hu[0]=jh(h)*r+t,Hu[1]=Zh(h)*i+e,u(s,Hu,s),f(l,Hu,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bn=[],zn=[],Hr=[],Hi=[],Gr=[],Yr=[],$h=Math.min,Jh=Math.max,Un=Math.cos,Fn=Math.sin,ui=Math.abs,rv=Math.PI,Gi=rv*2,ev=typeof Float32Array<"u",Ds=[];function tv(t){var e=Math.round(t/rv*1e8)/1e8;return e%2*rv}function iv(t,e){var r=tv(t[0]);r<0&&(r+=Gi);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Gi?n=r+Gi:e&&r-n>=Gi?n=r-Gi:!e&&r>n?n=r+(Gi-tv(r-n)):e&&r<n&&(n=r-(Gi-tv(n-r))),t[0]=r,t[1]=n}var tO=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=ui(i/dh/e)||0,this._uy=ui(i/dh/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ce.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=ui(e-this._xi),n=ui(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ce.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ce.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ce.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),Ds[0]=n,Ds[1]=a,iv(Ds,o),n=Ds[0],a=Ds[1];var s=a-n;return this.addData(Ce.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=Un(a)*i+e,this._yi=Fn(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ce.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&ev&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(ev&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ev&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Hr[0]=Hr[1]=Gr[0]=Gr[1]=Number.MAX_VALUE,Hi[0]=Hi[1]=Yr[0]=Yr[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ce.M:r=n=e[o++],i=a=e[o++],Gr[0]=n,Gr[1]=a,Yr[0]=n,Yr[1]=a;break;case Ce.L:Qh(r,i,e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.C:_0(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.Q:x0(r,i,e[o++],e[o++],e[o],e[o+1],Gr,Yr),r=e[o++],i=e[o++];break;case Ce.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Un(h)*c+u,a=Fn(h)*p+f),S0(u,f,c,p,h,v,d,Gr,Yr),r=Un(v)*c+u,i=Fn(v)*p+f;break;case Ce.R:n=r=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];Qh(n,a,n+m,a+g,Gr,Yr);break;case Ce.Z:r=n,i=a;break}ti(Hr,Hr,Gr),ri(Hi,Hi,Yr)}return o===0&&(Hr[0]=Hr[1]=Hi[0]=Hi[1]=0),new ne(Hr[0],Hr[1],Hi[0]-Hr[0],Hi[1]-Hr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ce.M:a=s=e[p++],o=l=e[p++];break;case Ce.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(ui(y)>i||ui(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ce.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];d=Vy(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ce.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=Yy(a,o,x,S,m,g,10),a=m,o=g;break}case Ce.A:var D=e[p++],w=e[p++],A=e[p++],E=e[p++],O=e[p++],M=e[p++],I=M+O;p+=1,v&&(s=Un(O)*A+D,l=Fn(O)*E+w),d=Jh(A,E)*$h(Gi,Math.abs(M)),a=Un(I)*A+D,o=Fn(I)*E+w;break;case Ce.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],N=e[p++];d=R*2+N*2;break}case Ce.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var b=0;b<o;){var T=i[b++],D=b===1;switch(D&&(u=i[b],f=i[b+1],s=u,l=f),T!==Ce.L&&_>0&&(e.lineTo(x,S),_=0),T){case Ce.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ce.L:{c=i[b++],p=i[b++];var w=ui(c-u),A=ui(p-f);if(w>n||A>a){if(h){var E=v[g++];if(m+E>y){var O=(y-m)/E;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=E}e.lineTo(c,p),u=c,f=p,_=0}else{var M=w*w+A*A;M>_&&(x=c,S=p,_=M)}break}case Ce.C:{var I=i[b++],R=i[b++],N=i[b++],F=i[b++],k=i[b++],V=i[b++];if(h){var E=v[g++];if(m+E>y){var O=(y-m)/E;Ga(u,I,N,k,O,Bn),Ga(f,R,F,V,O,zn),e.bezierCurveTo(Bn[1],zn[1],Bn[2],zn[2],Bn[3],zn[3]);break e}m+=E}e.bezierCurveTo(I,R,N,F,k,V),u=k,f=V;break}case Ce.Q:{var I=i[b++],R=i[b++],N=i[b++],F=i[b++];if(h){var E=v[g++];if(m+E>y){var O=(y-m)/E;Ya(u,I,N,O,Bn),Ya(f,R,F,O,zn),e.quadraticCurveTo(Bn[1],zn[1],Bn[2],zn[2]);break e}m+=E}e.quadraticCurveTo(I,R,N,F),u=N,f=F;break}case Ce.A:var H=i[b++],W=i[b++],j=i[b++],$=i[b++],Z=i[b++],ue=i[b++],de=i[b++],Ve=!i[b++],ke=j>$?j:$,xe=ui(j-$)>.001,Ee=Z+ue,oe=!1;if(h){var E=v[g++];m+E>y&&(Ee=Z+ue*(y-m)/E,oe=!0),m+=E}if(xe&&e.ellipse?e.ellipse(H,W,j,$,de,Z,Ee,Ve):e.arc(H,W,ke,Z,Ee,Ve),oe)break e;D&&(s=Un(Z)*j+H,l=Fn(Z)*$+W),u=Un(Ee)*j+H,f=Fn(Ee)*$+W;break;case Ce.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var me=i[b++],Pt=i[b++];if(h){var E=v[g++];if(m+E>y){var He=y-m;e.moveTo(c,p),e.lineTo(c+$h(He,me),p),He-=me,He>0&&e.lineTo(c+me,p+$h(He,Pt)),He-=Pt,He>0&&e.lineTo(c+Jh(me-He,0),p+Pt),He-=me,He>0&&e.lineTo(c,p+Jh(Pt-He,0));break e}m+=E}e.rect(c,p,me,Pt);break;case Ce.Z:if(h){var E=v[g++];if(m+E>y){var O=(y-m)/E;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=E}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ce,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),pt=tO;function Vn(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function b0(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=Fy(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function T0(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Gy(t,e,r,i,n,a,s,l,null);return f<=u/2}var C0=Math.PI*2;function As(t){return t%=C0,t<0&&(t+=C0),t}var Es=Math.PI*2;function w0(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Es<1e-4)return!0;if(a){var c=i;i=As(n),n=As(c)}else i=As(i),n=As(n);i>n&&(n+=Es);var p=Math.atan2(l,s);return p<0&&(p+=Es),p>=i&&p<=n||p+Es>=i&&p+Es<=n}function fi(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var Yi=pt.CMD,Hn=Math.PI*2,oO=1e-4;function sO(t,e){return Math.abs(t-e)<oO}var At=[-1,-1,-1],sr=[-1,-1];function lO(){var t=sr[0];sr[0]=sr[1],sr[1]=t}function uO(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=wn(e,i,a,s,u,At);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=At[d],g=m===0||m===1?.5:1,y=Re(t,r,n,o,m);y<l||(p<0&&(p=su(e,i,a,s,sr),sr[1]<sr[0]&&p>1&&lO(),h=Re(e,i,a,s,sr[0]),p>1&&(v=Re(e,i,a,s,sr[1]))),p===2?m<sr[0]?c+=h<e?g:-g:m<sr[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<sr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function fO(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=Hy(e,i,a,s,At);if(l===0)return 0;var u=lu(e,i,a);if(u>=0&&u<=1){for(var f=0,c=et(e,i,a,u),p=0;p<l;p++){var h=At[p]===0||At[p]===1?.5:1,v=et(t,r,n,At[p]);v<o||(At[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=At[0]===0||At[0]===1?.5:1,v=et(t,r,n,At[0]);return v<o?0:a<e?h:-h}}function cO(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);At[0]=-l,At[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Hn-1e-4){i=0,n=Hn;var f=a?1:-1;return o>=At[0]+t&&o<=At[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Hn,n+=Hn);for(var p=0,h=0;h<2;h++){var v=At[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=Hn+d),(d>=i&&d<=n||d+Hn>=i&&d+Hn<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function D0(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===Yi.M&&v>1&&(r||(s+=fi(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case Yi.M:f=a[v++],c=a[v++],l=f,u=c;break;case Yi.L:if(r){if(Vn(l,u,a[v],a[v+1],e,i,n))return!0}else s+=fi(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yi.C:if(r){if(b0(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=uO(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yi.Q:if(r){if(T0(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=fO(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yi.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var T=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=fi(l,u,p,h,i,n);var D=(i-g)*x/_+g;if(r){if(w0(g,y,x,S,S+b,T,e,D,n))return!0}else s+=cO(g,y,x,S,S+b,T,D,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case Yi.R:f=l=a[v++],c=u=a[v++];var w=a[v++],A=a[v++];if(p=f+w,h=c+A,r){if(Vn(f,c,p,c,e,i,n)||Vn(p,c,p,h,e,i,n)||Vn(p,h,f,h,e,i,n)||Vn(f,h,f,c,e,i,n))return!0}else s+=fi(p,c,p,h,i,n),s+=fi(f,h,f,c,i,n);break;case Yi.Z:if(r){if(Vn(l,u,f,c,e,i,n))return!0}else s+=fi(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!sO(u,c)&&(s+=fi(l,u,f,c,i,n)||0),s!==0}function A0(t,e,r){return D0(t,0,!1,e,r)}function E0(t,e,r,i){return D0(t,e,!0,r,i)}var oo=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fr),hO={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rn.style)},nv=Za.concat(["invisible","culling","z","z2","zlevel","parent"]),vO=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<nv.length;++s)n[nv[s]]=this[nv[s]];n.__dirty|=gt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=te(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?P(this.style,s):this.useStyle(s):o==="shape"?P(this.shape,s):t.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 r=this.style.fill;if(r!=="none"){if(U(r)){var i=qa(r,0);return i>.5?ms:i>.2?m_:gs}else if(r)return gs}return ms},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=qa(r,0)<ds;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Mi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new pt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Mi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.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 r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){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)),E0(s,l/u,r,i)))return!0}if(this.hasFill())return A0(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Mi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:P(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Mi)},e.prototype.createStyle=function(r){return wi(oo,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==$a){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=te(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return hO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return J(r.style)},o.prototype.getDefaultShape=function(){return J(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=gt|Cn|Mi})(),e})(Vr),re=vO;var dO=ie({strokeFirst:!0,font:Rt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},oo),M0=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Wh(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return wi(dO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=d0(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Vr);M0.prototype.type="tspan";var Gn=M0;var mO=ie({x:0,y:0},Fr),gO={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rn.style)};function yO(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var O0=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return wi(mO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=yO(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return gO},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Vr);O0.prototype.type="image";var yt=O0;function I0(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var so=Math.round;function Gu(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(so(i*2)===so(n*2)&&(t.x1=t.x2=Wi(i,s,!0)),so(a*2)===so(o*2)&&(t.y1=t.y2=Wi(a,s,!0))),t}}function Yu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Wi(i,s,!0),t.y=Wi(n,s,!0),t.width=Math.max(Wi(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Wi(n+o,s,!1)-t.y,o===0?0:1)),t}}function Wi(t,e,r){if(!e)return t;var i=so(t*2);return(i+so(e))%2===0?i/2:(i+(r?1:-1))/2}var SO=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var bO={},L0=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new SO},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Yu(bO,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?I0(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(re);L0.prototype.type="rect";var _e=L0;var P0={fill:"#000"},N0=2,Wr={},TO={style:ie({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},Rn.style)},H0=(function(t){L(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=P0,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,DO(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||P0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return P(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=te(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},P(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return TO},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Rt,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Gh(Wr,a.overflowRect,o,s,l,u),o=Wr.baseX,s=Wr.baseY;var f=V0(r),c=p0(f,r,Wr.outerWidth,Wr.outerHeight),p=av(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=oi(s,c.contentHeight,u);if(p||n){var x=Ri(o,d,l),S=oi(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=g/2,n&&(y=F0(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,T=!1,D=!1,w=U0("fill"in r?r.fill:(D=!0,a.fill)),A=z0("stroke"in r?r.stroke:!h&&(!a.autoStroke||D)?(b=N0,T=!0,a.stroke):null),E=r.textShadowBlur>0,O=0;O<m.length;O++){var M=this._getOrCreateChild(Gn),I=M.createStyle();M.useStyle(I),I.text=m[O],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,E&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=A,I.fill=w,A&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,k0(I,r),_+=g,M.setBoundingRect(Uu(I,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;Gh(Wr,i.overflowRect,o,s,n,a),o=Wr.baseX,s=Wr.baseY;var l=V0(r),u=h0(l,r,Wr.outerWidth,Wr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=Ri(o,c,n),d=oi(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;av(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,T=b.length,D=S.lineHeight,w=S.width,A=0,E=m,O=y,M=T-1,I=void 0;A<T&&(I=b[A],!I.align||I.align==="left");)this._placeToken(I,r,D,g,E,"left",_),w-=I.width,E+=I.width,A++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,D,g,O,"right",_),w-=I.width,O-=I.width,M--;for(E+=(f-(E-m)-(y-O)-w)/2;A<=M;)I=b[A],this._placeToken(I,r,D,g,E+I.width/2,"center",_),E+=I.width,A++;g+=D}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&av(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=F0(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(Gn),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=U0("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=z0("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=N0,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Rt,m.opacity=Wt(u.opacity,i.opacity,1),k0(m,u),b&&(m.lineWidth=Wt(u.lineWidth,i.lineWidth,_),m.lineDash=Y(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect(Uu(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,m;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(_e),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(yt),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Wt(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return sv(r)&&(i=[r.fontStyle,r.fontWeight,ov(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&lt(i)||r.textFont||r.font},e})(Vr),CO={left:!0,right:1,center:1},wO={top:1,bottom:1,middle:1},R0=["fontStyle","fontWeight","fontSize","fontFamily"];function ov(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Vl+"px":t+"px"}function k0(t,e){for(var r=0;r<R0.length;r++){var i=R0[r],n=e[i];n!=null&&(t[i]=n)}}function sv(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function DO(t){return B0(t),C(t.rich,B0),t}function B0(t){if(t){t.font=H0.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||CO[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||wO[r]?r:"top";var i=t.padding;i&&(t.padding=ka(t.padding))}}function z0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function U0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function F0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function V0(t){var e=t.text;return e!=null&&(e+=""),e}function av(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var De=H0;var ce=ee(),G0=function(t,e,r,i){if(i){var n=ce(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ce(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Xi="undefined",Wu="series",Xu=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),tt="original",je="arrayRows",_t="objectRows",zt="keyedColumns",Zt="typedArray",lv="unknown",jt="column",Xr="row";var AO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],EO=(function(){function t(e){C(AO,function(r){this[r]=he(e[r],e)},this)}return t})();function Y0(t,e){return e.mainType===Wu?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var qu=EO;var W0=1,X0={},Q0=ee(),cv=ee(),pv=0,Ms=1,Os=2,Et=["emphasis","blur","select"],uo=["normal","emphasis","blur","select"],MO=10,OO=9,qi="highlight",Is="downplay",Ls="select",Zu="unselect",Ps="toggleSelect",ju="selectchanged";function lo(t){return t!=null&&t!=="none"}function Qu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function $0(t){Qu(t,"emphasis",Os)}function J0(t){t.hoverState===Os&&Qu(t,"normal",pv)}function hv(t){Qu(t,"blur",Ms)}function ex(t){t.hoverState===Ms&&Qu(t,"normal",pv)}function IO(t){t.selected=!0}function LO(t){t.selected=!1}function q0(t,e,r){e(t,r)}function ci(t,e,r){q0(t,e,r),t.isGroup&&t.traverse(function(i){q0(i,e,r)})}function vv(t,e){switch(e){case"emphasis":t.hoverState=Os;break;case"normal":t.hoverState=pv;break;case"blur":t.hoverState=Ms;break;case"select":t.selected=!0}}function PO(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function NO(t,e,r,i){var n=r&&fe(r,"select")>=0,a=!1;if(t instanceof re){var o=Q0(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(lo(s)||lo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!lo(u.fill)&&lo(s)?(a=!0,i=P({},i),u=P({},u),u.fill=ls(s)):!lo(u.stroke)&&lo(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=ls(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??MO)}return i}function RO(t,e,r){if(r&&r.z2==null){r=P({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??OO)}return r}function kO(t,e,r){var i=fe(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:PO(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:i?n:a.opacity*.1},o),r.style=o),r}function uv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return NO(this,t,e,r);if(t==="blur")return kO(this,t,r);if(t==="select")return RO(this,t,r)}return r}function BO(t){t.stateProxy=uv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=uv),r&&(r.stateProxy=uv)}function K0(t,e){!rx(t,e)&&!t.__highByOuter&&ci(t,$0)}function Z0(t,e){!rx(t,e)&&!t.__highByOuter&&ci(t,J0)}function Yn(t,e){t.__highByOuter|=1<<(e||0),ci(t,$0)}function Wn(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ci(t,J0)}function tx(t){ci(t,hv)}function dv(t){ci(t,ex)}function mv(t){ci(t,IO)}function gv(t){ci(t,LO)}function rx(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function yv(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=cv(a),s=Y0(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){ex(u)}),l&&r.push(a)),o.isBlured=!1}),C(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function fv(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&dv(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||hv(m)}),Ke(e))a(u.getData(),e);else if(G(e))for(var v=te(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),cv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Ku(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){cv(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){hv(a)})}}}function ix(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=nr(n,e);a=(B(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ce(o);fv(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&fv(i,f,c,r)}}}function $u(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function nx(t,e,r){var i=ce(t),n=$u(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Ku(i.componentMainType,i.componentIndex,r),C(a,function(s){return K0(s,e)})):(fv(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Ku(i.componentMainType,i.componentIndex,r),K0(t,e))}function ax(t,e,r){yv(r);var i=ce(t),n=$u(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?C(n,function(a){return Z0(a,e)}):Z0(t,e)}function ox(t,e,r){if(ef(e)){var i=e.dataType,n=t.getData(i),a=nr(n,e);B(a)||(a=[a]),t[e.type===Ps?"toggleSelect":e.type===Ls?"select":"unselect"](a,i)}}function _v(t){var e=t.getAllData();C(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?mv(a):gv(a)})})}function sx(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();C(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Ju(t,e,r){lx(t,!0),ci(t,BO),UO(t,e,r)}function zO(t){lx(t,!1)}function pi(t,e,r,i){i?zO(t):Ju(t,e,r)}function UO(t,e,r){var i=ce(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var j0=["emphasis","blur","select"],FO={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xn(t,e,r,i){r=r||"itemStyle";for(var n=0;n<j0.length;n++){var a=j0[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[FO[r]]()}}function lx(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function Ns(t){return!!(t&&t.__highDownDispatcher)}function ux(t){var e=X0[t];return e==null&&W0<=32&&(e=X0[t]=W0++),e}function ef(t){var e=t.type;return e===Ls||e===Zu||e===Ps}function xv(t){var e=t.type;return e===qi||e===Is}function fx(t){var e=Q0(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Qe={};WA(Qe,{Arc:()=>Us,BezierCurve:()=>Mv,BoundingRect:()=>ne,Circle:()=>ks,CompoundPath:()=>of,Ellipse:()=>Cv,Group:()=>Se,HOVER_LAYER_FOR_INCREMENTAL:()=>Vs,HOVER_LAYER_FROM_THRESHOLD:()=>kv,HOVER_LAYER_NO:()=>Rv,Image:()=>yt,IncrementalDisplayable:()=>zx,Line:()=>Cr,LinearGradient:()=>lf,OrientedBoundingRect:()=>pf,Path:()=>re,Point:()=>le,Polygon:()=>Ev,Polyline:()=>Kn,RadialGradient:()=>kx,Rect:()=>_e,Ring:()=>Dv,Sector:()=>Tr,Text:()=>De,WH:()=>Zi,XY:()=>Kr,applyTransform:()=>df,calcZ2Range:()=>II,clipPointsByRect:()=>AI,clipRectByRect:()=>EI,createIcon:()=>Hs,decomposeTransform:()=>PI,ensureCopyRect:()=>go,ensureCopyTransform:()=>gf,expandOrShrinkRect:()=>vo,extendPath:()=>_I,extendShape:()=>gI,getCurrentCanvasPainter:()=>NI,getShapeClass:()=>xI,getTransform:()=>CI,groupTransition:()=>zv,initProps:()=>at,isBoundingRectAxisAligned:()=>mf,isElementRemoved:()=>Qn,lineLineIntersect:()=>Yx,linePolygonIntersect:()=>MI,makeImage:()=>Bv,makePath:()=>vf,mergePath:()=>SI,payloadDisableAnimation:()=>LI,registerShape:()=>wr,removeElement:()=>po,removeElementWithFadeOut:()=>Ki,resizePath:()=>Gx,retrieveZInfo:()=>Uv,setTooltipConfig:()=>mo,subPixelOptimize:()=>TI,subPixelOptimizeLine:()=>$n,subPixelOptimizeRect:()=>bI,transformDirection:()=>wI,traverseElements:()=>Jn,traverseUpdateZ:()=>Fv,updateProps:()=>Ue});var fo=pt.CMD,VO=[[],[],[]],cx=Math.sqrt,HO=Math.atan2;function Sv(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=fo.M,c=fo.C,p=fo.L,h=fo.R,v=fo.A,d=fo.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=cx(e[0]*e[0]+e[1]*e[1]),_=cx(e[2]*e[2]+e[3]*e[3]),x=HO(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],ut(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ut(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=VO[l];S[0]=r[o++],S[1]=r[o++],ut(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var bv=Math.sqrt,tf=Math.sin,rf=Math.cos,Rs=Math.PI;function px(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Tv(t,e){return(t[0]*e[0]+t[1]*e[1])/(px(t)*px(e))}function hx(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Tv(t,e))}function vx(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Rs/180),p=rf(c)*(t-r)/2+tf(c)*(e-i)/2,h=-1*tf(c)*(t-r)/2+rf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=bv(v),s*=bv(v));var d=(n===a?-1:1)*bv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(t+r)/2+rf(c)*m-tf(c)*g,_=(e+i)/2+tf(c)*m+rf(c)*g,x=hx([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],T=hx(S,b);if(Tv(S,b)<=-1&&(T=Rs),Tv(S,b)>=1&&(T=0),T<0){var D=Math.round(T/Rs*1e6)/1e6;T=Rs*2+D%2*Rs}f.addData(u,y,_,o,s,x,T,c,a)}var GO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,YO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function WO(t){var e=new pt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=pt.CMD,l=t.match(GO);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(YO)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,D=r,w=i,A=void 0,E=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,A=e.len(),E=e.data,o===s.C&&(g+=r-E[A-4],y+=i-E[A-3]),p=s.C,D=h[m++],w=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,D,w,r,i);break;case"s":g=r,y=i,A=e.len(),E=e.data,o===s.C&&(g+=r-E[A-4],y+=i-E[A-3]),p=s.C,D=r+h[m++],w=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,D,w,r,i);break;case"Q":D=h[m++],w=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,D,w,r,i);break;case"q":D=h[m++]+r,w=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,D,w,r,i);break;case"T":g=r,y=i,A=e.len(),E=e.data,o===s.Q&&(g+=r-E[A-4],y+=i-E[A-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,A=e.len(),E=e.data,o===s.Q&&(g+=r-E[A-4],y+=i-E[A-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],D=r,w=i,r=h[m++],i=h[m++],p=s.A,vx(D,w,r,i,b,T,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],D=r,w=i,r+=h[m++],i+=h[m++],p=s.A,vx(D,w,r,i,b,T,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var dx=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(re);function mx(t){return t.setData!=null}function gx(t,e){var r=WO(t),i=P({},e);return i.buildPath=function(n){var a=mx(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Sv(r,n),this.dirtyShape()},i}function yx(t,e){return new dx(gx(t,e))}function _x(t,e){var r=gx(t,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(dx);return i}function xx(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new re(e);return o.createPathProxy(),o.buildPath=function(s){if(mx(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var qO=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var Sx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new qO},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(re);Sx.prototype.type="circle";var ks=Sx;var KO=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var bx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new KO},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(re);bx.prototype.type="ellipse";var Cv=bx;var Cx=Math.PI,wv=Cx*2,qn=Math.sin,co=Math.cos,ZO=Math.acos,xt=Math.atan2,Tx=Math.abs,zs=Math.sqrt,Bs=Math.max,qr=Math.min,br=1e-4;function jO(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<br))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function nf(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/zs(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,T=(_<0?-1:1)*zs(Bs(0,S*S*x-b*b)),D=(b*_-y*T)/x,w=(-b*y-_*T)/x,A=(b*_+y*T)/x,E=(-b*y+_*T)/x,O=D-m,M=w-g,I=A-m,R=E-g;return O*O+M*M>I*I+R*R&&(D=A,w=E),{cx:D,cy:w,x0:-f,y0:-c,x1:D*(n/S-1),y1:w*(n/S-1)}}function QO(t){var e;if(B(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Dx(t,e){var r,i=Bs(e.r,0),n=Bs(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=Tx(u-l),v=h>wv&&h%wv;if(v>br&&(h=v),!(i>br))t.moveTo(f,c);else if(h>wv-br)t.moveTo(f+i*co(l),c+i*qn(l)),t.arc(f,c,i,l,u,!p),n>br&&(t.moveTo(f+n*co(u),c+n*qn(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,D=void 0,w=void 0,A=void 0,E=void 0,O=void 0,M=void 0,I=void 0,R=i*co(l),N=i*qn(l),F=n*co(u),k=n*qn(u),V=h>br;if(V){var H=e.cornerRadius;H&&(r=QO(H),d=r[0],m=r[1],g=r[2],y=r[3]);var W=Tx(i-n)/2;if(_=qr(W,g),x=qr(W,y),S=qr(W,d),b=qr(W,m),w=T=Bs(_,x),A=D=Bs(S,b),(T>br||D>br)&&(E=i*co(u),O=i*qn(u),M=n*co(l),I=n*qn(l),h<Cx)){var j=jO(R,N,M,I,E,O,F,k);if(j){var $=R-j[0],Z=N-j[1],ue=E-j[0],de=O-j[1],Ve=1/qn(ZO(($*ue+Z*de)/(zs($*$+Z*Z)*zs(ue*ue+de*de)))/2),ke=zs(j[0]*j[0]+j[1]*j[1]);w=qr(T,(i-ke)/(Ve+1)),A=qr(D,(n-ke)/(Ve-1))}}}if(!V)t.moveTo(f+R,c+N);else if(w>br){var xe=qr(g,w),Ee=qr(y,w),oe=nf(M,I,R,N,i,xe,p),me=nf(E,O,F,k,i,Ee,p);t.moveTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),w<T&&xe===Ee?t.arc(f+oe.cx,c+oe.cy,w,xt(oe.y0,oe.x0),xt(me.y0,me.x0),!p):(xe>0&&t.arc(f+oe.cx,c+oe.cy,xe,xt(oe.y0,oe.x0),xt(oe.y1,oe.x1),!p),t.arc(f,c,i,xt(oe.cy+oe.y1,oe.cx+oe.x1),xt(me.cy+me.y1,me.cx+me.x1),!p),Ee>0&&t.arc(f+me.cx,c+me.cy,Ee,xt(me.y1,me.x1),xt(me.y0,me.x0),!p))}else t.moveTo(f+R,c+N),t.arc(f,c,i,l,u,!p);if(!(n>br)||!V)t.lineTo(f+F,c+k);else if(A>br){var xe=qr(d,A),Ee=qr(m,A),oe=nf(F,k,E,O,n,-Ee,p),me=nf(R,N,M,I,n,-xe,p);t.lineTo(f+oe.cx+oe.x0,c+oe.cy+oe.y0),A<D&&xe===Ee?t.arc(f+oe.cx,c+oe.cy,A,xt(oe.y0,oe.x0),xt(me.y0,me.x0),!p):(Ee>0&&t.arc(f+oe.cx,c+oe.cy,Ee,xt(oe.y0,oe.x0),xt(oe.y1,oe.x1),!p),t.arc(f,c,n,xt(oe.cy+oe.y1,oe.cx+oe.x1),xt(me.cy+me.y1,me.cx+me.x1),p),xe>0&&t.arc(f+me.cx,c+me.cy,xe,xt(me.y1,me.x1),xt(me.y0,me.x0),!p))}else t.lineTo(f+F,c+k),t.arc(f,c,n,u,l,p)}t.closePath()}}}var JO=(function(){function t(){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 t})();var Ax=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JO},e.prototype.buildPath=function(r,i){Dx(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(re);Ax.prototype.type="sector";var Tr=Ax;var eI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var Ex=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new eI},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(re);Ex.prototype.type="ring";var Dv=Ex;function Av(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)ti(f,f,t[p]),ri(c,c,t[p]);ti(f,f,i[0]),ri(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(fy(t[p]));continue}else l=t[p-1],u=t[p+1];cy(a,u,l),Kl(a,a,e);var d=Zl(v,l),m=Zl(v,u),g=d+m;g!==0&&(d/=g,m/=g),Kl(o,a,-d),Kl(s,a,m);var y=Lp([],v,o),_=Lp([],v,s);i&&(ri(y,y,f),ti(y,y,c),ri(_,_,f),ti(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function af(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Av(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var tI=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var Ox=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new tI},e.prototype.buildPath=function(r,i){af(r,i,!0)},e})(re);Ox.prototype.type="polygon";var Ev=Ox;var rI=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var Ix=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rI},e.prototype.buildPath=function(r,i){af(r,i,!1)},e})(re);Ix.prototype.type="polyline";var Kn=Ix;var iI={},nI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var Lx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nI},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=Gu(iI,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(re);Lx.prototype.type="line";var Cr=Lx;var Ut=[],aI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Px(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?jp:Re)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?jp:Re)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Qp:et)(t.x1,t.cpx1,t.x2,e),(r?Qp:et)(t.y1,t.cpy1,t.y2,e)]}var Nx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aI},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(Ya(n,l,o,p,Ut),l=Ut[1],o=Ut[2],Ya(a,u,s,p,Ut),u=Ut[1],s=Ut[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Ga(n,l,f,o,p,Ut),l=Ut[1],f=Ut[2],o=Ut[3],Ga(a,u,c,s,p,Ut),u=Ut[1],c=Ut[2],s=Ut[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Px(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=Px(this.shape,r,!0);return py(i,i)},e})(re);Nx.prototype.type="bezier-curve";var Mv=Nx;var oI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var Rx=(function(t){L(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oI},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(re);Rx.prototype.type="arc";var Us=Rx;var sI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),re.prototype.getBoundingRect.call(this)},e})(re),of=sI;var lI=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),sf=lI;var uI=(function(t){L(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(sf),lf=uI;var fI=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(sf),kx=fI;var Ov=Math.min,cI=Math.max,uf=Math.abs,Zn=[0,0],jn=[0,0],nt=Yp(),ff=nt.minTv,cf=nt.maxTv,pI=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new le;for(var i=0;i<2;i++)this._axes[i]=new le;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);le.sub(n[0],i[1],i[0]),le.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&le.set(r,0,0),nt.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!nt.negativeSize&&le.copy(r,n?nt.useDir?nt.dirMinTv:ff:cf),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Zn),e._getProjMinMaxOnAxis(o,r._corners,jn),nt.negativeSize||Zn[1]<jn[0]||Zn[0]>jn[1]){if(a=!1,nt.negativeSize||i)return a;var l=uf(jn[0]-Zn[1]),u=uf(Zn[0]-jn[1]);Ov(l,u)>cf.len()&&(l<u?le.scale(cf,s,-l*n):le.scale(cf,s,u*n))}else if(!i){var l=uf(jn[0]-Zn[1]),u=uf(Zn[0]-jn[1]);(nt.useDir||Ov(l,u)<ff.len())&&((l<u||!nt.bidirectional)&&(le.scale(ff,s,l*n),nt.useDir&&nt.calcDirMTV()),(l>=u||!nt.bidirectional)&&(le.scale(ff,s,-u*n),nt.useDir&&nt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Ov(f,s),l=cI(f,l)}i[0]=s+nt.touchThreshold,i[1]=l-nt.touchThreshold,nt.negativeSize=i[1]<i[0]},t})(),pf=pI;var Bx=1;var hI=[],vI=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Bx,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,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(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(hI)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(Vr),zx=vI;var dI=ee();function mI(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Y(i.duration,200),f=Y(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),q(c)&&(c=c(r,n)),q(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Iv(t,e,r,i,n,a,o){var s=!1,l;q(n)?(o=a,a=n,n=null):G(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=mI(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ue(t,e,r,i,n,a){Iv("update",t,e,r,i,n,a)}function at(t,e,r,i,n,a){Iv("enter",t,e,r,i,n,a)}function Qn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function po(t,e,r,i,n,a){Qn(t)||Iv("leave",t,e,r,i,n,a)}function Ux(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),po(t,{style:{opacity:0}},e,r,i)}function Ki(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||Ux(n,e,r,i)}):Ux(t,e,r,i)}function ho(t){dI(t).oldStyle=t.style}var Pv={},Kr=["x","y"],Zi=["width","height"],Rv=0,kv=1,Vs=2;function gI(t){return re.extend(t)}var yI=_x;function _I(t,e){return yI(t,e)}function wr(t,e){Pv[t]=e}function xI(t){if(Pv.hasOwnProperty(t))return Pv[t]}function vf(t,e,r,i){var n=yx(t,e);return r&&(i==="center"&&(r=Hx(r,n.getBoundingRect())),Gx(n,r)),n}function Bv(t,e,r){var i=new yt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(Hx(e,a))}}});return i}function Hx(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var SI=xx;function Gx(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function $n(t,e){return Gu(t,t,{lineWidth:e}),t}function bI(t,e){return Yu(t,t,e),t}var TI=Wi;function CI(t,e){for(var r=ii([]);t&&t!==e;)Ei(r,t.getLocalTransform(),r),t=t.parent;return r}function df(t,e,r){return e&&!Ke(e)&&(e=ja.getLocalTransform(e)),r&&(e=Lr([],e)),ut([],t,e)}function wI(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Pe(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Pe(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=df(a,e,r),Pe(a[0])>Pe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Fx(t){return!t.isGroup}function DI(t){return t.shape!=null}function zv(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){Fx(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return DI(o)&&(s.shape=J(o.shape)),s}var a=i(t);e.traverse(function(o){if(Fx(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ue(o,l,r,ce(o).dataIndex)}}})}function AI(t,e){return z(t,function(r){var i=r[0];i=ve(i,e.x),i=ze(i,e.x+e.width);var n=r[1];return n=ve(n,e.y),n=ze(n,e.y+e.height),[i,n]})}function EI(t,e){var r=ve(t.x,e.x),i=ze(t.x+t.width,e.x+e.width),n=ve(t.y,e.y),a=ze(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Hs(t,e,r){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),ie(n,r),new yt(i)):vf(t.replace("path://",""),i,r,"center")}function MI(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Yx(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Yx(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=Lv(f,c,l,u);if(OI(p))return!1;var h=t-n,v=e-a,d=Lv(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Lv(h,v,f,c)/p;return!(m<0||m>1)}function Lv(t,e,r,i){return t*i-r*e}function OI(t){return t<=1e-6&&t>=-1e-6}function vo(t,e,r,i,n){return e==null||(ae(e)?Ie[0]=Ie[1]=Ie[2]=Ie[3]=e:(Ie[0]=e[0],Ie[1]=e[1],Ie[2]=e[2],Ie[3]=e[3]),i&&(Ie[0]=ve(0,Ie[0]),Ie[1]=ve(0,Ie[1]),Ie[2]=ve(0,Ie[2]),Ie[3]=ve(0,Ie[3])),r&&(Ie[0]=-Ie[0],Ie[1]=-Ie[1],Ie[2]=-Ie[2],Ie[3]=-Ie[3]),Vx(t,Ie,"x","width",3,1,n&&n[0]||0),Vx(t,Ie,"y","height",0,2,n&&n[1]||0)),t}var Ie=[0,0,0,0];function Vx(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ve(0,ze(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Pe(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function mo(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=U(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&C(te(l),function(f){Oe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ce(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:ie({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Nv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Jn(t,e){if(t)if(B(t))for(var r=0;r<t.length;r++)Nv(t[r],e);else Nv(t,e)}function mf(t){return!t||Pe(t[1])<hf&&Pe(t[2])<hf||Pe(t[0])<hf&&Pe(t[3])<hf}var hf=1e-5;function go(t,e){return t?ne.copy(t,e):e.clone()}function gf(t,e){return e?es(t||wt(),e):void 0}function Uv(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function II(t){var e=-1/0,r=1/0;Nv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function Fv(t,e,r){Wx(t,e,r,-1/0)}function Wx(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ve(Wx(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ve(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function LI(t){return t.animation={duration:0},t}function PI(t,e){return e?es(Fs.transform,e):ii(Fs.transform),Fs.decomposeTransform(),Ni(t,Fs),t}var Fs=new ja;Fs.transform=wt();function NI(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}wr("circle",ks);wr("ellipse",Cv);wr("sector",Tr);wr("ring",Dv);wr("polygon",Ev);wr("polyline",Kn);wr("rect",_e);wr("line",Cr);wr("bezierCurve",Mv);wr("arc",Us);var yf={};function RI(t,e){for(var r=0;r<Et.length;r++){var i=Et[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Xx(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=q(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<Et.length;u++){var f=Et[u],c=e[f];l[f]=Y(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Zr(t,e,r,i){r=r||yf;for(var n=t instanceof De,a=!1,o=0;o<uo.length;o++){var s=e[uo[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new De,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Xx(r,e),f=e.normal,c=!!f.getShallow("show"),p=lr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(qx(f,r,!1));for(var o=0;o<Et.length;o++){var h=Et[o],s=e[h];if(s){var v=l.ensureState(h),d=!!Y(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=lr(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var m=t.ensureState(h);m.textConfig=qx(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(yo(l).setLabelText=function(g){var y=Xx(r,e,g);RI(l,y)})}else l&&(l.ignore=!0);t.dirty()}function jr(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<Et.length;i++){var n=Et[i];r[n]=t.getModel([n,e])}return r}function lr(t,e,r,i,n){var a={};return kI(a,t,r,i,n),e&&P(a,e),a}function qx(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=Y(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function kI(t,e,r,i,n){r=r||yf;var a=e.ecModel,o=a&&a.option.textStyle,s=BI(e),l;if(s){l={};var u="richInheritPlainLabel",f=Y(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);Qx(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var d=t,m=e.get("minMargin");if(m!=null)m=ae(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=ea.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=ka(g),d.__marginType=ea.textMargin)}Qx(t,e,o,null,null,r,i,n,!0,!1)}function BI(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||yf).rich;if(r){e=e||{};for(var i=te(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var Kx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],jx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Qx(t,e,r,i,n,a,o,s,l,u){r=!o&&r||yf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=Y(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=Y(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=Y(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var m=Y(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<Kx.length;g++){var y=Kx[g],_=n!==!1&&i?Wt(e.getShallow(y),i.getShallow(y),r[y]):Y(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<Zx.length;g++){var y=Zx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<jx.length;g++){var y=jx[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function $x(t,e){var r=e&&e.getModel("textStyle");return lt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var yo=ee();function Jx(t,e,r,i){if(t){var n=yo(t);n.prevValue=n.value,n.value=r;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var ea={minMargin:1,textMargin:2};var zI=["textStyle","color"],Vv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Hv=new De,UI=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(zI):null)},t.prototype.getFont=function(){return $x({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Vv.length;i++)r[Vv[i]]=this.getShallow(Vv[i]);return Hv.useStyle(r),Hv.update(),Hv.getBoundingRect()},t})(),eS=UI;var Gv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],FI=Ur(Gv),tS=(function(){function t(){}return t.prototype.getLineStyle=function(e){return FI(this,e)},t})();var Yv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],VI=Ur(Yv),rS=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return VI(this,e,r)},t})();var ta=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){ge(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(J(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!se.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();no(ta);i0(ta);Tt(ta,tS);Tt(ta,rS);Tt(ta,n0);Tt(ta,eS);var Ae=ta;var HI=Math.round(Math.random()*10);function ji(t){return[t||"",HI++].join("_")}function iS(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Bt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Bt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function nS(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(C(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),C(v.successor,d?g:m)}C(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return C(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),C(c,function(p){fe(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);fe(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return C(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function _f(t,e){return ge(ge({},t,!0),e,!0)}var aS={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:". "}}}};var oS={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Sf="ZH",Xv="EN",_o=Xv,xf={},qv={},bf=se.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_o).toUpperCase();return t.indexOf(Sf)>-1?Sf:_o})():_o;function sS(t,e){t=t.toUpperCase(),qv[t]=new Ae(e),xf[t]=e}function lS(t){if(U(t)){var e=xf[t.toUpperCase()]||{};return t===Sf||t===Xv?J(e):ge(J(e),J(xf[_o]),!1)}else return ge(J(t),J(xf[_o]),!1)}function uS(t){return qv[t]}function fS(){return qv[_o]}sS(Xv,aS);sS(Sf,oS);var GI=null;function Fe(){return GI}function Tf(t,e){var r=Fe(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function ra(t){var e=t.brk;return e?e.breaks:[]}function ia(t){var e=t.brk;return e?e.hasBreaks():!1}var Df=1e3,Af=Df*60,xo=Af*60,Qt=xo*24,Kv=Qt*365,YI={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})/},wf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},WI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Cf="{yyyy}-{MM}-{dd}",Zv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cf,hour:Cf+" "+wf.hour,minute:Cf+" "+wf.minute,second:Cf+" "+wf.second,millisecond:WI},Ft=["year","month","day","hour","minute","second","millisecond"],cS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pS(t){return!U(t)&&!q(t)?XI(t):t}function XI(t){t=t||{};var e={},r=!0;return C(Ft,function(i){r&&(r=t[i]==null)}),C(Ft,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Ft[s],u=G(a)&&!B(a)?a[l]:a,f=void 0;B(u)?(f=u.slice(),o=f[0]||""):U(u)?(o=u,f=[o]):(o==null?o=wf[i]:YI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function hi(t,e){return t+="","0000".substr(0,e-t.length)+t}function So(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function hS(t){return t===So(t)}function vS(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function na(t,e,r,i){var n=Br(t),a=n[jv(r)](),o=n[Mf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Of(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[If(r)](),c=(f-1)%12+1,p=n[Lf(r)](),h=n[Pf(r)](),v=n[Nf(r)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Ae?i:uS(i||bf)||fS(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,hi(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,hi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,hi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,hi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,hi(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,hi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,hi(v,3)).replace(/{S}/g,v+"")}function dS(t,e,r,i,n){var a=null;if(U(r))a=r;else if(q(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Fe();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=aa(t.value,n);a=r[f][f][0]}}return na(new Date(t.value),a,n,i)}function aa(t,e){var r=Br(t),i=r[Mf(e)]()+1,n=r[Of(e)](),a=r[If(e)](),o=r[Lf(e)](),s=r[Pf(e)](),l=r[Nf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ef(t,e,r){switch(e){case"year":t[Qv(r)](0);case"month":t[$v(r)](1);case"day":t[Jv(r)](0);case"hour":t[ed(r)](0);case"minute":t[td(r)](0);case"second":t[rd(r)](0)}return t}function jv(t){return t?"getUTCFullYear":"getFullYear"}function Mf(t){return t?"getUTCMonth":"getMonth"}function Of(t){return t?"getUTCDate":"getDate"}function If(t){return t?"getUTCHours":"getHours"}function Lf(t){return t?"getUTCMinutes":"getMinutes"}function Pf(t){return t?"getUTCSeconds":"getSeconds"}function Nf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function mS(t){return t?"setUTCFullYear":"setFullYear"}function Qv(t){return t?"setUTCMonth":"setMonth"}function $v(t){return t?"setUTCDate":"setDate"}function Jv(t){return t?"setUTCHours":"setHours"}function ed(t){return t?"setUTCMinutes":"setMinutes"}function td(t){return t?"setUTCSeconds":"setSeconds"}function rd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function nd(t){if(!Ih(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Rf(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Qi=ka;function kf(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&lt(f)?f:"-"}function a(f){return Ze(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Br(t):t;if(isNaN(+l)){if(s)return"-"}else return na(l,i,r)}if(e==="ordinal")return $o(t)?n(t):ae(t)&&a(t)?t+"":"-";var u=zr(t);return a(u)?nd(u):$o(t)?n(t):typeof t=="boolean"?t+"":"-"}var gS=["a","b","c","d","e","f","g"],id=function(t,e){return"{"+t+(e??"")+"}"};function Bf(t,e,r){B(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=gS[a];t=t.replace(id(o),id(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(id(gS[l],s),r?Je(u):u)}return t}function yS(t,e){var r=U(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Je(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Je(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Dr(t,e){return e=e||"transparent",U(t)?t:G(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function ad(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var zf={},sd={},qI=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(zf,!0),this._normalMasterList=i(sd,!1);function i(n,a){var o=[];return C(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){C(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){zf[e]=r;return}sd[e]=r},t.get=function(e){return sd[e]||zf[e]},t})();function KI(t){return!!zf[t]}var ZI=1,ld=2;function _S(t){xS.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var xS=X();function Ff(t){var e=t.getShallow("coord",!0),r=ZI;if(e==null){var i=xS.get(t.type);i&&i.getCoord2&&(r=ld,e=i.getCoord2(t))}return{coord:e,from:r}}var bo=0,Uf=1,jI=2;function QI(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=bo;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Uf,o||(a=bo)):i==="box"&&(a=jI,!o&&!KI(r)&&(a=bo))}return{coordSysType:r,kind:a}}function SS(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=QI(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Uf&&(s=Uf,l=r),s===bo||l!==r)return bo;var u=i(r,e);return u?(s===Uf?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):bo}var Gs=qI;var Hf=C,$I=["left","right","top","bottom","width","height"],Vf=[["width","left","right"],["height","top","bottom"]];function ud(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var oa=ud,YG=Te(ud,"vertical"),WG=Te(ud,"horizontal");function bS(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function JI(t,e){var r=sa(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),n,a;if(r.type===Ys.point)a=r.refPoint,n=ur(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=B(o)?o:[o,o];n=ur(i,r.refContainer),a=r.boxCoordFrom===ld?r.refPoint:[we(s[0],n.width)+n.x,we(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function TS(t,e){var r=JI(t,e),i=r.viewRect,n=r.center,a=t.get("radius");B(a)||(a=[0,a]);var o=we(i.width,e.getWidth()),s=we(i.height,e.getHeight()),l=Math.min(o,s),u=we(a[0],l/2),f=we(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function ur(t,e,r){r=Qi(r||0);var i=e.width,n=e.height,a=we(t.left,i),o=we(t.top,n),s=we(t.right,i),l=we(t.bottom,n),u=we(t.width,i),f=we(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var Ys={rect:1,point:2};function sa(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=Ff(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Ys.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ys.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Ys.rect),a===Ys.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function $i(t){var e=t.layoutMode||t.constructor.layoutMode;return G(e)?e:e?{type:e}:null}function $t(t,e,r){var i=r&&r.ignoreSize;!B(i)&&(i=[i,i]);var n=o(Vf[0],0),a=o(Vf[1],1);l(Vf[0],t,n),l(Vf[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(Hf(u,function(y){h[y]=t[y]}),Hf(u,function(y){Oe(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Oe(c,g)&&Oe(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Hf(u,function(p){f[p]=c[p]})}}function Qr(t){return eL({},t)}function eL(t,e){return e&&t&&Hf($I,function(r){Oe(e,r)&&(t[r]=e[r])}),t}var tL=ee(),To=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=ji("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=$i(this),a=n?Qr(r):{},o=i.getTheme();ge(r,o.get(this.mainType)),ge(r,this.getDefaultOption()),n&&$t(r,a,n)},e.prototype.mergeOption=function(r,i){ge(this.option,r,!0);var n=$i(this);n&&$t(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!r0(r))return r.defaultOption;var i=tL(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ge(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return zi(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return bS(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ae);zu(To,Ae);Vi(To);iS(To);nS(To,rL);function rL(t){var e=[];return C(To.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=z(e,function(r){return Bt(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var be=To;var la={color:{},darkColor:{},size:{}},Ye=la.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)"};P(Ye,{primary:Ye.neutral80,secondary:Ye.neutral70,tertiary:Ye.neutral60,quaternary:Ye.neutral50,disabled:Ye.neutral20,border:Ye.neutral30,borderTint:Ye.neutral20,borderShade:Ye.neutral40,background:Ye.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ye.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ye.neutral70,axisLineTint:Ye.neutral40,axisTick:Ye.neutral70,axisTickMinor:Ye.neutral60,axisLabel:Ye.neutral70,axisSplitLine:Ye.neutral15,axisMinorSplitLine:Ye.neutral05});for(Ji in Ye)Ye.hasOwnProperty(Ji)&&(cd=Ye[Ji],Ji==="theme"?la.darkColor.theme=Ye.theme.slice():Ji==="highlight"?la.darkColor.highlight="rgba(255,231,130,0.4)":Ji.indexOf("accent")===0?la.darkColor[Ji]=ss(cd,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):la.darkColor[Ji]=ss(cd,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var cd,Ji;la.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Q=la;var CS="";typeof navigator<"u"&&(CS=navigator.platform||"");var Co="rgba(0, 0, 0, 0.2)",wS=Q.color.theme[0],iL=ss(wS,null,null,.9),Gf={darkMode:"auto",colorBy:"series",color:Q.color.theme,gradientColor:[iL,wS],aria:{decal:{decals:[{color:Co,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Co,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Co,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Co,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Co,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Co,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:CS.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 rt={Must:1,Might:2,Not:3},DS=ee();function AS(t){DS(t).datasetMap=X()}function ES(t,e,r){var i={},n=Yf(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=DS(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),C(t,function(d,m){var g=G(d)?d:t[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});C(t,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function MS(t,e,r){var i={},n=Yf(t);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===_t||a===zt)&&C(o,function(f,c){(G(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,v=Math.min(5,r);h<v;h++){var d=IS(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===rt.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===rt.Not)&&(f.n=h),g(f)&&p[f.n]!==rt.Not)return f;m||(d===rt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Yf(t){var e=t.get("data",!0);if(!e)return zi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ft).models[0]}function OS(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:zi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ft).models}function Wf(t,e){return IS(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function IS(t,e,r,i,n,a){var o,s=5;if(Ge(t))return rt.Not;var l,u;if(i){var f=i[a];G(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?rt.Must:rt.Not;if(e===je){var c=t;if(r===Xr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===_t){var d=t;if(!l)return rt.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===zt){var g=t;if(!l)return rt.Not;var p=g[l];if(!p||Ge(p))return rt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===tt)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=si(m);if(!B(_))return rt.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=U(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?rt.Might:rt.Not;if(b&&S!=="-")return rt.Must}return rt.Not}var nL=X();function LS(t,e,r){var i=nL.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var PS=ee(),aL=ee(),Ws=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Ne(this.get("color",!0)),a=this.get("colorLayer",!0);return NS(this,PS,n,a,e,r,i)},t.prototype.clearColorPalette=function(){sL(this,PS)},t})();function pd(t,e,r,i){var n=Ne(t.get(["aria","decal","decals"]));return NS(t,aL,n,null,e,r,i)}function oL(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function NS(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:oL(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function sL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Xf,Xs,RS,kS="\0_ec_inner",lL=1;var FS=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Ae(a),this._locale=new Ae(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=US(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,US(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?RS(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=X(),u=i&&i.replaceMergeMainTypeMap;AS(this),C(r,function(c,p){c!=null&&(be.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?J(c):ge(n[p],c,!0))}),u&&u.each(function(c,p){be.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),be.topologicalTravel(s,be.getAllClassMainTypes(),f,this);function f(c){var p=LS(this,c,Ne(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=G_(h,p,v);W_(d,c,be),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;C(d,function(S,b){var T=S.existing,D=S.newOption;if(!D)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var w=c==="series",A=be.getClass(c,S.keyInfo.subType,!w);if(!A){if(0)var E,O;return}if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===A)T.name=S.keyInfo.name,T.mergeOption(D,this),T.optionUpdated(D,!1);else{var M=P({componentIndex:b},S.keyInfo);T=new A(D,this,this,M),P(T,M),S.brandNew&&(T.__requireNewView=!0),T.init(D,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Xf(this)}this._seriesIndices||Xf(this)},e.prototype.getOption=function(){var r=J(this.option);return C(r,function(i,n){if(be.hasClass(n)){for(var a=Ne(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!to(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[kS],r},e.prototype.setTheme=function(r){this._theme=new Ae(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],C(Ne(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=BS("id",a,s):o!=null?l=BS("name",o,s):l=Me(s,function(u){return!!u}),zS(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Me(this._componentsMap.get(n),function(u){return!!u});return l(zS(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Me(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(q(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=U(r)?a.get(r):G(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Kt(r,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Me(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Xs(this),C(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){C(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Xs(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return C(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Xs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Xs(this);var n=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=X(n)},e.prototype.restoreData=function(r){Xf(this);var i=this._componentsMap,n=[];i.each(function(a,o){be.hasClass(o)&&n.push(o)}),be.topologicalTravel(n,be.getAllClassMainTypes(),function(a){C(i.get(a),function(o){o&&(a!=="series"||!uL(o,r))&&o.restoreData()})})},e.internalField=(function(){Xf=function(r){var i=r._seriesIndices=[];C(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=X(i)},Xs=function(r){},RS=function(r,i){r.option={},r.option[kS]=lL,r._componentsMap=X({series:[]}),r._componentsCount=X();var n=i.aria;G(n)&&n.enabled==null&&(n.enabled=!0),fL(i,r._theme.option),ge(i,Gf,!1),r._mergeOption(i,null)}})(),e})(Ae);function uL(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function fL(t,e){var r=t.color&&!t.colorLayer;C(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||be.hasClass(n)||(typeof i=="object"?t[n]=t[n]?ge(t[n],i,!1):J(i):t[n]==null&&(t[n]=i))})}function BS(t,e,r){if(B(e)){var i=X();return C(e,function(a){if(a!=null){var o=Kt(a,null);o!=null&&i.set(a,!0)}}),Me(r,function(a){return a&&i.get(a[t])})}else{var n=Kt(e,null);return Me(r,function(a){return a&&n!=null&&a[t]===n})}}function zS(t,e){return e.hasOwnProperty("subType")?Me(t,function(r){return r&&r.subType===e.subType}):t}function US(t){var e=X();return t&&C(Ne(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Tt(FS,Ws);var qf=FS;var cL=/^(min|max)?(.+)$/,pL=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(C(Ne(e.series),function(o){o&&o.data&&Ge(o.data)&&Ba(o.data)}),C(Ne(e.dataset),function(o){o&&o.source&&Ge(o.source)&&Ba(o.source)})),e=J(e);var n=this._optionBackup,a=hL(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],J(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=J(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)vL(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mL(o,this._currentMediaIndices)&&(s=z(o,function(f){return J(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function hL(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&B(u)&&C(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),C(l,function(h){return p(h)}),C(i,function(h){return p(h.option)});function p(h){C(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function vL(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return C(t,function(a,o){var s=o.match(cL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();dL(i[u],a,l)||(n=!1)}}),n}function dL(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mL(t,e){return t.join(",")===e.join(",")}var VS=pL;var Ar=C,Ks=G,HS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hd(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=HS.length;r<i;r++){var n=HS[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?ge(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?ge(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function St(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,ie(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function qs(t){St(t,"itemStyle"),St(t,"lineStyle"),St(t,"areaStyle"),St(t,"label"),St(t,"labelLine"),St(t,"upperLabel"),St(t,"edgeLabel")}function qe(t,e){var r=Ks(t)&&t[e],i=Ks(r)&&r.textStyle;if(i)for(var n=0,a=Nh.length;n<a;n++){var o=Nh[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function fr(t){t&&(qs(t),qe(t,"label"),t.emphasis&&qe(t.emphasis,"label"))}function gL(t){if(Ks(t)){hd(t),qs(t),qe(t,"label"),qe(t,"upperLabel"),qe(t,"edgeLabel"),t.emphasis&&(qe(t.emphasis,"label"),qe(t.emphasis,"upperLabel"),qe(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(hd(e),fr(e));var r=t.markLine;r&&(hd(r),fr(r));var i=t.markArea;i&&fr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Ge(a))for(var o=0;o<a.length;o++)fr(a[o]);C(t.categories,function(u){qs(u)})}if(n&&!Ge(n))for(var o=0;o<n.length;o++)fr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)fr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)B(l[o])?(fr(l[o][0]),fr(l[o][1])):fr(l[o]);t.type==="gauge"?(qe(t,"axisLabel"),qe(t,"title"),qe(t,"detail")):t.type==="treemap"?(St(t.breadcrumb,"itemStyle"),C(t.levels,function(u){qs(u)})):t.type==="tree"&&qs(t.leaves)}}function vi(t){return B(t)?t:t?[t]:[]}function GS(t){return(B(t)?t[0]:t)||{}}function vd(t,e){Ar(vi(t.series),function(i){Ks(i)&&gL(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ar(r,function(i){Ar(vi(t[i]),function(n){n&&(qe(n,"axisLabel"),qe(n.axisPointer,"label"))})}),Ar(vi(t.parallel),function(i){var n=i&&i.parallelAxisDefault;qe(n,"axisLabel"),qe(n&&n.axisPointer,"label")}),Ar(vi(t.calendar),function(i){St(i,"itemStyle"),qe(i,"dayLabel"),qe(i,"monthLabel"),qe(i,"yearLabel")}),Ar(vi(t.radar),function(i){qe(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Ar(vi(t.geo),function(i){Ks(i)&&(fr(i),Ar(vi(i.regions),function(n){fr(n)}))}),Ar(vi(t.timeline),function(i){fr(i),St(i,"label"),St(i,"itemStyle"),St(i,"controlStyle",!0);var n=i.data;B(n)&&C(n,function(a){G(a)&&(St(a,"label"),St(a,"itemStyle"))})}),Ar(vi(t.toolbox),function(i){St(i,"iconStyle"),Ar(i.feature,function(n){St(n,"iconStyle")})}),qe(GS(t.axisPointer),"label"),qe(GS(t.tooltip).axisPointer,"label")}function yL(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function _L(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function YS(t){t&&C(xL,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var xL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],dd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Zs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<dd.length;r++){var i=dd[r][1],n=dd[r][0];e[i]!=null&&(e[n]=e[i])}}function WS(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function XS(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function bL(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function qS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&qS(t[r].children,e)}function Kf(t,e){vd(t,e),t.series=Ne(t.series),C(t.series,function(r){if(G(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),WS(r.label);var n=r.data;if(n&&!Ge(n))for(var a=0;a<n.length;a++)WS(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=yL(r,"pointer.color");o!=null&&_L(r,"itemStyle.color",o)}else if(i==="bar"){Zs(r),Zs(r.backgroundStyle),Zs(r.emphasis);var n=r.data;if(n&&!Ge(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Zs(n[a]),Zs(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),XS(r),qS(r.data,XS)}else i==="graph"||i==="sankey"?bL(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ie(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),YS(r)}}),t.dataRange&&(t.visualMap=t.dataRange),C(SL,function(r){var i=t[r];i&&(B(i)||(i=[i]),C(i,function(n){YS(n)}))})}var KS=Ui(TL);function TL(t){var e=X();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),C(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),CL(r)}})}function CL(t){C(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=k_(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Zf=(function(){function t(e){this.data=e.data||(e.sourceFormat===zt?{}:[]),this.sourceFormat=e.sourceFormat||lv,this.seriesLayoutBy=e.seriesLayoutBy||jt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&Wf(this,i)===rt.Must&&(n.type="ordinal")}}return t})();function wo(t){return t instanceof Zf}function js(t,e,r){r=r||md(t);var i=e.seriesLayoutBy,n=wL(t,r,i,e.sourceHeader,e.dimensions),a=new Zf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:J(e)});return a}function Do(t){return new Zf({data:t,sourceFormat:Ge(t)?Zt:tt})}function QS(t){return new Zf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:J(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function md(t){var e=lv;if(Ge(t))e=Zt;else if(B(t)){t.length===0&&(e=je);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(B(n)||Ge(n)){e=je;break}else if(G(n)){e=_t;break}}}}else if(G(t)){for(var a in t)if(Oe(t,a)&&Ke(t[a])){e=zt;break}}return e}function wL(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:ZS(n),startIndex:o,dimensionsDetectedCount:a};if(e===je){var s=t;i==="auto"||i==null?jS(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},r,s,10):o=ae(i)?i:i?1:0,!n&&o===1&&(n=[],jS(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===Xr?s.length:s[0]?s[0].length:null}else if(e===_t)n||(n=DL(t));else if(e===zt)n||(n=[],C(t,function(u,f){n.push(f)}));else if(e===tt){var l=si(t[0]);a=B(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ZS(n),dimensionsDetectedCount:a}}function DL(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return te(r)}function ZS(t){if(t){var e=X();return z(t,function(r,i){r=G(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function jS(t,e,r,i){if(e===Xr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function jf(t){var e=t.sourceFormat;return e===_t||e===zt}var ua,fa,ca,pa,$S,JS,$f=(function(){function t(e,r){var i=wo(e)?e:Do(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Zt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;JS(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;JS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=$S[Sd(u,f)];if(P(o,h),u===Zt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=yd(u,f);o.getItem=he(v,null,s,c,p);var d=_d(u,f);o.count=he(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};$S=(e={},e[je+"_"+jt]={pure:!0,appendData:a},e[je+"_"+Xr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[_t]={pure:!0,appendData:a},e[zt]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[tt]={appendData:a},e[Zt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Qf=function(t){B(t)||Ph("series.data or dataset.source must be an array.")},q5=(ua={},ua[je+"_"+jt]=Qf,ua[je+"_"+Xr]=Qf,ua[_t]=Qf,ua[zt]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Ph("dimension name must not be null/undefined.")}},ua[tt]=Qf,ua),eb=function(t,e,r,i){return t[i]},AL=(fa={},fa[je+"_"+jt]=function(t,e,r,i){return t[i+e]},fa[je+"_"+Xr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},fa[_t]=eb,fa[zt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},fa[tt]=eb,fa);function yd(t,e){var r=AL[Sd(t,e)];return r}var tb=function(t,e,r){return t.length},EL=(ca={},ca[je+"_"+jt]=function(t,e,r){return Math.max(0,t.length-e)},ca[je+"_"+Xr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},ca[_t]=tb,ca[zt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},ca[tt]=tb,ca);function _d(t,e){var r=EL[Sd(t,e)];return r}var gd=function(t,e,r){return t[e]},ML=(pa={},pa[je]=gd,pa[_t]=function(t,e,r){return t[r]},pa[zt]=gd,pa[tt]=function(t,e,r){var i=si(t);return i instanceof Array?i[e]:i},pa[Zt]=gd,pa);function xd(t){var e=ML[t];return e}function Sd(t,e){return t===je?t+"_"+e:t}function di(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return xd(a)(i,o,s)}else{var l=i;return a===tt&&(l=si(i)),l}}}}var OL=/\{@(.+?)\}/g,rb=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&B(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(q(a))return l.status=r,l.dimensionIndex=n,a(l);if(U(a)){var f=Bf(a,l);return f.replace(OL,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=di(s,e,v);if(o&&B(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return di(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function bd(t){var e,r;return G(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function en(t){return new IL(t)}var IL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=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)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(B(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){ib.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:ib.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),B(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var ib=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Ao(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ae(t)&&t!=null&&t!=="-"&&(t=+Br(t)),t==null||t===""?NaN:Number(t))}var n3=X({number:function(t){return parseFloat(t)},time:function(t){return+Br(t)},trim:function(t){return U(t)?lt(t):t}});var LL={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},a3=(function(){function t(e,r){if(!ae(r)){var i="";it(i)}this._opFn=LL[e],this._rvalFloat=zr(r)}return t.prototype.evaluate=function(e){return ae(e)?this._opFn(e,this._rvalFloat):this._opFn(zr(e),this._rvalFloat)},t})(),nb=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=ae(e)?e:zr(e),n=ae(r)?r:zr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(e),l=U(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var o3=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=zr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=zr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Jf(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function ec(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var PL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ao(e,r)},t})();function NL(t,e){var r=new PL,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==jt&&it(o);var s=[],l={},u=t.dimensionsDefine;if(u)C(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Oe(l,g)&&it(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=yd(n,jt);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=he(RL,null,t)),r.cloneRawData=he(kL,null,t);var p=_d(n,jt);r.count=he(p,null,i,a,s);var h=xd(n);r.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=r.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return r.getDimensionInfo=he(BL,null,s,l),r.cloneAllDimensionInfo=he(zL,null,s),r}function RL(t){var e=t.sourceFormat;if(!Td(e)){var r="";it(r)}return t.data}function kL(t){var e=t.sourceFormat,r=t.data;if(!Td(e)){var i="";it(i)}if(e===je){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===_t){for(var n=[],a=0,o=r.length;a<o;a++)n.push(P({},r[a]));return n}}function BL(t,e,r){if(r!=null){if(ae(r)||!isNaN(r)&&!Oe(e,r))return t[r];if(Oe(e,r))return e[r]}}function zL(t){return J(t)}var ab=X();function ob(t){t=J(t);var e=t.type,r="";e||it(r);var i=e.split(":");i.length!==2&&it(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,ab.set(e,t)}function sb(t,e,r){var i=Ne(t),n=i.length,a="";n||it(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=UL(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function UL(t,e,r,i){var n="";e.length||it(n),G(t)||it(n);var a=t.type,o=ab.get(a);o||it(n);var s=z(e,function(f){return NL(f,o)}),l=Ne(o.transform({upstream:s[0],upstreamList:s,config:J(t.config)}));if(0&&t.print)var u;return z(l,function(f,c){var p="";G(f)||it(p),f.data||it(p);var h=md(f.data);Td(h)||it(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:jt,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:jt,sourceHeader:0,dimensions:f.dimensions};return js(f.data,v,null)})}function Td(t){return t===je||t===_t}var FL=typeof Uint32Array===Xi?Array:Uint32Array,VL=typeof Uint16Array===Xi?Array:Uint16Array,wd=typeof Int32Array===Xi?Array:Int32Array,lb=typeof Float64Array===Xi?Array:Float64Array,fb={float:lb,int:wd,ordinal:Array,number:Array,time:lb},Cd;function Eo(t){return t>65535?FL:VL}function HL(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ub(t,e,r,i,n){var a=fb[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var GL=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Cd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=jf(n);this._dimensions=z(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new fb[r||"float"](this._rawCount),this._rawExtent[a]=ct(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=ct());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];ub(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=Cd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ct()),ub(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),eo(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=Eo(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Eo(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=te(e),a=n.length;if(!a)return this;var o=r.count(),s=Eo(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=h[n[0]][T];(y>=c&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var D=!0,T=r.getRawIndex(g),w=0;w<a;w++){var A=n[w],y=h[A][T];(y<e[A][0]||y>e[A][1])&&(D=!1)}D&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=ct();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(Eo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var b=v,T=Math.min(v+l,o),D=v-1,w=a[u];f=-1,p=b;for(var A=-1,E=0,_=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){E++,A<0&&(A=x);continue}c=Math.abs((D-g)*(S-w)-(D-_)*(y-w)),c>f&&(f=c,p=x)}E>0&&E<T-b&&(h[s++]=Math.min(A,p),p=Math.max(A,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(Eo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=ct(),p=new(Eo(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=ct();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Jf(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!r||ec(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&Yt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?HL(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=J(this._extent),e._rawExtent=J(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return Ao(r[a],this._dimensions[a])}Cd={arrayRows:e,objectRows:function(r,i,n,a){return Ao(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Ao(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),Qs=GL;var pb=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(tc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ge(s)?Zt:tt,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=Y(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=Y(c.sourceHeader,p.sourceHeader),d=Y(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[js(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[js(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&cb(a)}var o,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&cb(c),s.push(f),l.push(u._getVersionSign())}),i?o=sb(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[QS(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];tc(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Qs,s.initData(new $f(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(tc(e)){var r=Yf(e);return r?[r.getSourceManager()]:[]}else return z(OS(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(tc(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function tc(t){return t.mainType==="series"}function cb(t){throw new Error(t)}var YL="line-height:1";function hb(t){var e=t.lineHeight;return e==null?YL:"line-height:"+Je(e+"")+"px"}function vb(t,e){var r=t.color||Q.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||Q.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Je(i+"")+"px;color:"+Je(r)+";font-weight:"+Je(n+""),valueStyle:"font-size:"+Je(o+"")+"px;color:"+Je(a)+";font-weight:"+Je(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var WL=[0,10,20,30],XL=["",`
30
+ `,`
31
+
32
+ `,`
33
+
34
+
35
+ `];function ha(t,e){return e.type=t,e}function Dd(t){return t.type==="section"}function db(t){return Dd(t)?qL:KL}function mb(t){if(Dd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return C(t.blocks,function(n){var a=mb(n);a>=e&&(e=a+ +(i&&(!a||Dd(n)&&!n.noHeader)))}),e}return 0}function qL(t,e,r,i){var n=e.noHeader,a=ZL(mb(e)),o=[],s=e.blocks||[];Be(!s||B(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oe(u,l)){var f=new nb(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(d,m){var g=e.valueFormatter,y=db(d)(g?P(P({},t),{valueFormatter:g}):t,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Ad(i,o.join(""),n?r:a.html);if(n)return c;var p=kf(e.header,"ordinal",t.useUTC),h=vb(i,t.renderMode).nameStyle,v=hb(i);return t.renderMode==="richText"?gb(t,p,h)+a.richText+c:Ad(i,'<div style="'+h+";"+v+';">'+Je(p)+"</div>"+c,r)}function KL(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=B(x)?x:[x],z(x,function(S,b){return kf(S,B(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Q.color.secondary,n),p=a?"":kf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=vb(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":gb(t,p,y))+(o?"":$L(t,v,d,m,_)):Ad(i,(s?"":c)+(a?"":jL(p,!s,y))+(o?"":QL(v,d,m,_)),r)}}function Ed(t,e,r,i,n,a){if(t){var o=db(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function ZL(t){return{html:WL[t],richText:XL[t]}}function Ad(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=hb(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function jL(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Je(t)+"</span>"}function QL(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=B(t)?t:[t],'<span style="'+a+";"+i+'">'+z(t,function(o){return Je(o)}).join("&nbsp;&nbsp;")+"</span>"}function gb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function $L(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(B(e)?e.join(" "):e,a)}function yb(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Dr(i)}function rc(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var ic=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=xs()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=yS({color:r,type:e,renderMode:i,markerId:n});return U(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};B(r)?C(r,function(a){return P(i,a)}):P(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function _b(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=B(s),u=yb(e,r),f,c,p,h;if(o>1||l&&!o){var v=JL(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=di(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var m=ro(e),g=m&&e.name||"",y=n.getName(r),_=i?g:y;return ha("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[ha("nameValue",{markerType:"item",markerColor:u,name:_,noName:!lt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function JL(t,e,r,i,n){var a=e.getData(),o=Yt(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(c){f(di(a,r,c),c)}):C(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(ha("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var tn=ee();function nc(t,e){return t.getName(e)||t.getId(e)}var eP="__universalTransitionEnabled",ac=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=en({count:rP,reset:iP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=tn(this).sourceManager=new pb(this);a.prepareSource();var o=this.getInitialData(r,n);Sb(o,this),this.dataTask.context.data=o,tn(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=$i(this),a=n?Qr(r):{},o=this.subType;be.hasClass(o)&&(o+="Series"),ge(r,i.getTheme().get(this.subType)),ge(r,this.getDefaultOption()),bs(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&$t(r,a,n)},e.prototype.mergeOption=function(r,i){r=ge(this.option,r,!0),this.fillDataTextStyle(r.data);var n=$i(this);n&&$t(this.option,r,n);var a=tn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Sb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,tn(this).dataBeforeProcessed=o,xb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ge(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&bs(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Md(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return tn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Md(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}tn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return X(r)},e.prototype.getSourceManager=function(){return tn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return tn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return _b({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(se.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Ws.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=nc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=te(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[nc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[eP])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){G(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=nc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=nc(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return be.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(be);Tt(ac,rb);Tt(ac,Ws);zu(ac,be);function xb(t){var e=t.name;ro(t)||(t.name=tP(t)||e)}function tP(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return C(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function rP(t){return t.model.getRawData().count()}function iP(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),nP}function nP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Sb(t,e){C(uy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Te(aP,e))})}function aP(t,e){var r=Md(t);return r&&r.setOutputEnd((e||this).count()),e}function Md(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Mt=ac;var Od=(function(){function t(){this.group=new Se,this.uid=ji("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();no(Od);Vi(Od);var ht=Od;function va(){var t=ee();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Cb=ee(),oP=va(),Id=(function(){function t(){this.group=new Se,this.uid=ji("viewChart"),this.renderTask=en({plan:sP,reset:lP}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Tb(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&Tb(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Jn(this.group,e)},t.markUpdateMethod=function(e,r){Cb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function bb(t,e,r){t&&Ns(t)&&(e==="emphasis"?Yn:Wn)(t,r)}function Tb(t,e,r){var i=nr(t,e),n=e&&e.highlightKey!=null?ux(e.highlightKey):null;i!=null?C(Ne(i),function(a){bb(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){bb(a,r,n)})}no(Id,["dispose"]);Vi(Id);function sP(t){return oP(t.model)}function lP(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&Cb(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),uP[l]}var uP={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},vt=Id;var oc="\0__throttleOriginMethod",wb="\0__throttleRate",Db="\0__throttleType";function $s(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||r;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function sc(t,e,r,i){var n=t[e];if(n){var a=n[oc]||n,o=n[Db],s=n[wb];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=$s(a,r,i==="debounce"),n[oc]=a,n[Db]=i,n[wb]=r}return n}}function Js(t,e){var r=t[e];r&&r[oc]&&(r.clear&&r.clear(),t[e]=r[oc])}var Ab=ee(),Eb={itemStyle:Ur(Yv,!0),lineStyle:Ur(Gv,!0)},cP={lineStyle:"stroke",itemStyle:"fill"};function Mb(t,e){var r=t.visualStyleMapper||Eb[e];return r||(console.warn("Unknown style type '"+e+"'."),Eb.itemStyle)}function Ob(t,e){var r=t.visualDrawType||cP[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ib={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=Mb(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Ob(t,i),u=o[l],f=q(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=t.getDataParams(v),m=P({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},el=new Ae,Lb={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=Mb(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){el.option=l[i];var u=n(el),f=o.ensureUniqueItemVisual(s,"style");P(f,u),el.option.decal&&(o.setItemVisual(s,"decal",el.option.decal),el.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Pb={performRawSeries:!0,overallReset:function(t){var e=X();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();Ab(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=Ab(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Ob(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var lc=Math.PI;function Ld(t,e){e=e||{},ie(e,{text:"loading",textColor:Q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Se,i=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new De({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _e({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Us({shape:{startAngle:-lc/2,endAngle:-lc/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:lc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:lc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.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=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var pP=(function(){function t(e,r,i,n){this._stageTaskMap=X(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Bu(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=X();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;C(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";Be(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||en({plan:gP,reset:yP,count:xP}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||en({reset:hP});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=X(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Be(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):C(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,en({reset:vP,onDirty:mP})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return q(e)&&(e={overallReset:e,seriesType:SP(e)}),e.uid=ji("stageHandler"),r&&(e.visualType=r),e},t})();function hP(t){t.overallReset(t.ecModel,t.api,t.payload)}function vP(t){return t.dirtyOnOverallProgress&&dP}function dP(){this.agent.dirty(),this.getDownstream().dirty()}function mP(){this.agent&&this.agent.dirty()}function gP(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function yP(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ne(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?z(e,function(r,i){return Nb(i)}):_P}var _P=Nb(0);function Nb(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function xP(t){return t.data.count()}function SP(t){uc=null;try{t(tl,Rb)}catch{}return uc}var tl={},Rb={},uc;kb(tl,qf);kb(Rb,qu);tl.eachSeriesByType=tl.eachRawSeriesByType=function(t){uc=t};tl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(uc=t.subType)};function kb(t,e){for(var r in e.prototype)t[r]=Le}var Pd=pP;var K=Q.darkColor,Bb=K.background,rl=function(){return{axisLine:{lineStyle:{color:K.axisLine}},splitLine:{lineStyle:{color:K.axisSplitLine}},splitArea:{areaStyle:{color:[K.backgroundTint,K.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:K.axisMinorSplitLine}},axisLabel:{color:K.axisLabel},axisName:{}}},zb={label:{color:K.secondary},itemStyle:{borderColor:K.borderTint},dividerLineStyle:{color:K.border}},Ub={darkMode:!0,color:K.theme,backgroundColor:Bb,axisPointer:{lineStyle:{color:K.border},crossStyle:{color:K.borderShade},label:{color:K.tertiary}},legend:{textStyle:{color:K.secondary},pageTextStyle:{color:K.tertiary}},textStyle:{color:K.secondary},title:{textStyle:{color:K.primary},subtextStyle:{color:K.quaternary}},toolbox:{iconStyle:{borderColor:K.accent50},feature:{dataView:{backgroundColor:Bb,textColor:K.primary,textareaColor:K.background,textareaBorderColor:K.border,buttonColor:K.accent50,buttonTextColor:K.neutral00}}},tooltip:{backgroundColor:K.neutral20,defaultBorderColor:K.border,textStyle:{color:K.tertiary}},dataZoom:{borderColor:K.accent10,textStyle:{color:K.tertiary},brushStyle:{color:K.backgroundTint},handleStyle:{color:K.neutral00,borderColor:K.accent20},moveHandleStyle:{color:K.accent40},emphasis:{handleStyle:{borderColor:K.accent50}},dataBackground:{lineStyle:{color:K.accent30},areaStyle:{color:K.accent20}},selectedDataBackground:{lineStyle:{color:K.accent50},areaStyle:{color:K.accent30}}},visualMap:{textStyle:{color:K.secondary},handleStyle:{borderColor:K.neutral30}},timeline:{lineStyle:{color:K.accent10},label:{color:K.tertiary},controlStyle:{color:K.accent30,borderColor:K.accent30}},calendar:{itemStyle:{color:K.neutral00,borderColor:K.neutral20},dayLabel:{color:K.tertiary},monthLabel:{color:K.secondary},yearLabel:{color:K.secondary}},matrix:{x:zb,y:zb,backgroundColor:{borderColor:K.axisLine},body:{itemStyle:{borderColor:K.borderTint}}},timeAxis:rl(),logAxis:rl(),valueAxis:rl(),categoryAxis:rl(),line:{symbol:"circle"},graph:{color:K.theme},gauge:{title:{color:K.secondary},axisLine:{lineStyle:{color:[[1,K.neutral05]]}},axisLabel:{color:K.axisLabel},detail:{color:K.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:K.background}},radar:(function(){var t=rl();return t.axisName={color:K.axisLabel},t.axisLine.lineStyle.color=K.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:K.neutral20,textStyle:{color:K.secondary}},emphasis:{itemStyle:{color:K.neutral30}}}},sunburst:{itemStyle:{borderColor:K.background}},map:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},label:{color:K.tertiary},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}}},geo:{itemStyle:{borderColor:K.border,areaColor:K.neutral10},emphasis:{label:{color:K.primary},itemStyle:{areaColor:K.highlight}},select:{label:{color:K.primary},itemStyle:{color:K.highlight}}}};Ub.categoryAxis.splitLine.show=!1;var Fb=Ub;var Vb=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(U(e)){var a=Bt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Nd=["symbol","symbolSize","symbolRotate","symbolOffset"],Hb=Nd.concat(["symbolKeepAspect"]),Gb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Nd.length;o++){var s=Nd[o],l=t.get(s);q(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(P({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=te(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},Yb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Hb.length;s++){var l=Hb[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function Wb(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function Xb(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function qb(t,e){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:t,query:n},function(o){a.push(o.seriesIndex)}),a}C([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=P({},n),o.dispatchAction(P(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Mo(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=nr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:B(p)?c.getName(p[0]):c.getName(p),selected:U(l)?l:P({},l)})}})}function Kb(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Mo("map","selectchanged",e,n,i),Mo("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Mo("map","selected",e,n,i),Mo("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Mo("map","unselected",e,n,i),Mo("pie","unselected",e,n,i))})}function da(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var bP=new Ct,Jt=bP;var Zb={};function jb(t,e){Zb[t]=e}function Qb(t){return Zb[t]}var TP={};function $b(t,e){TP[t]=e}var fc=ee();function Jb(t){fc(t).prepare={}}function eT(t){fc(t).fullUpdate={}}function tT(t){return fc(t).prepare}function ma(t){return fc(t).fullUpdate}var CP=Math.round(Math.random()*9),wP=typeof Object.defineProperty=="function",DP=(function(){function t(){this._id="__ec_inner_"+CP++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return wP?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),rT=DP;var AP=re.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),EP=re.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),MP=re.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),OP=re.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),IP={line:Cr,rect:_e,roundRect:_e,square:_e,circle:ks,diamond:EP,pin:MP,arrow:OP,triangle:AP},LP={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Rd={};C(IP,function(t,e){Rd[e]=new t});var PP=re.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Ln(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Rd[i];n||(i="rect",n=Rd[i]),LP[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function NP(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function er(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Bv(t.slice(8),new ne(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=vf(t.slice(7),{},new ne(e,r,i,n),o?"center":"cover"):l=new PP({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=NP,a&&l.setColor(a),l}function iT(t){return B(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function cc(t,e){if(t!=null)return B(t)||(t=[t,t]),[we(t[0],e[0])||0,we(Y(t[1],t[0]),e[1])||0]}function ga(t){return isFinite(t)}function RP(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=ga(i)?i:0,n=ga(n)?n:1,a=ga(a)?a:0,o=ga(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function kP(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=ga(o)?o:.5,s=ga(s)?s:.5,l=l>=0&&ga(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function kd(t,e,r){for(var i=e.type==="radial"?kP(t,e,r):RP(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function nT(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function pc(t){return parseInt(t,10)}function Bd(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||pc(s[i])||pc(t.style[i]))-(pc(s[a])||0)-(pc(s[o])||0)||0}function BP(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ae(t)?[t]:B(t)?t:null}function il(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&BP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=z(r,function(a){return a/n}),i/=n)}return[r,i]}var zP=new pt(!0);function hc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function aT(t){return typeof t=="string"&&t!=="none"}function vc(t){var e=t.fill;return e!=null&&e!=="none"}function oT(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function sT(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function lT(t,e,r){var i=ws(e.image,e.__image,r);if(ao(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*za),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function UP(t,e,r,i,n){var a,o=hc(r),s=vc(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||zP,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;(d||m)&&(T=e.getBoundingRect()),d&&(_=p?kd(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?kd(t,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?lT(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?lT(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var D=e.getGlobalScale();c.setScale(D[0],D[1],e.segmentIgnoreThreshold);var w,A;t.setLineDash&&r.lineDash&&(a=il(e),w=a[0],A=a[1]);var E=!0;(f||p&Mi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,u?l:1),w&&(t.setLineDash(w),t.lineDashOffset=A),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&sT(t,r),s&&oT(t,r)):(s&&oT(t,r),o&&sT(t,r)),w&&t.setLineDash([])}function FP(t,e,r){var i=e.__image=ws(r.image,e.__image,e,e.onload);if(!(!i||!ao(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function VP(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Rt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=il(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(hc(r)&&t.strokeText(n,r.x,r.y),vc(r)&&t.fillText(n,r.x,r.y)):(vc(r)&&t.fillText(n,r.x,r.y),hc(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var uT=["shadowBlur","shadowOffsetX","shadowOffsetY"],fT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function mT(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){Ot(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Fr.opacity:o}(i||e.blend!==r.blend)&&(a||(Ot(t,n),a=!0),t.globalCompositeOperation=e.blend||Fr.blend);for(var s=0;s<uT.length;s++){var l=uT[s];(i||e[l]!==r[l])&&(a||(Ot(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(Ot(t,n),a=!0),t.shadowColor=e.shadowColor||Fr.shadowColor),a}function cT(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=mT(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Ot(t,n),s=!0),aT(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Ot(t,n),s=!0),aT(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Ot(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ot(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<fT.length;f++){var c=fT[f],p=c[0];(i||a[p]!==o[p])&&(s||(Ot(t,n),s=!0),t[p]=a[p]||c[1])}return s}function HP(t,e,r,i,n){return mT(t,e.style,r&&r.style,i,n)}function gT(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function GP(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),gT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function YP(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var pT=1,hT=2,vT=3,dT=4;function WP(t){var e=vc(t),r=hc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ot(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function yT(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};zd(t,e,r),Ud(t,r)}function zd(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~gt,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||nT(n,a))&&(a&&(Ot(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Ot(t,r),t.save(),GP(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~gt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof re&&e.autoBatch&&WP(o);s||YP(i,u.transform)?(Ot(t,r),gT(t,e)):f||Ot(t,r),e instanceof re?(r.lastDrawType!==pT&&(l=!0,r.lastDrawType=pT),cT(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),UP(t,e,o,f,r)):e instanceof Gn?(r.lastDrawType!==vT&&(l=!0,r.lastDrawType=vT),cT(t,e,u,l,r),VP(t,e,o)):e instanceof yt?(r.lastDrawType!==hT&&(l=!0,r.lastDrawType=hT),HP(t,e,u,l,r),FP(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==dT&&(l=!0,r.lastDrawType=dT),XP(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Ot(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ud(t,e){Ot(t,e),e.prevElClipPaths&&t.restore()}function XP(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),zd(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ud(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),zd(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ud(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Fd=new rT,_T=new Nr(100),xT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Fd.delete(t);var a=Fd.get(t);if(a)return a;var o=ie(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Fd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<xT.length;++p){var h=o[xT[p]];if(h!=null&&!B(h)&&!U(h)&&!ae(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=_T.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=bT(o.dashArrayX),g=qP(o.dashArrayY),y=ST(o.symbol),_=KP(m),x=TT(g),S=!n&&mt.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=w(),D;S&&(S.width=T.width*r,S.height=T.height*r,D=S.getContext("2d")),A(),c&&_T.put(v,S||b),u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function w(){for(var E=1,O=0,M=_.length;O<M;++O)E=Lh(E,_[O]);for(var I=1,O=0,M=y.length;O<M;++O)I=Lh(I,y[O].length);E*=I;var R=x*_.length*y.length;if(0)var N;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,S.width,S.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,S.width,S.height)));for(var E=0,O=0;O<g.length;++O)E+=g[O];if(E<=0)return;for(var M=-x,I=0,R=0,N=0;M<T.height;){if(I%2===0){for(var F=R/2%y.length,k=0,V=0,H=0;k<T.width*2;){for(var W=0,O=0;O<m[N].length;++O)W+=m[N][O];if(W<=0)break;if(V%2===0){var j=(1-o.symbolSize)*.5,$=k+m[N][V]*j,Z=M+g[I]*j,ue=m[N][V]*o.symbolSize,de=g[I]*o.symbolSize,Ve=H/2%y[F].length;ke($,Z,ue,de,y[F][Ve])}k+=m[N][V],++H,++V,V===m[N].length&&(V=0)}++N,N===m.length&&(N=0)}M+=g[I],++R,++I,I===g.length&&(I=0)}function ke(xe,Ee,oe,me,Pt){var He=n?1:r,hr=er(Pt,xe*He,Ee*He,oe*He,me*He,o.color,o.symbolKeepAspect);if(n){var Nt=i.painter.renderOneToVNode(hr);Nt&&b.children.push(Nt)}else yT(D,hr)}}}}function ST(t){if(!t||t.length===0)return[["rect"]];if(U(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!U(t[r])){e=!1;break}if(e)return ST([t]);for(var i=[],r=0;r<t.length;++r)U(t[r])?i.push([t[r]]):i.push(t[r]);return i}function bT(t){if(!t||t.length===0)return[[0,0]];if(ae(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!ae(t[i])){r=!1;break}if(r)return bT([t]);for(var n=[],i=0;i<t.length;++i)if(ae(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=z(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function qP(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ae(t)){var e=Math.ceil(t);return[e,e]}var r=z(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function KP(t){return z(t,function(e){return TT(e)})}function TT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var CT=Ui(ZP);function ZP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=nl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=nl(n,e)}}})}var jP=1,QP=800,$P=900,JP=920,eN=1e3,tN=2e3,wT=5e3,RT=1e3,rN=1100,$d=2e3,kT=3e3,iN=4e3,Sc=4500,nN=4600,aN=5e3,oN=6e3,BT=7e3,zT={PROCESSOR:{SERIES_FILTER:QP,AXIS_STATISTICS:JP,FILTER:eN,STATISTIC:wT,STATISTICS:wT},VISUAL:{LAYOUT:RT,PROGRESSIVE_LAYOUT:rN,GLOBAL:$d,CHART:kT,POST_CHART_LAYOUT:nN,COMPONENT:iN,BRUSH:aN,CHART_ITEM:Sc,ARIA:oN,DECAL:BT}},$e="__flagInMainProcess",dc="__mainProcessVersion",ot="__pendingUpdate",Vd="__needsUpdateStatus",DT=/^[a-zA-Z0-9_]+$/,Hd="__connectUpdateStatus",AT=0,sN=1,lN=2;function UT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return VT(this,t,e)}}function FT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return VT(this,t,e)}}function VT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Ct.prototype[e].apply(t,r)}var HT=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Ct),GT=HT.prototype;GT.on=FT("on");GT.off=FT("off");var ya,Gd,mc,mi,gc,Yd,Wd,Oo,Io,ET,MT,Xd,OT,yc,IT,YT,cr,LT,Lo,WT=(function(t){L(e,t);function e(r,i,n){var a=t.call(this,new Vb)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[dc]=1,0)var u;n.ssr&&I_(function(h){var v=ce(h),d=v.dataIndex;if(d!=null){var m=X();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=Dh(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Y(n.useDirtyRect,l),useCoarsePointer:Y(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=$s(he(f.flush,f),17),a._updateTheme(i),a._locale=lS(n.locale||bf),a._coordSysMgr=new Gs;var c=a._api=IT(a);function p(h,v){return h.__prio-v.__prio}return Tn(xc,p),Tn(Zd,p),a._scheduler=new Pd(a,c,Zd,xc),a._messageCenter=new HT,a._initEvents(),a.resize=he(a.resize,a),f.animation.on("frame",a._onframe,a),ET(f,a),MT(f,a),Ba(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(LT(this),this[ot]){var a=this[ot].silent;this[$e]=!0,Lo(this);try{ya(this),mi.update.call(this,null,this[ot].updateParams)}catch(l){throw this[$e]=!1,this[ot]=null,l}this._zr.flush(),this[$e]=!1,this[ot]=null,Oo.call(this,a),Io.call(this,a)}else if(r.unfinished){var o=jP;do{r.unfinished=!1;var s=mt.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Yd(this,i),r.performVisualTasks(i),yc(this,this._model,n,"remain",{}),o-=mt.getTime()-s}while(o>0&&r.unfinished);r.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(r,i,n){if(!this[$e]){if(this._disposed){this.id;return}var a,o,s;if(G(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[$e]=!0,Lo(this),!this._model||i){var l=new VS(this._api),u=this._theme,f=this._model=new qf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},jd);var c={seriesTransition:s,optionChanged:!0};if(n)this[ot]={silent:a,updateParams:c},this[$e]=!1,this.getZr().wakeUp();else{try{ya(this),mi.update.call(this,null,c)}catch(p){throw this[ot]=null,this[$e]=!1,p}this._ssr||this._zr.flush(),this[ot]=null,this[$e]=!1,Oo.call(this,a),Io.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[$e]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[ot]&&(a==null&&(a=this[ot].silent),o=this[ot].updateParams,this[ot]=null),this[$e]=!0,Lo(this);try{this._updateTheme(r),n.setTheme(this._theme),ya(this),mi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[$e]=!1,s}this[$e]=!1,Oo.call(this,a),Io.call(this,a)}}},e.prototype._updateTheme=function(r){U(r)&&(r=XT[r]),r&&(r=J(r),r&&Kf(r,!0),this._theme=r)},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||se.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return C(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;C(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return C(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(PT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();C(al,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=mt.createCanvas(),g=Dh(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return C(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new _e({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),C(p,function(_){var x=new yt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return gc(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return gc(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return gc(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Nu(n,r);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Nu(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Wb(s,l,i):Xb(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;C(uN,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&da(l,function(d){var m=ce(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=P({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;C(Kd,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),Kb(i,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 r=this.getDom();r&&Rh(this.getDom(),em,"");var i=this,n=i._api,a=i._model;C(i._componentsViews,function(o){o.dispose(a,n)}),C(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete al[i.id]},e.prototype.resize=function(r){if(!this[$e]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[ot]&&(a==null&&(a=this[ot].silent),n=!0,this[ot]=null),this[$e]=!0,Lo(this);try{n&&ya(this),mi.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[$e]=!1,o}this[$e]=!1,Oo.call(this,a),Io.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(G(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Qd[r]){var n=Qd[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=P({},r);return i.type=qd[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(G(i)||(i={silent:!!i}),!!_c[r.type]&&this._model){if(this[$e]){this._pendingActions.push(r);return}var n=i.silent;Wd.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&se.browser.weChat&&this._throttledZrFlush(),Oo.call(this,n),Io.call(this,n)}},e.prototype.updateLabelLayout=function(){Jt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ya=function(c){Jb(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Gd(c,!0),Gd(c,!1),p.plan()},Gd=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var D="_ec_"+b.id+"_"+b.type,w=!T&&m[D];if(!w){var A=Bt(b.type),E=p?ht.getClass(A.main,A.sub):vt.getClass(A.sub);w=new E,w.init(h,y),m[D]=w,d.push(w),g.add(w.group)}b.__viewId=w.__id=D,w.__alive=!0,w.__model=b,w.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(w,b,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},mc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){C([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=X_(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=X(),C(Ne(y),function(S){var b=Kt(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(xv(h))if(S instanceof Mt)h.type===qi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&ix(S,h,c._api);else{var T=$u(S.mainType,S.componentIndex,h.name,c._api),D=T.focusSelf,w=T.dispatchers;h.type===qi&&D&&!h.notBlur&&Ku(S.mainType,S.componentIndex,c._api),w&&C(w,function(A){h.type===qi?Yn(A):Wn(A)})}else ef(h)&&S instanceof Mt&&(ox(S,h,c._api),_v(S),cr(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},mi={prepareAndUpdate:function(c){ya(this),mi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){eT(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),Jt.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),Yd(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),Xd(this,h,v,c,p),Jt.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==Wu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=X();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),yc(p,h,v,c,{},m),Jt.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),vt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Xd(this,p,this._api,c,{}),Jt.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),vt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),Jt.trigger("afterupdate",h,this._api))},updateLayout:function(c){mi.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Nu(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}gc=r,Yd=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Wd=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=_c[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Bt(y[0]);this[$e]=!0,Lo(this);var S=[c],b=!1;c.batch&&(b=!0,S=z(c.batch,function(N){return N=ie(P({},N),c),N.batch=null,N}));var T=[],D,w=[],A=g.nonRefinedEventType,E=ef(c),O=xv(c);if(O&&yv(this._api),C(S,function(N){var F=g.action(N,v,h._api);if(g.refineEvent?w.push(F):D=F,D=D||P({},N),D.type=A,T.push(D),O){var k=Ts(c),V=k.queryOptionMap,H=k.mainTypeSpecified,W=H?V.keys()[0]:"series";mc(h,_,N,W),cr(h)}else E?(mc(h,_,N,"series"),cr(h)):x&&mc(h,_,N,x.main,x.sub)}),_!=="none"&&!O&&!E&&!x)try{this[ot]?(ya(this),mi.update.call(this,c),this[ot]=null):mi[_].call(this,c)}catch(N){throw this[$e]=!1,N}if(b?D={type:A,escapeConnect:m,batch:T}:D=T[0],this[$e]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(w,c,v,this._api).eventContent;Be(G(I)),M=ie({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var R=this._messageCenter;R.trigger(D.type,D),M&&R.trigger(M.type,M)}},Oo=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Wd.call(this,h,c)}},Io=function(c){!c&&this.trigger("updated")},ET=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[ot]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},MT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=da(v,Ns);d&&(nx(d,h,p._api),cr(p))}).on("mouseout",function(h){var v=h.target,d=da(v,Ns);d&&(ax(d,h,p._api),cr(p))}).on("click",function(h){var v=h.target,d=da(v,function(y){return ce(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=ce(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;Tn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}Xd=function(c,p,h,v,d){n(p),OT(c,p,h,v,d),C(c._chartsViews,function(m){m.__alive=!1}),yc(c,p,h,v,d),C(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},OT=function(c,p,h,v,d,m){C(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},yc=function(c,p,h,v,d,m){var g=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),Jt.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),_v(_)}),g.unfinished=y||g.unfinished,Jt.trigger("series:layoutlabels",p,h,d),Jt.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),Jt.trigger("series:afterupdate",p,h,d)},cr=function(c){c[Vd]=!0,c.getZr().wakeUp()},Lo=function(c){c[dc]=(c[dc]+1)%1e6},LT=function(c){c[Vd]&&(c.getZr().storage.traverse(function(p){Qn(p)||a(p)}),c[Vd]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Os&&c.states.emphasis?p.push("emphasis"):c.hoverState===Ms&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>Y(p.get("hoverLayerThreshold"),Gf.hoverLayerThreshold)&&!se.node&&!se.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Vs&&(x.hoverLayer=m?kv:Rv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Uv(c);p.eachRendered(function(v){return Fv(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Qn(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Qn(g))return;if(g instanceof re&&fx(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}IT=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Yn(v,d),cr(c)},h.prototype.leaveEmphasis=function(v,d){Wn(v,d),cr(c)},h.prototype.enterBlur=function(v){tx(v),cr(c)},h.prototype.leaveBlur=function(v){dv(v),cr(c)},h.prototype.enterSelect=function(v){mv(v),cr(c)},h.prototype.leaveSelect=function(v){gv(v),cr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[dc]},h.prototype.usingTHL=function(){return c._usingTHL},h})(qu))(c)},YT=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[Hd]=v}}C(qd,function(h,v){c._messageCenter.on(v,function(d){if(PT[c.group]&&c[Hd]!==AT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];C(al,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,AT),C(g,function(y){y[Hd]!==sN&&y.dispatchAction(m)}),p(g,lN)}})})}})(),e})(Ct),Jd=WT.prototype;Jd.on=UT("on");Jd.off=UT("off");Jd.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var uN=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var _c={},qd={},Kd={},Zd=[],jd=[],xc=[],XT={},Qd={},al={},PT={},fN=+new Date-0,c4=+new Date-0,em="_echarts_instance_";function qT(t,e,r){var i=!(r&&r.ssr);if(i){var n=cN(t);if(n)return n}var a=new WT(t,e,r);return a.id="ec_"+fN++,al[a.id]=a,i&&Rh(t,em,a.id),YT(a),Jt.trigger("afterinit",a),a}function cN(t){return al[q_(t,em)]}function KT(t,e){XT[t]=e}function tm(t){fe(jd,t)<0&&jd.push(t)}function rm(t,e){im(Zd,t,e,tN)}function ZT(t){bc("afterinit",t)}function jT(t){bc("afterupdate",t)}function bc(t,e){Jt.on(t,e)}function _a(t,e,r){var i,n,a,o,s;q(e)&&(r=e,e=""),G(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;_c[i]||(Be(DT.test(i)&&DT.test(n)),a&&Be(n!==i),_c[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Kd[n]=1,a&&s&&(Kd[u]=1),qd[u]=i)}function QT(t,e){Gs.register(t,e)}function $T(t,e){im(xc,t,e,RT,"layout",!0)}function rn(t,e){im(xc,t,e,kT,"visual",!0)}var NT=[];function im(t,e,r,i,n,a){if((q(e)||G(e))&&(r=e,e=i),!(fe(NT,r)>=0)){NT.push(r);var o=Pd.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function nm(t,e){Qd[t]=e}function JT(t,e,r){var i=Qb("registerMap");i&&i(t,e,r)}var eC=ob;rn($d,Ib);rn(Sc,Lb);rn(Sc,Pb);rn($d,Gb);rn(Sc,Yb);rn(BT,CT);tm(Kf);rm($P,KS);nm("default",Ld);_a({type:qi,event:qi,update:qi},Le);_a({type:Is,event:Is,update:Is},Le);_a({type:Ls,event:ju,update:Ls,action:Le,refineEvent:am,publishNonRefinedEvent:!0});_a({type:Zu,event:ju,update:Zu,action:Le,refineEvent:am,publishNonRefinedEvent:!0});_a({type:Ps,event:ju,update:Ps,action:Le,refineEvent:am,publishNonRefinedEvent:!0});function am(t,e,r,i){return{eventContent:{selected:sx(r),isFromClick:e.isFromClick||!1}}}KT("default",{});KT("dark",Fb);function ol(t){return t==null?0:t.length||1}function tC(t){return t}var pN=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||tC,this._newKeyGetter=n||tC,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=ol(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=ol(u),p=ol(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=ol(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=ol(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),rC=pN;var hN=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function iC(t,e){var r={},i=r.encode={},n=X(),a=[],o=[],s={};C(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;om(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),vN(h.type)&&(a[0]=p),om(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Xu.each(function(m,g){var y=om(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=z(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new hN(s,e),r}function om(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function nC(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function vN(t){return!(t==="ordinal"||t==="time")}var dN=(function(){function t(e){this.otherDims={},e!=null&&P(this,e)}return t})(),Po=dN;var mN=ee(),gN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sm=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=lm(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Y(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=jf(this.source),i=!um(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=gN[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Tc(t){return t instanceof sm}function sl(t){for(var e=X(),r=0;r<(t||[]).length;r++){var i=t[r],n=G(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function lm(t){var e=mN(t);return e.dimNameMap||(e.dimNameMap=sl(t.dimensionsDefine))}function um(t){return t>30}var ll=G,nn=z,yN=typeof Int32Array>"u"?Array:Int32Array,_N="e\0\0",aC=-1,xN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],SN=["_approximateExtent"],oC,Cc,ul,fl,fm,cl,cm,bN=(function(){function t(e,r){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 i,n=!1;Tc(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=U(c)?new Po({name:c}):c instanceof Po?c:new Po(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=X();C(o,function(m){d.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof Qs&&(a=e),!a){var o=this.dimensions,s=wo(e)||Ke(e)?new $f(e,o.length):e;a=new Qs;var l=nn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=iC(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&cm(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Zt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===tt;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&H_(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Kt(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Kt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)cm(this,f);oC(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ll(e)?P(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=ul(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return Cc(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return B(e)?n.getValues(nn(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?aC:n},t.prototype.each=function(e,r,i){"use strict";q(e)&&(i=r,r=e,e=[]);var n=i||this,a=nn(fl(e),this._getStoreDimIndex,this);this._store.each(a,n?he(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";q(e)&&(i=r,r=e,e=[]);var n=i||this,a=nn(fl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?he(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=te(e),a=[];return C(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";q(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=nn(fl(e),this._getStoreDimIndex,this),s=cl(this);return s._store=this._store.map(o,a?he(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=nn(fl(e),this._getStoreDimIndex,this);this._store.modify(s,o?he(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=cl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=cl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=cl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Ae(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new rC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Cc(e,i)},function(i){return Cc(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ll(e)?P(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),B(a)?a=a.slice():ll(a)&&(a=P({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,ll(r)?P(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ll(e)?P(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;G0(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){C(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:nn(this.dimensions,this._getDimInfo,this),this.hostModel)),fm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Xl(arguments)))})},t.internalField=(function(){oC=function(e){var r=e._invertedIndicesMap;C(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new yN(o.categories.length);for(var l=0;l<i.length;l++)i[l]=aC;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},ul=function(e,r,i){return Kt(e._getCategory(r,i),null)},Cc=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=ul(e,e._idDimIdx,r)),i==null&&(i=_N+r),i},fl=function(e){return B(e)||(e=e!=null?[e]:[]),e},cl=function(e){var r=new t(e._schema?e._schema:nn(e.dimensions,e._getDimInfo,e),e.hostModel);return fm(r,e),r},fm=function(e,r){C(xN.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,C(SN,function(i){e[i]=J(r[i])}),e._calculationInfo=P({},r._calculationInfo)},cm=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=ul(e,a,r)),l==null&&o!=null&&(n[r]=l=ul(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),wc=bN;function pl(t,e){wo(t)||(t=Do(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=X(),a=[],o=TN(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&um(o),l=i===t.dimensionsDefine,u=l?lm(t):sl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=X(f),p=new wd(o),h=0;h<p.length;h++)p[h]=-1;function v(w){var A=p[w];if(A<0){var E=i[w],O=G(E)?E:{name:E},M=new Po,I=O.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var R=a.length;return p[w]=R,M.storeDimIndex=w,a.push(M),M}return a[A]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(w,A){var E=Ne(w).slice();if(E.length===1&&!U(E[0])&&E[0]<0){c.set(A,!1);return}var O=c.set(A,[]);C(E,function(M,I){var R=U(M)?u.get(M):M;R!=null&&R<o&&(O[I]=R,m(v(R),A,I))})});var d=0;C(r,function(w){var A,E,O,M;if(U(w))A=w,M={};else{M=w,A=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=I,E=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var R=c.get(A);if(R!==!1){if(R=Ne(R),!R.length)for(var N=0;N<(E&&E.length||1);N++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&R.push(d++)}C(R,function(F,k){var V=v(F);if(l&&M.type!=null&&(V.type=M.type),m(ie(V,M),A,k),V.name==null&&E){var H=E[k];!G(H)&&(H={name:H}),V.name=V.displayName=H.name,V.defaultTooltip=H.defaultTooltip}O&&ie(V.otherDims,O)})}});function m(w,A,E){Xu.get(A)!=null?w.otherDims[A]=E:(w.coordDim=A,w.coordDimIndex=E,n.set(A,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(w){w.name==null&&(w.name=w.coordDim)}if(s)C(a,function(w){S(w)}),a.sort(function(w,A){return w.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var T=v(b),D=T.coordDim;D==null&&(T.coordDim=CN(x,n,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(Wf(t,b)===rt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return io(a,function(w){return w.name},function(w,A){A>0&&(w.name=w.name+(A-1))}),new sm({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function TN(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return C(e,function(a){var o;G(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function CN(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var wN=(function(){function t(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return t})();function sC(t){var e=t.get("coordinateSystem"),r=new wN(e),i=DN[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var DN={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",ft).models[0],a=t.getReferringComponents("yAxis",ft).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),No(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),No(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",ft).models[0];e.coordSysDims=["single"],r.set("single",n),No(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",ft).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),No(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),No(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),No(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",ft).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function No(t){return t.get("type")==="category"}function lC(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;AN(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(C(a,function(x,S){U(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),C(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;C(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function AN(t){return!Tc(t.schema)}function gi(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function uC(t,e){return gi(t,e)?t.getCalculationInfo("stackResultDimension"):e}function EN(t,e){var r=t.get("coordinateSystem"),i=Gs.get(r),n;return e&&e.coordSysDims&&(n=z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=nC(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function MN(t,e,r){var i,n;return r&&C(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function ON(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=Do(t)):(n=i.getSource(),a=n.sourceFormat===tt);var o=sC(e),s=EN(e,o),l=r.useEncodeDefaulter,u=q(l)?l:l?Te(ES,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=pl(n,f),p=MN(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=lC(e,{schema:c,store:h}),d=new wc(c,e);d.setCalculationInfo(v);var m=p!=null&&IN(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function IN(t){if(t.sourceFormat===tt){var e=LN(t.data||[]);return!B(si(e))}}function LN(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var an=ON;var fC=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Vi(fC);var It=fC;var PN=0,NN=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++PN,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&z(i,RN);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!U(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},t})();function RN(t){return G(t)&&t.value!=null?t.value:t+""}var hl=NN;var Vt=0,Ro=1,kN={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},pC=te(kN),ko=2,hC=3;function Bo(t,e,r){var i;t=t||{};var n=Fe();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(C(pC,function(o){a[o]&&(t[o]=he(a[o],a))}),i=a)}return i==null&&BN(t,r),{brk:i,mapper:t}}function Dc(t,e){C(pC,function(r){t[r]=e[r]})}function Ac(t,e){t.freeze=Le}function yi(t){return t.getExtentUnsafe(Vt,ko)}function xa(t,e){return t.getExtentUnsafe(Ro,e)||t.getExtentUnsafe(Vt,e)}function vC(t){var e=xa(t,hC);return e[1]-e[0]}function zo(t){var e=t.getExtentUnsafe(Vt,hC);return e[1]-e[0]}function BN(t,e){var r=t||{},i=[];return r._extents=i,i[Vt]=e?e.slice():ct(),P(r,zN),r}var zN={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Ro]||this._extents[Vt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Ro]||this._extents[Vt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=xa(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Vt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){cC(this._extents,Vt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Vt].slice()),cC(i,t,e,r)},freeze:function(){}};function cC(t,e,r,i){li(r,i)&&(t[e][0]=r,t[e][1]=i)}function Ec(t){return Uo(t)||$r(t)}function Uo(t){return t.type==="interval"}function Fo(t){return t.type==="time"}function $r(t){return t.type==="log"}function st(t){return t.type==="ordinal"}function dC(t){var e=Pu(t),r=Bi(10,e),i=qt(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ye(i*r,-e)}function Er(t){return xr(t)+2}function vl(t,e){return Ja(t)/Ja(e)}function Mc(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Bi(e,t)}function Oc(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Pe(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Sr(i[0])||!Sr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function mC(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function dl(t,e){return t=t||e,qt(ve(t,1))}function Ic(t,e,r){var i=yi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var gC=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Dc(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new hl({})),B(n)&&(n=new hl({categories:z(n,function(o){return G(o)?o.value:o})})),i._ordinalMeta=n;var a=Bo(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Ac(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:U(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=qt(r),r},e.prototype.getTicks=function(){var r=[];return Ic(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=ze(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=yi(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(qt(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(It);It.registerClass(gC);var yC=gC;function Vo(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Er(h);f<e-1;){var d=ye(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Fe();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),a.push(c)}}return a}var _C=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=Tf(i,r),a=Bo(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return J(this._cfg)},e.prototype.setConfig=function(r){var i=yi(this);this._cfg=r=J(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Er(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=yi(this),o=i.niceExtent,s=i.intervalPrecision,l=Fe(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ye(o[0]-n,s):a[0]});for(var h=function(_,x){return qt((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=ze(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=ye(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=ye(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ye(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=xr(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ye(r.value,n,!0);return nd(a)},e.type="interval",e})(It);It.registerClass(_C);var Sa=_C;var UN=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},SC=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=Tf(i,r),a=Bo(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return na(r.value,Zv[vS(So(this._minLevelUnit))]||Zv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return dS(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=yi(this),a=Fe(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Fe().addBreaksToTicks(l,o.breaks,n),l;l=XN(this._minLevelUnit,this._approxInterval,u,n,zo(this),o);var f=Ft.length-1,c=0;return C(l,function(p){p.time&&(f=Math.min(f,fe(Ft,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Fe().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&Fe().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(fe(Ft,aa(p.vmin,u)),fe(Ft,aa(p.vmax,u))),v=0,d=0;d<Ft.length;d++)if(!bC(Ft[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Ft[g],upperTimeUnit:Ft[m]}}),l},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return ae(r)?Math.round(r):+Br(r)},e.type="time",e})(It),Lc=[["second",Df],["minute",Af],["hour",xo],["quarter-day",xo*6],["half-day",xo*12],["day",Qt*1.2],["half-week",Qt*3.5],["week",Qt*7],["month",Qt*31],["quarter",Qt*95],["half-year",Kv/2],["year",Kv]];function bC(t,e,r,i){return Ef(new Date(e),t,i).getTime()===Ef(new Date(r),t,i).getTime()}function FN(t,e){return t/=Qt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function VN(t){var e=30*Qt;return t/=e,t>6?6:t>3?3:t>2?2:1}function HN(t){return t/=xo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function xC(t,e){return t/=e?Af:Df,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function GN(t){return ve(Pn(t,!0),1)}function YN(t,e,r){var i=Math.max(0,fe(Ft,e)-1);return Ef(new Date(t),Ft[i],r).getTime()}function WN(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function XN(t,e,r,i,n,a){var o=3e3,s=cS,l=0;function u(N,F,k,V,H,W,j){for(var $=WN(H,N),Z=F,ue=new Date(Z);Z<k&&Z<=i[1]&&(j.push({value:Z}),!(l++>o));)if(ue[H](ue[V]()+N),Z=ue.getTime(),a){var de=a.calcNiceTickMultiple(Z,$);de>0&&(ue[H](ue[V]()+de*N),Z=ue.getTime())}j.push({value:Z,notAdd:Z>i[1]})}function f(N,F,k){var V=[],H=!F.length;if(!bC(So(N),i[0],i[1],r)){H&&(F=[{value:YN(i[0],N,r)},{value:i[1]}]);for(var W=0;W<F.length-1;W++){var j=F[W].value,$=F[W+1].value;if(j!==$){var Z=void 0,ue=void 0,de=void 0,Ve=!1;switch(N){case"year":Z=Math.max(1,Math.round(e/Qt/365)),ue=jv(r),de=mS(r);break;case"half-year":case"quarter":case"month":Z=VN(e),ue=Mf(r),de=Qv(r);break;case"week":case"half-week":case"day":Z=FN(e,31),ue=Of(r),de=$v(r),Ve=!0;break;case"half-day":case"quarter-day":case"hour":Z=HN(e),ue=If(r),de=Jv(r);break;case"minute":Z=xC(e,!0),ue=Lf(r),de=ed(r);break;case"second":Z=xC(e,!1),ue=Pf(r),de=td(r);break;case"millisecond":Z=GN(e),ue=Nf(r),de=rd(r);break}$>=i[0]&&j<=i[1]&&u(Z,j,$,ue,de,Ve,V),N==="year"&&k.length>1&&W===0&&k.unshift({value:k[0].value-Z})}}for(var W=0;W<V.length;W++)k.push(V[W])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=So(s[d]);if(hS(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?So(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(N,F){return N.value-F.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var b=Me(z(c,function(N){return Me(N,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(N){return N.length>0}),T=b.length-1,D=[],d=0;d<b.length;++d)for(var w=b[d],A=0;A<w.length;++A){var E=aa(w[A].value,r);D.push({value:w[A].value,time:{level:T-d,upperTimeUnit:E,lowerTimeUnit:E}})}io(D,$_,null),D.sort(function(N,F){return N.value-F.value});var O=D[0],M=D[D.length-1],I=aa(i[0],r),R=aa(i[1],r);return(!O||O.value>i[0])&&D.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&D.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),D}var TC=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Qt,r[1]+=Qt),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Qt}t.setExtent(r[0],r[1]);var n=dl(e.splitNumber,10),a=zo(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Lc.length,u=Math.min(UN(Lc,a,0,l),l-1),f=Lc[u][1],c=Lc[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};It.registerClass(SC);var CC=SC;var Pc=0,Nc=1,qN=2,EC=(function(t){L(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Sa.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Pc]=n[Nc]=a[Pc]=a[Nc]=NaN,Dc(i,e.mapperMethods);var s=Fe(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},qN,u),i.powStub=new Sa({breakParsed:u.original}),i.intervalStub=new Sa({breakParsed:u.transformed}),Ac(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Fe(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return z(o.getTicks(r||{}),function(f){var c=f.value,p=Mc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ra(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Vo(this,r,ra(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(vl(r,this.base))},scale:function(r){return Mc(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=vl(r,this.base),i&&i.depth===ko?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return wC.depth=n,DC.lookup=this._lookup,Mc(n===ko?r:this.intervalStub.transformOut(r,wC),this.base,DC)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Vt,r,i)},setExtent2:function(r,i,n){if(!(!li(i,n)||i<=0||n<=0)){var a=AC,o=AC;if(r===Vt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Pc]=i,a[Nc]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Pc]=vl(i,l),o[Nc]=vl(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return li(i[0],i[1])&&Ze(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(It);It.registerClass(EC);var wC={},DC={},AC=[],MC=EC;var Rc={value:1,category:1,time:1,log:1};var OC=ee();function IC(t){var e=t.get("type");return(e==null||!Oe(Rc,e)&&!It.getClass(e))&&(e="value"),e}function LC(t,e,r){var i=Fe(),n;switch(i&&(n=pm(t,e,r)),e){case"category":return new yC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:ct()});case"time":return new CC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new MC({logBase:t.get("logBase"),breakOption:n});case"value":return new Sa({breakOption:n});default:return new(It.getClass(e)||Sa)({})}}function PC(t,e,r){var i=r?xa(t,null):t.getExtentUnsafe(Vt,null),n=i[0],a=i[1];return li(n,a)?n===e||a===e?ZN:n<e&&a>e?KN:kc:kc}var KN=1,ZN=2,kc=3;function NC(t){OC(t).noOnMyZero=!0}function RC(t){return OC(t).noOnMyZero}function ml(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=pS(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(U(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(q(e)){if(t.type==="category")return function(n,a){return e(Ho(t,n),n.value-t.scale.getExtent()[0],null)};var i=Fe();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Ho(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Ho(t,e){var r=t.scale;return st(r)?r.getLabel(e):e.value}function Bc(t){var e=t.get("interval");return e??"auto"}function kC(t){return t.type==="category"&&Bc(t.getLabelModel())===0}function BC(t,e){var r={};return C(t.mapDimensionsAll(e),function(i){r[uC(t,i)]=!0}),te(r)}function on(t){return t==="middle"||t==="center"}function ba(t){return t.getShallow("show")}function pm(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!Fe())return;if(!r||!jN(e)){if(0)var n;return}return i}}function jN(t){return t!=="category"}function zc(t,e,r,i,n,a){var o=$r(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:ko},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=mC(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function _i(t,e){return st(t)?t.getRawOrdinalNumber(e.value):e.value}function Uc(t,e){return st(t)&&!!e.get("boundaryGap")}var UC=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var QN=Ru(),Fc="|&",Go=ee(),Vc=-2,FC=-1,$N=ee();function VC(t,e){var r=t.model,i=Go(ma(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function HC(t,e){return WC(VC(t,e))}function GC(t,e){var r=[];return YC(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(WC(i))}),r}function YC(t,e){var r=Go(ma(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function WC(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function XC(t,e){var r=t.model.ecModel,i=Go(ma(r)).axSer;i&&Hc(r,i.get(t.model.uid),e)}function dm(t,e,r){var i=VC(t,e);i&&Hc(t.model.ecModel,i.sers,r)}function Hc(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function qC(t,e,r){var i=Go(ma(t)).keyed,n=i&&i.get(e);n&&n.each(function(a){r(a.axis)})}function mm(t,e){var r=t.model,i=Go(ma(r.ecModel)).keys;i&&C(i.get(r.uid),function(n){if(0)var a;e(n)})}function JN(t){var e=$N(tT(t)),r=e.keyed||(e.keyed=X());YC(t,function(i,n,a){var o=r.get(n)||r.set(n,X()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&ZC.liPosMinGap(t,i,s)})}function KC(t,e){ZC[t]=e}var ZC={};function gm(t,e,r){if(t){var i=e.ecModel,n=Go(ma(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=X()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=vm.get(hm(c,p,r))||vm.get(hm(c,p,null));if(h){var v=n.keyed||(n.keyed=X()),d=n.keys||(n.keys=X()),m=h.key,g=v.get(m)||v.set(m,X()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function hm(t,e,r){return t+Fc+Y(e,!0)+Fc+(r||"")}function jC(t,e){var r=hm(e.seriesType,e.baseAxis,e.coordSysType);vm.set(r,e),QN(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:JN})})}var vm=X();var eR=ee(),JC=1;var tR=3,e1=(function(){function t(e,r,i,n,a){var o=st(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(Uo(e)||$r(e)||Fo(e))&&(Bh(f,gl(e,r.get("dataMin",!0))),zh(f,gl(e,r.get("dataMax",!0)))),j_(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=gl(e,q(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=gl(e,q(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=rR(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Sr(c[0])&&(c[0]=NaN),!Sr(c[1])&&(c[1]=NaN);var g=l||Ci(c[0])||Ci(c[1])||o&&!s,y=Uo(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=gl(e,r.get("startValue",!0)),b=S!=null;!Ze(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),Ze(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};QC(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),QC(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function QC(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Q_(e))}function gl(t,e){return e==null?null:Ci(e)?NaN:t.parse(e)}function rR(t,e){var r;if(st(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=B(i)?i:[i,i]}return[$C(r[0]),$C(r[1])]}function $C(t){return gr(typeof t=="boolean"?0:t,1)||0}function t1(t){var e=eR(t.scale);return e.extent||(e.extent=ct()),e}function r1(t,e){t1(t).dimIdxInCoord=e.get(t.dim)}function i1(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||iR(r,t,n,i,e)}function iR(t,e,r,i,n){var a=t1(e),o=a.extent,s=!1;XC(e,function(f){if(f.boxCoordinateSystem){var c=Ff(f).coord,p=a.dimIdxInCoord;if(p>=0){if(B(c)){var h=c[p];h!=null&&!B(h)&&Cs(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;C(BC(v,r),function(m){Z_(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=aR(t,e,i),u=new e1(t,i,o,s,l);n1(t,u,n),a.extent=null}function nR(t,e){var r=t.scale;n1(r,new e1(r,t.model,e,!1,!1),tR)}function n1(t,e,r){t.rawExtentInfo=e,e.from=r}function a1(t,e){ym.set(t,e)}var ym=X();function Gc(t,e,r,i,n){t.rawExtentInfo||nR({scale:t,model:e},n||ct());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function aR(t,e,r){var i=Uc(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return mm(e,function(o){a=!!ym.get(o)||a}),a}function o1(t,e,r,i){if(r.ctnShp){var n;if(mm(t,function(s){var l=ym.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],Bh(n,u[0]),zh(n,u[1]),NC(t))}}),!!n){var a=e.getExtent();if(st(e))t.onBand||e.setExtent2(Ro,ze(a[0],a[0]+n[0]),ve(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=ze(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Ro,o[0],o[1])}}}}function s1(t,e){var r=$r(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Oc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?sR(i,e):oR(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Er(c)),n[0]||(s[0]=ye(kr(s[0]/f)*f,u)),n[1]||(s[1]=ye(ki(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),zc(t,n,o,s,a,l)}function oR(t,e){var r=dl(e.splitNumber,5),i=zo(t),n=e.minInterval,a=e.maxInterval,o=Pn(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Er(o),l=t.getExtent(),u=[ye(ki(l[0]/o)*o,s),ye(kr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function sR(t,e){var r=dl(e.splitNumber,10),i=t.getExtent(),n=zo(t),a=ve(Lu(n),1),o=r/n*a;o<=.5&&(a*=10);var s=Er(a),l=[ye(ki(i[0]/a)*a,s),ye(kr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function _m(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;lR(e,r,i,n,null)}function lR(t,e,r,i,n){var a=Gc(t,e,i,r,n),o=Uo(t)||Fo(t);uR(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&o1(r,t,a,i)}function uR(t,e){fR[t.type](t,e)}var fR={interval:s1,log:s1,time:TC,ordinal:Le};var l1=[],cR={registerPreprocessor:tm,registerProcessor:rm,registerPostInit:ZT,registerPostUpdate:jT,registerUpdateLifecycle:bc,registerAction:_a,registerCoordinateSystem:QT,registerLayout:$T,registerVisual:rn,registerTransform:eC,registerLoading:nm,registerMap:JT,registerImpl:jb,PRIORITY:zT,ComponentModel:be,ComponentView:ht,SeriesModel:Mt,ChartView:vt,registerComponentModel:function(t){be.registerClass(t)},registerComponentView:function(t){ht.registerClass(t)},registerSeriesModel:function(t){Mt.registerClass(t)},registerChartView:function(t){vt.registerClass(t)},registerCustomSeries:function(t,e){$b(t,e)},registerSubTypeDefaulter:function(t,e){be.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){M_(t,e)}};function bt(t){if(B(t)){C(t,function(e){bt(e)});return}fe(l1,t)>=0||(l1.push(t),q(t)&&(t={install:t}),t.install(cR))}var pR=ee(),yl=ee(),Ht={estimate:1,determine:2};function Yo(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function u1(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:z(c1(r,i),function(n,a){return{formattedLabel:ml(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?hR(t,e):dR(t)}function f1(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:c1(n,i)}:t.type==="category"?vR(t,e):{ticks:i.getTicks(r)}}function c1(t,e){var r=e.getExtent(),i=[];return C(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),io(i,J_,null),eo(i),z(i,function(n){return{value:n}})}function hR(t,e){var r=t.getLabelModel(),i=p1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function p1(t,e,r){var i=gR(t),n=Bc(e),a=r.kind===Ht.estimate;if(!a){var o=v1(i,n);if(o)return o}var s,l;q(n)?s=Yc(t,n,!1):(l=n==="auto"?yR(t,r):n,s=Yc(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return xm(i,n,u),!0}):xm(i,n,u),u}function vR(t,e){var r=mR(t),i=Bc(e),n=v1(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),q(i))a=Yc(t,i,!0);else if(i==="auto"){var s=p1(t,t.getLabelModel(),Yo(Ht.determine));o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tick})}else o=i,a=Yc(t,o,!0);return xm(r,i,{ticks:a,tickCategoryInterval:o})}function dR(t){var e=t.scale.getTicks(),r=ml(t);return{labels:z(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var mR=h1("axisTick"),gR=h1("axisLabel");function h1(t){return function(r){return yl(r)[t]||(yl(r)[t]={list:[]})}}function v1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function xm(t,e,r){return t.list.push({key:e,value:r}),r}function yR(t,e){if(e.kind===Ht.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return yl(t).autoInterval=r,!0}),r}var i=yl(t).autoInterval;return i??(yl(t).autoInterval=t.calculateCategoryInterval(e))}function d1(t,e){var r=e.kind,i=xR(t),n=ml(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Du(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===Ht.estimate)return e.out.noPxChangeTryDetermine.push(he(_R,null,t,b,l)),b;var T=m1(t,b,l);return T??b}function _R(t,e,r){return m1(t,e,r)==null}function m1(t,e,r){var i=pR(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function xR(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Yc(t,e,r){var i=ml(t),n=t.scale,a=[],o=q(e);return Ic(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var SR=.8;function Mr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=vC(i);Ze(o)||(o=NaN);var s=t.getExtent(),l=Pe(s[1]-s[0]);return st(i)?bR(r,t,o,l):n?TR(r,t,o,l,n):a==null,a!=null&&(r.w=Ze(r.w)?ve(a,r.w):a),r}function bR(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function TR(t,e,r,i,n){var a=!1,o=-1/0;C(n.key?[HC(e,n.key)]:GC(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Vc&&(a=!0))}),Ze(r)&&r>0&&Ze(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*SR,t.w2=t.w*r/i)}var g1=[0,1],CR=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),ys(e,g1,y1(this),r)},t.prototype.coordToData=function(e,r){var i=ys(e,y1(this),g1,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=f1(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=z(i.ticks,function(s){return{coord:this.dataToCoord(_i(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=wR(this,n,a);return z(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(st(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=z(i,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Yo(Ht.determine),u1(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Mr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Yo(Ht.determine),d1(this,e)},t})();function y1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function wR(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=Mr(t).w;if(!n)return!1;C(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var _1=CR;var IK=Math.PI*2,LK=pt.CMD;function x1(t,e,r,i,n,a,o,s){var l=n-t,u=a-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var d=o[0]=t+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var sn=new le,We=new le,dt=new le,ln=new le,Jr=new le;var Wc=[],Lt=new le;function S1(t,e){if(e<=180&&e>0){e=e/180*Math.PI,sn.fromArray(t[0]),We.fromArray(t[1]),dt.fromArray(t[2]),le.sub(ln,sn,We),le.sub(Jr,dt,We);var r=ln.len(),i=Jr.len();if(!(r<.001||i<.001)){ln.scale(1/r),Jr.scale(1/i);var n=ln.dot(Jr),a=Math.cos(e);if(a<n){var o=x1(We.x,We.y,dt.x,dt.y,sn.x,sn.y,Wc,!1);Lt.fromArray(Wc),Lt.scaleAndAdd(Jr,o/Math.tan(Math.PI-e));var s=dt.x!==We.x?(Lt.x-We.x)/(dt.x-We.x):(Lt.y-We.y)/(dt.y-We.y);if(isNaN(s))return;s<0?le.copy(Lt,We):s>1&&le.copy(Lt,dt),Lt.toArray(t[1])}}}}function b1(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,sn.fromArray(t[0]),We.fromArray(t[1]),dt.fromArray(t[2]),le.sub(ln,We,sn),le.sub(Jr,dt,We);var i=ln.len(),n=Jr.len();if(!(i<.001||n<.001)){ln.scale(1/i),Jr.scale(1/n);var a=ln.dot(e),o=Math.cos(r);if(a<o){var s=x1(We.x,We.y,dt.x,dt.y,sn.x,sn.y,Wc,!1);Lt.fromArray(Wc);var l=Math.PI/2,u=Math.acos(Jr.dot(e)),f=l+u-r;if(f>=l)le.copy(Lt,dt);else{Lt.scaleAndAdd(Jr,s/Math.tan(Math.PI/2-f));var c=dt.x!==We.x?(Lt.x-We.x)/(dt.x-We.x):(Lt.y-We.y)/(dt.y-We.y);if(isNaN(c))return;c<0?le.copy(Lt,We):c>1&&le.copy(Lt,dt)}Lt.toArray(t[1])}}}}function Sm(t,e,r,i){var n=r==="normal",a=n?t:t.ensureState(r);a.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?t.useStyle(s):a.style=s}function DR(t,e){var r=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=Jo(i[0],i[1]),a=Jo(i[1],i[2]);if(!n||!a){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=jl([],i[1],i[0],o/n),l=jl([],i[1],i[2],o/a),u=jl([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function T1(t,e,r){var i=t.getTextGuideLine(),n=t.getTextContent();if(!n){i&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<uo.length;l++){var u=uo[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:Y(n.states[u]&&n.states[u].ignore,s);if(h||!Y(p,o)){var v=c?i:i&&i.states[u];v&&(v.ignore=!0),i&&Sm(i,!0,u,f);continue}i||(i=new Kn,t.setTextGuideLine(i),!c&&(s||!o)&&Sm(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Sm(i,!1,u,f)}}if(i){ie(i.style,r),i.style.fill=null;var d=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=DR}}function C1(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},i=0;i<Et.length;i++){var n=Et[i];r[n]=t.getModel([n,e])}return r}var w1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],AR=1,Xc=2,A1=AR|Xc;function _l(t,e,r){r=r||A1,e?t.dirty|=r:t.dirty&=~r}function E1(t,e){return e=e||A1,t.dirty==null||!!(t.dirty&e)}function Or(t){if(t)return E1(t)&&Tm(t,t.label,t),t}function Tm(t,e,r){var i=e.getComputedTransform();t.transform=gf(t.transform,i);var n=t.localRect=go(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=ea.textMargin);for(var c=0;c<4;c++)bm[c]=f===ea.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ea.textMargin&&vo(n,bm,!1,!1);var p=t.rect=go(t.rect,n);return i&&p.applyTransform(i),f===ea.minMargin&&vo(p,bm,!1,!1),t.axisAligned=mf(i),(t.label=t.label||{}).ignore=e.ignore,_l(t,!1),_l(t,!0,Xc),t}var bm=[0,0,0,0];function M1(t,e,r){return t.transform=gf(t.transform,r),t.localRect=go(t.localRect,e),t.rect=go(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=mf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function O1(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function Cm(t,e){for(var r=0;r<w1.length;r++){var i=w1[r];t[i]==null&&(t[i]=e[i])}return Or(t)}function D1(t){var e=t.obb;return(!e||E1(t,Xc))&&(t.obb=e=e||new pf,e.fromBoundingRect(t.localRect,t.transform),_l(t,!1,Xc)),e}function I1(t,e,r,i,n){var a=t.length,o=Kr[e],s=Zi[e];if(a<2)return!1;t.sort(function(w,A){return w.rect[o]-A.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=t[p],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0);var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}c>0&&n&&b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;x(),y<0&&T(-y,.8),_<0&&T(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&D(-y),_<0&&D(_);function x(){y=m.rect[o]-r,_=i-g.rect[o]-g.rect[s]}function S(w,A,E){if(w<0){var O=Math.min(A,-w);if(O>0){b(O*E,0,a);var M=O+w;M<0&&T(-M*E,1)}else T(-w*E,1)}}function b(w,A,E){w!==0&&(f=!0);for(var O=A;O<E;O++){var M=t[O],I=M.rect;I[o]+=w,M.label[o]+=w}}function T(w,A){for(var E=[],O=0,M=1;M<a;M++){var I=t[M-1].rect,R=Math.max(t[M].rect[o]-I[o]-I[s],0);E.push(R),O+=R}if(O){var N=Math.min(Math.abs(w)/O,A);if(w>0)for(var M=0;M<a-1;M++){var F=E[M]*N;b(F,0,M+1)}else for(var M=a-1;M>0;M--){var F=E[M-1]*N;b(-F,M,a)}}}function D(w){var A=w<0?-1:1;w=Math.abs(w);for(var E=Math.ceil(w/(a-1)),O=0;O<a-1;O++)if(A>0?b(E,0,O+1):b(-E,a-O-1,a),w-=E,w<=0)return}return f}function L1(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Or(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(qc(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function qc(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:D1(t).intersect(D1(e),r,i)}var ER=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return an(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new Se,n=er("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=er(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Q.color.neutral00,u.style.lineWidth=2),i},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})(Mt),P1=ER;function Wo(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=di(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(di(t,e,r[o]));return a.join(" ")}}function Kc(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!B(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var MR=(function(t){L(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=er(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=OR,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Yn(this.childAt(0))},e.prototype.downplay=function(){Wn(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ue(h,v,s,i),ho(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,at(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=jr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=cc(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),T=b.fill;if(s instanceof yt){var D=s.style;s.useStyle(P({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},b))}else s.__isEmptyBrush?s.useStyle(P({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var w=r.getItemVisual(i,"liftZ"),A=this._z2;w!=null?A==null&&(this._z2=s.z2,s.z2+=w):A!=null&&(s.z2=A,this._z2=null);var E=o&&o.useNameLabel;Zr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:T,defaultOpacity:b.opacity});function O(R){return E?r.getName(R):Wo(r,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),pi(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&po(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();po(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return iT(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(Se);function OR(t,e){this.parent.drift(t,e)}var xl=MR;function Zc(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function N1(t){return t!=null&&!G(t)&&(t={isIgnore:t}),t||{}}function R1(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:jr(e),cursorStyle:e.get("cursor")}}function k1(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var IR=(function(){function t(e){this.group=new Se,this._SymbolCtor=e||xl}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=N1(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=R1(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Zc(e,p,c,r)&&k1(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Zc(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Ue(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);Zc(r,l,a,e)?(s=s||k1(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=R1(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=N1(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Vs)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Zc(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Jn(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),jc=IR;function Qc(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=LR(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return gi(e,c[0])&&(p=!0,c[0]=h),gi(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function LR(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:ae(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function $c(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Gt(t,e){return!isFinite(t)||!isFinite(e)}var PR=typeof Float32Array!==Xi?Float32Array:void 0,B1=typeof Float64Array!==Xi?Float64Array:void 0;function tr(t){return Jc({ctor:PR},t).arr}function Jc(t,e){var r=t.arr,i=t.ctor;if(e>Eh&&(e=Eh),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function NR(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function wm(t,e,r,i,n,a,o,s){for(var l=NR(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=Qc(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var D=g[b],w=g[b+1],A=y[T],E=y[T+1];(isNaN(D)||isNaN(w))&&(D=A,w=E),u.push(D,w),f.push(A,E),c.push(r[b],r[b+1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=m.dataDimsForPoint,I=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);T=O*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var R=$c(m,n,e,O);c.push(R[0],R[1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(O));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(ue,de){return d[ue]-d[de]});for(var N=u.length,F=tr(N),k=tr(N),V=tr(N),H=tr(N),W=[],_=0;_<v.length;_++){var j=v[_],$=_*2,Z=j*2;F[$]=u[Z],F[$+1]=u[Z+1],k[$]=f[Z],k[$+1]=f[Z+1],V[$]=c[Z],V[$+1]=c[Z+1],H[$]=p[Z],H[$+1]=p[Z+1],W[_]=h[j]}return{current:F,next:k,stackedOnCurrent:V,stackedOnNext:H,status:W}}var un=Math.min,fn=Math.max;function Dm(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Gt(g,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,b=e[S*2],T=e[S*2+1];b===g&&T===y&&m<i;)m++,S+=a,d+=a,b=e[S*2],T=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var D=m+1;if(l)for(;Gt(b,T)&&D<i;)D++,S+=a,b=e[S*2],T=e[S*2+1];var w=.5,A=0,E=0,O=void 0,M=void 0;if(D>=i||Gt(b,T))h=g,v=y;else{A=b-u,E=T-f;var I=g-u,R=b-g,N=y-f,F=T-y,k=void 0,V=void 0;if(s==="x"){k=Math.abs(I),V=Math.abs(R);var H=A>0?1:-1;h=g-H*k*o,v=y,O=g+H*V*o,M=y}else if(s==="y"){k=Math.abs(N),V=Math.abs(F);var W=E>0?1:-1;h=g,v=y-W*k*o,O=g,M=y+W*V*o}else k=Math.sqrt(I*I+N*N),V=Math.sqrt(R*R+F*F),w=V/(V+k),h=g-A*o*(1-w),v=y-E*o*(1-w),O=g+A*o*w,M=y+E*o*w,O=un(O,fn(b,g)),M=un(M,fn(T,y)),O=fn(O,un(b,g)),M=fn(M,un(T,y)),A=O-g,E=M-y,h=g-A*k/V,v=y-E*k/V,h=un(h,fn(u,g)),v=un(v,fn(f,y)),h=fn(h,un(u,g)),v=fn(v,un(f,y)),A=g-h,E=y-v,O=g+A*V/k,M=y+E*V/k}t.bezierCurveTo(c,p,h,v,g,y),c=O,p=M}else t.lineTo(g,y)}u=g,f=y,d+=a}return m}var z1=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),U1=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new z1},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Gt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Gt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Dm(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=pt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?wn(s,h,d,g,r,f):wn(l,v,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var T=f[b];if(T<=1&&T>=0){var x=u?Re(l,v,m,y,T):Re(s,h,d,g,T);return u?[r,x]:[x,r]}}s=g,l=y;break}}},e})(re);var RR=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(z1),F1=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new RR},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Gt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Gt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Dm(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Dm(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(re);function Am(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=q(n)?function(m){n(m,c)}:null;at(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function Em(t,e,r){var i=t.getArea(),n=ye(i.r0,1),a=ye(i.r,1),o=new Tr({shape:{cx:ye(t.cx,1),cy:ye(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,at(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function V1(t,e,r,i,n){if(t){if(t.type==="polar")return Em(t,e,r);if(t.type==="cartesian2d")return Am(t,e,r,i,n)}else return null;return null}function H1(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ep(t,e){return t.type===e}function G1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Y1(t){for(var e=ct(),r=ct(),i=0;i<t.length;){var n=t[i++],a=t[i++];Gt(n,a)||(Cs(e,n),Cs(r,a))}return[e,r]}function W1(t,e){var r=Y1(t),i=r[0],n=r[1],a=Y1(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function X1(t){return ae(t)?t:t?.5:0}function kR(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=tr(i*2),a=0;a<i;a++){var o=$c(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function cn(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Gt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function BR(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=Qy(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function zR(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=BR(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";C(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new lf(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function UR(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&FR(a,e))){var o=e.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(l){l.tick.offInterval||(s[_i(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function FR(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(xl.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function VR(t){for(var e=t.length/2;e>0&&Gt(t[e*2-2],t[e*2-1]);e--);return e-1}function q1(t,e){return[t[e*2],t[e*2+1]]}function HR(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Gt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function K1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Et.length;e++)if(t.get([Et[e],"endLabel","show"]))return!0;return!1}function Mm(t,e,r,i){if(ep(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=K1(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Am(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return Em(e,r,i)}function GR(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var YR=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Se,i=new jc;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=he(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Qc(a,s,_),S=y&&kR(a,s,x),b=r.get("showSymbol"),T=r.get("connectNulls"),D=b&&!c&&UR(r,s,a),w=this._data;w&&w.eachItemGraphicEl(function(xe,Ee){xe.__temp&&(o.remove(xe),w.setItemGraphicEl(Ee,null))}),b||h.remove(),o.add(m);var A=c?!1:r.get("step"),E;a&&a.getArea&&r.get("clip",!0)&&(E=a.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var O=zR(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&A===this._step))b&&h.updateData(s,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(xe){return[f[xe*2],f[xe*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,E),A&&(S&&(S=cn(S,f,a,A,T)),f=cn(f,null,a,A,T)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Dr(O)),m.setClipPath(Mm(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Dr(O));var M=m.getClipPath();if(M){var I=Mm(this,a,!1,r);at(M,{shape:I.shape},r)}else m.setClipPath(Mm(this,a,!0,r));b&&h.updateData(s,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(xe){return[f[xe*2],f[xe*2+1]]}}),(!G1(this._stackedOnPoints,S)||!G1(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,A,_,T):(A&&(S&&(S=cn(S,f,a,A,T)),f=cn(f,null,a,A,T)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),N=R.get("focus"),F=R.get("blurScope"),k=R.get("disabled");if(v.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),Xn(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=v.getState("emphasis").style;V.lineWidth=+v.style.lineWidth+1}ce(v).seriesIndex=r.seriesIndex,pi(v,N,F,k);var H=X1(r.get("smooth")),W=r.get("smoothMonotone");if(v.setShape({smooth:H,smoothMonotone:W,connectNulls:T}),d){var j=s.getCalculationInfo("stackedOnSeries"),$=0;d.useStyle(ie(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),j&&($=X1(j.get("smooth"))),d.setShape({smooth:H,stackedOnSmooth:$,smoothMonotone:W,connectNulls:T}),Xn(d,r,"areaStyle"),ce(d).seriesIndex=r.seriesIndex,pi(d,N,F,k)}var Z=this._changePolyState;s.eachItemGraphicEl(function(xe){xe&&(xe.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=A,this._valueOrigin=_;var ue=r.get("triggerEvent"),de=r.get("triggerLineEvent"),Ve=de===!0||ue===!0||ue==="line",ke=de===!0||ue===!0||ue==="area";this.packEventData(r,v,Ve),d&&this.packEventData(r,d,ke)},e.prototype.packEventData=function(r,i,n){ce(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=nr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Gt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new xl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else vt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=nr(o,a);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 vt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;vv(this._polyline,r),i&&vv(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new U1({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new F1({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=q(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var D=q(c)?c(v):f*T+p,w=d.getSymbolPath(),A=w.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:D}),w.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(K1(r)){var o=r.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 De({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=VR(l);f>=0&&(Zr(s,jr(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Kc(o,h):Wo(o,c)},enableTextSetter:!0},GR(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),T=g?"x":"y",D=HR(c,x,T),w=D.range,A=w[1]-w[0],E=void 0;if(A>=1){if(A>1&&!h){var O=q1(c,w[0]);u.attr({x:O[0]+S,y:O[1]+b}),o&&(E=p.getRawValue(w[0]))}else{var O=f.getPointOn(x,T);O&&u.attr({x:O[0]+S,y:O[1]+b});var M=p.getRawValue(w[0]),I=p.getRawValue(w[1]);o&&(E=kh(n,v,M,I,D.t))}a.lastFrameIndex=w[0]}else{var R=r===1||a.lastFrameIndex>0?w[0]:0,O=q1(c,R);o&&(E=p.getRawValue(R)),u.attr({x:O[0]+S,y:O[1]+b})}if(o){var N=yo(u);typeof N.setLabelText=="function"&&N.setLabelText(E)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=wm(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=cn(p.stackedOnCurrent,p.current,n,o,l),h=cn(p.current,null,n,o,l),m=cn(p.stackedOnNext,p.next,n,o,l),d=cn(p.next,null,n,o,l)),W1(h,d)>3e3||f&&W1(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Ue(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Ue(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,D=0;D<y.length;D++){var w=y[D].el,A=y[D].ptIdx*2;w.x=T[A],w.y=T[A+1],w.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(vt),Z1=YR;function Ta(t,e){return{seriesType:t,plan:va(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=z(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");gi(i,s[0])&&(s[0]=u),gi(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&tr(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var WR={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},XR=function(t){return Math.round(t.length/2)};function Sl(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;U(a)?v=WR[a]:q(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,XR))}}}}}function Om(t){t.registerChartView(Z1),t.registerSeriesModel(P1),t.registerLayout(Ta("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Sl("line"))}var qR=(function(t){L(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(_1),j1=qR;var KR=null;function Ca(){return KR}var Q1="expandAxisBreak";var pn=Math.PI,ZR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],jR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],hn=ee(),ew=ee(),Lm=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function QR(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=Rm(t.axisName)&&on(t.nameLocation);C(i,function(v){var d=Or(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?Lr(bl,m.transform):ii(bl),d.transform&&Ei(bl,bl,d.transform),ne.copy(tp,d.localRect),tp.applyTransform(bl),s?s.union(tp):ne.copy(s=new ne(0,0,0,0),tp))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new ne(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var bl=wt(),tp=new ne(0,0,0,0),Pm=function(t,e,r,i,n,a){if(on(t.nameLocation)){var o=a.stOccupiedRect;o&&tw(M1({},o,a.transGroup.transform),i,n)}else Nm(a.labelInfoList,a.dirVec,i,n)};function tw(t,e,r){var i=new le;qc(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&O1(e,i)}function Nm(t,e,r,i){for(var n=le.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||tw(s,r,i)}}var wa=(function(){function t(e,r,i,n){this.group=new Se,this._axisModel=e,this._api=r,this._local={},this._shared=n||new Lm(Pm),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Y(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Y(e.nameDirection,1),tickDirection:Y(e.tickDirection,1),labelDirection:Y(e.labelDirection,1),labelOffset:Y(e.labelOffset,0),silent:Y(e.silent,!0),axisName:n,nameLocation:Wt(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Rm(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Se({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C($R,function(n){e[n]&&JR[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=Mh(r-e),a,o;return _s(n)?(o=i>0?"top":"bottom",a="center"):_s(n-pn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<pn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),$R=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],JR={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(ut(c,c,f),ut(p,p,f));var v=P({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&ia(i.axis.scale))Ca().buildAxisBreakLine(i,n,a,d);else{var m=new Cr(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));$n(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ae(y))&&(y=[y,y]);var _=cc(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];C([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,T){if(g[T]!=="none"&&g[T]!=null){var D=er(g[T],-x/2,-S/2,x,S,v.stroke,!0),w=b.r+b.offset,A=h?p:c;D.attr({rotation:b.rotate,x:A[0]+w*Math.cos(t.rotation),y:A[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(D)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=J1(e,n,s);u&&$1(t,e,r,i,n,a,o,Ht.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=J1(e,n,s);u&&$1(t,e,r,i,n,a,o,Ht.determine);var f=ik(t,n,a,i);rk(t,e.labelLayoutList,f),nk(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Rm(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new le(0,0),y=new le(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+p*v,y.y=p);var _=wt();y.transform(Fa(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*pn/180);var S,b;on(c)?S=wa.innerTextLayout(t.rotation,x??t.rotation,p):(S=ek(t.rotation,c,x||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var T=h.getFont(),D=i.get("nameTruncate",!0)||{},w=D.ellipsis,A=Ra(t.raw.nameTruncateMaxWidth,D.maxWidth,b),E=s.nameMarginLevel||0,O=new De({x:g.x,y:g.y,rotation:S.rotation,silent:wa.isLabelSilent(i),style:lr(h,{text:f,font:T,overflow:"truncate",width:A,ellipsis:w,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(mo({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=wa.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ce(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var I=l.nameLayout=Or({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:on(c)?ZR[E]:jR[E]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&I){var R=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,R)}}}};function $1(t,e,r,i,n,a,o,s){iw(e)||ak(t,e,n,s,i,o);var l=e.labelLayoutList;ok(t,i,l,a),uk(i,t.rotation,l);var u=t.optionHideOverlap;tk(i,l,u),u&&L1(Me(l,function(f){return f&&!f.label.ignore})),QR(t,r,i,l)}function ek(t,e,r,i){var n=Mh(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return _s(n-pn/2)?(o=l?"bottom":"top",a="center"):_s(n-pn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<pn*1.5&&n>pn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function tk(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(kC(i))return;function a(u,f,c){var p=Or(e[f]),h=Or(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=hn(p.label).labelInfo.tick;if(Fo(v)&&d.notNice||st(v)&&d.offInterval){Xo(p.label);return}}if(u===!1||p.suggestIgnore){Xo(p.label);return}if(h.suggestIgnore){Xo(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=Cm({marginForce:g},p),h=Cm({marginForce:g},h)}qc(p,h,null,{touchThreshold:m})&&Xo(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function rk(t,e,r){t.showMinorTicks||C(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=ew(a),s=hn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Xo(a);return}}})}function Xo(t){t&&(t.ignore=!0)}function rw(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(ut(o,o,e),ut(s,s,e));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});$n(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=ew(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function ik(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=rw(u,r.transform,l,ie(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function nk(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=rw(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function J1(t,e,r){if(iw(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),Im(t,null,null,null))}return!0}function ak(t,e,r,i,n,a){var o=n.axis,s=Ra(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Se;r.add(l);var u=Yo(i);if(!s||o.scale.isBlank()){Im(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Ra(t.raw.labelRotate,f.get("rotate"))||0)*pn/180,h=wa.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;C(c,function(x,S){var b,T=x.tick,D=x.formattedLabel,w=x.rawLabel,A=f,E=_i(o.scale,T);if(v&&v[E]){var O=v[E];G(O)&&O.textStyle&&(A=new Ae(O.textStyle,f,n.ecModel))}var M=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=A.getShallow("align",!0)||h.textAlign,R=Y(A.getShallow("alignMinLabel",!0),I),N=Y(A.getShallow("alignMaxLabel",!0),I),F=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||h.textVerticalAlign,k=Y(A.getShallow("verticalAlignMinLabel",!0),F),V=Y(A.getShallow("verticalAlignMaxLabel",!0),F),H=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,H),y=Math.max(y,H);var W=new De({x:0,y:0,rotation:0,silent:wa.isLabelSilent(n),z2:H,style:lr(A,{text:D,align:S===0?R:S===c.length-1?N:I,verticalAlign:S===0?k:S===c.length-1?V:F,fill:q(M)?M(o.type==="category"?w:o.type==="value"?E+"":E,S):M})});W.anid="label_"+E;var j=hn(W);if(j.labelInfo=x,j.layoutRotation=h.rotation,mo({el:W,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:w,tickIndex:S}}),m){var $=wa.makeAxisEventDataBase(n);$.targetType="axisLabel",$.value=w,$.tickIndex=S;var Z=x.tick.break;if(Z){var ue=Z.parsedBreak;$.break={start:ue.vmin,end:ue.vmax}}o.type==="category"&&($.dataIndex=E),ce(W).eventData=$,Z&&lk(n,a,W,Z)}d.push(W),l.add(W)});var _=z(d,function(x){return{label:x,priority:hn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Im(e,_,l,u)}function iw(t){return!!t.labelLayoutList}function Im(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function ok(t,e,r,i){var n=e.get(["axisLabel","margin"]);C(r,function(a,o){var s=Or(a);if(s){var l=s.label,u=hn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ni(xi,sk);var f=e.axis;xi.x=f.dataToCoord(_i(f.scale,u.labelInfo.tick)),xi.y=t.labelOffset+t.labelDirection*n,xi.rotation=u.layoutRotation,i.add(xi),xi.updateTransform(),i.remove(xi),xi.decomposeTransform(),Ni(l,xi),l.markRedraw(),_l(s,!0),Or(s)}})}var xi=new _e,sk=new _e;function Rm(t){return!!t}function lk(t,e,r,i){r.on("click",function(n){var a={type:Q1,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function uk(t,e,r){var i=Fe();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&hn(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&C(n,function(o){Ca().adjustBreakLabelPair(t.axis.inverse,e,[Or(r[o[0]]),Or(r[o[1]])])})}}var rp=wa;function Tl(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ra(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function nw(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function aw(t){var e={xAxisModel:null,yAxisModel:null};return C(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,ft).models[0];e[i]=a}),e}function ow(t,e,r,i,n,a){for(var o=Tl(t,r),s=!1,l=!1,u=0;u<e.length;u++)Ec(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new rp(r,i,o,n)}function sw(t,e,r){var i=Tl(e,r);if(0)var n;t.updateCfg(i)}function lw(){KC("liPosMinGap",ck)}function ck(t,e,r){var i=X(),n=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Jf(f);function p(_){Hc(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Jc(Da,h);var v=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var D=S.get(_,b);isFinite(D)&&(!f||ec(c,D))&&(u&&(D=l.transformIn(D,null)),Da.arr[v++]=D)}});var d=Da.typed?Da.arr.subarray(0,v):(Da.arr.length=v,Da.arr);Da.typed?d.sort():eo(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Ze(m)?m:v>0?Vc:FC,r.serUids=i}var Da=Jc({ctor:B1},50);function uw(t){return function(e,r){var i=Mr(e,{fromStat:{key:t}});if(Ze(i.w2))return[-i.w2/2,i.w2/2]}}function Cl(t,e){return t+Fc+e}function fw(t){return lw(),{liPosMinGap:!st(t.scale)}}var Si="bar";function cw(t,e,r,i){jC(t,{key:e,seriesType:r,coordSysType:i,getMetrics:fw})}function pw(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var km={left:0,right:0,top:0,bottom:0},wl=["25%","25%"],pr="cartesian2d",pk=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=Qr(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&$t(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&$t(this.option.outerBounds,r.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:km,outerBoundsContain:"all",outerBoundsClampWidth:wl[0],outerBoundsClampHeight:wl[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},e})(be),hw=pk;var hk=Ru(),vk="__ec_stack_";function vw(t){return t.get("stack")||vk+t.seriesIndex}function dk(t,e){var r=mk(t,e);return r.columnMap=gk(r),r}function mk(t,e){var r=Cl(e,pr),i=[],n=Mr(t,{fromStat:{key:r},min:1});return dm(t,r,function(a){i.push({barWidth:we(a.get("barWidth"),n.w),barMaxWidth:we(a.get("barMaxWidth"),n.w),barMinWidth:we(a.get("barMinWidth")||(gw(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:vw(a)})}),{bandWidthResult:n,seriesInfo:i}}function gk(t){var e=t.bandWidthResult.w,r=e,i=0,n,a,o=[],s={};C(t.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Oe(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=ze(r,_),r-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var T=d.barCategoryGap;T!=null&&(n=T)}),n==null&&(n=ve(35-o.length*4,15)+"%");var l=we(n,e),u=we(a,1),f=(r-l)/(i+(i-1)*u);f=ve(f,0),C(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=ze(_,g)),y&&(_=ve(_,y)),m.width=_,r-=_+u*_,i--}else{var _=f;g&&g<_&&(_=ze(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+u*_,i--)}}),f=(r-l)/(i+(i-1)*u),f=ve(f,0);var c=0,p;C(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return C(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function dw(t){return{seriesType:t,overallReset:function(e){var r=Cl(t,pr);qC(e,r,function(i){var n=dk(i,t);dm(i,r,function(a){var o=n.columnMap[vw(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function mw(t){return{seriesType:t,plan:va(),reset:function(e){if(nw(e)){var r=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=gi(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(pw(a))),v=gw(e),d=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=v&&tr(S*3),T=v&&l&&tr(S*3),D=v&&tr(S),w=i.master.getRect(),A=p?w.width:w.height,E,O=x.getStore(),M=0;(E=_.next())!=null;){var I=O.get(c?m:o,E),R=O.get(s,E),N=h,F=void 0;c&&(F=+I-O.get(o,E));var k=void 0,V=void 0,H=void 0,W=void 0;if(p){var j=i.dataToPoint([I,R]);c&&(N=i.dataToPoint([F,R])[0]),k=N,V=j[1]+y,H=j[0]-N,W=g,Pe(H)<d&&(H=(H<0?-1:1)*d)}else{var j=i.dataToPoint([R,I]);c&&(N=i.dataToPoint([R,F])[1]),k=j[0]+y,V=N,H=g,W=j[1]-N,Pe(W)<d&&(W=(W<=0?-1:1)*d)}v?(b[M]=k,b[M+1]=V,b[M+2]=p?H:W,T&&(T[M]=p?w.x:k,T[M+1]=p?V:w.y,T[M+2]=A),D[E]=E):x.setItemLayout(E,{x:k,y:V,width:H,height:W}),M+=3}v&&x.setLayout({largePoints:b,largeDataIndices:D,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function gw(t){return t.pipelineContext&&t.pipelineContext.large}function yk(t){return uw(Cl(t,pr))}function yw(t){hk(t,function(){function e(r){var i=Cl(r,pr);cw(t,i,r,pr),a1(i,yk(r))}e("bar"),e("pictorialBar")})}var _w=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,i){return an(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)C(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var b=v[S].coord,T=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}S===1&&(x=T-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},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})(Mt);Mt.registerClass(_w);var Bm=_w;var _k=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return an(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(r,i){var n=Bu(this,r,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},e.type="series."+Si,e.dependencies=["grid","polar"],e.defaultOption=_f(Bm.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Bm),xw=_k;var xk=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Sk=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new xk},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(r.moveTo(d*o+n,m*o+a),r.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):r.moveTo(d*s+n,m*s+a),r.arc(n,a,s,f,c,!p),r.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(n,a,o,c,f,p)},e})(re),zm=Sk;function Sw(t,e){e=e||{};var r=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Ln(i,n,a);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(d),b=c+p*x(d),T="left",D="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",D="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",D="bottom";break;case"startAngle":S=f+v*_(d)+ip(d,l+y,!1),b=c+v*x(d)+np(d,l+y,!1),T="right",D="middle";break;case"insideStartAngle":S=f+v*_(d)+ip(d,-l+y,!1),b=c+v*x(d)+np(d,-l+y,!1),T="left",D="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),T="center",D="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",D="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",D="top";break;case"endAngle":S=f+v*_(m)+ip(m,l+y,!0),b=c+v*x(m)+np(m,l+y,!0),T="left",D="middle";break;case"insideEndAngle":S=f+v*_(m)+ip(m,-l+y,!0),b=c+v*x(m)+np(m,-l+y,!0),T="right",D="middle";break;default:return Ln(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=D,i}}function bw(t,e,r,i){if(ae(i)){t.setTextConfig({rotation:i});return}else if(B(e)){t.setTextConfig({rotation:0});return}var n=t.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.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),t.setTextConfig({rotation:f})}function ip(t,e,r){return e*Math.sin(t)*(r?-1:1)}function np(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Aa(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;B(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(i,function(a){return gr(a,n)})}}var Um=Math.max,Fm=Math.min,bk=(function(t){L(e,t);function e(){var r=t.call(this)||this;return r.type=Si,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Jn(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=Tk(r,u);h&&this._enableRealtimeSort(h,s,n);var v=r.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function D(E){var O=ap[u.type](s,E);if(!O)return null;var M=Ok(u,c,O);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[E]=M,M}s.diff(l).add(function(E){var O=s.getItemModel(E),M=ap[u.type](s,E,O);if(M&&(g&&D(E),!(!s.hasValue(E)||!Aw[u.type](M)))){var I=!1;v&&(I=Tw[u.type](d,M));var R=Cw[u.type](r,s,E,M,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),Ew(R,s,E,O,M,r,c,u.type==="polar"),b?R.attr({shape:M}):h?ww(h,p,R,M,E,c,!1,!1):at(R,{shape:M},r,E),s.setItemGraphicEl(E,R),o.add(R),R.ignore=I}}).update(function(E,O){var M=s.getItemModel(E),I=ap[u.type](s,E,M);if(I){if(g){var R=void 0;S.length===0?R=D(O):(R=S[O],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[E]=R);var N=ap[u.type](s,E),F=Pw(c,N,u);Ue(R,{shape:F},p,E)}var k=l.getItemGraphicEl(O);if(!s.hasValue(E)||!Aw[u.type](I)){o.remove(k);return}var V=!1;v&&(V=Tw[u.type](d,I),V&&o.remove(k));var H=k&&(k.type==="sector"&&m||k.type==="sausage"&&!m);if(H&&(k&&Ki(k,r,O),k=null),k?ho(k):k=Cw[u.type](r,s,E,I,c,p,f.model,!0,m),h&&(k.forceLabelAnimation=!0),T){var W=k.getTextContent();if(W){var j=yo(W);j.prevValue!=null&&(j.prevValue=j.value)}}else Ew(k,s,E,M,I,r,c,u.type==="polar");b?k.attr({shape:I}):h?ww(h,p,k,I,E,c,!0,T):Ue(k,{shape:I},r,E,null),s.setItemGraphicEl(E,k),k.ignore=V,o.add(k)}}).remove(function(E){var O=l.getItemGraphicEl(E);O&&Ki(O,r,E)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Se);w.removeAll();for(var A=0;A<x.length;++A)w.add(x[A]);o.add(w),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,i,n){this._clear(),Ow(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),Ow(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&V1(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Ki(a,r,ce(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Si,e})(vt),Tw={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,a=t.y+t.height,o=Um(e.x,t.x),s=Fm(e.x+e.width,n),l=Um(e.y,t.y),u=Fm(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}var n=Fm(e.r,t.r),a=Um(e.r0,t.r0);e.r=n,e.r0=a;var o=n-a<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},Cw={cartesian2d:function(t,e,r,i,n,a,o,s,l){var u=new _e({shape:P({},i),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,n,a,o,s,l){var u=!n&&l?zm:Tr,f=new u({shape:i,z2:1});f.name="item";var c=Lw(n);if(f.calculateTextPosition=Sw(c,{isRoundCap:u===zm}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Ue:at)(f,{shape:v},a)}return f}};function Tk(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function ww(t,e,r,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Ue:at)(r,{shape:l},e,n,null);var f=e?t.baseAxis.model:null;(o?Ue:at)(r,{shape:u},f,n)}function Dw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var Ck=["x","y","width","height"],wk=["cx","cy","r","startAngle","endAngle"],Aw={cartesian2d:function(t){return!Dw(t,Ck)},polar:function(t){return!Dw(t,wk)}},ap={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var n=r?Ak(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Dk(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Lw(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function Ew(t,e,r,i,n,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Aa(i.getModel("itemStyle"),f,!0);P(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?Ik(n,a.coordinateSystem):Lk(n,a.coordinateSystem),v=jr(i);Zr(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:Wo(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=t.getTextContent();if(s&&d){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,bw(t,m==="outside"?h:m,Lw(o),i.get(["label","rotate"]))}Jx(d,v,a.getRawValue(r),function(y){return Kc(e,y)});var g=i.getModel(["emphasis"]);pi(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Xn(t,i),Dk(n)&&(t.style.fill="none",t.style.stroke="none",C(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Ak(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var Ek=(function(){function t(){}return t})(),Mw=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Ek},e.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(re);function Ow(t,e,r,i){var n=t.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?ku(t):0;if(u){var c=new Mw({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new Mw({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,ce(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",Iw),p.on("mousemove",Iw)),r&&r.push(p)}var Iw=$s(function(t){var e=this,r=Mk(e,t.offsetX,t.offsetY);ce(e).dataIndex=r>=0?r:null},30,!1);function Mk(t,e,r){for(var i=t.baseDimIdx,n=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Pw(t,e,r){if(ep(r,"cartesian2d")){var i=e,n=r.getArea();return{x:t?i.x:n.x,y:t?n.y:i.y,width:t?i.width:n.width,height:t?n.height:i.height}}else{var n=r.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:a.r0,r:t?n.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function Ok(t,e,r){var i=t.type==="polar"?Tr:_e;return new i({shape:Pw(e,r,t),silent:!0,z2:0})}function Ik(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function Lk(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var Nw=bk;function Vm(t){t.registerChartView(Nw),t.registerSeriesModel(xw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,dw(Si)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,mw(Si)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Sl(Si)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),yw(t)}function Hm(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function Gm(t,e,r){e=B(e)&&{coordDimensions:e}||P({encodeDefine:t.getEncode()},e);var i=t.getSource(),n=pl(i,e).dimensions,a=new wc(n,t);return a.initData(i,r),a}var Pk=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t})(),Rw=Pk;var Ir="pie",Nk=ee(),kw=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rw(he(this.getData,this),he(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Gm(this,{coordDimensions:["value"],encodeDefaulter:Te(MS,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),n=Nk(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=R_(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){bs(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+Ir,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})(Mt);_S({fullType:kw.type,getCoord2:function(t){return t.getShallow("center")}});var Bw=kw;var Rk=Math.PI/180;function zw(t,e,r,i,n,a,o,s,l,u){if(t.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-r),S=i+_.len,b=S*S,T=Math.sqrt(Math.abs((1-x*x/g)*b)),D=e+(T+_.len2)*n,w=D-_.label.x,A=_.targetTextWidth-w*n;Fw(_,A,!0),_.label.x=D}}function c(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var _=d[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*n,T=i+_.len,D=Math.abs(b)<T?Math.sqrt(S*S/(1-b*b/T/T)):T;x.rB=D,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var p=t.length,h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}I1(t,1,l,l+o)&&c(t)}function kk(t,e,r,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var h=t[p].label;Ym(t[p])||(h.x<e?(f=Math.min(f,h.x),l.push(t[p])):(c=Math.max(c,h.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var v=t[p];if(!Ym(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<e?m=d[2][0]-v.labelDistance-o-v.edgeDistance:m=o+n-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?m=f-o-v.bleedMargin:m=o+n-c-v.bleedMargin:h.x<e?m=h.x-o-v.bleedMargin:m=o+n-h.x-v.bleedMargin,v.targetTextWidth=m,Fw(v,m,!1)}}zw(u,e,r,i,1,n,a,o,s,c),zw(l,e,r,i,-1,n,a,o,s,f);for(var p=0;p<t.length;p++){var v=t[p];if(!Ym(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=v.rect.width+x,b=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+S+v.labelDistance:d[2][0]=o+n-v.edgeDistance-S-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=h.y}}}function Fw(t,e,r){if(t.labelStyleWidth==null){var i=t.label,n=i.style,a=t.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",h)}Vw(a,i)}}}function Vw(t,e){Uw.rect=t,Tm(Uw,e,Bk)}var Bk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Uw={};function Ym(t){return t.position==="center"}function Wm(t){var e=t.getData(),r=[],i,n,a=!1,o=(t.get("minShowLabelAngle")||0)*Rk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(b){b.ignore=!0}function v(b){if(!b.ignore)return!0;for(var T in b.states)if(b.states[T].ignore===!1)return!0;return!1}e.each(function(b){var T=e.getItemGraphicEl(b),D=T.shape,w=T.getTextContent(),A=T.getTextGuideLine(),E=e.getItemModel(b),O=E.getModel("label"),M=O.get("position")||E.get(["emphasis","label","position"]),I=O.get("distanceToLabelLine"),R=O.get("alignTo"),N=we(O.get("edgeDistance"),u),F=O.get("bleedMargin");F==null&&(F=Math.min(u,p)>200?10:2);var k=E.getModel("labelLine"),V=k.get("length");V=we(V,u);var H=k.get("length2");if(H=we(H,u),Math.abs(D.endAngle-D.startAngle)<o){C(w.states,h),w.ignore=!0,A&&(C(A.states,h),A.ignore=!0);return}if(v(w)){var W=(D.startAngle+D.endAngle)/2,j=Math.cos(W),$=Math.sin(W),Z,ue,de,Ve;i=D.cx,n=D.cy;var ke=M==="inside"||M==="inner";if(M==="center")Z=D.cx,ue=D.cy,Ve="center";else{var xe=(ke?(D.r+D.r0)/2*j:D.r*j)+i,Ee=(ke?(D.r+D.r0)/2*$:D.r*$)+n;if(Z=xe+j*3,ue=Ee+$*3,!ke){var oe=xe+j*(V+l-D.r),me=Ee+$*(V+l-D.r),Pt=oe+(j<0?-1:1)*H,He=me;R==="edge"?Z=j<0?f+N:f+u-N:Z=Pt+(j<0?-I:I),ue=He,de=[[xe,Ee],[oe,me],[Pt,He]]}Ve=ke?"center":R==="edge"?j>0?"right":"left":j>0?"left":"right"}var hr=Math.PI,Nt=0,vr=O.get("rotate");if(ae(vr))Nt=vr*(hr/180);else if(M==="center")Nt=0;else if(vr==="radial"||vr===!0){var Ia=j<0?-W+hr:-W;Nt=Ia}else if(vr==="tangential"||vr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var dr=Math.atan2(j,$);dr<0&&(dr=hr*2+dr);var Fl=$>0;Fl&&vr!=="tangential-noflip"&&(dr=hr+dr),Nt=dr-hr}if(a=!!Nt,w.x=Z,w.y=ue,w.rotation=Nt,w.setStyle({verticalAlign:"middle"}),ke){w.setStyle({align:Ve});var Dp=w.states.select;Dp&&(Dp.x+=w.x,Dp.y+=w.y)}else{var La=new ne(0,0,0,0);Vw(La,w),r.push({label:w,labelLine:A,position:M,len:V,len2:H,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new le(j,$),linePoints:de,textAlign:Ve,labelDistance:I,labelAlignTo:R,edgeDistance:N,bleedMargin:F,rect:La,unconstrainedWidth:La.width,labelStyleWidth:w.style.width})}T.setTextConfig({inside:ke})}}),!a&&t.get("avoidLabelOverlap")&&kk(r,i,n,l,u,p,f,c);for(var d=0;d<r.length;d++){var m=r[d],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(C(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(C(y.states,h),y.ignore=!0):(S1(S,m.minTurnAngle),b1(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new le(S[0][0],S[0][1])})}}}var Hw=Math.PI*2,op=Math.PI/180,Gw=e0(Ir,zk);function zk(t,e){t.eachSeriesByType(Ir,function(r){var i=r.getData(),n=i.mapDimension("value"),a=TS(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*op,p=r.get("endAngle"),h=r.get("padAngle")*op;p=p==="auto"?c-Hw:-p*op;var v=r.get("minAngle")*op,d=v+h,m=0;i.each(n,function(N){!isNaN(N)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=i.getDataExtent(n);b[0]=0;var T=_?1:-1,D=[c,p],w=T*h/2;iv(D,!_),c=D[0],p=D[1];var A=Xm(r);A.startAngle=c,A.endAngle=p,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var E=Math.abs(p-c),O=E,M=0,I=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(N,F){var k;if(isNaN(N)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?k=g===0&&S?y:N*y:k=E/m,k<d?(k=d,O-=d):M+=N;var V=I+T*k,H=0,W=0;h>k?(H=I+T*k/2,W=H):(H=I+w,W=V-w),i.setItemLayout(F,{angle:k,startAngle:H,endAngle:W,clockwise:_,cx:o,cy:s,r0:u,r:x?ys(N,b,[u,l]):l}),I=V}),O<Hw&&m)if(O<=.001){var R=E/m;i.each(n,function(N,F){if(!isNaN(N)){var k=i.getItemLayout(F);k.angle=R;var V=0,H=0;R<h?(V=c+T*(F+1/2)*R,H=V):(V=c+T*F*R+w,H=c+T*(F+1)*R-w),k.startAngle=V,k.endAngle=H}})}else y=O/M,I=c,i.each(n,function(N,F){if(!isNaN(N)){var k=i.getItemLayout(F),V=k.angle===d?d:N*y,H=0,W=0;V<h?(H=I+T*V/2,W=H):(H=I+w,W=I+T*V-w),k.startAngle=H,k.endAngle=W,I+=T*V}})})}var Xm=ee();var Uk=(function(t){L(e,t);function e(r,i,n){var a=t.call(this)||this;a.z2=2;var o=new De;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return e.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=P(Aa(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(at(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,at(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),at(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Ue(o,{shape:{endAngle:f.endAngle}},s,i))}else ho(o),Ue(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),Xn(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=P({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Aa(u.getModel("itemStyle"),f)),P(o.ensureState("select"),{x:d,y:m,shape:Aa(l.getModel(["select","itemStyle"]),f)}),P(o.ensureState("blur"),{shape:Aa(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&P(y.ensureState("select"),{x:d,y:m}),P(_.ensureState("select"),{x:d,y:m}),pi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Zr(a,jr(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Kn,this.setTextGuideLine(h)),T1(this,C1(o),{stroke:u,opacity:Wt(s.get(["lineStyle","opacity"]),f,1)})}},e})(Tr),Fk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ir,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=Xm(r),h=new Tr({shape:J(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new Uk(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);Ki(d,r,v)}).execute(),Wm(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Ir,e})(vt),Yw=Fk;function qm(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(ae(o)&&!isNaN(o)&&o<0)})}}}function Km(t){t.registerChartView(Yw),t.registerSeriesModel(Bw),qb(Ir,t.registerAction),t.registerLayout(Gw),t.registerProcessor(Hm(Ir)),t.registerProcessor(qm(Ir))}var Vk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,i){return an(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},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:Q.color.primary}},universalTransition:{divideShape:"clone"}},e})(Mt),Ww=Vk;var Xw=4,Hk=(function(){function t(){}return t})(),Gk=(function(t){L(e,t);function e(r){var i=t.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new Hk},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Xw,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var p=n[c++],h=n[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(r>=c&&i>=p&&r<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<n.length;){var h=n[p++],v=n[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}r=this._rect=new ne(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(re),Yk=(function(){function t(){this.group=new Se}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var i=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,i,n){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Gk({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=er(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Xw;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),qw=Yk;var Wk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,Zm(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),ku(i),Zm(i)),this._finished=r.end===i.getData().count()},e.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),this._finished){var o=Ta("").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(Zm(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new qw:new jc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(vt);function Zm(t){return{clipShape:H1(t)}}var Kw=Wk;var sp=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ft).models[0]},e.type="cartesian2dAxis",e})(be);Tt(sp,UC);var Zw={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:Q.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:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Xk=ge({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Zw),jm=ge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},Zw),qk=ge({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jm),Kk=ie({logBase:10},jm),jw={category:Xk,value:jm,time:qk,log:Kk};function lp(t,e,r,i){C(Rc,function(n,a){var o=ge(ge({},jw[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=$i(this),h=p?Qr(f):{},v=c.getTheme();ge(f,v.get(a+"Axis")),ge(f,this.getDefaultOption()),f.type=Qw(f),p&&$t(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=hl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Ca();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Qw)}function Qw(t){return t.type||(t.data?"category":"value")}var Zk=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Me(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),$w=Zk;var Dl=["x","y"];function Jw(t){return(t.type==="interval"||t.type==="time")&&!ia(t)}var jk=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=pr,r.dimensions=Dl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Jw(r)||!Jw(i))){var n=xa(r,null),a=xa(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=Lr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new ne(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ut(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return ut(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new ne(a,o,s,l)},e})($w),eD=jk;function tD(t,e){var r=t.scale,i=t.model,n=Gc(r,i,i.ecModel,t,null),a=$r(r),o=$r(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Pe(u[0].value-u[1].value),m=Pe(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),T=Oc(b,x),D,w,A,E,O,M;function I(j){for(var $=50,Z=0;Z<$&&!j();Z++)A=a?A*ve(l,2):dC(A),E=Er(A)}function R(){D=ye(M-A*p,E)}function N(){w=ye(O+A*h,E)}function F(){M=p?ye(D+A*p,E):D}function k(){O=h?ye(w-A*h,E):w}if(x[0]&&x[1]){D=T[0],w=T[1],A=(w-D)/(v+p+h);var V=t.getExtent(),H=Pe(V[1]-V[0]);E=N_([w,D],H,.5/v),F(),k(),Ze(E)&&(A=ye(A,E))}else{var W=T[1]-T[0];A=a?ve(Lu(W),1):Pn(W/v,Oh),E=Er(A),x[0]?(D=T[0],I(function(){if(F(),O=ye(M+A*v,E),N(),w>=T[1])return!0})):x[1]?(w=T[1],I(function(){if(k(),M=ye(O-A*v,E),R(),D<=T[0])return!0})):I(function(){M=ye(ki(T[0]/A)*A,E),O=ye(kr(T[1]/A)*A,E);var j=qt((O-M)/A);if(j<=v){var $=v-j,Z=void 0,ue=n.incl0||a;if(ue&&T[0]===0)Z=[0,$];else if(ue&&T[1]===0)Z=[$,0];else{var de=kr($/2);Z=$%2===0?[de,de]:D+w<T[0]+T[1]?[de,de+1]:[de+1,de]}if(M=ye(M-A*Z[0],E),O=ye(O+A*Z[1],E),R(),N(),D<=T[0]&&w>=T[1])return!0}})}zc(r,x,b,[D,w],S,{interval:A,intervalCount:v,intervalPrecision:E,niceExtent:[M,O]})}var rD=[[3,1],[0,2]],Qk=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dl,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;C(this._axesList,function(o){i1(o,JC);var s=o.scale;st(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=te(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):_m(f)}C(l,function(c){Jk(c,c.__alignTo)?_m(c):tD(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};C(i.x,function(o){iD(i,"y",o,a)}),C(i.y,function(o){iD(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=sa(e,r),a=this._rect=ur(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Qm(o,a),!i){var u=t2(a,s,o,l,r),f=void 0;if(l)sD?(sD(this._axesList,a),Qm(o,a)):f=lD(a.clone(),"axisLabel",null,a,o,u,n);else{var c=r2(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=lD(p,h,v,a,o,u,n))}uD(a,o,Ht.determine,null,f,n),C(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}G(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ft).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",ft).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(f,c){C(s.y,function(p,h){var v="x"+c+"y"+h,d=new eD(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),aD(s.x),aD(s.y);function u(f){return function(c,p){if($k(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=IC(c),d=new j1(f,LC(c,v,!0),[0,0],v,h);d.onBand=Uc(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return C(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);fe(r,a)<0&&r.push(a),fe(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),C(o._axesList,function(s){r1(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;SS({targetModel:n,coordSysType:pr,coordSysProvider:s});function s(){var l=aw(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(gm(a,n,pr),gm(o,n,pr))},this),i},t.dimensions=Dl,t.dimIdxMap=sl(Dl),t})();function $k(t,e){return t.getCoordSysModel()===e}function iD(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)nD(s,n[l])&&(a=n[l]);else for(var u in n)if(Oe(n,u)&&nD(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function nD(t,e){if(!e)return!1;var r=e.scale,i=PC(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==kc;return n&&t==="auto"&&RC(e)&&(n=!1),n}function aD(t){for(var e=te(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];Ec(a.scale)&&pm(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&C(i,function(o){o.__alignTo=r})}function Jk(t,e){return ia(t.scale)||ia(e.scale)||e.scale.getTicks().length<2}function e2(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function Qm(t,e){C(t.x,function(r){return oD(r,e.x,e.width)}),C(t.y,function(r){return oD(r,e.y,e.height)})}function oD(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),e2(t,e)}var sD;function lD(t,e,r,i,n,a,o){uD(i,n,Ht.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=oy(s,function(p){return p>0})==null;return vo(i,s,!0,!0,r),Qm(n,i),l;function u(p){C(n[Kr[p]],function(h){if(ba(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(_i(h.scale,hn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=on(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[Kr[h]]-p[Kr[h]],m=p[Zi[h]]+p[Kr[h]]-(t[Zi[h]]+t[Kr[h]]);d=c(d,1-v),m=c(m,v);var g=rD[h][0],y=rD[h][1];s[g]=ve(s[g],d),s[y]=ve(s[y],m)}function c(p,h){return p>0&&!Ci(h)&&h>1e-4&&(p/=h),p}}function t2(t,e,r,i,n){var a=new Lm(i2);return C(r,function(o){return C(o,function(s){if(ba(s.model)){var l=!i;s.axisBuilder=ow(t,e,s.model,n,a,l)}})}),a}function uD(t,e,r,i,n,a){var o=r===Ht.determine;C(e,function(u){return C(u,function(f){ba(f.model)&&(sw(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Kr[1-u]]=t[Zi[u]]<=a.refContainer[Zi[u]]*.5?0:1-u===1?2:1}C(e,function(u,f){return C(u,function(c){ba(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function r2(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=ur(t.get("outerBounds",!0)||km,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[Iu(Y(t.get("outerBoundsClampWidth",!0),wl[0]),e.width),Iu(Y(t.get("outerBoundsClampHeight",!0),wl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var i2=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Pm(t,e,r,i,n,a),on(t.nameLocation)||C(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Nm(s.labelInfoList,s.dirVec,i,n)})},fD=Qk;function cD(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n2(r,t,e),r.seriesInvolved&&o2(r,t),r}function n2(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=qo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(C(s.getAxes(),Te(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&C(v.baseAxes,Te(d,h?"cross":!0,p)),h&&C(v.otherAxes,Te(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!Jm(_))){g==null&&(g=_.get("triggerTooltip")),_=m?a2(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=qo(y.model),D=g||S||y.type==="category",w=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:D,snap:S,useHandle:Jm(_),seriesModels:[],linkGroup:null};u[T]=w,t.seriesInvolved=t.seriesInvolved||D;var A=s2(a,y);if(A!=null){var E=o[A]||(o[A]={axesInfo:{}});E.axesInfo[T]=w,E.mapper=a[A].mapper,w.linkGroup=E}}}})}function a2(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(p){l[p]=J(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ie(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ae(l,r,i))}function o2(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||C(t.coordSysAxesInfo[qo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function s2(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if($m(a[i+"AxisId"],r.id)||$m(a[i+"AxisIndex"],r.componentIndex)||$m(a[i+"AxisName"],r.name))return n}}function $m(t,e){return t==="all"||B(t)&&fe(t,e)>=0||t===e}function pD(t){var e=up(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Jm(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function up(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[qo(t)]}function hD(t){var e=up(t);return e&&e.axisPointerModel}function Jm(t){return!!t.get(["handle","show"])}function qo(t){return t.type+"||"+t.id}var vD={},l2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&pD(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=hD(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){vD[r]=i},e.getAxisPointerClass=function(r){return r&&vD[r]},e.type="axis",e})(ht),fp=l2;var tg=ee();function dD(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=tg(t).splitAreaColors,p=X(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=B(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var T=u[v-1].tickValue;T!=null&&p.set(T,h),e.add(new _e({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:ie({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}tg(t).splitAreaColors=p}}}function mD(t){tg(t).splitAreaColors=null}var u2=["splitArea","splitLine","minorSplitLine","breakArea"],gD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Se,this.group.add(this._axisGroup),!!ba(r)){this._axisGroup.add(r.axis.axisBuilder.group),C(u2,function(l){r.get([l,"show"])&&f2[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||zv(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){mD(this)},e.type="cartesianAxis",e})(fp),f2={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=B(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new Cr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:ie({stroke:l[S]},g),silent:!0});$n(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new Cr({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});$n(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,n){dD(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=Ca(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},rg=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(gD);var yD=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=rg.type,r}return e.type="yAxis",e})(gD);var c2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new _e({shape:r.coordinateSystem.getRect(),style:ie({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ht),_D={offset:0};function cp(t){t.registerComponentView(c2),t.registerComponentModel(hw),t.registerCoordinateSystem("cartesian2d",fD),lp(t,"x",sp,_D),lp(t,"y",sp,_D),t.registerComponentView(rg),t.registerComponentView(yD),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ig(t){bt(cp),t.registerSeriesModel(Ww),t.registerChartView(Kw),t.registerLayout(Ta("scatter"))}var Ea=ee(),xD=J,ng=he,p2=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Se,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Te(SD,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}TD(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Mr(n).w>s)return!0;if(o){var l=up(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=Ea(e).pointerEl=new Qe[a.type](xD(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=Ea(e).labelEl=new De(xD(r.label));e.add(a),bD(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=Ea(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=Ea(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),bD(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Hs(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){tu(u.event)},onmousedown:ng(this._onHandleDragMove,this,0,0),drift:ng(this._onHandleDragMove,this),ondragend:ng(this._onHandleDragEnd,this)}),i.add(n)),TD(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");B(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,sc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){SD(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ag(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(ag(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ag(n)),Ea(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Js(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function SD(t,e,r,i){CD(Ea(r).lastProp,i)||(Ea(r).lastProp=i,e?Ue(r,i,t):(r.stopAnimation(),r.attr(i)))}function CD(t,e){if(G(t)&&G(e)){var r=!0;return C(e,function(i,n){r=r&&CD(t[n],i)}),!!r}else return t===e}function bD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ag(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function TD(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var wD=p2;function DD(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function h2(t,e,r,i,n){var a=r.get("value"),o=og(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Qi(s.get("padding")||0),u=s.getFont(),f=Du(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),v2(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:lr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function v2(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function og(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ho(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function sg(t,e,r){var i=wt();return Fa(i,i,r.rotation),ts(i,i,r.position),df([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function AD(t,e,r,i,n,a){var o=rp.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),h2(e,i,n,a,{position:sg(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ED(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function MD(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function OD(t,e,r){return Mr(t,{fromStat:{sers:z(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function ID(t,e,r){return[ve(ze(e[0],e[1]),t-r/2),ze(t+r/2,ve(e[0],e[1]))]}var d2=(function(t){L(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=PD(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=DD(a),v=m2[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Tl(l.getRect(),n);AD(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=Tl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=sg(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=PD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=ze(l[1],c[f]),c[f]=ve(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(wD);function PD(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var m2={line:function(t,e,r,i){var n=ED([e,i[0]],[e,i[1]],ND(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=OD(t,n,a),s=i[1]-i[0],l=ID(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:MD([u,i[0]],[f-u,s],ND(t))}}};function ND(t){return t.dim==="x"?0:1}var RD=d2;var g2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:Q.color.border,width:1,type:"dashed"},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.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:Q.color.accent40,throttle:40}},e})(be),kD=g2;var bi=ee(),y2=C;function pp(t,e,r){if(!se.node){var i=e.getZr();bi(i).records||(bi(i).records={}),_2(i,e);var n=bi(i).records[t]||(bi(i).records[t]={});n.handler=r}}function _2(t,e){if(bi(t).initialized)return;bi(t).initialized=!0,r("click",Te(lg,"click")),r("mousemove",Te(lg,"mousemove")),r("mousewheel",Te(lg,"mousewheel")),r("globalout",S2);function r(i,n){t.on(i,function(a){var o=b2(e);y2(bi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),x2(o.pendings,e)})}}function x2(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function S2(t,e,r){t.handler("leave",null,r)}function lg(t,e,r,i){e.handler(t,r,i)}function b2(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function Al(t,e){if(!se.node){var r=e.getZr(),i=(bi(r).records||{})[t];i&&(bi(r).records[t]=null)}}var T2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";pp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){Al("axisPointer",i)},e.prototype.dispose=function(r,i){Al("axisPointer",i)},e.type="axisPointer",e})(ht),zD=T2;function El(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=nr(a,t);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(z(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var UD=ee();function ug(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||he(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){hp(n)&&(n=El({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=hp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||hp(n),p={},h={},v={list:[],map:{}},d={showPointer:Te(w2,h),showTooltip:Te(D2,v)};C(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);C(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=O2(u,x);if(!c&&_&&(!u||T)){var D=T&&T.value;D==null&&!l&&(D=b.pointToData(n)),D!=null&&FD(x,D,d,!1,p)}})});var m={};return C(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&C(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var T=b.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,VD(x),VD(g)))),m[g.key]=T}})}),C(m,function(g,y){FD(f[y],g,d,!0,p)}),A2(h,f,p),E2(v,n,t,o),M2(f,o,r),p}}function FD(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=C2(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function C2(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(Ze(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),C(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function w2(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function D2(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=qo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function A2(t,e,r){var i=r.axesInfo=[];C(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function E2(t,e,r,i){if(hp(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function M2(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=UD(i)[n]||{},o=UD(i)[n]={};C(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&C(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}C(a,function(f,c){!o[c]&&l.push(u(f))}),C(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function O2(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function VD(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function hp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function vp(t){fp.registerAxisPointerClass("CartesianAxisPointer",RD),t.registerComponentModel(kD),t.registerComponentView(zD),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!B(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=cD(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ug)}function fg(t){bt(cp),bt(vp)}function HD(t,e){var r=Qi(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new _e({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var I2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:Q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},e})(be),GD=I2;function dp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function YD(t){if(se.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var cg=YD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),WD=YD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function pg(t,e){if(!t)return e;e=Rf(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function XD(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var L2=pg(WD,"transition"),hg=pg(cg,"transform"),P2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function N2(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function R2(t,e,r){if(!U(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Dr(e);var a=N2(r),o=Math.max(Math.round(n)*1.5,6),s="",l=hg+":",u;fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function k2(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(se.transformSupported?""+hg+n:",left"+n+",top"+n)),L2+":"+a}function qD(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!se.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=se.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+hg+":"+o+";":[["top",0],["left",0],[cg,o]]}function B2(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Y(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),C(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function z2(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=rc(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(k2(a,r,i)),o&&n.push("background-color:"+o),C(["width","color","radius"],function(v){var d="border-"+v,m=Rf(d),g=t.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(B2(c)),p!=null&&n.push("padding:"+Qi(p).join("px ")+"px"),n.join(";")+";"}function KD(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&vy(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var U2=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,se.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):Pa(a)?a:q(a)&&a(e.getDom()));KD(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();kt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=XD(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=P2+z2(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+qD(a[0],a[1],!0)+("border-color:"+Dr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!dp(i)&&(s=R2(i,n,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",B(e)||(e=[e]);for(var l=0;l<e.length;l++)Pa(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)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(KD(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=qD(i[0],i[1]);C(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",se.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(he(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;dy(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),ZD=U2;var F2=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),QD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;G(e)&&it(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new De({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:rc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),C(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=jD(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;QD(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=vn(a.borderWidth||0),s=jD(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(he(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function vn(t){return Math.max(0,t)}function jD(t){var e=vn(t.shadowBlur||0),r=vn(t.shadowOffsetX||0),i=vn(t.shadowOffsetY||0);return{left:vn(e-r),right:vn(e+r),top:vn(e-i),bottom:vn(e+i)}}function QD(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var $D=F2;var V2=new _e({shape:{x:-1,y:-1,width:2,height:2}}),H2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(se.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=K_(n.get("renderMode"));this._tooltipContent=a==="richText"?new $D(i):new ZD(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(se.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?sc(this,"_updatePosition",50,"fixRate"):Js(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");pp("itemTooltip",this._api,he(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||se.node||!n.getDom())){var o=JD(a,n);this._ticket="";var s=a.dataByCoordSys,l=X2(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=V2;f.x=a.x,f.y=a.y,f.update(),ce(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=El(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(JD(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Ml([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;da(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ce(f).dataIndex!=null?l=f:ce(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=he(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ml([i.tooltipOption],a),l=this._renderMode,u=[],f=ha("section",{blocks:[],noHeader:!0}),c=[],p=new ic;C(r,function(y){C(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,T=b.scale.parse(S);if(!(!x||S==null)){var D=og(S,b,n,_.seriesDataIndices,_.valueLabelOpt),w=ha("section",{header:D,noHeader:!lt(D),sortBlocks:!0,blocks:[]});f.blocks.push(w),C(_.seriesDataIndices,function(A){var E=n.getSeriesByIndex(A.seriesIndex),O=A.dataIndexInside,M=E.getDataParams(O);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Ho(x.axis,{value:T}),M.axisValueLabel=D,M.marker=p.makeTooltipMarker("item",Dr(M.color),l);var I=bd(E.formatTooltip(O,!0,null)),R=I.frag;if(R){var N=Ml([E],a).get("valueFormatter");w.blocks.push(N?P({valueFormatter:N},R):R)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Ed(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
36
+
37
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=ce(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Ml([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new ic;g.marker=y.makeTooltipMarker("item",Dr(g.color),h);var _=bd(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,T=b?Ed(S?P({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,D="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,D,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=ce(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=J(l),l.content=Je(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Ml(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new ic;this._showOrMove(v,function(){var y=J(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(U(p)){var m=r.ecModel.get("useUTC"),g=B(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=na(g.axisValue,h,m)),h=Bf(h,n,!0)}else if(q(p)){var _=he(function(x,S){x===this._ticket&&(c.setContent(S,f,r,d,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||B(i))return{color:a||o};if(!B(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),q(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),B(i))n=we(i[0],u),a=we(i[1],f);else if(G(i)){var d=i;d.width=c[0],d.height=c[1];var m=ur(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(U(i)&&l){var g=W2(i,v,c,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=G2(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=eA(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=eA(h)?c[1]/2:h==="bottom"?c[1]:0),dp(r)){var g=Y2(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&C(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&C(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&C(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&C(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){se.node||!i.getDom()||(Js(this,"_updatePosition"),this._tooltipContent.dispose(),Al("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(ht);function Ml(t,e,r){var i=e.ecModel,n;r?(n=new Ae(r,i,i),n=new Ae(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ae&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Ae(o,n,i)))}return n}function JD(t,e){return t.dispatchAction||he(e.dispatchAction,e)}function G2(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function Y2(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function W2(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function eA(t){return t==="center"||t==="middle"}function X2(t,e,r){var i=Ts(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=zi(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ce(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var tA=H2;function vg(t){bt(vp),t.registerComponentModel(GD),t.registerComponentView(tA),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Le),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Le)}var q2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},e})(be),K2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Y(r.get("textBaseline"),r.get("textVerticalAlign")),f=new De({style:lr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=r.get("subtext"),h=new De({style:lr(s,{text:p,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),d=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){ad(v,"_"+r.get("target"))}),d&&h.on("click",function(){ad(d,"_"+r.get("subtarget"))}),ce(f).eventData=ce(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=sa(r,n),x=ur(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),h.setStyle(S),g=a.getBoundingRect();var b=x.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var D=new _e({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(D)}},e.type="title",e})(ht);function dg(t){t.registerComponentModel(q2),t.registerComponentView(K2)}var Z2=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},j2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),B(i)&&C(i,function(a,o){U(a)&&(a={type:a}),i[o]=ge(a,Z2(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&ro(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=X(),s=z(a,function(l){return(U(l)||ae(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ae(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;C(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;C(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&fe(this._availableNames,r)>=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:Q.size.m,align:"auto",backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.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:Q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(be),Ol=j2;var Ko=Te,mg=C,mp=Se,Q2=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new mp),this.group.add(this._selectorGroup=new mp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=sa(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=ur(c,f,p),v=this.layoutInner(r,o,h,a,l,u),d=ur(ie({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=HD(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=X(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),mg(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
38
+ `)){var y=new mp;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),T=x.getVisual("style"),D=this._createItem(_,g,d,v,i,r,S,T,b,c,a);D.on("click",Ko(rA,g,null,a,h)).on("mouseover",Ko(gg,_.name,null,a,h)).on("mouseout",Ko(yg,_.name,null,a,h)),n.ssr&&D.eachChild(function(w){var A=ce(w);A.seriesIndex=_.seriesIndex,A.dataIndex=d,A.ssrType="legend"}),p&&D.eachChild(function(w){m.packEventData(w,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(w){var A=this;if(!f.get(g)&&w.legendVisualProvider){var E=w.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),M=E.getItemVisual(O,"style"),I=E.getItemVisual(O,"legendIcon"),R=Dt(M.fill);R&&R[3]===0&&(R[3]=.2,M=P(P({},M),{fill:An(R,"rgba")}));var N=this._createItem(w,g,d,v,i,r,{},M,I,c,a);N.on("click",Ko(rA,null,g,a,h)).on("mouseover",Ko(gg,null,g,a,h)).on("mouseout",Ko(yg,null,g,a,h)),n.ssr&&N.eachChild(function(F){var k=ce(F);k.seriesIndex=w.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),p&&N.eachChild(function(F){A.packEventData(F,i,w,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ce(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();mg(r,function(u){var f=u.type,c=new De({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);Zr(c,{normal:p,emphasis:h},{defaultText:u.title}),Ju(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=$2(f,a,l,u,h,m,p),S=new mp,b=a.getModel("textStyle");if(q(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(J2({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var D=s==="left"?v+5:-5,w=s,A=o.get("formatter"),E=i;U(A)&&A?E=A.replace("{name}",i??""):q(A)&&(E=A(i));var O=m?b.getTextColor():a.get("inactiveColor");S.add(new De({style:lr(b,{text:E,x:D,y:d/2,fill:O,align:w,verticalAlign:"middle"},{inheritColor:O})}));var M=new _e({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&mo({el:M,componentModel:o,itemName:i,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Ju(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();oa(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){oa("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=r.get("selectorButtonGap",!0),d=r.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(ht);function $2(t,e,r,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),mg(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:nl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function J2(t){var e=t.icon||"roundRect",r=er(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Q.color.neutral00,r.style.lineWidth=2),r}function rA(t,e,r,i){yg(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),gg(t,e,r,i)}function gg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function yg(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var gp=Q2;function Il(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),iA(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){C(n,function(l,u){s[l?"select":"unSelect"](u)}),iA(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function iA(t,e){var r=e||{};return C(t.getData(),function(i){var n=i.get("name");if(!(n===`
39
+ `||n==="")){var a=t.isSelected(n);Oe(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function nA(t){t.registerAction("legendToggleSelect","legendselectchanged",Te(Il,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Te(Il,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Te(Il,"inverseSelect")),t.registerAction("legendSelect","legendselected",Te(Il,"select")),t.registerAction("legendUnSelect","legendunselected",Te(Il,"unSelect"))}var aA=Ui(eB);function eB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function yp(t){t.registerComponentModel(Ol),t.registerComponentView(gp),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,aA),t.registerSubTypeDefaulter("legend",function(){return"plain"}),nA(t)}var tB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=Qr(r);t.prototype.init.call(this,r,i,n),oA(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),oA(this,this.option,r)},e.type="legend.scroll",e.defaultOption=_f(Ol.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:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),e})(Ol);function oA(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,$t(e,r,{type:"box",ignoreSize:!!n})}var sA=tB;var lA=Se,_g=["width","height"],xg=["x","y"],rB=(function(t){L(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new lA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lA)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=B(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new De({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=Hs(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:he(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=_g[u],c=xg[u],p=_g[1-u],h=xg[1-u];o&&oa("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=J(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;oa(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),oa("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-v[o]-_,0),b[s]=S[s],c.setClipPath(new _e({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Ue(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?r:null),this._updatePageInfoView(r,T),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=_g[o],l=xg[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(b){if(b){var T=b.getBoundingRect(),D=T[l]+b[l];return{s:D,e:D+T[s],i:b.__legendDataIndex}}}function S(b,T){return b.e>=T&&b.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(gp),uA=rB;function Sg(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function fA(t){bt(yp),t.registerComponentModel(sA),t.registerComponentView(uA),Sg(t)}function bg(t){bt(yp),bt(fA)}var iB={label:{enabled:!0},decal:{show:!1}},cA=ee(),pA=ee(),hA=Ui(nB);function nB(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=pA(t).scope||(pA(t).scope={}),n=J(iB);ge(n.label,t.getLocaleModel().get("aria"),!1),ge(r.option,n,!1),a(),o();function a(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=X();t.eachSeries(function(h){h.isColorBySeries()||(cA(h).scope=p.get(h.type)||p.set(h.type,{}))}),t.eachSeries(function(h){if(q(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var _=pd(h.ecModel,h.name,i,t.getSeriesCount()),x=v.getVisual("decal");v.setVisual("decal",S(x,_))}else{var d=h.getRawData(),m={},g=cA(h).scope;v.each(function(b){var T=v.getRawIndex(b);m[T]=b});var y=d.count();d.each(function(b){var T=m[b],D=d.getName(b)||b+"",w=pd(h.ecModel,D,g,y),A=v.getItemVisual(T,"decal");v.setItemVisual(T,"decal",S(A,w))})}function S(b,T){var D=b?P(P({},T),b):T;return D.dirty=!0,D}})}}function o(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=ie(p.option,c),!!p.get("enabled")){if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var h=t.getSeriesCount(),v=p.get(["data","maxCount"])||10,d=p.get(["series","maxCount"])||10,m=Math.min(h,d),g;if(!(h<1)){var y=l();if(y){var _=p.get(["general","withTitle"]);g=s(_,{title:y})}else g=p.get(["general","withoutTitle"]);var x=[],S=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);g+=s(S,{seriesCount:h}),t.eachSeries(function(w,A){if(A<m){var E=void 0,O=w.get("name"),M=O?"withName":"withoutName";E=h>1?p.get(["series","multiple",M]):p.get(["series","single",M]),E=s(E,{seriesId:w.seriesIndex,seriesName:w.get("name"),seriesType:u(w.subType)});var I=w.getData();if(I.count()>v){var R=p.get(["data","partialData"]);E+=s(R,{displayCnt:v})}else E+=p.get(["data","allData"]);for(var N=p.get(["data","separator","middle"]),F=p.get(["data","separator","end"]),k=p.get(["data","excludeDimensionId"]),V=[],H=0;H<I.count();H++)if(H<v){var W=I.getName(H),j=k?Me(I.getValues(H),function(Z,ue){return fe(k,ue)===-1}):I.getValues(H),$=p.get(["data",W?"withName":"withoutName"]);V.push(s($,{name:W,value:j.join(N)}))}E+=V.join(N)+F,x.push(E)}});var b=p.getModel(["series","multiple","separator"]),T=b.get("middle"),D=b.get("end");g+=x.join(T)+D,f.setAttribute("aria-label",g)}}}}function s(f,c){if(!U(f))return f;var p=f;return C(c,function(h,v){p=p.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),p}function l(){var f=t.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function Tg(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},C(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function Cg(t){t.registerPreprocessor(Tg),t.registerVisual(t.PRIORITY.VISUAL.ARIA,hA)}var wg=Math.sin,Dg=Math.cos,vA=Math.PI,Ma=Math.PI*2,aB=180/vA,oB=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){this._add("C",e,r,i,n,a,o)},t.prototype.quadraticCurveTo=function(e,r,i,n){this._add("Q",e,r,i,n)},t.prototype.arc=function(e,r,i,n,a,o){this.ellipse(e,r,i,i,0,n,a,o)},t.prototype.ellipse=function(e,r,i,n,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Rr(c-Ma)||(f?u>=Ma:-u>=Ma),h=u>0?u%Ma:u%Ma+Ma,v=!1;p?v=!0:Rr(c)?v=!1:v=h>=vA==!!f;var d=e+i*Dg(o),m=r+n*wg(o);this._start&&this._add("M",d,m);var g=Math.round(a*aB);if(p){var y=1/this._p,_=(f?1:-1)*(Ma-y);this._add("A",i,n,g,1,+f,e+i*Dg(o+_),r+n*wg(o+_)),y>.01&&this._add("A",i,n,g,0,+f,d,m)}else{var x=e+i*Dg(s),S=r+n*wg(s);this._add("A",i,n,g,+v,+f,x,S)}},t.prototype.rect=function(e,r,i,n){this._add("M",e,r),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,n,a,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),_p=oB;var Ll="none",sB=Math.round;function lB(t){var e=t.fill;return e!=null&&e!==Ll}function uB(t){var e=t.stroke;return e!=null&&e!==Ll}var Ag=["lineCap","miterLimit","lineJoin"],fB=z(Ag,function(t){return"stroke-"+t.toLowerCase()});function Eg(t,e,r,i){var n=e.opacity==null?1:e.opacity;if(r instanceof yt){t("opacity",n);return}if(lB(e)){var a=Pi(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;(i||o<1)&&t("fill-opacity",o)}else t("fill",Ll);if(uB(e)){var s=Pi(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=il(r),h=p[0],v=p[1];h&&(v=sB(v||0),t("stroke-dasharray",h.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",Ll);for(var d=0;d<Ag.length;d++){var m=Ag[d];if(i||e[m]!==oo[m]){var g=e[m]||oo[m];g&&t(fB[d],g)}}}else i&&t("stroke",Ll)}var dA="http://www.w3.org/2000/svg",Mg="http://www.w3.org/1999/xlink",mA="http://www.w3.org/2000/xmlns/",gA="http://www.w3.org/XML/1998/namespace",Og="ecmeta_";function xp(t){return document.createElementNS(dA,t)}function Xe(t,e,r,i,n){return{tag:t,attrs:r||{},children:i,text:n,key:e}}function cB(t,e){var r=[];if(e)for(var i in e){var n=e[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function pB(t){return"</"+t+">"}function Pl(t,e){e=e||{};var r=e.newline?`
40
+ `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return cB(o,s)+(o!=="style"?Je(l):l||"")+(a?""+r+z(a,function(u){return i(u)}).join(r)+r:"")+pB(o)}return i(t)}function yA(t,e,r){r=r||{};var i=r.newline?`
41
+ `:"",n=" {"+i,a=i+"}",o=z(te(t),function(l){return l+n+z(te(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+a}).join(i),s=z(te(e),function(l){return"@keyframes "+l+n+z(te(e[l]),function(u){return u+n+z(te(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Nl(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ig(t,e,r,i){return Xe("svg","root",{width:t,height:e,xmlns:dA,"xmlns:xlink":Mg,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var hB=0;function Sp(){return hB++}var _A={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Oa="transform-origin";function vB(t,e,r){var i=P({},t.shape);P(i,e),t.buildPath(r,i);var n=new _p;return n.reset(gu(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function dB(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[Oa]=r+"px "+i+"px")}var mB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SA(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function gB(t,e,r){var i=t.shape.paths,n={},a,o;if(C(i,function(l){var u=Nl(r.zrId);u.animation=!0,Rl(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=te(f),h=p.length;if(h){o=p[h-1];var v=f[o];for(var d in v){var m=v[d];n[d]=n[d]||{d:""},n[d].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=SA(n,r);return a.replace(o,s)}}function xA(t){return U(t)?_A[t]?"cubic-bezier("+_A[t]+")":Wa(t)?t:"":""}function Rl(t,e,r,i){var n=t.animators,a=n.length,o=[];if(t instanceof of){var s=gB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],c=[f.getMaxTime()/1e3+"s"],p=xA(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},T={},D="animation-timing-function";function w(ke,xe,Ee){for(var oe=ke.getTracks(),me=ke.getMaxTime(),Pt=0;Pt<oe.length;Pt++){var He=oe[Pt];if(He.needsAnimate()){var hr=He.keyframes,Nt=He.propName;if(Ee&&(Nt=Ee(Nt)),Nt)for(var vr=0;vr<hr.length;vr++){var Ia=hr[vr],dr=Math.round(Ia.time/me*100)+"%",Fl=xA(Ia.easing),La=Ia.rawValue;(U(La)||ae(La))&&(xe[dr]=xe[dr]||{},xe[dr][Nt]=Ia.rawValue,Fl&&(xe[dr][D]=Fl))}}}}for(var A=0;A<x;A++){var E=_[A],O=E.targetName;O?O==="shape"&&w(E,b):!i&&w(E,S)}for(var M in S){var I={};Ni(I,t),P(I,S[M]);var R=yu(I),N=S[M][D];T[M]=R?{transform:R}:{},dB(T[M],I),N&&(T[M][D]=N)}var F,k=!0;for(var M in b){T[M]=T[M]||{};var V=!F,N=b[M][D];V&&(F=new pt);var H=F.len();F.reset(),T[M].d=vB(t,b[M],F);var W=F.len();if(!V&&H!==W){k=!1;break}N&&(T[M][D]=N)}if(!k)for(var M in T)delete T[M].d;if(!i)for(var A=0;A<x;A++){var E=_[A],O=E.targetName;O==="style"&&w(E,T,function(oe){return mB[oe]})}for(var j=te(T),$=!0,Z,A=1;A<j.length;A++){var ue=j[A-1],de=j[A];if(T[ue][Oa]!==T[de][Oa]){$=!1;break}Z=T[ue][Oa]}if($&&Z){for(var M in T)T[M][Oa]&&delete T[M][Oa];e[Oa]=Z}if(Me(j,function(ke){return te(T[ke]).length>0}).length){var Ve=SA(T,r);return Ve+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Sp();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function TA(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};bA(i,e,r,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=n.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=ls(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),bA(i,e,r,!0)}}function bA(t,e,r,i){var n=JSON.stringify(t),a=r.cssStyleCache[n];a||(a=r.zrId+"-cls-"+Sp(),r.cssStyleCache[n]=a,r.cssNodes["."+a+(i?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var kl=Math.round;function AA(t){return t&&U(t.src)}function EA(t){return t&&q(t.toDataURL)}function Lg(t,e,r,i){Eg(function(n,a){var o=n==="fill"||n==="stroke";o&&mu(a)?kg(e,t,n,i):o&&us(a)?Bg(r,t,n,i):t[n]=a,o&&i.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),CB(r,t,i)}function Pg(t,e){var r=O_(e);r&&(r.each(function(i,n){i!=null&&(t[(Og+n).toLowerCase()]=i+"")}),e.isSilent()&&(t[Og+"silent"]="true"))}function CA(t){return Rr(t[0]-1)&&Rr(t[1])&&Rr(t[2])&&Rr(t[3]-1)}function yB(t){return Rr(t[4])&&Rr(t[5])}function Ng(t,e,r){if(e&&!(yB(e)&&CA(e))){var i=r?10:1e4;t.transform=CA(e)?"translate("+kl(e[4]*i)/i+" "+kl(e[5]*i)/i+")":Jy(e)}}function wA(t,e,r){for(var i=t.points,n=[],a=0;a<i.length;a++)n.push(kl(i[a][0]*r)/r),n.push(kl(i[a][1]*r)/r);e.points=n.join(" ")}function DA(t){return!t.smooth}function _B(t){var e=z(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(i[o[1]]=kl(s*n)/n)}}}var xB={circle:[_B(["cx","cy","r"])],polyline:[wA,DA],polygon:[wA,DA]};function SB(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function MA(t,e){var r=t.style,i=t.shape,n=xB[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&gu(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&SB(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),v=t,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new _p),d.reset(u),p.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=d.getStr()}return Ng(a,t.transform),Lg(a,r,t,e),Pg(a,t),e.animation&&Rl(t,a,e),e.emphasis&&TA(t,a,e),Xe(s,t.id+"",a)}function bB(t,e){var r=t.style,i=r.image;if(i&&!U(i)&&(AA(i)?i=i.src:EA(i)&&(i=i.toDataURL())),!!i){var n=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),Ng(l,t.transform),Lg(l,r,t,e),Pg(l,t),e.animation&&Rl(t,l,e),Xe("image",t.id+"",l)}}function TB(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var n=r.font||Rt,a=r.x||0,o=t_(r.y||0,In(n),r.textBaseline),s=e_[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(sv(r)){var u="",f=r.fontStyle,c=ov(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||Ep,h=r.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Ng(l,t.transform),Lg(l,r,t,e),Pg(l,t),e.animation&&Rl(t,l,e),Xe("text",t.id+"",l,void 0,i)}}function Rg(t,e){if(t instanceof re)return MA(t,e);if(t instanceof yt)return bB(t,e);if(t instanceof Gn)return TB(t,e)}function CB(t,e,r){var i=t.style;if(r_(i)){var n=i_(t),a=r.shadowCache,o=a[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=Pi(i.shadowColor),v=h.opacity,d=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Xe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Xe("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),a[n]=o}e.filter=fs(o)}}function kg(t,e,r,i){var n=t[r],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(vu(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(du(n))a="radialGradient",o.cx=Y(n.x,.5),o.cy=Y(n.y,.5),o.r=Y(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=hu(s[u].offset)*100+"%",p=s[u].color,h=Pi(p),v=h.color,d=h.opacity,m={offset:c};m["stop-color"]=v,d<1&&(m["stop-opacity"]=d),l.push(Xe("stop",u+"",m))}var g=Xe(a,"",o,l),y=Pl(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=Xe(a,x,o,l)),e[r]=fs(x)}function Bg(t,e,r,i){var n=t.style[r],a=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(nh(n)){var p=n.imageWidth,h=n.imageHeight,v=void 0,d=n.image;if(U(d)?v=d:AA(d)?v=d.src:EA(d)&&(v=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Be(p,m),Be(h,m)}else if(p==null||h==null){var g=function(A,E){if(A){var O=A.elm,M=p||E.width,I=h||E.height;A.tag==="pattern"&&(u?(I=1,M/=a.width):f&&(M=1,I/=a.height)),A.attrs.width=M,A.attrs.height=I,O&&(O.setAttribute("width",M),O.setAttribute("height",I))}},y=ws(v,null,t,function(A){l||g(b,A),g(c,A)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Xe("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else n.svgElement&&(c=J(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=yu(n);S&&(o.patternTransform=S);var b=Xe("pattern","",o,[c]),T=Pl(b),D=i.patternCache,w=D[T];w||(w=i.zrId+"-p"+i.patternIdx++,D[T]=w,o.id=w,b=i.defs[w]=Xe("pattern",w,o,[c])),e[r]=fs(w)}}function OA(t,e,r){var i=r.clipPathCache,n=r.defs,a=i[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};i[t.id]=a,n[a]=Xe("clipPath",a,o,[MA(t,r)])}e["clip-path"]=fs(a)}function zg(t){return document.createTextNode(t)}function dn(t,e,r){t.insertBefore(e,r)}function Ug(t,e){t.removeChild(e)}function Fg(t,e){t.appendChild(e)}function Vg(t){return t.parentNode}function Hg(t){return t.nextSibling}function bp(t,e){t.textContent=e}var IA=58,DB=120,AB=Xe("","");function Gg(t){return t===void 0}function ei(t){return t!==void 0}function EB(t,e,r){for(var i={},n=e;n<=r;++n){var a=t[n].key;a!==void 0&&(i[a]=n)}return i}function Bl(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function zl(t){var e,r=t.children,i=t.tag;if(ei(i)){var n=t.elm=xp(i);if(Cp(AB,t),B(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Fg(n,zl(a))}else ei(t.text)&&!G(t.text)&&Fg(n,zg(t.text))}else t.elm=zg(t.text);return t.elm}function LA(t,e,r,i,n){for(;i<=n;++i){var a=r[i];a!=null&&dn(t,zl(a),e)}}function Tp(t,e,r,i){for(;r<=i;++r){var n=e[r];if(n!=null)if(ei(n.tag)){var a=Vg(n.elm);Ug(a,n.elm)}else Ug(t,n.elm)}}function Cp(t,e){var r,i=e.elm,n=t&&t.attrs||{},a=e.attrs||{};if(n!==a){for(r in a){var o=a[r],s=n[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==DB?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(mA,r,o):r.charCodeAt(3)===IA?i.setAttributeNS(gA,r,o):r.charCodeAt(5)===IA?i.setAttributeNS(Mg,r,o):i.setAttribute(r,o))}for(r in n)r in a||i.removeAttribute(r)}}function MB(t,e,r){for(var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,p,h,v;i<=a&&n<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=r[++n]:f==null?f=r[--l]:Bl(o,u)?(Zo(o,u),o=e[++i],u=r[++n]):Bl(s,f)?(Zo(s,f),s=e[--a],f=r[--l]):Bl(o,f)?(Zo(o,f),dn(t,o.elm,Hg(s.elm)),o=e[++i],f=r[--l]):Bl(s,u)?(Zo(s,u),dn(t,s.elm,o.elm),s=e[--a],u=r[++n]):(Gg(c)&&(c=EB(e,i,a)),p=c[u.key],Gg(p)?dn(t,zl(u),o.elm):(h=e[p],h.tag!==u.tag?dn(t,zl(u),o.elm):(Zo(h,u),e[p]=void 0,dn(t,h.elm,o.elm))),u=r[++n]);(i<=a||n<=l)&&(i>a?(v=r[l+1]==null?null:r[l+1].elm,LA(t,v,r,n,l)):Tp(t,e,i,a))}function Zo(t,e){var r=e.elm=t.elm,i=t.children,n=e.children;t!==e&&(Cp(t,e),Gg(e.text)?ei(i)&&ei(n)?i!==n&&MB(r,i,n):ei(n)?(ei(t.text)&&bp(r,""),LA(r,null,n,0,n.length-1)):ei(i)?Tp(r,i,0,i.length-1):ei(t.text)&&bp(r,""):t.text!==e.text&&(ei(i)&&Tp(r,i,0,i.length-1),bp(r,e.text)))}function Yg(t,e){if(Bl(t,e))Zo(t,e);else{var r=t.elm,i=Vg(r);zl(e),i!==null&&(dn(i,e.elm,Hg(r)),Tp(i,[t],0,0))}return e}var OB=0,IB=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=LB("configLayer"),this.storage=r,this._opts=i=P({},i),this.root=e,this._id="zr"+OB++,this._oldVNode=Ig(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=xp("svg");Cp(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Yg(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Rg(e,Nl(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=Nl(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=PB(i,n,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Xe("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=z(te(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(Xe("defs","defs",{},u)),e.animation){var f=yA(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Xe("style","stl",{},[],f);o.push(c)}}return Ig(i,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Pl(this.renderToVNode({animation:Y(e.cssAnimation,!0),emphasis:Y(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Y(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,i){for(var n=e.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(p&&l&&p[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=a[o-1];for(var g=d+1;g<h;g++){var y={};OA(p[g],y,r);var _=Xe("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=p;var x=Rg(c,r);x&&(s?s.children:i).push(x)}}},t.prototype.resize=function(e,r){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),n&&a&&(a.style.display="none",e=Bd(n,0,i),r=Bd(n,1,i),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(us(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),i="data:image/svg+xml;";return e?(r=n_(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function LB(t){return function(){}}function PB(t,e,r,i){var n;if(r&&r!=="none")if(n=Xe("rect","bg",{width:t,height:e,x:"0",y:"0"}),mu(r))kg({fill:r},n.attrs,"fill",i);else if(us(r))Bg({style:{fill:r},dirty:Le,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",i);else{var a=Pi(r),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var PA=IB;function Wg(t){t.registerPainter("svg",PA)}function Xg({element:t,theme:e},r={}){for(let i of Array.from(t.style))i.startsWith("--jini-chart-")&&t.style.removeProperty(i);for(let[i,n]of Object.entries(e.tokens??{}))/^--jini-chart-[a-z0-9-]+$/.test(i)&&t.style.setProperty(i,n);t.dataset.chartTheme=e.mode,t.classList.toggle("dark",e.mode==="dark")}var qg="plugin.echarts",NA=["bar","line","area","pie","donut","scatter","stacked-bar"];function NB(t,e={}){return NA.some(r=>r===t.kind)}function Kg({kind:t},e={}){return t==="pie"||t==="donut"}var mn=t=>typeof t=="number"&&Number.isFinite(t);function RB(t){if(t?.locale===void 0)return!0;try{return new Intl.NumberFormat(t.locale),!0}catch{return!1}}function kB(t){return[t.format,t.axes?.x?.format,t.axes?.y?.format].every(RB)}function BB({spec:t},e={}){return t.series.every(({key:r})=>{let i=t.data.map(n=>n[r]);return i.every(n=>mn(n)&&n>=0)&&i.some(n=>n!==0)})}function zB(t){let e=t.series.map(({key:i})=>i),r=t.data.flatMap(i=>e.map(n=>i[n]??null));return!r.every(i=>i===null||mn(i))||!r.some(i=>i!==null)?!1:t.kind!=="scatter"||t.data.every(i=>mn(i[t.categoryKey]))}function wp({spec:t},e={}){return!NB({kind:t.kind})||!t.categoryKey||t.series.length===0||t.data.length===0||!kB(t)?!1:Kg({kind:t.kind})?BB({spec:t}):zB(t)}var UB=["var(--jini-chart-1, var(--jini-chart-default-1))","var(--jini-chart-2, var(--jini-chart-default-2))","var(--jini-chart-3, var(--jini-chart-default-3))","var(--jini-chart-4, var(--jini-chart-default-4))","var(--jini-chart-5, var(--jini-chart-default-5))","var(--jini-chart-6, var(--jini-chart-default-6))"],jg="var(--jini-chart-text, var(--jini-text, #171717))",Qg="var(--jini-chart-axis, var(--jini-muted, #737373))",$g="var(--jini-chart-grid, var(--jini-border, #e5e5e5))",BA="var(--jini-chart-surface, var(--jini-bg, #ffffff))",FB="var(--jini-chart-cursor, var(--jini-accent-soft, rgba(0, 0, 0, 0.06)))",VB={left:8,right:16,top:16,bottom:40,outerBoundsMode:"same",outerBoundsContain:"all"},HB={type:"scroll",bottom:0,icon:"roundRect",itemWidth:10,itemHeight:10,textStyle:{color:jg}},zA={confine:!0,className:"jini-chart-tooltip",backgroundColor:BA,borderColor:$g,textStyle:{color:jg}},UA={disabled:!0};function Jg({spec:t},e={}){return t.title??`${t.series.map(r=>r.label??r.key).join(", ")} by ${t.categoryKey}`}function FA(t){return t==null?"":typeof t=="object"?JSON.stringify(t):String(t)}function Zg(t){if(!t)return;let e=new Intl.NumberFormat(t.locale,t.notation?{notation:t.notation}:{});return r=>e.format(r)}function RA(t){return t.every(e=>e==null||typeof e=="number"&&Number.isInteger(e))}function VA({x:t,y:e}){if(!t&&!e)return{};let r=(i,n)=>typeof i!="number"?"\u2013":n?n(i):String(i);return{valueFormatter:i=>Array.isArray(i)?i.map((n,a)=>r(n,a===0?t:e)).join(", "):r(i,e)}}function HA({name:t}){return t?{name:t,nameLocation:"middle",nameTextStyle:{color:Qg}}:{}}function kA({name:t,format:e,integers:r}){return{type:"value",...HA({name:t}),...r?{minInterval:1}:{},axisLabel:{color:Qg,...e?{formatter:e}:{}},splitLine:{lineStyle:{color:$g}}}}function GB({spec:t}){return{type:"category",...HA({name:t.axes?.x?.label}),data:t.data.map(e=>FA(e[t.categoryKey])),boundaryGap:t.kind!=="line"&&t.kind!=="area",axisTick:{show:!1},axisLine:{lineStyle:{color:$g}},axisLabel:{color:Qg,hideOverlap:!0}}}function YB({spec:t,index:e}){let r=t.series[e],i={name:r.label??r.key,emphasis:UA,...r.color!==void 0?{itemStyle:{color:r.color}}:{}};if(t.kind==="scatter"){let a=t.data.flatMap(o=>{let s=o[t.categoryKey],l=o[r.key];return mn(s)&&mn(l)?[[s,l]]:[]});return{...i,type:"scatter",symbolSize:10,data:a}}let n=t.data.map(a=>{let o=a[r.key];return mn(o)?o:null});return t.kind==="line"||t.kind==="area"?{...i,type:"line",symbol:"circle",symbolSize:6,data:n,...t.kind==="area"?{areaStyle:{opacity:.2}}:{}}:{...i,type:"bar",barMaxWidth:48,data:n,...t.kind==="stacked-bar"?{stack:"total"}:{}}}function WB(t){let e=Zg(t.axes?.y?.format??t.format);return{x:t.kind==="scatter"?Zg(t.axes?.x?.format??t.format):void 0,y:e}}function XB(t){let{x:e,y:r}=WB(t),i=t.kind==="scatter",n=t.kind==="bar"||t.kind==="stacked-bar",a=i?kA({name:t.axes?.x?.label,format:e,integers:RA(t.data.map(s=>s[t.categoryKey]))}):GB({spec:t}),o=t.data.flatMap(s=>t.series.map(({key:l})=>s[l]));return{grid:VB,xAxis:a,yAxis:kA({name:t.axes?.y?.label,format:r,integers:RA(o)}),tooltip:{...zA,trigger:i?"item":"axis",...n?{axisPointer:{type:"shadow",shadowStyle:{color:FB}}}:{},...VA({x:e,y:r})},series:t.series.map((s,l)=>YB({spec:t,index:l}))}}function qB({spec:t,index:e},r={}){if(t.series.length===1)return t.kind==="donut"?["50%","75%"]:"75%";let i=t.kind==="donut"?50:0,n=(75-i)/t.series.length;return[`${i+e*n}%`,`${i+(e+1)*n}%`]}function KB({spec:t,index:e},r={}){let i=t.series[e],n=t.data.map(a=>{let o=a[i.key];return{name:FA(a[t.categoryKey]),value:mn(o)?o:0}});return{type:"pie",name:i.label??i.key,radius:qB({spec:t,index:e}),center:["50%","45%"],label:{show:!1},labelLine:{show:!1},emphasis:UA,itemStyle:{borderColor:BA,borderWidth:2},data:n}}function ZB({spec:t},e={}){return{tooltip:{...zA,trigger:"item",...VA({y:Zg(t.format)})},series:t.series.map((r,i)=>KB({spec:t,index:i}))}}function GA({spec:t},e={}){return{animation:!1,color:[...UB],aria:{enabled:!0},title:{show:!1,text:Jg({spec:t})},textStyle:{color:jg},legend:HB,...Kg({kind:t.kind})?ZB({spec:t}):XB(t)}}bt([Vm,Om,Km,ig,Cg,fg,bg,dg,vg,Wg]);var jB=["series","xAxis","yAxis","grid","tooltip"],QB=300,Ul=class extends Error{constructor(){super("Unsupported ECharts chart specification."),this.name="UnsupportedChartSpecError"}};function $B({element:t}){let e=t.ownerDocument,r=e.createElement("figure");r.className="jini-chart",r.dataset.chartProvider=qg;let i=e.createElement("figcaption");i.className="jini-chart-caption";let n=e.createElement("div");return n.className="jini-chart-surface",n.style.width="100%",n.style.height=`${QB}px`,r.append(i,n),t.replaceChildren(r),{figure:r,caption:i,surface:n}}function JB({figure:t,caption:e,spec:r,descriptionId:i}){let n=Jg({spec:r}),a=t.ownerDocument.createElement("span");if(a.textContent=n,e.replaceChildren(a),t.setAttribute("aria-label",n),t.removeAttribute("aria-describedby"),r.description===void 0)return;let o=t.ownerDocument.createElement("span");o.id=i,o.textContent=r.description,e.append(o),t.setAttribute("aria-describedby",o.id)}function ez({surface:t,chart:e}){if(typeof ResizeObserver!="function")return;let r=new ResizeObserver(()=>{e.isDisposed()||e.resize()});return r.observe(t),r}function tz({element:t,...e},r={}){if(!wp({spec:e.spec}))throw new Ul;let i=$B({element:t}),n=qT(i.surface,void 0,{renderer:"svg"}),a=`jini-echarts-description-${n.id}`,o=!1;function s(u){if(!o){if(!wp({spec:u.spec}))throw new Ul;Xg({element:t,theme:u.theme}),JB({...i,spec:u.spec,descriptionId:a}),n.setOption(GA({spec:u.spec}),{replaceMerge:jB})}}try{s(e)}catch(u){throw n.dispose(),t.replaceChildren(),u}let l=ez({surface:i.surface,chart:n});return{ready:Promise.resolve(),update(u,f={}){s(u)},destroy(u={},f={}){o||(o=!0,l?.disconnect(),n.dispose(),t.replaceChildren())}}}export{NA as ECHARTS_KINDS,qg as ECHARTS_PROVIDER_ID,Ul as UnsupportedChartSpecError,tz as mount,wp as supportsEChartsSpec};